ReservedRange.php 2.8 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122
  1. <?php
  2. # Generated by the protocol buffer compiler. DO NOT EDIT!
  3. # source: google/protobuf/descriptor.proto
  4. namespace Google\Protobuf\Internal\DescriptorProto;
  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. * Range of reserved tag numbers. Reserved tag numbers may not be used by
  12. * fields or extension ranges in the same message. Reserved ranges may
  13. * not overlap.
  14. *
  15. * Generated from protobuf message <code>google.protobuf.DescriptorProto.ReservedRange</code>
  16. */
  17. final class ReservedRange extends \Google\Protobuf\Internal\Message
  18. {
  19. /**
  20. * Inclusive.
  21. *
  22. * Generated from protobuf field <code>optional int32 start = 1;</code>
  23. */
  24. private $start = 0;
  25. private $has_start = false;
  26. /**
  27. * Exclusive.
  28. *
  29. * Generated from protobuf field <code>optional int32 end = 2;</code>
  30. */
  31. private $end = 0;
  32. private $has_end = false;
  33. /**
  34. * Constructor.
  35. *
  36. * @param array $data {
  37. * Optional. Data for populating the Message object.
  38. *
  39. * @type int $start
  40. * Inclusive.
  41. * @type int $end
  42. * Exclusive.
  43. * }
  44. */
  45. public function __construct($data = NULL) {
  46. \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce();
  47. parent::__construct($data);
  48. }
  49. /**
  50. * Inclusive.
  51. *
  52. * Generated from protobuf field <code>optional int32 start = 1;</code>
  53. * @return int
  54. */
  55. public function getStart()
  56. {
  57. return $this->start;
  58. }
  59. /**
  60. * Inclusive.
  61. *
  62. * Generated from protobuf field <code>optional int32 start = 1;</code>
  63. * @param int $var
  64. * @return $this
  65. */
  66. public function setStart($var)
  67. {
  68. GPBUtil::checkInt32($var);
  69. $this->start = $var;
  70. $this->has_start = true;
  71. return $this;
  72. }
  73. public function hasStart()
  74. {
  75. return $this->has_start;
  76. }
  77. /**
  78. * Exclusive.
  79. *
  80. * Generated from protobuf field <code>optional int32 end = 2;</code>
  81. * @return int
  82. */
  83. public function getEnd()
  84. {
  85. return $this->end;
  86. }
  87. /**
  88. * Exclusive.
  89. *
  90. * Generated from protobuf field <code>optional int32 end = 2;</code>
  91. * @param int $var
  92. * @return $this
  93. */
  94. public function setEnd($var)
  95. {
  96. GPBUtil::checkInt32($var);
  97. $this->end = $var;
  98. $this->has_end = true;
  99. return $this;
  100. }
  101. public function hasEnd()
  102. {
  103. return $this->has_end;
  104. }
  105. }
  106. // Adding a class alias for backwards compatibility with the previous class name.
  107. class_alias(ReservedRange::class, \Google\Protobuf\Internal\DescriptorProto_ReservedRange::class);