media-cloud-sync
/
includes
/
sdk
/
google
/
google
/
protobuf
/
src
/
Google
/
Protobuf
/
Method.php
Method.php in Media Cloud Sync 1.4.2, at includes/sdk/google/google/protobuf/src/Google/Protobuf/Method.php
| 1 | <?php |
| 2 | |
| 3 | # Generated by the protocol buffer compiler. DO NOT EDIT! |
| 4 | # NO CHECKED-IN PROTOBUF GENCODE |
| 5 | # source: google/protobuf/api.proto |
| 6 | namespace Dudlewebs\WPMCS\GCP\Google\Protobuf; |
| 7 | |
| 8 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType; |
| 9 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBUtil; |
| 10 | use Dudlewebs\WPMCS\GCP\Google\Protobuf\RepeatedField; |
| 11 | /** |
| 12 | * Method represents a method of an API interface. |
| 13 | * New usages of this message as an alternative to MethodDescriptorProto are |
| 14 | * strongly discouraged. This message does not reliability preserve all |
| 15 | * information necessary to model the schema and preserve semantics. Instead |
| 16 | * make use of FileDescriptorSet which preserves the necessary information. |
| 17 | * |
| 18 | * Generated from protobuf message <code>google.protobuf.Method</code> |
| 19 | */ |
| 20 | class Method extends \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\Message |
| 21 | { |
| 22 | /** |
| 23 | * The simple name of this method. |
| 24 | * |
| 25 | * Generated from protobuf field <code>string name = 1;</code> |
| 26 | */ |
| 27 | protected $name = ''; |
| 28 | /** |
| 29 | * A URL of the input message type. |
| 30 | * |
| 31 | * Generated from protobuf field <code>string request_type_url = 2;</code> |
| 32 | */ |
| 33 | protected $request_type_url = ''; |
| 34 | /** |
| 35 | * If true, the request is streamed. |
| 36 | * |
| 37 | * Generated from protobuf field <code>bool request_streaming = 3;</code> |
| 38 | */ |
| 39 | protected $request_streaming = \false; |
| 40 | /** |
| 41 | * The URL of the output message type. |
| 42 | * |
| 43 | * Generated from protobuf field <code>string response_type_url = 4;</code> |
| 44 | */ |
| 45 | protected $response_type_url = ''; |
| 46 | /** |
| 47 | * If true, the response is streamed. |
| 48 | * |
| 49 | * Generated from protobuf field <code>bool response_streaming = 5;</code> |
| 50 | */ |
| 51 | protected $response_streaming = \false; |
| 52 | /** |
| 53 | * Any metadata attached to the method. |
| 54 | * |
| 55 | * Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code> |
| 56 | */ |
| 57 | private $options; |
| 58 | /** |
| 59 | * The source syntax of this method. |
| 60 | * This field should be ignored, instead the syntax should be inherited from |
| 61 | * Api. This is similar to Field and EnumValue. |
| 62 | * |
| 63 | * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7 [deprecated = true];</code> |
| 64 | * @deprecated |
| 65 | */ |
| 66 | protected $syntax = 0; |
| 67 | /** |
| 68 | * The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
| 69 | * This field should be ignored, instead the edition should be inherited from |
| 70 | * Api. This is similar to Field and EnumValue. |
| 71 | * |
| 72 | * Generated from protobuf field <code>string edition = 8 [deprecated = true];</code> |
| 73 | * @deprecated |
| 74 | */ |
| 75 | protected $edition = ''; |
| 76 | /** |
| 77 | * Constructor. |
| 78 | * |
| 79 | * @param array $data { |
| 80 | * Optional. Data for populating the Message object. |
| 81 | * |
| 82 | * @type string $name |
| 83 | * The simple name of this method. |
| 84 | * @type string $request_type_url |
| 85 | * A URL of the input message type. |
| 86 | * @type bool $request_streaming |
| 87 | * If true, the request is streamed. |
| 88 | * @type string $response_type_url |
| 89 | * The URL of the output message type. |
| 90 | * @type bool $response_streaming |
| 91 | * If true, the response is streamed. |
| 92 | * @type \Google\Protobuf\Option[] $options |
| 93 | * Any metadata attached to the method. |
| 94 | * @type int $syntax |
| 95 | * The source syntax of this method. |
| 96 | * This field should be ignored, instead the syntax should be inherited from |
| 97 | * Api. This is similar to Field and EnumValue. |
| 98 | * @type string $edition |
| 99 | * The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
| 100 | * This field should be ignored, instead the edition should be inherited from |
| 101 | * Api. This is similar to Field and EnumValue. |
| 102 | * } |
| 103 | */ |
| 104 | public function __construct($data = NULL) |
| 105 | { |
| 106 | \Dudlewebs\WPMCS\GCP\GPBMetadata\Google\Protobuf\Api::initOnce(); |
| 107 | parent::__construct($data); |
| 108 | } |
| 109 | /** |
| 110 | * The simple name of this method. |
| 111 | * |
| 112 | * Generated from protobuf field <code>string name = 1;</code> |
| 113 | * @return string |
| 114 | */ |
| 115 | public function getName() |
| 116 | { |
| 117 | return $this->name; |
| 118 | } |
| 119 | /** |
| 120 | * The simple name of this method. |
| 121 | * |
| 122 | * Generated from protobuf field <code>string name = 1;</code> |
| 123 | * @param string $var |
| 124 | * @return $this |
| 125 | */ |
| 126 | public function setName($var) |
| 127 | { |
| 128 | GPBUtil::checkString($var, True); |
| 129 | $this->name = $var; |
| 130 | return $this; |
| 131 | } |
| 132 | /** |
| 133 | * A URL of the input message type. |
| 134 | * |
| 135 | * Generated from protobuf field <code>string request_type_url = 2;</code> |
| 136 | * @return string |
| 137 | */ |
| 138 | public function getRequestTypeUrl() |
| 139 | { |
| 140 | return $this->request_type_url; |
| 141 | } |
| 142 | /** |
| 143 | * A URL of the input message type. |
| 144 | * |
| 145 | * Generated from protobuf field <code>string request_type_url = 2;</code> |
| 146 | * @param string $var |
| 147 | * @return $this |
| 148 | */ |
| 149 | public function setRequestTypeUrl($var) |
| 150 | { |
| 151 | GPBUtil::checkString($var, True); |
| 152 | $this->request_type_url = $var; |
| 153 | return $this; |
| 154 | } |
| 155 | /** |
| 156 | * If true, the request is streamed. |
| 157 | * |
| 158 | * Generated from protobuf field <code>bool request_streaming = 3;</code> |
| 159 | * @return bool |
| 160 | */ |
| 161 | public function getRequestStreaming() |
| 162 | { |
| 163 | return $this->request_streaming; |
| 164 | } |
| 165 | /** |
| 166 | * If true, the request is streamed. |
| 167 | * |
| 168 | * Generated from protobuf field <code>bool request_streaming = 3;</code> |
| 169 | * @param bool $var |
| 170 | * @return $this |
| 171 | */ |
| 172 | public function setRequestStreaming($var) |
| 173 | { |
| 174 | GPBUtil::checkBool($var); |
| 175 | $this->request_streaming = $var; |
| 176 | return $this; |
| 177 | } |
| 178 | /** |
| 179 | * The URL of the output message type. |
| 180 | * |
| 181 | * Generated from protobuf field <code>string response_type_url = 4;</code> |
| 182 | * @return string |
| 183 | */ |
| 184 | public function getResponseTypeUrl() |
| 185 | { |
| 186 | return $this->response_type_url; |
| 187 | } |
| 188 | /** |
| 189 | * The URL of the output message type. |
| 190 | * |
| 191 | * Generated from protobuf field <code>string response_type_url = 4;</code> |
| 192 | * @param string $var |
| 193 | * @return $this |
| 194 | */ |
| 195 | public function setResponseTypeUrl($var) |
| 196 | { |
| 197 | GPBUtil::checkString($var, True); |
| 198 | $this->response_type_url = $var; |
| 199 | return $this; |
| 200 | } |
| 201 | /** |
| 202 | * If true, the response is streamed. |
| 203 | * |
| 204 | * Generated from protobuf field <code>bool response_streaming = 5;</code> |
| 205 | * @return bool |
| 206 | */ |
| 207 | public function getResponseStreaming() |
| 208 | { |
| 209 | return $this->response_streaming; |
| 210 | } |
| 211 | /** |
| 212 | * If true, the response is streamed. |
| 213 | * |
| 214 | * Generated from protobuf field <code>bool response_streaming = 5;</code> |
| 215 | * @param bool $var |
| 216 | * @return $this |
| 217 | */ |
| 218 | public function setResponseStreaming($var) |
| 219 | { |
| 220 | GPBUtil::checkBool($var); |
| 221 | $this->response_streaming = $var; |
| 222 | return $this; |
| 223 | } |
| 224 | /** |
| 225 | * Any metadata attached to the method. |
| 226 | * |
| 227 | * Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code> |
| 228 | * @return RepeatedField<\Google\Protobuf\Option> |
| 229 | */ |
| 230 | public function getOptions() |
| 231 | { |
| 232 | return $this->options; |
| 233 | } |
| 234 | /** |
| 235 | * Any metadata attached to the method. |
| 236 | * |
| 237 | * Generated from protobuf field <code>repeated .google.protobuf.Option options = 6;</code> |
| 238 | * @param \Google\Protobuf\Option[] $var |
| 239 | * @return $this |
| 240 | */ |
| 241 | public function setOptions($var) |
| 242 | { |
| 243 | $arr = GPBUtil::checkRepeatedField($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Internal\GPBType::MESSAGE, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Option::class); |
| 244 | $this->options = $arr; |
| 245 | return $this; |
| 246 | } |
| 247 | /** |
| 248 | * The source syntax of this method. |
| 249 | * This field should be ignored, instead the syntax should be inherited from |
| 250 | * Api. This is similar to Field and EnumValue. |
| 251 | * |
| 252 | * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7 [deprecated = true];</code> |
| 253 | * @return int |
| 254 | * @deprecated |
| 255 | */ |
| 256 | public function getSyntax() |
| 257 | { |
| 258 | if ($this->syntax !== 0) { |
| 259 | @\trigger_error('syntax is deprecated.', \E_USER_DEPRECATED); |
| 260 | } |
| 261 | return $this->syntax; |
| 262 | } |
| 263 | /** |
| 264 | * The source syntax of this method. |
| 265 | * This field should be ignored, instead the syntax should be inherited from |
| 266 | * Api. This is similar to Field and EnumValue. |
| 267 | * |
| 268 | * Generated from protobuf field <code>.google.protobuf.Syntax syntax = 7 [deprecated = true];</code> |
| 269 | * @param int $var |
| 270 | * @return $this |
| 271 | * @deprecated |
| 272 | */ |
| 273 | public function setSyntax($var) |
| 274 | { |
| 275 | @\trigger_error('syntax is deprecated.', \E_USER_DEPRECATED); |
| 276 | GPBUtil::checkEnum($var, \Dudlewebs\WPMCS\GCP\Google\Protobuf\Syntax::class); |
| 277 | $this->syntax = $var; |
| 278 | return $this; |
| 279 | } |
| 280 | /** |
| 281 | * The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
| 282 | * This field should be ignored, instead the edition should be inherited from |
| 283 | * Api. This is similar to Field and EnumValue. |
| 284 | * |
| 285 | * Generated from protobuf field <code>string edition = 8 [deprecated = true];</code> |
| 286 | * @return string |
| 287 | * @deprecated |
| 288 | */ |
| 289 | public function getEdition() |
| 290 | { |
| 291 | if ($this->edition !== '') { |
| 292 | @\trigger_error('edition is deprecated.', \E_USER_DEPRECATED); |
| 293 | } |
| 294 | return $this->edition; |
| 295 | } |
| 296 | /** |
| 297 | * The source edition string, only valid when syntax is SYNTAX_EDITIONS. |
| 298 | * This field should be ignored, instead the edition should be inherited from |
| 299 | * Api. This is similar to Field and EnumValue. |
| 300 | * |
| 301 | * Generated from protobuf field <code>string edition = 8 [deprecated = true];</code> |
| 302 | * @param string $var |
| 303 | * @return $this |
| 304 | * @deprecated |
| 305 | */ |
| 306 | public function setEdition($var) |
| 307 | { |
| 308 | @\trigger_error('edition is deprecated.', \E_USER_DEPRECATED); |
| 309 | GPBUtil::checkString($var, True); |
| 310 | $this->edition = $var; |
| 311 | return $this; |
| 312 | } |
| 313 | } |
| 314 |