avm99963 | 99bb77c | 2020-01-27 03:15:08 +0100 | [diff] [blame^] | 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 complete .proto file. |
| 15 | * |
| 16 | * Generated from protobuf message <code>google.protobuf.FileDescriptorProto</code> |
| 17 | */ |
| 18 | class FileDescriptorProto extends \Google\Protobuf\Internal\Message |
| 19 | { |
| 20 | /** |
| 21 | * file name, relative to root of source tree |
| 22 | * |
| 23 | * Generated from protobuf field <code>optional string name = 1;</code> |
| 24 | */ |
| 25 | protected $name = ''; |
| 26 | private $has_name = false; |
| 27 | /** |
| 28 | * e.g. "foo", "foo.bar", etc. |
| 29 | * |
| 30 | * Generated from protobuf field <code>optional string package = 2;</code> |
| 31 | */ |
| 32 | protected $package = ''; |
| 33 | private $has_package = false; |
| 34 | /** |
| 35 | * Names of files imported by this file. |
| 36 | * |
| 37 | * Generated from protobuf field <code>repeated string dependency = 3;</code> |
| 38 | */ |
| 39 | private $dependency; |
| 40 | private $has_dependency = false; |
| 41 | /** |
| 42 | * Indexes of the public imported files in the dependency list above. |
| 43 | * |
| 44 | * Generated from protobuf field <code>repeated int32 public_dependency = 10;</code> |
| 45 | */ |
| 46 | private $public_dependency; |
| 47 | private $has_public_dependency = false; |
| 48 | /** |
| 49 | * Indexes of the weak imported files in the dependency list. |
| 50 | * For Google-internal migration only. Do not use. |
| 51 | * |
| 52 | * Generated from protobuf field <code>repeated int32 weak_dependency = 11;</code> |
| 53 | */ |
| 54 | private $weak_dependency; |
| 55 | private $has_weak_dependency = false; |
| 56 | /** |
| 57 | * All top-level definitions in this file. |
| 58 | * |
| 59 | * Generated from protobuf field <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> |
| 60 | */ |
| 61 | private $message_type; |
| 62 | private $has_message_type = false; |
| 63 | /** |
| 64 | * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> |
| 65 | */ |
| 66 | private $enum_type; |
| 67 | private $has_enum_type = false; |
| 68 | /** |
| 69 | * Generated from protobuf field <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> |
| 70 | */ |
| 71 | private $service; |
| 72 | private $has_service = false; |
| 73 | /** |
| 74 | * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> |
| 75 | */ |
| 76 | private $extension; |
| 77 | private $has_extension = false; |
| 78 | /** |
| 79 | * Generated from protobuf field <code>optional .google.protobuf.FileOptions options = 8;</code> |
| 80 | */ |
| 81 | protected $options = null; |
| 82 | private $has_options = false; |
| 83 | /** |
| 84 | * This field contains optional information about the original source code. |
| 85 | * You may safely remove this entire field without harming runtime |
| 86 | * functionality of the descriptors -- the information is needed only by |
| 87 | * development tools. |
| 88 | * |
| 89 | * Generated from protobuf field <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> |
| 90 | */ |
| 91 | protected $source_code_info = null; |
| 92 | private $has_source_code_info = false; |
| 93 | /** |
| 94 | * The syntax of the proto file. |
| 95 | * The supported values are "proto2" and "proto3". |
| 96 | * |
| 97 | * Generated from protobuf field <code>optional string syntax = 12;</code> |
| 98 | */ |
| 99 | protected $syntax = ''; |
| 100 | private $has_syntax = false; |
| 101 | |
| 102 | /** |
| 103 | * Constructor. |
| 104 | * |
| 105 | * @param array $data { |
| 106 | * Optional. Data for populating the Message object. |
| 107 | * |
| 108 | * @type string $name |
| 109 | * file name, relative to root of source tree |
| 110 | * @type string $package |
| 111 | * e.g. "foo", "foo.bar", etc. |
| 112 | * @type string[]|\Google\Protobuf\Internal\RepeatedField $dependency |
| 113 | * Names of files imported by this file. |
| 114 | * @type int[]|\Google\Protobuf\Internal\RepeatedField $public_dependency |
| 115 | * Indexes of the public imported files in the dependency list above. |
| 116 | * @type int[]|\Google\Protobuf\Internal\RepeatedField $weak_dependency |
| 117 | * Indexes of the weak imported files in the dependency list. |
| 118 | * For Google-internal migration only. Do not use. |
| 119 | * @type \Google\Protobuf\Internal\DescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $message_type |
| 120 | * All top-level definitions in this file. |
| 121 | * @type \Google\Protobuf\Internal\EnumDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $enum_type |
| 122 | * @type \Google\Protobuf\Internal\ServiceDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $service |
| 123 | * @type \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $extension |
| 124 | * @type \Google\Protobuf\Internal\FileOptions $options |
| 125 | * @type \Google\Protobuf\Internal\SourceCodeInfo $source_code_info |
| 126 | * This field contains optional information about the original source code. |
| 127 | * You may safely remove this entire field without harming runtime |
| 128 | * functionality of the descriptors -- the information is needed only by |
| 129 | * development tools. |
| 130 | * @type string $syntax |
| 131 | * The syntax of the proto file. |
| 132 | * The supported values are "proto2" and "proto3". |
| 133 | * } |
| 134 | */ |
| 135 | public function __construct($data = NULL) { |
| 136 | \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 137 | parent::__construct($data); |
| 138 | } |
| 139 | |
| 140 | /** |
| 141 | * file name, relative to root of source tree |
| 142 | * |
| 143 | * Generated from protobuf field <code>optional string name = 1;</code> |
| 144 | * @return string |
| 145 | */ |
| 146 | public function getName() |
| 147 | { |
| 148 | return $this->name; |
| 149 | } |
| 150 | |
| 151 | /** |
| 152 | * file name, relative to root of source tree |
| 153 | * |
| 154 | * Generated from protobuf field <code>optional string name = 1;</code> |
| 155 | * @param string $var |
| 156 | * @return $this |
| 157 | */ |
| 158 | public function setName($var) |
| 159 | { |
| 160 | GPBUtil::checkString($var, True); |
| 161 | $this->name = $var; |
| 162 | $this->has_name = true; |
| 163 | |
| 164 | return $this; |
| 165 | } |
| 166 | |
| 167 | public function hasName() |
| 168 | { |
| 169 | return $this->has_name; |
| 170 | } |
| 171 | |
| 172 | /** |
| 173 | * e.g. "foo", "foo.bar", etc. |
| 174 | * |
| 175 | * Generated from protobuf field <code>optional string package = 2;</code> |
| 176 | * @return string |
| 177 | */ |
| 178 | public function getPackage() |
| 179 | { |
| 180 | return $this->package; |
| 181 | } |
| 182 | |
| 183 | /** |
| 184 | * e.g. "foo", "foo.bar", etc. |
| 185 | * |
| 186 | * Generated from protobuf field <code>optional string package = 2;</code> |
| 187 | * @param string $var |
| 188 | * @return $this |
| 189 | */ |
| 190 | public function setPackage($var) |
| 191 | { |
| 192 | GPBUtil::checkString($var, True); |
| 193 | $this->package = $var; |
| 194 | $this->has_package = true; |
| 195 | |
| 196 | return $this; |
| 197 | } |
| 198 | |
| 199 | public function hasPackage() |
| 200 | { |
| 201 | return $this->has_package; |
| 202 | } |
| 203 | |
| 204 | /** |
| 205 | * Names of files imported by this file. |
| 206 | * |
| 207 | * Generated from protobuf field <code>repeated string dependency = 3;</code> |
| 208 | * @return \Google\Protobuf\Internal\RepeatedField |
| 209 | */ |
| 210 | public function getDependency() |
| 211 | { |
| 212 | return $this->dependency; |
| 213 | } |
| 214 | |
| 215 | /** |
| 216 | * Names of files imported by this file. |
| 217 | * |
| 218 | * Generated from protobuf field <code>repeated string dependency = 3;</code> |
| 219 | * @param string[]|\Google\Protobuf\Internal\RepeatedField $var |
| 220 | * @return $this |
| 221 | */ |
| 222 | public function setDependency($var) |
| 223 | { |
| 224 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STRING); |
| 225 | $this->dependency = $arr; |
| 226 | $this->has_dependency = true; |
| 227 | |
| 228 | return $this; |
| 229 | } |
| 230 | |
| 231 | public function hasDependency() |
| 232 | { |
| 233 | return $this->has_dependency; |
| 234 | } |
| 235 | |
| 236 | /** |
| 237 | * Indexes of the public imported files in the dependency list above. |
| 238 | * |
| 239 | * Generated from protobuf field <code>repeated int32 public_dependency = 10;</code> |
| 240 | * @return \Google\Protobuf\Internal\RepeatedField |
| 241 | */ |
| 242 | public function getPublicDependency() |
| 243 | { |
| 244 | return $this->public_dependency; |
| 245 | } |
| 246 | |
| 247 | /** |
| 248 | * Indexes of the public imported files in the dependency list above. |
| 249 | * |
| 250 | * Generated from protobuf field <code>repeated int32 public_dependency = 10;</code> |
| 251 | * @param int[]|\Google\Protobuf\Internal\RepeatedField $var |
| 252 | * @return $this |
| 253 | */ |
| 254 | public function setPublicDependency($var) |
| 255 | { |
| 256 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); |
| 257 | $this->public_dependency = $arr; |
| 258 | $this->has_public_dependency = true; |
| 259 | |
| 260 | return $this; |
| 261 | } |
| 262 | |
| 263 | public function hasPublicDependency() |
| 264 | { |
| 265 | return $this->has_public_dependency; |
| 266 | } |
| 267 | |
| 268 | /** |
| 269 | * Indexes of the weak imported files in the dependency list. |
| 270 | * For Google-internal migration only. Do not use. |
| 271 | * |
| 272 | * Generated from protobuf field <code>repeated int32 weak_dependency = 11;</code> |
| 273 | * @return \Google\Protobuf\Internal\RepeatedField |
| 274 | */ |
| 275 | public function getWeakDependency() |
| 276 | { |
| 277 | return $this->weak_dependency; |
| 278 | } |
| 279 | |
| 280 | /** |
| 281 | * Indexes of the weak imported files in the dependency list. |
| 282 | * For Google-internal migration only. Do not use. |
| 283 | * |
| 284 | * Generated from protobuf field <code>repeated int32 weak_dependency = 11;</code> |
| 285 | * @param int[]|\Google\Protobuf\Internal\RepeatedField $var |
| 286 | * @return $this |
| 287 | */ |
| 288 | public function setWeakDependency($var) |
| 289 | { |
| 290 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::INT32); |
| 291 | $this->weak_dependency = $arr; |
| 292 | $this->has_weak_dependency = true; |
| 293 | |
| 294 | return $this; |
| 295 | } |
| 296 | |
| 297 | public function hasWeakDependency() |
| 298 | { |
| 299 | return $this->has_weak_dependency; |
| 300 | } |
| 301 | |
| 302 | /** |
| 303 | * All top-level definitions in this file. |
| 304 | * |
| 305 | * Generated from protobuf field <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> |
| 306 | * @return \Google\Protobuf\Internal\RepeatedField |
| 307 | */ |
| 308 | public function getMessageType() |
| 309 | { |
| 310 | return $this->message_type; |
| 311 | } |
| 312 | |
| 313 | /** |
| 314 | * All top-level definitions in this file. |
| 315 | * |
| 316 | * Generated from protobuf field <code>repeated .google.protobuf.DescriptorProto message_type = 4;</code> |
| 317 | * @param \Google\Protobuf\Internal\DescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var |
| 318 | * @return $this |
| 319 | */ |
| 320 | public function setMessageType($var) |
| 321 | { |
| 322 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\DescriptorProto::class); |
| 323 | $this->message_type = $arr; |
| 324 | $this->has_message_type = true; |
| 325 | |
| 326 | return $this; |
| 327 | } |
| 328 | |
| 329 | public function hasMessageType() |
| 330 | { |
| 331 | return $this->has_message_type; |
| 332 | } |
| 333 | |
| 334 | /** |
| 335 | * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> |
| 336 | * @return \Google\Protobuf\Internal\RepeatedField |
| 337 | */ |
| 338 | public function getEnumType() |
| 339 | { |
| 340 | return $this->enum_type; |
| 341 | } |
| 342 | |
| 343 | /** |
| 344 | * Generated from protobuf field <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 5;</code> |
| 345 | * @param \Google\Protobuf\Internal\EnumDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var |
| 346 | * @return $this |
| 347 | */ |
| 348 | public function setEnumType($var) |
| 349 | { |
| 350 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\EnumDescriptorProto::class); |
| 351 | $this->enum_type = $arr; |
| 352 | $this->has_enum_type = true; |
| 353 | |
| 354 | return $this; |
| 355 | } |
| 356 | |
| 357 | public function hasEnumType() |
| 358 | { |
| 359 | return $this->has_enum_type; |
| 360 | } |
| 361 | |
| 362 | /** |
| 363 | * Generated from protobuf field <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> |
| 364 | * @return \Google\Protobuf\Internal\RepeatedField |
| 365 | */ |
| 366 | public function getService() |
| 367 | { |
| 368 | return $this->service; |
| 369 | } |
| 370 | |
| 371 | /** |
| 372 | * Generated from protobuf field <code>repeated .google.protobuf.ServiceDescriptorProto service = 6;</code> |
| 373 | * @param \Google\Protobuf\Internal\ServiceDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var |
| 374 | * @return $this |
| 375 | */ |
| 376 | public function setService($var) |
| 377 | { |
| 378 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\ServiceDescriptorProto::class); |
| 379 | $this->service = $arr; |
| 380 | $this->has_service = true; |
| 381 | |
| 382 | return $this; |
| 383 | } |
| 384 | |
| 385 | public function hasService() |
| 386 | { |
| 387 | return $this->has_service; |
| 388 | } |
| 389 | |
| 390 | /** |
| 391 | * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> |
| 392 | * @return \Google\Protobuf\Internal\RepeatedField |
| 393 | */ |
| 394 | public function getExtension() |
| 395 | { |
| 396 | return $this->extension; |
| 397 | } |
| 398 | |
| 399 | /** |
| 400 | * Generated from protobuf field <code>repeated .google.protobuf.FieldDescriptorProto extension = 7;</code> |
| 401 | * @param \Google\Protobuf\Internal\FieldDescriptorProto[]|\Google\Protobuf\Internal\RepeatedField $var |
| 402 | * @return $this |
| 403 | */ |
| 404 | public function setExtension($var) |
| 405 | { |
| 406 | $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class); |
| 407 | $this->extension = $arr; |
| 408 | $this->has_extension = true; |
| 409 | |
| 410 | return $this; |
| 411 | } |
| 412 | |
| 413 | public function hasExtension() |
| 414 | { |
| 415 | return $this->has_extension; |
| 416 | } |
| 417 | |
| 418 | /** |
| 419 | * Generated from protobuf field <code>optional .google.protobuf.FileOptions options = 8;</code> |
| 420 | * @return \Google\Protobuf\Internal\FileOptions |
| 421 | */ |
| 422 | public function getOptions() |
| 423 | { |
| 424 | return $this->options; |
| 425 | } |
| 426 | |
| 427 | /** |
| 428 | * Generated from protobuf field <code>optional .google.protobuf.FileOptions options = 8;</code> |
| 429 | * @param \Google\Protobuf\Internal\FileOptions $var |
| 430 | * @return $this |
| 431 | */ |
| 432 | public function setOptions($var) |
| 433 | { |
| 434 | GPBUtil::checkMessage($var, \Google\Protobuf\Internal\FileOptions::class); |
| 435 | $this->options = $var; |
| 436 | $this->has_options = true; |
| 437 | |
| 438 | return $this; |
| 439 | } |
| 440 | |
| 441 | public function hasOptions() |
| 442 | { |
| 443 | return $this->has_options; |
| 444 | } |
| 445 | |
| 446 | /** |
| 447 | * This field contains optional information about the original source code. |
| 448 | * You may safely remove this entire field without harming runtime |
| 449 | * functionality of the descriptors -- the information is needed only by |
| 450 | * development tools. |
| 451 | * |
| 452 | * Generated from protobuf field <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> |
| 453 | * @return \Google\Protobuf\Internal\SourceCodeInfo |
| 454 | */ |
| 455 | public function getSourceCodeInfo() |
| 456 | { |
| 457 | return $this->source_code_info; |
| 458 | } |
| 459 | |
| 460 | /** |
| 461 | * This field contains optional information about the original source code. |
| 462 | * You may safely remove this entire field without harming runtime |
| 463 | * functionality of the descriptors -- the information is needed only by |
| 464 | * development tools. |
| 465 | * |
| 466 | * Generated from protobuf field <code>optional .google.protobuf.SourceCodeInfo source_code_info = 9;</code> |
| 467 | * @param \Google\Protobuf\Internal\SourceCodeInfo $var |
| 468 | * @return $this |
| 469 | */ |
| 470 | public function setSourceCodeInfo($var) |
| 471 | { |
| 472 | GPBUtil::checkMessage($var, \Google\Protobuf\Internal\SourceCodeInfo::class); |
| 473 | $this->source_code_info = $var; |
| 474 | $this->has_source_code_info = true; |
| 475 | |
| 476 | return $this; |
| 477 | } |
| 478 | |
| 479 | public function hasSourceCodeInfo() |
| 480 | { |
| 481 | return $this->has_source_code_info; |
| 482 | } |
| 483 | |
| 484 | /** |
| 485 | * The syntax of the proto file. |
| 486 | * The supported values are "proto2" and "proto3". |
| 487 | * |
| 488 | * Generated from protobuf field <code>optional string syntax = 12;</code> |
| 489 | * @return string |
| 490 | */ |
| 491 | public function getSyntax() |
| 492 | { |
| 493 | return $this->syntax; |
| 494 | } |
| 495 | |
| 496 | /** |
| 497 | * The syntax of the proto file. |
| 498 | * The supported values are "proto2" and "proto3". |
| 499 | * |
| 500 | * Generated from protobuf field <code>optional string syntax = 12;</code> |
| 501 | * @param string $var |
| 502 | * @return $this |
| 503 | */ |
| 504 | public function setSyntax($var) |
| 505 | { |
| 506 | GPBUtil::checkString($var, True); |
| 507 | $this->syntax = $var; |
| 508 | $this->has_syntax = true; |
| 509 | |
| 510 | return $this; |
| 511 | } |
| 512 | |
| 513 | public function hasSyntax() |
| 514 | { |
| 515 | return $this->has_syntax; |
| 516 | } |
| 517 | |
| 518 | } |
| 519 | |