| OLD | NEW |
| (Empty) |
| 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 | |
| 12 use Google\Protobuf\Internal\GPBUtil; | |
| 13 | |
| 14 /** | |
| 15 * Protobuf type <code>google.protobuf.MethodOptions</code> | |
| 16 */ | |
| 17 class MethodOptions extends \Google\Protobuf\Internal\Message | |
| 18 { | |
| 19 /** | |
| 20 * <pre> | |
| 21 * Is this method deprecated? | |
| 22 * Depending on the target platform, this can emit Deprecated annotations | |
| 23 * for the method, or it will be completely ignored; in the very least, | |
| 24 * this is a formalization for deprecating methods. | |
| 25 * </pre> | |
| 26 * | |
| 27 * <code>optional bool deprecated = 33 [default = false];</code> | |
| 28 */ | |
| 29 private $deprecated = false; | |
| 30 private $has_deprecated = false; | |
| 31 /** | |
| 32 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotenc
y_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> | |
| 33 */ | |
| 34 private $idempotency_level = 0; | |
| 35 private $has_idempotency_level = false; | |
| 36 /** | |
| 37 * <pre> | |
| 38 * The parser stores options it doesn't recognize here. See above. | |
| 39 * </pre> | |
| 40 * | |
| 41 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option
= 999;</code> | |
| 42 */ | |
| 43 private $uninterpreted_option; | |
| 44 private $has_uninterpreted_option = false; | |
| 45 | |
| 46 public function __construct() { | |
| 47 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); | |
| 48 parent::__construct(); | |
| 49 } | |
| 50 | |
| 51 /** | |
| 52 * <pre> | |
| 53 * Is this method deprecated? | |
| 54 * Depending on the target platform, this can emit Deprecated annotations | |
| 55 * for the method, or it will be completely ignored; in the very least, | |
| 56 * this is a formalization for deprecating methods. | |
| 57 * </pre> | |
| 58 * | |
| 59 * <code>optional bool deprecated = 33 [default = false];</code> | |
| 60 */ | |
| 61 public function getDeprecated() | |
| 62 { | |
| 63 return $this->deprecated; | |
| 64 } | |
| 65 | |
| 66 /** | |
| 67 * <pre> | |
| 68 * Is this method deprecated? | |
| 69 * Depending on the target platform, this can emit Deprecated annotations | |
| 70 * for the method, or it will be completely ignored; in the very least, | |
| 71 * this is a formalization for deprecating methods. | |
| 72 * </pre> | |
| 73 * | |
| 74 * <code>optional bool deprecated = 33 [default = false];</code> | |
| 75 */ | |
| 76 public function setDeprecated($var) | |
| 77 { | |
| 78 GPBUtil::checkBool($var); | |
| 79 $this->deprecated = $var; | |
| 80 $this->has_deprecated = true; | |
| 81 } | |
| 82 | |
| 83 public function hasDeprecated() | |
| 84 { | |
| 85 return $this->has_deprecated; | |
| 86 } | |
| 87 | |
| 88 /** | |
| 89 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotenc
y_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> | |
| 90 */ | |
| 91 public function getIdempotencyLevel() | |
| 92 { | |
| 93 return $this->idempotency_level; | |
| 94 } | |
| 95 | |
| 96 /** | |
| 97 * <code>optional .google.protobuf.MethodOptions.IdempotencyLevel idempotenc
y_level = 34 [default = IDEMPOTENCY_UNKNOWN];</code> | |
| 98 */ | |
| 99 public function setIdempotencyLevel($var) | |
| 100 { | |
| 101 GPBUtil::checkEnum($var, \Google\Protobuf\Internal\MethodOptions_Idempot
encyLevel::class); | |
| 102 $this->idempotency_level = $var; | |
| 103 $this->has_idempotency_level = true; | |
| 104 } | |
| 105 | |
| 106 public function hasIdempotencyLevel() | |
| 107 { | |
| 108 return $this->has_idempotency_level; | |
| 109 } | |
| 110 | |
| 111 /** | |
| 112 * <pre> | |
| 113 * The parser stores options it doesn't recognize here. See above. | |
| 114 * </pre> | |
| 115 * | |
| 116 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option
= 999;</code> | |
| 117 */ | |
| 118 public function getUninterpretedOption() | |
| 119 { | |
| 120 return $this->uninterpreted_option; | |
| 121 } | |
| 122 | |
| 123 /** | |
| 124 * <pre> | |
| 125 * The parser stores options it doesn't recognize here. See above. | |
| 126 * </pre> | |
| 127 * | |
| 128 * <code>repeated .google.protobuf.UninterpretedOption uninterpreted_option
= 999;</code> | |
| 129 */ | |
| 130 public function setUninterpretedOption(&$var) | |
| 131 { | |
| 132 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\UninterpretedOption::class); | |
| 133 $this->uninterpreted_option = $var; | |
| 134 $this->has_uninterpreted_option = true; | |
| 135 } | |
| 136 | |
| 137 public function hasUninterpretedOption() | |
| 138 { | |
| 139 return $this->has_uninterpreted_option; | |
| 140 } | |
| 141 | |
| 142 } | |
| 143 | |
| OLD | NEW |