ServiceOptions.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/descriptor.proto
  4. namespace Google\Protobuf\Internal;
  5. use Google\Protobuf\Internal\GPBType;
  6. use Google\Protobuf\Internal\GPBWire;
  7. use Google\Protobuf\Internal\RepeatedField;
  8. use Google\Protobuf\Internal\InputStream;
  9. use Google\Protobuf\Internal\GPBUtil;
  10. /**
  11. * Generated from protobuf message <code>google.protobuf.ServiceOptions</code>
  12. */
  13. class ServiceOptions extends \Google\Protobuf\Internal\Message
  14. {
  15. /**
  16. * Is this service deprecated?
  17. * Depending on the target platform, this can emit Deprecated annotations
  18. * for the service, or it will be completely ignored; in the very least,
  19. * this is a formalization for deprecating services.
  20. *
  21. * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code>
  22. */
  23. private $deprecated = false;
  24. private $has_deprecated = false;
  25. /**
  26. * The parser stores options it doesn't recognize here. See above.
  27. *
  28. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  29. */
  30. private $uninterpreted_option;
  31. private $has_uninterpreted_option = false;
  32. /**
  33. * Constructor.
  34. *
  35. * @param array $data {
  36. * Optional. Data for populating the Message object.
  37. *
  38. * @type bool $deprecated
  39. * Is this service deprecated?
  40. * Depending on the target platform, this can emit Deprecated annotations
  41. * for the service, or it will be completely ignored; in the very least,
  42. * this is a formalization for deprecating services.
  43. * @type \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $uninterpreted_option
  44. * The parser stores options it doesn't recognize here. See above.
  45. * }
  46. */
  47. public function __construct($data = NULL) {
  48. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  49. parent::__construct($data);
  50. }
  51. /**
  52. * Is this service deprecated?
  53. * Depending on the target platform, this can emit Deprecated annotations
  54. * for the service, or it will be completely ignored; in the very least,
  55. * this is a formalization for deprecating services.
  56. *
  57. * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code>
  58. * @return bool
  59. */
  60. public function getDeprecated()
  61. {
  62. return $this->deprecated;
  63. }
  64. /**
  65. * Is this service deprecated?
  66. * Depending on the target platform, this can emit Deprecated annotations
  67. * for the service, or it will be completely ignored; in the very least,
  68. * this is a formalization for deprecating services.
  69. *
  70. * Generated from protobuf field <code>optional bool deprecated = 33 [default = false];</code>
  71. * @param bool $var
  72. * @return $this
  73. */
  74. public function setDeprecated($var)
  75. {
  76. GPBUtil::checkBool($var);
  77. $this->deprecated = $var;
  78. $this->has_deprecated = true;
  79. return $this;
  80. }
  81. public function hasDeprecated()
  82. {
  83. return $this->has_deprecated;
  84. }
  85. /**
  86. * The parser stores options it doesn't recognize here. See above.
  87. *
  88. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  89. * @return \Google\Protobuf\Internal\RepeatedField
  90. */
  91. public function getUninterpretedOption()
  92. {
  93. return $this->uninterpreted_option;
  94. }
  95. /**
  96. * The parser stores options it doesn't recognize here. See above.
  97. *
  98. * Generated from protobuf field <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option = 999;</code>
  99. * @param \Google\Protobuf\Internal\UninterpretedOption[]|\Google\Protobuf\Internal\RepeatedField $var
  100. * @return $this
  101. */
  102. public function setUninterpretedOption($var)
  103. {
  104. $arr = GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MESSAGE, \Google\Protobuf\Internal\UninterpretedOption::class);
  105. $this->uninterpreted_option = $arr;
  106. $this->has_uninterpreted_option = true;
  107. return $this;
  108. }
  109. public function hasUninterpretedOption()
  110. {
  111. return $this->has_uninterpreted_option;
  112. }
  113. }