grpc.testing.ChannelArg
*/
class ChannelArg extends \Google\Protobuf\Internal\Message
{
/**
* Generated from protobuf field string name = 1;
*/
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 string name = 1;
* @return string
*/
public function getName()
{
return $this->name;
}
/**
* Generated from protobuf field string name = 1;
* @param string $var
* @return $this
*/
public function setName($var)
{
GPBUtil::checkString($var, True);
$this->name = $var;
return $this;
}
/**
* Generated from protobuf field string str_value = 2;
* @return string
*/
public function getStrValue()
{
return $this->readOneof(2);
}
/**
* Generated from protobuf field string str_value = 2;
* @param string $var
* @return $this
*/
public function setStrValue($var)
{
GPBUtil::checkString($var, True);
$this->writeOneof(2, $var);
return $this;
}
/**
* Generated from protobuf field int32 int_value = 3;
* @return int
*/
public function getIntValue()
{
return $this->readOneof(3);
}
/**
* Generated from protobuf field int32 int_value = 3;
* @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");
}
}