| <?php | |
| # Generated by the protocol buffer compiler. DO NOT EDIT! | |
| # source: src/proto/grpc/testing/control.proto | |
| namespace Grpc\Testing; | |
| use Google\Protobuf\Internal\GPBType; | |
| use Google\Protobuf\Internal\RepeatedField; | |
| use Google\Protobuf\Internal\GPBUtil; | |
| /** | |
| * Generated from protobuf message <code>grpc.testing.ChannelArg</code> | |
| */ | |
| class ChannelArg extends \Google\Protobuf\Internal\Message | |
| { | |
| /** | |
| * Generated from protobuf field <code>string name = 1;</code> | |
| */ | |
| protected $name = ''; | |
| protected $value; | |
| /** | |
| * Constructor. | |
| * | |
| * @param array $data { | |
| * Optional. Data for populating the Message object. | |
| * | |
| * @type string $name | |
| * @type string $str_value | |
| * @type int $int_value | |
| * } | |
| */ | |
| public function __construct($data = NULL) { | |
| \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce(); | |
| parent::__construct($data); | |
| } | |
| /** | |
| * Generated from protobuf field <code>string name = 1;</code> | |
| * @return string | |
| */ | |
| public function getName() | |
| { | |
| return $this->name; | |
| } | |
| /** | |
| * Generated from protobuf field <code>string name = 1;</code> | |
| * @param string $var | |
| * @return $this | |
| */ | |
| public function setName($var) | |
| { | |
| GPBUtil::checkString($var, True); | |
| $this->name = $var; | |
| return $this; | |
| } | |
| /** | |
| * Generated from protobuf field <code>string str_value = 2;</code> | |
| * @return string | |
| */ | |
| public function getStrValue() | |
| { | |
| return $this->readOneof(2); | |
| } | |
| /** | |
| * Generated from protobuf field <code>string str_value = 2;</code> | |
| * @param string $var | |
| * @return $this | |
| */ | |
| public function setStrValue($var) | |
| { | |
| GPBUtil::checkString($var, True); | |
| $this->writeOneof(2, $var); | |
| return $this; | |
| } | |
| /** | |
| * Generated from protobuf field <code>int32 int_value = 3;</code> | |
| * @return int | |
| */ | |
| public function getIntValue() | |
| { | |
| return $this->readOneof(3); | |
| } | |
| /** | |
| * Generated from protobuf field <code>int32 int_value = 3;</code> | |
| * @param int $var | |
| * @return $this | |
| */ | |
| public function setIntValue($var) | |
| { | |
| GPBUtil::checkInt32($var); | |
| $this->writeOneof(3, $var); | |
| return $this; | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getValue() | |
| { | |
| return $this->whichOneof("value"); | |
| } | |
| } | |