| 1 |
<?php |
| 2 |
# Generated by the protocol buffer compiler. DO NOT EDIT! |
| 3 |
# source: google/protobuf/descriptor.proto |
| 4 |
|
| 5 |
namespace Google\Protobuf\Internal; |
| 6 |
|
| 7 |
use Google\Protobuf\Internal\GPBType; |
| 8 |
use Google\Protobuf\Internal\GPBWire; |
| 9 |
use Google\Protobuf\Internal\RepeatedField; |
| 10 |
use Google\Protobuf\Internal\InputStream; |
| 11 |
use Google\Protobuf\Internal\GPBUtil; |
| 12 |
|
| 13 |
/** |
| 14 |
* Describes a method of a service. |
| 15 |
* |
| 16 |
* Generated from protobuf message <code>google.protobuf.MethodDescriptorProto</code> |
| 17 |
*/ |
| 18 |
class MethodDescriptorProto extends \Google\Protobuf\Internal\Message |
| 19 |
{ |
| 20 |
/** |
| 21 |
* Generated from protobuf field <code>optional string name = 1;</code> |
| 22 |
*/ |
| 23 |
protected $name = null; |
| 24 |
/** |
| 25 |
* Input and output type names. These are resolved in the same way as |
| 26 |
* FieldDescriptorProto.type_name, but must refer to a message type. |
| 27 |
* |
| 28 |
* Generated from protobuf field <code>optional string input_type = 2;</code> |
| 29 |
*/ |
| 30 |
protected $input_type = null; |
| 31 |
/** |
| 32 |
* Generated from protobuf field <code>optional string output_type = 3;</code> |
| 33 |
*/ |
| 34 |
protected $output_type = null; |
| 35 |
/** |
| 36 |
* Generated from protobuf field <code>optional .google.protobuf.MethodOptions options = 4;</code> |
| 37 |
*/ |
| 38 |
protected $options = null; |
| 39 |
/** |
| 40 |
* Identifies if client streams multiple client messages |
| 41 |
* |
| 42 |
* Generated from protobuf field <code>optional bool client_streaming = 5 [default = false];</code> |
| 43 |
*/ |
| 44 |
protected $client_streaming = null; |
| 45 |
/** |
| 46 |
* Identifies if server streams multiple server messages |
| 47 |
* |
| 48 |
* Generated from protobuf field <code>optional bool server_streaming = 6 [default = false];</code> |
| 49 |
*/ |
| 50 |
protected $server_streaming = null; |
| 51 |
|
| 52 |
/** |
| 53 |
* Constructor. |
| 54 |
* |
| 55 |
* @param array $data { |
| 56 |
* Optional. Data for populating the Message object. |
| 57 |
* |
| 58 |
* @type string $name |
| 59 |
* @type string $input_type |
| 60 |
* Input and output type names. These are resolved in the same way as |
| 61 |
* FieldDescriptorProto.type_name, but must refer to a message type. |
| 62 |
* @type string $output_type |
| 63 |
* @type \Google\Protobuf\Internal\MethodOptions $options |
| 64 |
* @type bool $client_streaming |
| 65 |
* Identifies if client streams multiple client messages |
| 66 |
* @type bool $server_streaming |
| 67 |
* Identifies if server streams multiple server messages |
| 68 |
* } |
| 69 |
*/ |
| 70 |
public function __construct($data = NULL) { |
| 71 |
\GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 72 |
parent::__construct($data); |
| 73 |
} |
| 74 |
|
| 75 |
/** |
| 76 |
* Generated from protobuf field <code>optional string name = 1;</code> |
| 77 |
* @return string |
| 78 |
*/ |
| 79 |
public function getName() |
| 80 |
{ |
| 81 |
return isset($this->name) ? $this->name : ''; |
| 82 |
} |
| 83 |
|
| 84 |
public function hasName() |
| 85 |
{ |
| 86 |
return isset($this->name); |
| 87 |
} |
| 88 |
|
| 89 |
public function clearName() |
| 90 |
{ |
| 91 |
unset($this->name); |
| 92 |
} |
| 93 |
|
| 94 |
/** |
| 95 |
* Generated from protobuf field <code>optional string name = 1;</code> |
| 96 |
* @param string $var |
| 97 |
* @return $this |
| 98 |
*/ |
| 99 |
public function setName($var) |
| 100 |
{ |
| 101 |
GPBUtil::checkString($var, True); |
| 102 |
$this->name = $var; |
| 103 |
|
| 104 |
return $this; |
| 105 |
} |
| 106 |
|
| 107 |
/** |
| 108 |
* Input and output type names. These are resolved in the same way as |
| 109 |
* FieldDescriptorProto.type_name, but must refer to a message type. |
| 110 |
* |
| 111 |
* Generated from protobuf field <code>optional string input_type = 2;</code> |
| 112 |
* @return string |
| 113 |
*/ |
| 114 |
public function getInputType() |
| 115 |
{ |
| 116 |
return isset($this->input_type) ? $this->input_type : ''; |
| 117 |
} |
| 118 |
|
| 119 |
public function hasInputType() |
| 120 |
{ |
| 121 |
return isset($this->input_type); |
| 122 |
} |
| 123 |
|
| 124 |
public function clearInputType() |
| 125 |
{ |
| 126 |
unset($this->input_type); |
| 127 |
} |
| 128 |
|
| 129 |
/** |
| 130 |
* Input and output type names. These are resolved in the same way as |
| 131 |
* FieldDescriptorProto.type_name, but must refer to a message type. |
| 132 |
* |
| 133 |
* Generated from protobuf field <code>optional string input_type = 2;</code> |
| 134 |
* @param string $var |
| 135 |
* @return $this |
| 136 |
*/ |
| 137 |
public function setInputType($var) |
| 138 |
{ |
| 139 |
GPBUtil::checkString($var, True); |
| 140 |
$this->input_type = $var; |
| 141 |
|
| 142 |
return $this; |
| 143 |
} |
| 144 |
|
| 145 |
/** |
| 146 |
* Generated from protobuf field <code>optional string output_type = 3;</code> |
| 147 |
* @return string |
| 148 |
*/ |
| 149 |
public function getOutputType() |
| 150 |
{ |
| 151 |
return isset($this->output_type) ? $this->output_type : ''; |
| 152 |
} |
| 153 |
|
| 154 |
public function hasOutputType() |
| 155 |
{ |
| 156 |
return isset($this->output_type); |
| 157 |
} |
| 158 |
|
| 159 |
public function clearOutputType() |
| 160 |
{ |
| 161 |
unset($this->output_type); |
| 162 |
} |
| 163 |
|
| 164 |
/** |
| 165 |
* Generated from protobuf field <code>optional string output_type = 3;</code> |
| 166 |
* @param string $var |
| 167 |
* @return $this |
| 168 |
*/ |
| 169 |
public function setOutputType($var) |
| 170 |
{ |
| 171 |
GPBUtil::checkString($var, True); |
| 172 |
$this->output_type = $var; |
| 173 |
|
| 174 |
return $this; |
| 175 |
} |
| 176 |
|
| 177 |
/** |
| 178 |
* Generated from protobuf field <code>optional .google.protobuf.MethodOptions options = 4;</code> |
| 179 |
* @return \Google\Protobuf\Internal\MethodOptions|null |
| 180 |
*/ |
| 181 |
public function getOptions() |
| 182 |
{ |
| 183 |
return $this->options; |
| 184 |
} |
| 185 |
|
| 186 |
public function hasOptions() |
| 187 |
{ |
| 188 |
return isset($this->options); |
| 189 |
} |
| 190 |
|
| 191 |
public function clearOptions() |
| 192 |
{ |
| 193 |
unset($this->options); |
| 194 |
} |
| 195 |
|
| 196 |
/** |
| 197 |
* Generated from protobuf field <code>optional .google.protobuf.MethodOptions options = 4;</code> |
| 198 |
* @param \Google\Protobuf\Internal\MethodOptions $var |
| 199 |
* @return $this |
| 200 |
*/ |
| 201 |
public function setOptions($var) |
| 202 |
{ |
| 203 |
GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MethodOptions::class); |
| 204 |
$this->options = $var; |
| 205 |
|
| 206 |
return $this; |
| 207 |
} |
| 208 |
|
| 209 |
/** |
| 210 |
* Identifies if client streams multiple client messages |
| 211 |
* |
| 212 |
* Generated from protobuf field <code>optional bool client_streaming = 5 [default = false];</code> |
| 213 |
* @return bool |
| 214 |
*/ |
| 215 |
public function getClientStreaming() |
| 216 |
{ |
| 217 |
return isset($this->client_streaming) ? $this->client_streaming : false; |
| 218 |
} |
| 219 |
|
| 220 |
public function hasClientStreaming() |
| 221 |
{ |
| 222 |
return isset($this->client_streaming); |
| 223 |
} |
| 224 |
|
| 225 |
public function clearClientStreaming() |
| 226 |
{ |
| 227 |
unset($this->client_streaming); |
| 228 |
} |
| 229 |
|
| 230 |
/** |
| 231 |
* Identifies if client streams multiple client messages |
| 232 |
* |
| 233 |
* Generated from protobuf field <code>optional bool client_streaming = 5 [default = false];</code> |
| 234 |
* @param bool $var |
| 235 |
* @return $this |
| 236 |
*/ |
| 237 |
public function setClientStreaming($var) |
| 238 |
{ |
| 239 |
GPBUtil::checkBool($var); |
| 240 |
$this->client_streaming = $var; |
| 241 |
|
| 242 |
return $this; |
| 243 |
} |
| 244 |
|
| 245 |
/** |
| 246 |
* Identifies if server streams multiple server messages |
| 247 |
* |
| 248 |
* Generated from protobuf field <code>optional bool server_streaming = 6 [default = false];</code> |
| 249 |
* @return bool |
| 250 |
*/ |
| 251 |
public function getServerStreaming() |
| 252 |
{ |
| 253 |
return isset($this->server_streaming) ? $this->server_streaming : false; |
| 254 |
} |
| 255 |
|
| 256 |
public function hasServerStreaming() |
| 257 |
{ |
| 258 |
return isset($this->server_streaming); |
| 259 |
} |
| 260 |
|
| 261 |
public function clearServerStreaming() |
| 262 |
{ |
| 263 |
unset($this->server_streaming); |
| 264 |
} |
| 265 |
|
| 266 |
/** |
| 267 |
* Identifies if server streams multiple server messages |
| 268 |
* |
| 269 |
* Generated from protobuf field <code>optional bool server_streaming = 6 [default = false];</code> |
| 270 |
* @param bool $var |
| 271 |
* @return $this |
| 272 |
*/ |
| 273 |
public function setServerStreaming($var) |
| 274 |
{ |
| 275 |
GPBUtil::checkBool($var); |
| 276 |
$this->server_streaming = $var; |
| 277 |
|
| 278 |
return $this; |
| 279 |
} |
| 280 |
|
| 281 |
} |
| 282 |
|