| <?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.ClientArgs</code> | |
| */ | |
| class ClientArgs extends \Google\Protobuf\Internal\Message | |
| { | |
| protected $argtype; | |
| /** | |
| * Constructor. | |
| * | |
| * @param array $data { | |
| * Optional. Data for populating the Message object. | |
| * | |
| * @type \Grpc\Testing\ClientConfig $setup | |
| * @type \Grpc\Testing\Mark $mark | |
| * } | |
| */ | |
| public function __construct($data = NULL) { | |
| \GPBMetadata\Src\Proto\Grpc\Testing\Control::initOnce(); | |
| parent::__construct($data); | |
| } | |
| /** | |
| * Generated from protobuf field <code>.grpc.testing.ClientConfig setup = 1;</code> | |
| * @return \Grpc\Testing\ClientConfig | |
| */ | |
| public function getSetup() | |
| { | |
| return $this->readOneof(1); | |
| } | |
| /** | |
| * Generated from protobuf field <code>.grpc.testing.ClientConfig setup = 1;</code> | |
| * @param \Grpc\Testing\ClientConfig $var | |
| * @return $this | |
| */ | |
| public function setSetup($var) | |
| { | |
| GPBUtil::checkMessage($var, \Grpc\Testing\ClientConfig::class); | |
| $this->writeOneof(1, $var); | |
| return $this; | |
| } | |
| /** | |
| * Generated from protobuf field <code>.grpc.testing.Mark mark = 2;</code> | |
| * @return \Grpc\Testing\Mark | |
| */ | |
| public function getMark() | |
| { | |
| return $this->readOneof(2); | |
| } | |
| /** | |
| * Generated from protobuf field <code>.grpc.testing.Mark mark = 2;</code> | |
| * @param \Grpc\Testing\Mark $var | |
| * @return $this | |
| */ | |
| public function setMark($var) | |
| { | |
| GPBUtil::checkMessage($var, \Grpc\Testing\Mark::class); | |
| $this->writeOneof(2, $var); | |
| return $this; | |
| } | |
| /** | |
| * @return string | |
| */ | |
| public function getArgtype() | |
| { | |
| return $this->whichOneof("argtype"); | |
| } | |
| } | |