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