| 1 |
<?php |
| 2 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 |
# source: src/proto/grpc/testing/messages.proto |
| 4 |
|
| 5 |
namespace Grpc\Testing\ClientConfigureRequest; |
| 6 |
|
| 7 |
use Google\Protobuf\Internal\GPBType; |
| 8 |
use Google\Protobuf\Internal\RepeatedField; |
| 9 |
use Google\Protobuf\Internal\GPBUtil; |
| 10 |
|
| 11 |
/** |
| 12 |
* Metadata to be attached for the given type of RPCs. |
| 13 |
* |
| 14 |
* Generated from protobuf message <code>grpc.testing.ClientConfigureRequest.Metadata</code> |
| 15 |
*/ |
| 16 |
class Metadata extends \Google\Protobuf\Internal\Message |
| 17 |
{ |
| 18 |
/** |
| 19 |
* Generated from protobuf field <code>.grpc.testing.ClientConfigureRequest.RpcType type = 1;</code> |
| 20 |
*/ |
| 21 |
protected $type = 0; |
| 22 |
/** |
| 23 |
* Generated from protobuf field <code>string key = 2;</code> |
| 24 |
*/ |
| 25 |
protected $key = ''; |
| 26 |
/** |
| 27 |
* Generated from protobuf field <code>string value = 3;</code> |
| 28 |
*/ |
| 29 |
protected $value = ''; |
| 30 |
|
| 31 |
/** |
| 32 |
* Constructor. |
| 33 |
* |
| 34 |
* @param array $data { |
| 35 |
* Optional. Data for populating the Message object. |
| 36 |
* |
| 37 |
* @type int $type |
| 38 |
* @type string $key |
| 39 |
* @type string $value |
| 40 |
* } |
| 41 |
*/ |
| 42 |
public function __construct($data = NULL) { |
| 43 |
\GPBMetadata\Src\Proto\Grpc\Testing\Messages::initOnce(); |
| 44 |
parent::__construct($data); |
| 45 |
} |
| 46 |
|
| 47 |
/** |
| 48 |
* Generated from protobuf field <code>.grpc.testing.ClientConfigureRequest.RpcType type = 1;</code> |
| 49 |
* @return int |
| 50 |
*/ |
| 51 |
public function getType() |
| 52 |
{ |
| 53 |
return $this->type; |
| 54 |
} |
| 55 |
|
| 56 |
/** |
| 57 |
* Generated from protobuf field <code>.grpc.testing.ClientConfigureRequest.RpcType type = 1;</code> |
| 58 |
* @param int $var |
| 59 |
* @return $this |
| 60 |
*/ |
| 61 |
public function setType($var) |
| 62 |
{ |
| 63 |
GPBUtil::checkEnum($var, \Grpc\Testing\ClientConfigureRequest\RpcType::class); |
| 64 |
$this->type = $var; |
| 65 |
|
| 66 |
return $this; |
| 67 |
} |
| 68 |
|
| 69 |
/** |
| 70 |
* Generated from protobuf field <code>string key = 2;</code> |
| 71 |
* @return string |
| 72 |
*/ |
| 73 |
public function getKey() |
| 74 |
{ |
| 75 |
return $this->key; |
| 76 |
} |
| 77 |
|
| 78 |
/** |
| 79 |
* Generated from protobuf field <code>string key = 2;</code> |
| 80 |
* @param string $var |
| 81 |
* @return $this |
| 82 |
*/ |
| 83 |
public function setKey($var) |
| 84 |
{ |
| 85 |
GPBUtil::checkString($var, True); |
| 86 |
$this->key = $var; |
| 87 |
|
| 88 |
return $this; |
| 89 |
} |
| 90 |
|
| 91 |
/** |
| 92 |
* Generated from protobuf field <code>string value = 3;</code> |
| 93 |
* @return string |
| 94 |
*/ |
| 95 |
public function getValue() |
| 96 |
{ |
| 97 |
return $this->value; |
| 98 |
} |
| 99 |
|
| 100 |
/** |
| 101 |
* Generated from protobuf field <code>string value = 3;</code> |
| 102 |
* @param string $var |
| 103 |
* @return $this |
| 104 |
*/ |
| 105 |
public function setValue($var) |
| 106 |
{ |
| 107 |
GPBUtil::checkString($var, True); |
| 108 |
$this->value = $var; |
| 109 |
|
| 110 |
return $this; |
| 111 |
} |
| 112 |
|
| 113 |
} |
| 114 |
|
| 115 |
// Adding a class alias for backwards compatibility with the previous class name. |
| 116 |
class_alias(Metadata::class, \Grpc\Testing\ClientConfigureRequest_Metadata::class); |
| 117 |
|