2024-06-25 12:27:28 +01:00

280 lines
6.9 KiB
PHP
Vendored

<?php
# Generated by the protocol buffer compiler. DO NOT EDIT!
# source: stream/meta.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.UplinkMeta</code>
*/
class UplinkMeta extends \Google\Protobuf\Internal\Message
{
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
*/
protected $dev_eui = '';
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
*/
protected $tx_info = null;
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
*/
private $rx_info;
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
*/
protected $phy_payload_byte_count = 0;
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
*/
protected $mac_command_byte_count = 0;
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
*/
protected $application_payload_byte_count = 0;
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
*/
protected $message_type = 0;
/**
* Constructor.
*
* @param array $data {
* Optional. Data for populating the Message object.
*
* @type string $dev_eui
* Device EUI (EUI64).
* @type \Chirpstack\Gateway\UplinkTxInfo $tx_info
* TX meta-data.
* @type array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $rx_info
* RX meta-data.
* @type int $phy_payload_byte_count
* PHYPayload byte count.
* @type int $mac_command_byte_count
* MAC-Command byte count.
* @type int $application_payload_byte_count
* Application payload byte count.
* @type int $message_type
* Message type.
* }
*/
public function __construct($data = NULL) {
\GPBMetadata\Chirpstack\Stream\Meta::initOnce();
parent::__construct($data);
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @return string
*/
public function getDevEui()
{
return $this->dev_eui;
}
/**
* Device EUI (EUI64).
*
* Generated from protobuf field <code>string dev_eui = 1;</code>
* @param string $var
* @return $this
*/
public function setDevEui($var)
{
GPBUtil::checkString($var, True);
$this->dev_eui = $var;
return $this;
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
* @return \Chirpstack\Gateway\UplinkTxInfo|null
*/
public function getTxInfo()
{
return $this->tx_info;
}
public function hasTxInfo()
{
return isset($this->tx_info);
}
public function clearTxInfo()
{
unset($this->tx_info);
}
/**
* TX meta-data.
*
* Generated from protobuf field <code>.gw.UplinkTxInfo tx_info = 2;</code>
* @param \Chirpstack\Gateway\UplinkTxInfo $var
* @return $this
*/
public function setTxInfo($var)
{
GPBUtil::checkMessage($var, \Chirpstack\Gateway\UplinkTxInfo::class);
$this->tx_info = $var;
return $this;
}
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
* @return \Google\Protobuf\Internal\RepeatedField
*/
public function getRxInfo()
{
return $this->rx_info;
}
/**
* RX meta-data.
*
* Generated from protobuf field <code>repeated .gw.UplinkRxInfo rx_info = 3;</code>
* @param array<\Chirpstack\Gateway\UplinkRxInfo>|\Google\Protobuf\Internal\RepeatedField $var
* @return $this
*/
public function setRxInfo($var)
{
$arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Chirpstack\Gateway\UplinkRxInfo::class);
$this->rx_info = $arr;
return $this;
}
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
* @return int
*/
public function getPhyPayloadByteCount()
{
return $this->phy_payload_byte_count;
}
/**
* PHYPayload byte count.
*
* Generated from protobuf field <code>uint32 phy_payload_byte_count = 4;</code>
* @param int $var
* @return $this
*/
public function setPhyPayloadByteCount($var)
{
GPBUtil::checkUint32($var);
$this->phy_payload_byte_count = $var;
return $this;
}
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
* @return int
*/
public function getMacCommandByteCount()
{
return $this->mac_command_byte_count;
}
/**
* MAC-Command byte count.
*
* Generated from protobuf field <code>uint32 mac_command_byte_count = 5;</code>
* @param int $var
* @return $this
*/
public function setMacCommandByteCount($var)
{
GPBUtil::checkUint32($var);
$this->mac_command_byte_count = $var;
return $this;
}
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
* @return int
*/
public function getApplicationPayloadByteCount()
{
return $this->application_payload_byte_count;
}
/**
* Application payload byte count.
*
* Generated from protobuf field <code>uint32 application_payload_byte_count = 6;</code>
* @param int $var
* @return $this
*/
public function setApplicationPayloadByteCount($var)
{
GPBUtil::checkUint32($var);
$this->application_payload_byte_count = $var;
return $this;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
* @return int
*/
public function getMessageType()
{
return $this->message_type;
}
/**
* Message type.
*
* Generated from protobuf field <code>.common.MType message_type = 7;</code>
* @param int $var
* @return $this
*/
public function setMessageType($var)
{
GPBUtil::checkEnum($var, \Chirpstack\Common\MType::class);
$this->message_type = $var;
return $this;
}
}