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 * Describes a message type. |
| 17 * </pre> |
| 18 * |
| 19 * Protobuf type <code>google.protobuf.DescriptorProto</code> |
| 20 */ |
| 21 class DescriptorProto extends \Google\Protobuf\Internal\Message |
| 22 { |
| 23 /** |
| 24 * <code>optional string name = 1;</code> |
| 25 */ |
| 26 private $name = ''; |
| 27 private $has_name = false; |
| 28 /** |
| 29 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> |
| 30 */ |
| 31 private $field; |
| 32 private $has_field = false; |
| 33 /** |
| 34 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code
> |
| 35 */ |
| 36 private $extension; |
| 37 private $has_extension = false; |
| 38 /** |
| 39 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> |
| 40 */ |
| 41 private $nested_type; |
| 42 private $has_nested_type = false; |
| 43 /** |
| 44 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> |
| 45 */ |
| 46 private $enum_type; |
| 47 private $has_enum_type = false; |
| 48 /** |
| 49 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_
range = 5;</code> |
| 50 */ |
| 51 private $extension_range; |
| 52 private $has_extension_range = false; |
| 53 /** |
| 54 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</cod
e> |
| 55 */ |
| 56 private $oneof_decl; |
| 57 private $has_oneof_decl = false; |
| 58 /** |
| 59 * <code>optional .google.protobuf.MessageOptions options = 7;</code> |
| 60 */ |
| 61 private $options = null; |
| 62 private $has_options = false; |
| 63 /** |
| 64 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_ra
nge = 9;</code> |
| 65 */ |
| 66 private $reserved_range; |
| 67 private $has_reserved_range = false; |
| 68 /** |
| 69 * <pre> |
| 70 * Reserved field names, which may not be used by fields in the same message
. |
| 71 * A given name may only be reserved once. |
| 72 * </pre> |
| 73 * |
| 74 * <code>repeated string reserved_name = 10;</code> |
| 75 */ |
| 76 private $reserved_name; |
| 77 private $has_reserved_name = false; |
| 78 |
| 79 public function __construct() { |
| 80 \GPBMetadata\Google\Protobuf\Internal\Descriptor::initOnce(); |
| 81 parent::__construct(); |
| 82 } |
| 83 |
| 84 /** |
| 85 * <code>optional string name = 1;</code> |
| 86 */ |
| 87 public function getName() |
| 88 { |
| 89 return $this->name; |
| 90 } |
| 91 |
| 92 /** |
| 93 * <code>optional string name = 1;</code> |
| 94 */ |
| 95 public function setName($var) |
| 96 { |
| 97 GPBUtil::checkString($var, True); |
| 98 $this->name = $var; |
| 99 $this->has_name = true; |
| 100 } |
| 101 |
| 102 public function hasName() |
| 103 { |
| 104 return $this->has_name; |
| 105 } |
| 106 |
| 107 /** |
| 108 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> |
| 109 */ |
| 110 public function getField() |
| 111 { |
| 112 return $this->field; |
| 113 } |
| 114 |
| 115 /** |
| 116 * <code>repeated .google.protobuf.FieldDescriptorProto field = 2;</code> |
| 117 */ |
| 118 public function setField(&$var) |
| 119 { |
| 120 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class); |
| 121 $this->field = $var; |
| 122 $this->has_field = true; |
| 123 } |
| 124 |
| 125 public function hasField() |
| 126 { |
| 127 return $this->has_field; |
| 128 } |
| 129 |
| 130 /** |
| 131 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code
> |
| 132 */ |
| 133 public function getExtension() |
| 134 { |
| 135 return $this->extension; |
| 136 } |
| 137 |
| 138 /** |
| 139 * <code>repeated .google.protobuf.FieldDescriptorProto extension = 6;</code
> |
| 140 */ |
| 141 public function setExtension(&$var) |
| 142 { |
| 143 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\FieldDescriptorProto::class); |
| 144 $this->extension = $var; |
| 145 $this->has_extension = true; |
| 146 } |
| 147 |
| 148 public function hasExtension() |
| 149 { |
| 150 return $this->has_extension; |
| 151 } |
| 152 |
| 153 /** |
| 154 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> |
| 155 */ |
| 156 public function getNestedType() |
| 157 { |
| 158 return $this->nested_type; |
| 159 } |
| 160 |
| 161 /** |
| 162 * <code>repeated .google.protobuf.DescriptorProto nested_type = 3;</code> |
| 163 */ |
| 164 public function setNestedType(&$var) |
| 165 { |
| 166 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\DescriptorProto::class); |
| 167 $this->nested_type = $var; |
| 168 $this->has_nested_type = true; |
| 169 } |
| 170 |
| 171 public function hasNestedType() |
| 172 { |
| 173 return $this->has_nested_type; |
| 174 } |
| 175 |
| 176 /** |
| 177 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> |
| 178 */ |
| 179 public function getEnumType() |
| 180 { |
| 181 return $this->enum_type; |
| 182 } |
| 183 |
| 184 /** |
| 185 * <code>repeated .google.protobuf.EnumDescriptorProto enum_type = 4;</code> |
| 186 */ |
| 187 public function setEnumType(&$var) |
| 188 { |
| 189 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\EnumDescriptorProto::class); |
| 190 $this->enum_type = $var; |
| 191 $this->has_enum_type = true; |
| 192 } |
| 193 |
| 194 public function hasEnumType() |
| 195 { |
| 196 return $this->has_enum_type; |
| 197 } |
| 198 |
| 199 /** |
| 200 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_
range = 5;</code> |
| 201 */ |
| 202 public function getExtensionRange() |
| 203 { |
| 204 return $this->extension_range; |
| 205 } |
| 206 |
| 207 /** |
| 208 * <code>repeated .google.protobuf.DescriptorProto.ExtensionRange extension_
range = 5;</code> |
| 209 */ |
| 210 public function setExtensionRange(&$var) |
| 211 { |
| 212 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\DescriptorProto_ExtensionRange::class); |
| 213 $this->extension_range = $var; |
| 214 $this->has_extension_range = true; |
| 215 } |
| 216 |
| 217 public function hasExtensionRange() |
| 218 { |
| 219 return $this->has_extension_range; |
| 220 } |
| 221 |
| 222 /** |
| 223 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</cod
e> |
| 224 */ |
| 225 public function getOneofDecl() |
| 226 { |
| 227 return $this->oneof_decl; |
| 228 } |
| 229 |
| 230 /** |
| 231 * <code>repeated .google.protobuf.OneofDescriptorProto oneof_decl = 8;</cod
e> |
| 232 */ |
| 233 public function setOneofDecl(&$var) |
| 234 { |
| 235 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\OneofDescriptorProto::class); |
| 236 $this->oneof_decl = $var; |
| 237 $this->has_oneof_decl = true; |
| 238 } |
| 239 |
| 240 public function hasOneofDecl() |
| 241 { |
| 242 return $this->has_oneof_decl; |
| 243 } |
| 244 |
| 245 /** |
| 246 * <code>optional .google.protobuf.MessageOptions options = 7;</code> |
| 247 */ |
| 248 public function getOptions() |
| 249 { |
| 250 return $this->options; |
| 251 } |
| 252 |
| 253 /** |
| 254 * <code>optional .google.protobuf.MessageOptions options = 7;</code> |
| 255 */ |
| 256 public function setOptions(&$var) |
| 257 { |
| 258 GPBUtil::checkMessage($var, \Google\Protobuf\Internal\MessageOptions::cl
ass); |
| 259 $this->options = $var; |
| 260 $this->has_options = true; |
| 261 } |
| 262 |
| 263 public function hasOptions() |
| 264 { |
| 265 return $this->has_options; |
| 266 } |
| 267 |
| 268 /** |
| 269 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_ra
nge = 9;</code> |
| 270 */ |
| 271 public function getReservedRange() |
| 272 { |
| 273 return $this->reserved_range; |
| 274 } |
| 275 |
| 276 /** |
| 277 * <code>repeated .google.protobuf.DescriptorProto.ReservedRange reserved_ra
nge = 9;</code> |
| 278 */ |
| 279 public function setReservedRange(&$var) |
| 280 { |
| 281 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::MES
SAGE, \Google\Protobuf\Internal\DescriptorProto_ReservedRange::class); |
| 282 $this->reserved_range = $var; |
| 283 $this->has_reserved_range = true; |
| 284 } |
| 285 |
| 286 public function hasReservedRange() |
| 287 { |
| 288 return $this->has_reserved_range; |
| 289 } |
| 290 |
| 291 /** |
| 292 * <pre> |
| 293 * Reserved field names, which may not be used by fields in the same message
. |
| 294 * A given name may only be reserved once. |
| 295 * </pre> |
| 296 * |
| 297 * <code>repeated string reserved_name = 10;</code> |
| 298 */ |
| 299 public function getReservedName() |
| 300 { |
| 301 return $this->reserved_name; |
| 302 } |
| 303 |
| 304 /** |
| 305 * <pre> |
| 306 * Reserved field names, which may not be used by fields in the same message
. |
| 307 * A given name may only be reserved once. |
| 308 * </pre> |
| 309 * |
| 310 * <code>repeated string reserved_name = 10;</code> |
| 311 */ |
| 312 public function setReservedName(&$var) |
| 313 { |
| 314 GPBUtil::checkRepeatedField($var, \Google\Protobuf\Internal\GPBType::STR
ING); |
| 315 $this->reserved_name = $var; |
| 316 $this->has_reserved_name = true; |
| 317 } |
| 318 |
| 319 public function hasReservedName() |
| 320 { |
| 321 return $this->has_reserved_name; |
| 322 } |
| 323 |
| 324 } |
| 325 |
OLD | NEW |