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 * <pre> |
| 16 * A message representing a option the parser does not recognize. This only |
| 17 * appears in options protos created by the compiler::Parser class. |
| 18 * DescriptorPool resolves these when building Descriptor objects. Therefore, |
| 19 * options protos in descriptor objects (e.g. returned by Descriptor::options(), |
| 20 * or produced by Descriptor::CopyTo()) will never have UninterpretedOptions |
| 21 * in them. |
| 22 * </pre> |
| 23 * |
| 24 * Protobuf type <code>google.protobuf.UninterpretedOption</code> |
| 25 */ |
| 26 class UninterpretedOption extends \Google\Protobuf\Internal\Message |
| 27 { |
| 28 /** |
| 29 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</c
ode> |
| 30 */ |
| 31 private $name; |
| 32 private $has_name = false; |
| 33 /** |
| 34 * <pre> |
| 35 * The value of the uninterpreted option, in whatever type the tokenizer |
| 36 * identified it as during parsing. Exactly one of these should be set. |
| 37 * </pre> |
| 38 * |
| 39 * <code>optional string identifier_value = 3;</code> |
| 40 */ |
| 41 private $identifier_value = ''; |
| 42 private $has_identifier_value = false; |
| 43 /** |
| 44 * <code>optional uint64 positive_int_value = 4;</code> |
| 45 */ |
| 46 private $positive_int_value = 0; |
| 47 private $has_positive_int_value = false; |
| 48 /** |
| 49 * <code>optional int64 negative_int_value = 5;</code> |
| 50 */ |
| 51 private $negative_int_value = 0; |
| 52 private $has_negative_int_value = false; |
| 53 /** |
| 54 * <code>optional double double_value = 6;</code> |
| 55 */ |
| 56 private $double_value = 0.0; |
| 57 private $has_double_value = false; |
| 58 /** |
| 59 * <code>optional bytes string_value = 7;</code> |
| 60 */ |
| 61 private $string_value = ''; |
| 62 private $has_string_value = false; |
| 63 /** |
| 64 * <code>optional string aggregate_value = 8;</code> |
| 65 */ |
| 66 private $aggregate_value = ''; |
| 67 private $has_aggregate_value = false; |
| 68 |
| 69 public function __construct() { |
| 70 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 71 parent::__construct(); |
| 72 } |
| 73 |
| 74 /** |
| 75 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</c
ode> |
| 76 */ |
| 77 public function getName() |
| 78 { |
| 79 return $this->name; |
| 80 } |
| 81 |
| 82 /** |
| 83 * <code>repeated .google.protobuf.UninterpretedOption.NamePart name = 2;</c
ode> |
| 84 */ |
| 85 public function setName(&$var) |
| 86 { |
| 87 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\UninterpretedOption_NamePart::class); |
| 88 $this->name = $var; |
| 89 $this->has_name = true; |
| 90 } |
| 91 |
| 92 public function hasName() |
| 93 { |
| 94 return $this->has_name; |
| 95 } |
| 96 |
| 97 /** |
| 98 * <pre> |
| 99 * The value of the uninterpreted option, in whatever type the tokenizer |
| 100 * identified it as during parsing. Exactly one of these should be set. |
| 101 * </pre> |
| 102 * |
| 103 * <code>optional string identifier_value = 3;</code> |
| 104 */ |
| 105 public function getIdentifierValue() |
| 106 { |
| 107 return $this->identifier_value; |
| 108 } |
| 109 |
| 110 /** |
| 111 * <pre> |
| 112 * The value of the uninterpreted option, in whatever type the tokenizer |
| 113 * identified it as during parsing. Exactly one of these should be set. |
| 114 * </pre> |
| 115 * |
| 116 * <code>optional string identifier_value = 3;</code> |
| 117 */ |
| 118 public function setIdentifierValue($var) |
| 119 { |
| 120 GPBUtil::checkString($var, True); |
| 121 $this->identifier_value = $var; |
| 122 $this->has_identifier_value = true; |
| 123 } |
| 124 |
| 125 public function hasIdentifierValue() |
| 126 { |
| 127 return $this->has_identifier_value; |
| 128 } |
| 129 |
| 130 /** |
| 131 * <code>optional uint64 positive_int_value = 4;</code> |
| 132 */ |
| 133 public function getPositiveIntValue() |
| 134 { |
| 135 return $this->positive_int_value; |
| 136 } |
| 137 |
| 138 /** |
| 139 * <code>optional uint64 positive_int_value = 4;</code> |
| 140 */ |
| 141 public function setPositiveIntValue($var) |
| 142 { |
| 143 GPBUtil::checkUint64($var); |
| 144 $this->positive_int_value = $var; |
| 145 $this->has_positive_int_value = true; |
| 146 } |
| 147 |
| 148 public function hasPositiveIntValue() |
| 149 { |
| 150 return $this->has_positive_int_value; |
| 151 } |
| 152 |
| 153 /** |
| 154 * <code>optional int64 negative_int_value = 5;</code> |
| 155 */ |
| 156 public function getNegativeIntValue() |
| 157 { |
| 158 return $this->negative_int_value; |
| 159 } |
| 160 |
| 161 /** |
| 162 * <code>optional int64 negative_int_value = 5;</code> |
| 163 */ |
| 164 public function setNegativeIntValue($var) |
| 165 { |
| 166 GPBUtil::checkInt64($var); |
| 167 $this->negative_int_value = $var; |
| 168 $this->has_negative_int_value = true; |
| 169 } |
| 170 |
| 171 public function hasNegativeIntValue() |
| 172 { |
| 173 return $this->has_negative_int_value; |
| 174 } |
| 175 |
| 176 /** |
| 177 * <code>optional double double_value = 6;</code> |
| 178 */ |
| 179 public function getDoubleValue() |
| 180 { |
| 181 return $this->double_value; |
| 182 } |
| 183 |
| 184 /** |
| 185 * <code>optional double double_value = 6;</code> |
| 186 */ |
| 187 public function setDoubleValue($var) |
| 188 { |
| 189 GPBUtil::checkDouble($var); |
| 190 $this->double_value = $var; |
| 191 $this->has_double_value = true; |
| 192 } |
| 193 |
| 194 public function hasDoubleValue() |
| 195 { |
| 196 return $this->has_double_value; |
| 197 } |
| 198 |
| 199 /** |
| 200 * <code>optional bytes string_value = 7;</code> |
| 201 */ |
| 202 public function getStringValue() |
| 203 { |
| 204 return $this->string_value; |
| 205 } |
| 206 |
| 207 /** |
| 208 * <code>optional bytes string_value = 7;</code> |
| 209 */ |
| 210 public function setStringValue($var) |
| 211 { |
| 212 GPBUtil::checkString($var, False); |
| 213 $this->string_value = $var; |
| 214 $this->has_string_value = true; |
| 215 } |
| 216 |
| 217 public function hasStringValue() |
| 218 { |
| 219 return $this->has_string_value; |
| 220 } |
| 221 |
| 222 /** |
| 223 * <code>optional string aggregate_value = 8;</code> |
| 224 */ |
| 225 public function getAggregateValue() |
| 226 { |
| 227 return $this->aggregate_value; |
| 228 } |
| 229 |
| 230 /** |
| 231 * <code>optional string aggregate_value = 8;</code> |
| 232 */ |
| 233 public function setAggregateValue($var) |
| 234 { |
| 235 GPBUtil::checkString($var, True); |
| 236 $this->aggregate_value = $var; |
| 237 $this->has_aggregate_value = true; |
| 238 } |
| 239 |
| 240 public function hasAggregateValue() |
| 241 { |
| 242 return $this->has_aggregate_value; |
| 243 } |
| 244 |
| 245 } |
| 246 |
OLD | NEW |