mirror of
https://github.com/chirpstack/chirpstack.git
synced 2025-04-26 05:49:51 +00:00
240 lines
5.2 KiB
PHP
Vendored
240 lines
5.2 KiB
PHP
Vendored
<?php
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
# source: gw/gw.proto
|
|
|
|
namespace Chirpstack\Gateway;
|
|
|
|
use Google\Protobuf\Internal\GPBType;
|
|
use Google\Protobuf\Internal\RepeatedField;
|
|
use Google\Protobuf\Internal\GPBUtil;
|
|
|
|
/**
|
|
* Generated from protobuf message <code>gw.GatewayCommandExecResponse</code>
|
|
*/
|
|
class GatewayCommandExecResponse extends \Google\Protobuf\Internal\Message
|
|
{
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id.
|
|
*
|
|
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
|
|
*/
|
|
protected $gateway_id_legacy = '';
|
|
/**
|
|
* Gateway ID.
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 6;</code>
|
|
*/
|
|
protected $gateway_id = '';
|
|
/**
|
|
* Execution request ID.
|
|
*
|
|
* Generated from protobuf field <code>uint32 exec_id = 7;</code>
|
|
*/
|
|
protected $exec_id = 0;
|
|
/**
|
|
* Standard output.
|
|
*
|
|
* Generated from protobuf field <code>bytes stdout = 3;</code>
|
|
*/
|
|
protected $stdout = '';
|
|
/**
|
|
* Standard error.
|
|
*
|
|
* Generated from protobuf field <code>bytes stderr = 4;</code>
|
|
*/
|
|
protected $stderr = '';
|
|
/**
|
|
* Error message.
|
|
*
|
|
* Generated from protobuf field <code>string error = 5;</code>
|
|
*/
|
|
protected $error = '';
|
|
|
|
/**
|
|
* Constructor.
|
|
*
|
|
* @param array $data {
|
|
* Optional. Data for populating the Message object.
|
|
*
|
|
* @type string $gateway_id_legacy
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id.
|
|
* @type string $gateway_id
|
|
* Gateway ID.
|
|
* @type int $exec_id
|
|
* Execution request ID.
|
|
* @type string $stdout
|
|
* Standard output.
|
|
* @type string $stderr
|
|
* Standard error.
|
|
* @type string $error
|
|
* Error message.
|
|
* }
|
|
*/
|
|
public function __construct($data = NULL) {
|
|
\GPBMetadata\Chirpstack\Gateway\Gw::initOnce();
|
|
parent::__construct($data);
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id.
|
|
*
|
|
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
|
|
* @return string
|
|
*/
|
|
public function getGatewayIdLegacy()
|
|
{
|
|
return $this->gateway_id_legacy;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
* Deprecated: use gateway_id.
|
|
*
|
|
* Generated from protobuf field <code>bytes gateway_id_legacy = 1;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setGatewayIdLegacy($var)
|
|
{
|
|
GPBUtil::checkString($var, False);
|
|
$this->gateway_id_legacy = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 6;</code>
|
|
* @return string
|
|
*/
|
|
public function getGatewayId()
|
|
{
|
|
return $this->gateway_id;
|
|
}
|
|
|
|
/**
|
|
* Gateway ID.
|
|
*
|
|
* Generated from protobuf field <code>string gateway_id = 6;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setGatewayId($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->gateway_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Execution request ID.
|
|
*
|
|
* Generated from protobuf field <code>uint32 exec_id = 7;</code>
|
|
* @return int
|
|
*/
|
|
public function getExecId()
|
|
{
|
|
return $this->exec_id;
|
|
}
|
|
|
|
/**
|
|
* Execution request ID.
|
|
*
|
|
* Generated from protobuf field <code>uint32 exec_id = 7;</code>
|
|
* @param int $var
|
|
* @return $this
|
|
*/
|
|
public function setExecId($var)
|
|
{
|
|
GPBUtil::checkUint32($var);
|
|
$this->exec_id = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Standard output.
|
|
*
|
|
* Generated from protobuf field <code>bytes stdout = 3;</code>
|
|
* @return string
|
|
*/
|
|
public function getStdout()
|
|
{
|
|
return $this->stdout;
|
|
}
|
|
|
|
/**
|
|
* Standard output.
|
|
*
|
|
* Generated from protobuf field <code>bytes stdout = 3;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setStdout($var)
|
|
{
|
|
GPBUtil::checkString($var, False);
|
|
$this->stdout = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Standard error.
|
|
*
|
|
* Generated from protobuf field <code>bytes stderr = 4;</code>
|
|
* @return string
|
|
*/
|
|
public function getStderr()
|
|
{
|
|
return $this->stderr;
|
|
}
|
|
|
|
/**
|
|
* Standard error.
|
|
*
|
|
* Generated from protobuf field <code>bytes stderr = 4;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setStderr($var)
|
|
{
|
|
GPBUtil::checkString($var, False);
|
|
$this->stderr = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
/**
|
|
* Error message.
|
|
*
|
|
* Generated from protobuf field <code>string error = 5;</code>
|
|
* @return string
|
|
*/
|
|
public function getError()
|
|
{
|
|
return $this->error;
|
|
}
|
|
|
|
/**
|
|
* Error message.
|
|
*
|
|
* Generated from protobuf field <code>string error = 5;</code>
|
|
* @param string $var
|
|
* @return $this
|
|
*/
|
|
public function setError($var)
|
|
{
|
|
GPBUtil::checkString($var, True);
|
|
$this->error = $var;
|
|
|
|
return $this;
|
|
}
|
|
|
|
}
|
|
|