chirpstack/api/php/generated/Chirpstack/Stream/BackendInterfacesRequest.php
2024-06-25 12:27:28 +01:00

348 lines
7.7 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream/backend_interfaces.proto
namespace Chirpstack\Stream;
use Google\Protobuf\Internal\GPBType;
use Google\Protobuf\Internal\RepeatedField;
use Google\Protobuf\Internal\GPBUtil;
/**
* Generated from protobuf message <code>stream.BackendInterfacesRequest</code>
*/
class BackendInterfacesRequest extends \Google\Protobuf\Internal\Message
{
/**
* Sender ID.
*
* Generated from protobuf field <code>string sender_id = 1;</code>
*/
protected $sender_id = '';
/**
* Receiver ID.
*
* Generated from protobuf field <code>string receiver_id = 2;</code>
*/
protected $receiver_id = '';
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 3;</code>
*/
protected $time = null;
/**
* Transaction ID.
*
* Generated from protobuf field <code>uint32 transaction_id = 4;</code>
*/
protected $transaction_id = 0;
/**
* Message-type.
*
* Generated from protobuf field <code>string message_type = 5;</code>
*/
protected $message_type = '';
/**
* Result code.
*
* Generated from protobuf field <code>string result_code = 6;</code>
*/
protected $result_code = '';
/**
* Request body.
*
* Generated from protobuf field <code>string request_body = 7;</code>
*/
protected $request_body = '';
/**
* Request error.
*
* Generated from protobuf field <code>string request_error = 8;</code>
*/
protected $request_error = '';
/**
* Response body.
*
* Generated from protobuf field <code>string response_body = 9;</code>
*/
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 <code>string sender_id = 1;</code>
* @return string
*/
public function getSenderId()
{
return $this->sender_id;
}
/**
* Sender ID.
*
* Generated from protobuf field <code>string sender_id = 1;</code>
* @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 <code>string receiver_id = 2;</code>
* @return string
*/
public function getReceiverId()
{
return $this->receiver_id;
}
/**
* Receiver ID.
*
* Generated from protobuf field <code>string receiver_id = 2;</code>
* @param string $var
* @return $this
*/
public function setReceiverId($var)
{
GPBUtil::checkString($var, True);
$this->receiver_id = $var;
return $this;
}
/**
* Timestamp.
*
* Generated from protobuf field <code>.google.protobuf.Timestamp time = 3;</code>
* @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 <code>.google.protobuf.Timestamp time = 3;</code>
* @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 <code>uint32 transaction_id = 4;</code>
* @return int
*/
public function getTransactionId()
{
return $this->transaction_id;
}
/**
* Transaction ID.
*
* Generated from protobuf field <code>uint32 transaction_id = 4;</code>
* @param int $var
* @return $this
*/
public function setTransactionId($var)
{
GPBUtil::checkUint32($var);
$this->transaction_id = $var;
return $this;
}
/**
* Message-type.
*
* Generated from protobuf field <code>string message_type = 5;</code>
* @return string
*/
public function getMessageType()
{
return $this->message_type;
}
/**
* Message-type.
*
* Generated from protobuf field <code>string message_type = 5;</code>
* @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 <code>string result_code = 6;</code>
* @return string
*/
public function getResultCode()
{
return $this->result_code;
}
/**
* Result code.
*
* Generated from protobuf field <code>string result_code = 6;</code>
* @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 <code>string request_body = 7;</code>
* @return string
*/
public function getRequestBody()
{
return $this->request_body;
}
/**
* Request body.
*
* Generated from protobuf field <code>string request_body = 7;</code>
* @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 <code>string request_error = 8;</code>
* @return string
*/
public function getRequestError()
{
return $this->request_error;
}
/**
* Request error.
*
* Generated from protobuf field <code>string request_error = 8;</code>
* @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 <code>string response_body = 9;</code>
* @return string
*/
public function getResponseBody()
{
return $this->response_body;
}
/**
* Response body.
*
* Generated from protobuf field <code>string response_body = 9;</code>
* @param string $var
* @return $this
*/
public function setResponseBody($var)
{
GPBUtil::checkString($var, True);
$this->response_body = $var;
return $this;
}
}