stream.BackendInterfacesRequest */ class BackendInterfacesRequest extends \Google\Protobuf\Internal\Message { /** * Sender ID. * * Generated from protobuf field string sender_id = 1; */ protected $sender_id = ''; /** * Receiver ID. * * Generated from protobuf field string receiver_id = 2; */ protected $receiver_id = ''; /** * Timestamp. * * Generated from protobuf field .google.protobuf.Timestamp time = 3; */ protected $time = null; /** * Transaction ID. * * Generated from protobuf field uint32 transaction_id = 4; */ protected $transaction_id = 0; /** * Message-type. * * Generated from protobuf field string message_type = 5; */ protected $message_type = ''; /** * Result code. * * Generated from protobuf field string result_code = 6; */ protected $result_code = ''; /** * Request body. * * Generated from protobuf field string request_body = 7; */ protected $request_body = ''; /** * Request error. * * Generated from protobuf field string request_error = 8; */ protected $request_error = ''; /** * Response body. * * Generated from protobuf field string response_body = 9; */ protected $response_body = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type string $sender_id * Sender ID. * @type string $receiver_id * Receiver ID. * @type \Google\Protobuf\Timestamp $time * Timestamp. * @type int $transaction_id * Transaction ID. * @type string $message_type * Message-type. * @type string $result_code * Result code. * @type string $request_body * Request body. * @type string $request_error * Request error. * @type string $response_body * Response body. * } */ public function __construct($data = NULL) { \GPBMetadata\Chirpstack\Stream\BackendInterfaces::initOnce(); parent::__construct($data); } /** * Sender ID. * * Generated from protobuf field string sender_id = 1; * @return string */ public function getSenderId() { return $this->sender_id; } /** * Sender ID. * * Generated from protobuf field string sender_id = 1; * @param string $var * @return $this */ public function setSenderId($var) { GPBUtil::checkString($var, True); $this->sender_id = $var; return $this; } /** * Receiver ID. * * Generated from protobuf field string receiver_id = 2; * @return string */ public function getReceiverId() { return $this->receiver_id; } /** * Receiver ID. * * Generated from protobuf field string receiver_id = 2; * @param string $var * @return $this */ public function setReceiverId($var) { GPBUtil::checkString($var, True); $this->receiver_id = $var; return $this; } /** * Timestamp. * * Generated from protobuf field .google.protobuf.Timestamp time = 3; * @return \Google\Protobuf\Timestamp|null */ public function getTime() { return $this->time; } public function hasTime() { return isset($this->time); } public function clearTime() { unset($this->time); } /** * Timestamp. * * Generated from protobuf field .google.protobuf.Timestamp time = 3; * @param \Google\Protobuf\Timestamp $var * @return $this */ public function setTime($var) { GPBUtil::checkMessage($var, \Google\Protobuf\Timestamp::class); $this->time = $var; return $this; } /** * Transaction ID. * * Generated from protobuf field uint32 transaction_id = 4; * @return int */ public function getTransactionId() { return $this->transaction_id; } /** * Transaction ID. * * Generated from protobuf field uint32 transaction_id = 4; * @param int $var * @return $this */ public function setTransactionId($var) { GPBUtil::checkUint32($var); $this->transaction_id = $var; return $this; } /** * Message-type. * * Generated from protobuf field string message_type = 5; * @return string */ public function getMessageType() { return $this->message_type; } /** * Message-type. * * Generated from protobuf field string message_type = 5; * @param string $var * @return $this */ public function setMessageType($var) { GPBUtil::checkString($var, True); $this->message_type = $var; return $this; } /** * Result code. * * Generated from protobuf field string result_code = 6; * @return string */ public function getResultCode() { return $this->result_code; } /** * Result code. * * Generated from protobuf field string result_code = 6; * @param string $var * @return $this */ public function setResultCode($var) { GPBUtil::checkString($var, True); $this->result_code = $var; return $this; } /** * Request body. * * Generated from protobuf field string request_body = 7; * @return string */ public function getRequestBody() { return $this->request_body; } /** * Request body. * * Generated from protobuf field string request_body = 7; * @param string $var * @return $this */ public function setRequestBody($var) { GPBUtil::checkString($var, True); $this->request_body = $var; return $this; } /** * Request error. * * Generated from protobuf field string request_error = 8; * @return string */ public function getRequestError() { return $this->request_error; } /** * Request error. * * Generated from protobuf field string request_error = 8; * @param string $var * @return $this */ public function setRequestError($var) { GPBUtil::checkString($var, True); $this->request_error = $var; return $this; } /** * Response body. * * Generated from protobuf field string response_body = 9; * @return string */ public function getResponseBody() { return $this->response_body; } /** * Response body. * * Generated from protobuf field string response_body = 9; * @param string $var * @return $this */ public function setResponseBody($var) { GPBUtil::checkString($var, True); $this->response_body = $var; return $this; } }