grpc.testing.ClientConfigureRequest.Metadata */ class Metadata extends \Google\Protobuf\Internal\Message { /** * Generated from protobuf field .grpc.testing.ClientConfigureRequest.RpcType type = 1; */ protected $type = 0; /** * Generated from protobuf field string key = 2; */ protected $key = ''; /** * Generated from protobuf field string value = 3; */ protected $value = ''; /** * Constructor. * * @param array $data { * Optional. Data for populating the Message object. * * @type int $type * @type string $key * @type string $value * } */ public function __construct($data = NULL) { \GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); parent::__construct($data); } /** * Generated from protobuf field .grpc.testing.ClientConfigureRequest.RpcType type = 1; * @return int */ public function getType() { return $this->type; } /** * Generated from protobuf field .grpc.testing.ClientConfigureRequest.RpcType type = 1; * @param int $var * @return $this */ public function setType($var) { GPBUtil::checkEnum($var, \Grpc\Testing\ClientConfigureRequest\RpcType::class); $this->type = $var; return $this; } /** * Generated from protobuf field string key = 2; * @return string */ public function getKey() { return $this->key; } /** * Generated from protobuf field string key = 2; * @param string $var * @return $this */ public function setKey($var) { GPBUtil::checkString($var, True); $this->key = $var; return $this; } /** * Generated from protobuf field string value = 3; * @return string */ public function getValue() { return $this->value; } /** * Generated from protobuf field string value = 3; * @param string $var * @return $this */ public function setValue($var) { GPBUtil::checkString($var, True); $this->value = $var; return $this; } } // Adding a class alias for backwards compatibility with the previous class name. class_alias(Metadata::class, \Grpc\Testing\ClientConfigureRequest_Metadata::class);