webkit  2cdf99a9e3038c7e01b3c37e8ad903ecbe5eecf1
https://github.com/WebKit/webkit
type.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/type.proto
3 
4 #ifndef PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED
5 #define PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED
6 
7 #include <string>
8 
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3000000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/arena.h>
31 #include <google/protobuf/any.pb.h>
33 // @@protoc_insertion_point(includes)
34 
35 namespace google {
36 namespace protobuf {
37 
38 // Internal implementation detail -- do not call these.
42 
43 class Enum;
44 class EnumValue;
45 class Field;
46 class Option;
47 class Type;
48 
49 enum Field_Kind {
71 };
75 const int Field_Kind_Kind_ARRAYSIZE = Field_Kind_Kind_MAX + 1;
76 
80  Field_Kind_descriptor(), value);
81 }
82 inline bool Field_Kind_Parse(
84  return ::google::protobuf::internal::ParseNamedEnum<Field_Kind>(
86 }
94 };
98 const int Field_Cardinality_Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_MAX + 1;
99 
104 }
107  return ::google::protobuf::internal::ParseNamedEnum<Field_Cardinality>(
109 }
110 enum Syntax {
115 };
119 const int Syntax_ARRAYSIZE = Syntax_MAX + 1;
120 
124  Syntax_descriptor(), value);
125 }
126 inline bool Syntax_Parse(
128  return ::google::protobuf::internal::ParseNamedEnum<Syntax>(
130 }
131 // ===================================================================
132 
134  public:
135  Type();
136  virtual ~Type();
137 
138  Type(const Type& from);
139 
140  inline Type& operator=(const Type& from) {
141  CopyFrom(from);
142  return *this;
143  }
144 
146  static const Type& default_instance();
147 
148  void Swap(Type* other);
149 
150  // implements Message ----------------------------------------------
151 
152  inline Type* New() const { return New(NULL); }
153 
154  Type* New(::google::protobuf::Arena* arena) const;
155  void CopyFrom(const ::google::protobuf::Message& from);
157  void CopyFrom(const Type& from);
158  void MergeFrom(const Type& from);
159  void Clear();
160  bool IsInitialized() const;
161 
162  int ByteSize() const;
163  bool MergePartialFromCodedStream(
165  void SerializeWithCachedSizes(
167  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
168  int GetCachedSize() const { return _cached_size_; }
169  private:
170  void SharedCtor();
171  void SharedDtor();
172  void SetCachedSize(int size) const;
173  void InternalSwap(Type* other);
174  private:
175  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
176  return _internal_metadata_.arena();
177  }
178  inline void* MaybeArenaPtr() const {
179  return _internal_metadata_.raw_arena_ptr();
180  }
181  public:
182 
183  ::google::protobuf::Metadata GetMetadata() const;
184 
185  // nested types ----------------------------------------------------
186 
187  // accessors -------------------------------------------------------
188 
189  // optional string name = 1;
190  void clear_name();
191  static const int kNameFieldNumber = 1;
192  const ::std::string& name() const;
193  void set_name(const ::std::string& value);
194  void set_name(const char* value);
195  void set_name(const char* value, size_t size);
196  ::std::string* mutable_name();
197  ::std::string* release_name();
198  void set_allocated_name(::std::string* name);
199 
200  // repeated .google.protobuf.Field fields = 2;
201  int fields_size() const;
202  void clear_fields();
203  static const int kFieldsFieldNumber = 2;
204  const ::google::protobuf::Field& fields(int index) const;
205  ::google::protobuf::Field* mutable_fields(int index);
206  ::google::protobuf::Field* add_fields();
208  mutable_fields();
209  const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >&
210  fields() const;
211 
212  // repeated string oneofs = 3;
213  int oneofs_size() const;
214  void clear_oneofs();
215  static const int kOneofsFieldNumber = 3;
216  const ::std::string& oneofs(int index) const;
217  ::std::string* mutable_oneofs(int index);
218  void set_oneofs(int index, const ::std::string& value);
219  void set_oneofs(int index, const char* value);
220  void set_oneofs(int index, const char* value, size_t size);
221  ::std::string* add_oneofs();
222  void add_oneofs(const ::std::string& value);
223  void add_oneofs(const char* value);
224  void add_oneofs(const char* value, size_t size);
225  const ::google::protobuf::RepeatedPtrField< ::std::string>& oneofs() const;
227 
228  // repeated .google.protobuf.Option options = 4;
229  int options_size() const;
230  void clear_options();
231  static const int kOptionsFieldNumber = 4;
232  const ::google::protobuf::Option& options(int index) const;
233  ::google::protobuf::Option* mutable_options(int index);
234  ::google::protobuf::Option* add_options();
236  mutable_options();
237  const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
238  options() const;
239 
240  // optional .google.protobuf.SourceContext source_context = 5;
241  bool has_source_context() const;
242  void clear_source_context();
243  static const int kSourceContextFieldNumber = 5;
244  const ::google::protobuf::SourceContext& source_context() const;
245  ::google::protobuf::SourceContext* mutable_source_context();
246  ::google::protobuf::SourceContext* release_source_context();
247  void set_allocated_source_context(::google::protobuf::SourceContext* source_context);
248 
249  // optional .google.protobuf.Syntax syntax = 6;
250  void clear_syntax();
251  static const int kSyntaxFieldNumber = 6;
252  ::google::protobuf::Syntax syntax() const;
253  void set_syntax(::google::protobuf::Syntax value);
254 
255  // @@protoc_insertion_point(class_scope:google.protobuf.Type)
256  private:
257 
259  bool _is_default_instance_;
264  ::google::protobuf::SourceContext* source_context_;
265  int syntax_;
266  mutable int _cached_size_;
270 
271  void InitAsDefaultInstance();
272  static Type* default_instance_;
273 };
274 // -------------------------------------------------------------------
275 
277  public:
278  Field();
279  virtual ~Field();
280 
281  Field(const Field& from);
282 
283  inline Field& operator=(const Field& from) {
284  CopyFrom(from);
285  return *this;
286  }
287 
289  static const Field& default_instance();
290 
291  void Swap(Field* other);
292 
293  // implements Message ----------------------------------------------
294 
295  inline Field* New() const { return New(NULL); }
296 
297  Field* New(::google::protobuf::Arena* arena) const;
298  void CopyFrom(const ::google::protobuf::Message& from);
300  void CopyFrom(const Field& from);
301  void MergeFrom(const Field& from);
302  void Clear();
303  bool IsInitialized() const;
304 
305  int ByteSize() const;
306  bool MergePartialFromCodedStream(
308  void SerializeWithCachedSizes(
310  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
311  int GetCachedSize() const { return _cached_size_; }
312  private:
313  void SharedCtor();
314  void SharedDtor();
315  void SetCachedSize(int size) const;
316  void InternalSwap(Field* other);
317  private:
318  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
319  return _internal_metadata_.arena();
320  }
321  inline void* MaybeArenaPtr() const {
322  return _internal_metadata_.raw_arena_ptr();
323  }
324  public:
325 
326  ::google::protobuf::Metadata GetMetadata() const;
327 
328  // nested types ----------------------------------------------------
329 
330  typedef Field_Kind Kind;
331  static const Kind TYPE_UNKNOWN =
333  static const Kind TYPE_DOUBLE =
335  static const Kind TYPE_FLOAT =
337  static const Kind TYPE_INT64 =
339  static const Kind TYPE_UINT64 =
341  static const Kind TYPE_INT32 =
343  static const Kind TYPE_FIXED64 =
345  static const Kind TYPE_FIXED32 =
347  static const Kind TYPE_BOOL =
349  static const Kind TYPE_STRING =
351  static const Kind TYPE_GROUP =
353  static const Kind TYPE_MESSAGE =
355  static const Kind TYPE_BYTES =
357  static const Kind TYPE_UINT32 =
359  static const Kind TYPE_ENUM =
361  static const Kind TYPE_SFIXED32 =
363  static const Kind TYPE_SFIXED64 =
365  static const Kind TYPE_SINT32 =
367  static const Kind TYPE_SINT64 =
369  static inline bool Kind_IsValid(int value) {
370  return Field_Kind_IsValid(value);
371  }
372  static const Kind Kind_MIN =
374  static const Kind Kind_MAX =
376  static const int Kind_ARRAYSIZE =
380  return Field_Kind_descriptor();
381  }
382  static inline const ::std::string& Kind_Name(Kind value) {
383  return Field_Kind_Name(value);
384  }
385  static inline bool Kind_Parse(const ::std::string& name,
386  Kind* value) {
387  return Field_Kind_Parse(name, value);
388  }
389 
391  static const Cardinality CARDINALITY_UNKNOWN =
393  static const Cardinality CARDINALITY_OPTIONAL =
395  static const Cardinality CARDINALITY_REQUIRED =
397  static const Cardinality CARDINALITY_REPEATED =
399  static inline bool Cardinality_IsValid(int value) {
400  return Field_Cardinality_IsValid(value);
401  }
402  static const Cardinality Cardinality_MIN =
404  static const Cardinality Cardinality_MAX =
406  static const int Cardinality_ARRAYSIZE =
411  }
412  static inline const ::std::string& Cardinality_Name(Cardinality value) {
413  return Field_Cardinality_Name(value);
414  }
416  Cardinality* value) {
417  return Field_Cardinality_Parse(name, value);
418  }
419 
420  // accessors -------------------------------------------------------
421 
422  // optional .google.protobuf.Field.Kind kind = 1;
423  void clear_kind();
424  static const int kKindFieldNumber = 1;
426  void set_kind(::google::protobuf::Field_Kind value);
427 
428  // optional .google.protobuf.Field.Cardinality cardinality = 2;
429  void clear_cardinality();
430  static const int kCardinalityFieldNumber = 2;
431  ::google::protobuf::Field_Cardinality cardinality() const;
432  void set_cardinality(::google::protobuf::Field_Cardinality value);
433 
434  // optional int32 number = 3;
435  void clear_number();
436  static const int kNumberFieldNumber = 3;
438  void set_number(::google::protobuf::int32 value);
439 
440  // optional string name = 4;
441  void clear_name();
442  static const int kNameFieldNumber = 4;
443  const ::std::string& name() const;
444  void set_name(const ::std::string& value);
445  void set_name(const char* value);
446  void set_name(const char* value, size_t size);
447  ::std::string* mutable_name();
448  ::std::string* release_name();
449  void set_allocated_name(::std::string* name);
450 
451  // optional string type_url = 6;
452  void clear_type_url();
453  static const int kTypeUrlFieldNumber = 6;
454  const ::std::string& type_url() const;
455  void set_type_url(const ::std::string& value);
456  void set_type_url(const char* value);
457  void set_type_url(const char* value, size_t size);
458  ::std::string* mutable_type_url();
459  ::std::string* release_type_url();
460  void set_allocated_type_url(::std::string* type_url);
461 
462  // optional int32 oneof_index = 7;
463  void clear_oneof_index();
464  static const int kOneofIndexFieldNumber = 7;
465  ::google::protobuf::int32 oneof_index() const;
466  void set_oneof_index(::google::protobuf::int32 value);
467 
468  // optional bool packed = 8;
469  void clear_packed();
470  static const int kPackedFieldNumber = 8;
471  bool packed() const;
472  void set_packed(bool value);
473 
474  // repeated .google.protobuf.Option options = 9;
475  int options_size() const;
476  void clear_options();
477  static const int kOptionsFieldNumber = 9;
478  const ::google::protobuf::Option& options(int index) const;
479  ::google::protobuf::Option* mutable_options(int index);
480  ::google::protobuf::Option* add_options();
482  mutable_options();
483  const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
484  options() const;
485 
486  // optional string json_name = 10;
487  void clear_json_name();
488  static const int kJsonNameFieldNumber = 10;
489  const ::std::string& json_name() const;
490  void set_json_name(const ::std::string& value);
491  void set_json_name(const char* value);
492  void set_json_name(const char* value, size_t size);
493  ::std::string* mutable_json_name();
494  ::std::string* release_json_name();
495  void set_allocated_json_name(::std::string* json_name);
496 
497  // optional string default_value = 11;
498  void clear_default_value();
499  static const int kDefaultValueFieldNumber = 11;
500  const ::std::string& default_value() const;
501  void set_default_value(const ::std::string& value);
502  void set_default_value(const char* value);
503  void set_default_value(const char* value, size_t size);
504  ::std::string* mutable_default_value();
505  ::std::string* release_default_value();
506  void set_allocated_default_value(::std::string* default_value);
507 
508  // @@protoc_insertion_point(class_scope:google.protobuf.Field)
509  private:
510 
512  bool _is_default_instance_;
513  int kind_;
514  int cardinality_;
517  ::google::protobuf::int32 oneof_index_;
522  bool packed_;
523  mutable int _cached_size_;
527 
528  void InitAsDefaultInstance();
529  static Field* default_instance_;
530 };
531 // -------------------------------------------------------------------
532 
534  public:
535  Enum();
536  virtual ~Enum();
537 
538  Enum(const Enum& from);
539 
540  inline Enum& operator=(const Enum& from) {
541  CopyFrom(from);
542  return *this;
543  }
544 
546  static const Enum& default_instance();
547 
548  void Swap(Enum* other);
549 
550  // implements Message ----------------------------------------------
551 
552  inline Enum* New() const { return New(NULL); }
553 
554  Enum* New(::google::protobuf::Arena* arena) const;
555  void CopyFrom(const ::google::protobuf::Message& from);
557  void CopyFrom(const Enum& from);
558  void MergeFrom(const Enum& from);
559  void Clear();
560  bool IsInitialized() const;
561 
562  int ByteSize() const;
563  bool MergePartialFromCodedStream(
565  void SerializeWithCachedSizes(
567  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
568  int GetCachedSize() const { return _cached_size_; }
569  private:
570  void SharedCtor();
571  void SharedDtor();
572  void SetCachedSize(int size) const;
573  void InternalSwap(Enum* other);
574  private:
575  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
576  return _internal_metadata_.arena();
577  }
578  inline void* MaybeArenaPtr() const {
579  return _internal_metadata_.raw_arena_ptr();
580  }
581  public:
582 
583  ::google::protobuf::Metadata GetMetadata() const;
584 
585  // nested types ----------------------------------------------------
586 
587  // accessors -------------------------------------------------------
588 
589  // optional string name = 1;
590  void clear_name();
591  static const int kNameFieldNumber = 1;
592  const ::std::string& name() const;
593  void set_name(const ::std::string& value);
594  void set_name(const char* value);
595  void set_name(const char* value, size_t size);
596  ::std::string* mutable_name();
597  ::std::string* release_name();
598  void set_allocated_name(::std::string* name);
599 
600  // repeated .google.protobuf.EnumValue enumvalue = 2;
601  int enumvalue_size() const;
602  void clear_enumvalue();
603  static const int kEnumvalueFieldNumber = 2;
604  const ::google::protobuf::EnumValue& enumvalue(int index) const;
605  ::google::protobuf::EnumValue* mutable_enumvalue(int index);
606  ::google::protobuf::EnumValue* add_enumvalue();
608  mutable_enumvalue();
609  const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >&
610  enumvalue() const;
611 
612  // repeated .google.protobuf.Option options = 3;
613  int options_size() const;
614  void clear_options();
615  static const int kOptionsFieldNumber = 3;
616  const ::google::protobuf::Option& options(int index) const;
617  ::google::protobuf::Option* mutable_options(int index);
618  ::google::protobuf::Option* add_options();
620  mutable_options();
621  const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
622  options() const;
623 
624  // optional .google.protobuf.SourceContext source_context = 4;
625  bool has_source_context() const;
626  void clear_source_context();
627  static const int kSourceContextFieldNumber = 4;
628  const ::google::protobuf::SourceContext& source_context() const;
629  ::google::protobuf::SourceContext* mutable_source_context();
630  ::google::protobuf::SourceContext* release_source_context();
631  void set_allocated_source_context(::google::protobuf::SourceContext* source_context);
632 
633  // optional .google.protobuf.Syntax syntax = 5;
634  void clear_syntax();
635  static const int kSyntaxFieldNumber = 5;
636  ::google::protobuf::Syntax syntax() const;
637  void set_syntax(::google::protobuf::Syntax value);
638 
639  // @@protoc_insertion_point(class_scope:google.protobuf.Enum)
640  private:
641 
643  bool _is_default_instance_;
647  ::google::protobuf::SourceContext* source_context_;
648  int syntax_;
649  mutable int _cached_size_;
653 
654  void InitAsDefaultInstance();
655  static Enum* default_instance_;
656 };
657 // -------------------------------------------------------------------
658 
660  public:
661  EnumValue();
662  virtual ~EnumValue();
663 
664  EnumValue(const EnumValue& from);
665 
666  inline EnumValue& operator=(const EnumValue& from) {
667  CopyFrom(from);
668  return *this;
669  }
670 
672  static const EnumValue& default_instance();
673 
674  void Swap(EnumValue* other);
675 
676  // implements Message ----------------------------------------------
677 
678  inline EnumValue* New() const { return New(NULL); }
679 
680  EnumValue* New(::google::protobuf::Arena* arena) const;
681  void CopyFrom(const ::google::protobuf::Message& from);
683  void CopyFrom(const EnumValue& from);
684  void MergeFrom(const EnumValue& from);
685  void Clear();
686  bool IsInitialized() const;
687 
688  int ByteSize() const;
689  bool MergePartialFromCodedStream(
691  void SerializeWithCachedSizes(
693  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
694  int GetCachedSize() const { return _cached_size_; }
695  private:
696  void SharedCtor();
697  void SharedDtor();
698  void SetCachedSize(int size) const;
699  void InternalSwap(EnumValue* other);
700  private:
701  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
702  return _internal_metadata_.arena();
703  }
704  inline void* MaybeArenaPtr() const {
705  return _internal_metadata_.raw_arena_ptr();
706  }
707  public:
708 
709  ::google::protobuf::Metadata GetMetadata() const;
710 
711  // nested types ----------------------------------------------------
712 
713  // accessors -------------------------------------------------------
714 
715  // optional string name = 1;
716  void clear_name();
717  static const int kNameFieldNumber = 1;
718  const ::std::string& name() const;
719  void set_name(const ::std::string& value);
720  void set_name(const char* value);
721  void set_name(const char* value, size_t size);
722  ::std::string* mutable_name();
723  ::std::string* release_name();
724  void set_allocated_name(::std::string* name);
725 
726  // optional int32 number = 2;
727  void clear_number();
728  static const int kNumberFieldNumber = 2;
730  void set_number(::google::protobuf::int32 value);
731 
732  // repeated .google.protobuf.Option options = 3;
733  int options_size() const;
734  void clear_options();
735  static const int kOptionsFieldNumber = 3;
736  const ::google::protobuf::Option& options(int index) const;
737  ::google::protobuf::Option* mutable_options(int index);
738  ::google::protobuf::Option* add_options();
740  mutable_options();
741  const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
742  options() const;
743 
744  // @@protoc_insertion_point(class_scope:google.protobuf.EnumValue)
745  private:
746 
748  bool _is_default_instance_;
752  mutable int _cached_size_;
756 
757  void InitAsDefaultInstance();
758  static EnumValue* default_instance_;
759 };
760 // -------------------------------------------------------------------
761 
763  public:
764  Option();
765  virtual ~Option();
766 
767  Option(const Option& from);
768 
769  inline Option& operator=(const Option& from) {
770  CopyFrom(from);
771  return *this;
772  }
773 
775  static const Option& default_instance();
776 
777  void Swap(Option* other);
778 
779  // implements Message ----------------------------------------------
780 
781  inline Option* New() const { return New(NULL); }
782 
783  Option* New(::google::protobuf::Arena* arena) const;
784  void CopyFrom(const ::google::protobuf::Message& from);
786  void CopyFrom(const Option& from);
787  void MergeFrom(const Option& from);
788  void Clear();
789  bool IsInitialized() const;
790 
791  int ByteSize() const;
792  bool MergePartialFromCodedStream(
794  void SerializeWithCachedSizes(
796  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
797  int GetCachedSize() const { return _cached_size_; }
798  private:
799  void SharedCtor();
800  void SharedDtor();
801  void SetCachedSize(int size) const;
802  void InternalSwap(Option* other);
803  private:
804  inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
805  return _internal_metadata_.arena();
806  }
807  inline void* MaybeArenaPtr() const {
808  return _internal_metadata_.raw_arena_ptr();
809  }
810  public:
811 
812  ::google::protobuf::Metadata GetMetadata() const;
813 
814  // nested types ----------------------------------------------------
815 
816  // accessors -------------------------------------------------------
817 
818  // optional string name = 1;
819  void clear_name();
820  static const int kNameFieldNumber = 1;
821  const ::std::string& name() const;
822  void set_name(const ::std::string& value);
823  void set_name(const char* value);
824  void set_name(const char* value, size_t size);
825  ::std::string* mutable_name();
826  ::std::string* release_name();
827  void set_allocated_name(::std::string* name);
828 
829  // optional .google.protobuf.Any value = 2;
830  bool has_value() const;
831  void clear_value();
832  static const int kValueFieldNumber = 2;
833  const ::google::protobuf::Any& value() const;
834  ::google::protobuf::Any* mutable_value();
835  ::google::protobuf::Any* release_value();
836  void set_allocated_value(::google::protobuf::Any* value);
837 
838  // @@protoc_insertion_point(class_scope:google.protobuf.Option)
839  private:
840 
842  bool _is_default_instance_;
844  ::google::protobuf::Any* value_;
845  mutable int _cached_size_;
849 
850  void InitAsDefaultInstance();
851  static Option* default_instance_;
852 };
853 // ===================================================================
854 
855 
856 // ===================================================================
857 
858 #if !PROTOBUF_INLINE_NOT_IN_HEADERS
859 // Type
860 
861 // optional string name = 1;
862 inline void Type::clear_name() {
863  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
864 }
866  // @@protoc_insertion_point(field_get:google.protobuf.Type.name)
867  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
868 }
870 
871  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
872  // @@protoc_insertion_point(field_set:google.protobuf.Type.name)
873 }
874 inline void Type::set_name(const char* value) {
875 
877  // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name)
878 }
879 inline void Type::set_name(const char* value, size_t size) {
880 
882  ::std::string(reinterpret_cast<const char*>(value), size));
883  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name)
884 }
886 
887  // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name)
888  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
889 }
891  // @@protoc_insertion_point(field_release:google.protobuf.Type.name)
892 
893  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
894 }
896  if (name != NULL) {
897 
898  } else {
899 
900  }
901  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
902  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name)
903 }
904 
905 // repeated .google.protobuf.Field fields = 2;
906 inline int Type::fields_size() const {
907  return fields_.size();
908 }
909 inline void Type::clear_fields() {
910  fields_.Clear();
911 }
912 inline const ::google::protobuf::Field& Type::fields(int index) const {
913  // @@protoc_insertion_point(field_get:google.protobuf.Type.fields)
914  return fields_.Get(index);
915 }
916 inline ::google::protobuf::Field* Type::mutable_fields(int index) {
917  // @@protoc_insertion_point(field_mutable:google.protobuf.Type.fields)
918  return fields_.Mutable(index);
919 }
920 inline ::google::protobuf::Field* Type::add_fields() {
921  // @@protoc_insertion_point(field_add:google.protobuf.Type.fields)
922  return fields_.Add();
923 }
924 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >*
926  // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.fields)
927  return &fields_;
928 }
929 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >&
930 Type::fields() const {
931  // @@protoc_insertion_point(field_list:google.protobuf.Type.fields)
932  return fields_;
933 }
934 
935 // repeated string oneofs = 3;
936 inline int Type::oneofs_size() const {
937  return oneofs_.size();
938 }
939 inline void Type::clear_oneofs() {
940  oneofs_.Clear();
941 }
943  // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
944  return oneofs_.Get(index);
945 }
947  // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
948  return oneofs_.Mutable(index);
949 }
951  // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
952  oneofs_.Mutable(index)->assign(value);
953 }
954 inline void Type::set_oneofs(int index, const char* value) {
955  oneofs_.Mutable(index)->assign(value);
956  // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs)
957 }
958 inline void Type::set_oneofs(int index, const char* value, size_t size) {
959  oneofs_.Mutable(index)->assign(
960  reinterpret_cast<const char*>(value), size);
961  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs)
962 }
964  // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs)
965  return oneofs_.Add();
966 }
968  oneofs_.Add()->assign(value);
969  // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
970 }
971 inline void Type::add_oneofs(const char* value) {
972  oneofs_.Add()->assign(value);
973  // @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs)
974 }
975 inline void Type::add_oneofs(const char* value, size_t size) {
976  oneofs_.Add()->assign(reinterpret_cast<const char*>(value), size);
977  // @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs)
978 }
979 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
980 Type::oneofs() const {
981  // @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs)
982  return oneofs_;
983 }
984 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
986  // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs)
987  return &oneofs_;
988 }
989 
990 // repeated .google.protobuf.Option options = 4;
991 inline int Type::options_size() const {
992  return options_.size();
993 }
994 inline void Type::clear_options() {
995  options_.Clear();
996 }
997 inline const ::google::protobuf::Option& Type::options(int index) const {
998  // @@protoc_insertion_point(field_get:google.protobuf.Type.options)
999  return options_.Get(index);
1000 }
1001 inline ::google::protobuf::Option* Type::mutable_options(int index) {
1002  // @@protoc_insertion_point(field_mutable:google.protobuf.Type.options)
1003  return options_.Mutable(index);
1004 }
1005 inline ::google::protobuf::Option* Type::add_options() {
1006  // @@protoc_insertion_point(field_add:google.protobuf.Type.options)
1007  return options_.Add();
1008 }
1009 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
1011  // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options)
1012  return &options_;
1013 }
1014 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1015 Type::options() const {
1016  // @@protoc_insertion_point(field_list:google.protobuf.Type.options)
1017  return options_;
1018 }
1019 
1020 // optional .google.protobuf.SourceContext source_context = 5;
1021 inline bool Type::has_source_context() const {
1022  return !_is_default_instance_ && source_context_ != NULL;
1023 }
1025  if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
1026  source_context_ = NULL;
1027 }
1028 inline const ::google::protobuf::SourceContext& Type::source_context() const {
1029  // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context)
1030  return source_context_ != NULL ? *source_context_ : *default_instance_->source_context_;
1031 }
1032 inline ::google::protobuf::SourceContext* Type::mutable_source_context() {
1033 
1034  if (source_context_ == NULL) {
1035  source_context_ = new ::google::protobuf::SourceContext;
1036  }
1037  // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context)
1038  return source_context_;
1039 }
1040 inline ::google::protobuf::SourceContext* Type::release_source_context() {
1041  // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
1042 
1043  ::google::protobuf::SourceContext* temp = source_context_;
1044  source_context_ = NULL;
1045  return temp;
1046 }
1048  delete source_context_;
1049  source_context_ = source_context;
1050  if (source_context) {
1051 
1052  } else {
1053 
1054  }
1055  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_context)
1056 }
1057 
1058 // optional .google.protobuf.Syntax syntax = 6;
1059 inline void Type::clear_syntax() {
1060  syntax_ = 0;
1061 }
1063  // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
1064  return static_cast< ::google::protobuf::Syntax >(syntax_);
1065 }
1067 
1068  syntax_ = value;
1069  // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
1070 }
1071 
1072 // -------------------------------------------------------------------
1073 
1074 // Field
1075 
1076 // optional .google.protobuf.Field.Kind kind = 1;
1077 inline void Field::clear_kind() {
1078  kind_ = 0;
1079 }
1081  // @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
1082  return static_cast< ::google::protobuf::Field_Kind >(kind_);
1083 }
1085 
1086  kind_ = value;
1087  // @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
1088 }
1089 
1090 // optional .google.protobuf.Field.Cardinality cardinality = 2;
1092  cardinality_ = 0;
1093 }
1095  // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
1096  return static_cast< ::google::protobuf::Field_Cardinality >(cardinality_);
1097 }
1099 
1100  cardinality_ = value;
1101  // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
1102 }
1103 
1104 // optional int32 number = 3;
1105 inline void Field::clear_number() {
1106  number_ = 0;
1107 }
1109  // @@protoc_insertion_point(field_get:google.protobuf.Field.number)
1110  return number_;
1111 }
1113 
1114  number_ = value;
1115  // @@protoc_insertion_point(field_set:google.protobuf.Field.number)
1116 }
1117 
1118 // optional string name = 4;
1119 inline void Field::clear_name() {
1120  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1121 }
1123  // @@protoc_insertion_point(field_get:google.protobuf.Field.name)
1124  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1125 }
1127 
1128  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1129  // @@protoc_insertion_point(field_set:google.protobuf.Field.name)
1130 }
1131 inline void Field::set_name(const char* value) {
1132 
1134  // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name)
1135 }
1136 inline void Field::set_name(const char* value, size_t size) {
1137 
1139  ::std::string(reinterpret_cast<const char*>(value), size));
1140  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name)
1141 }
1143 
1144  // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name)
1145  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1146 }
1148  // @@protoc_insertion_point(field_release:google.protobuf.Field.name)
1149 
1150  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1151 }
1153  if (name != NULL) {
1154 
1155  } else {
1156 
1157  }
1158  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1159  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name)
1160 }
1161 
1162 // optional string type_url = 6;
1163 inline void Field::clear_type_url() {
1164  type_url_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1165 }
1167  // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url)
1168  return type_url_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1169 }
1171 
1172  type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1173  // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
1174 }
1175 inline void Field::set_type_url(const char* value) {
1176 
1177  type_url_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1178  // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url)
1179 }
1180 inline void Field::set_type_url(const char* value, size_t size) {
1181 
1183  ::std::string(reinterpret_cast<const char*>(value), size));
1184  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url)
1185 }
1187 
1188  // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url)
1189  return type_url_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1190 }
1192  // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
1193 
1194  return type_url_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1195 }
1197  if (type_url != NULL) {
1198 
1199  } else {
1200 
1201  }
1202  type_url_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url);
1203  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url)
1204 }
1205 
1206 // optional int32 oneof_index = 7;
1208  oneof_index_ = 0;
1209 }
1211  // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index)
1212  return oneof_index_;
1213 }
1215 
1216  oneof_index_ = value;
1217  // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
1218 }
1219 
1220 // optional bool packed = 8;
1221 inline void Field::clear_packed() {
1222  packed_ = false;
1223 }
1224 inline bool Field::packed() const {
1225  // @@protoc_insertion_point(field_get:google.protobuf.Field.packed)
1226  return packed_;
1227 }
1228 inline void Field::set_packed(bool value) {
1229 
1230  packed_ = value;
1231  // @@protoc_insertion_point(field_set:google.protobuf.Field.packed)
1232 }
1233 
1234 // repeated .google.protobuf.Option options = 9;
1235 inline int Field::options_size() const {
1236  return options_.size();
1237 }
1238 inline void Field::clear_options() {
1239  options_.Clear();
1240 }
1241 inline const ::google::protobuf::Option& Field::options(int index) const {
1242  // @@protoc_insertion_point(field_get:google.protobuf.Field.options)
1243  return options_.Get(index);
1244 }
1245 inline ::google::protobuf::Option* Field::mutable_options(int index) {
1246  // @@protoc_insertion_point(field_mutable:google.protobuf.Field.options)
1247  return options_.Mutable(index);
1248 }
1249 inline ::google::protobuf::Option* Field::add_options() {
1250  // @@protoc_insertion_point(field_add:google.protobuf.Field.options)
1251  return options_.Add();
1252 }
1253 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
1255  // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options)
1256  return &options_;
1257 }
1258 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1260  // @@protoc_insertion_point(field_list:google.protobuf.Field.options)
1261  return options_;
1262 }
1263 
1264 // optional string json_name = 10;
1265 inline void Field::clear_json_name() {
1266  json_name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1267 }
1269  // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name)
1270  return json_name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1271 }
1273 
1274  json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1275  // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
1276 }
1277 inline void Field::set_json_name(const char* value) {
1278 
1279  json_name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1280  // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name)
1281 }
1282 inline void Field::set_json_name(const char* value, size_t size) {
1283 
1285  ::std::string(reinterpret_cast<const char*>(value), size));
1286  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name)
1287 }
1289 
1290  // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name)
1291  return json_name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1292 }
1294  // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
1295 
1296  return json_name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1297 }
1298 inline void Field::set_allocated_json_name(::std::string* json_name) {
1299  if (json_name != NULL) {
1300 
1301  } else {
1302 
1303  }
1304  json_name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name);
1305  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_name)
1306 }
1307 
1308 // optional string default_value = 11;
1310  default_value_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1311 }
1313  // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value)
1314  return default_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1315 }
1317 
1318  default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1319  // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
1320 }
1321 inline void Field::set_default_value(const char* value) {
1322 
1323  default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1324  // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value)
1325 }
1326 inline void Field::set_default_value(const char* value, size_t size) {
1327 
1328  default_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
1329  ::std::string(reinterpret_cast<const char*>(value), size));
1330  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_value)
1331 }
1333 
1334  // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value)
1335  return default_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1336 }
1338  // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
1339 
1340  return default_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1341 }
1342 inline void Field::set_allocated_default_value(::std::string* default_value) {
1343  if (default_value != NULL) {
1344 
1345  } else {
1346 
1347  }
1348  default_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value);
1349  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_value)
1350 }
1351 
1352 // -------------------------------------------------------------------
1353 
1354 // Enum
1355 
1356 // optional string name = 1;
1357 inline void Enum::clear_name() {
1358  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1359 }
1361  // @@protoc_insertion_point(field_get:google.protobuf.Enum.name)
1362  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1363 }
1365 
1366  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1367  // @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
1368 }
1369 inline void Enum::set_name(const char* value) {
1370 
1372  // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name)
1373 }
1374 inline void Enum::set_name(const char* value, size_t size) {
1375 
1377  ::std::string(reinterpret_cast<const char*>(value), size));
1378  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name)
1379 }
1381 
1382  // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name)
1383  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1384 }
1386  // @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
1387 
1388  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1389 }
1391  if (name != NULL) {
1392 
1393  } else {
1394 
1395  }
1396  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1397  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name)
1398 }
1399 
1400 // repeated .google.protobuf.EnumValue enumvalue = 2;
1401 inline int Enum::enumvalue_size() const {
1402  return enumvalue_.size();
1403 }
1404 inline void Enum::clear_enumvalue() {
1405  enumvalue_.Clear();
1406 }
1407 inline const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const {
1408  // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue)
1409  return enumvalue_.Get(index);
1410 }
1411 inline ::google::protobuf::EnumValue* Enum::mutable_enumvalue(int index) {
1412  // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.enumvalue)
1413  return enumvalue_.Mutable(index);
1414 }
1415 inline ::google::protobuf::EnumValue* Enum::add_enumvalue() {
1416  // @@protoc_insertion_point(field_add:google.protobuf.Enum.enumvalue)
1417  return enumvalue_.Add();
1418 }
1419 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >*
1421  // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.enumvalue)
1422  return &enumvalue_;
1423 }
1424 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >&
1426  // @@protoc_insertion_point(field_list:google.protobuf.Enum.enumvalue)
1427  return enumvalue_;
1428 }
1429 
1430 // repeated .google.protobuf.Option options = 3;
1431 inline int Enum::options_size() const {
1432  return options_.size();
1433 }
1434 inline void Enum::clear_options() {
1435  options_.Clear();
1436 }
1437 inline const ::google::protobuf::Option& Enum::options(int index) const {
1438  // @@protoc_insertion_point(field_get:google.protobuf.Enum.options)
1439  return options_.Get(index);
1440 }
1441 inline ::google::protobuf::Option* Enum::mutable_options(int index) {
1442  // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.options)
1443  return options_.Mutable(index);
1444 }
1445 inline ::google::protobuf::Option* Enum::add_options() {
1446  // @@protoc_insertion_point(field_add:google.protobuf.Enum.options)
1447  return options_.Add();
1448 }
1449 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
1451  // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options)
1452  return &options_;
1453 }
1454 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1455 Enum::options() const {
1456  // @@protoc_insertion_point(field_list:google.protobuf.Enum.options)
1457  return options_;
1458 }
1459 
1460 // optional .google.protobuf.SourceContext source_context = 4;
1461 inline bool Enum::has_source_context() const {
1462  return !_is_default_instance_ && source_context_ != NULL;
1463 }
1465  if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
1466  source_context_ = NULL;
1467 }
1468 inline const ::google::protobuf::SourceContext& Enum::source_context() const {
1469  // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context)
1470  return source_context_ != NULL ? *source_context_ : *default_instance_->source_context_;
1471 }
1472 inline ::google::protobuf::SourceContext* Enum::mutable_source_context() {
1473 
1474  if (source_context_ == NULL) {
1475  source_context_ = new ::google::protobuf::SourceContext;
1476  }
1477  // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context)
1478  return source_context_;
1479 }
1480 inline ::google::protobuf::SourceContext* Enum::release_source_context() {
1481  // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
1482 
1483  ::google::protobuf::SourceContext* temp = source_context_;
1484  source_context_ = NULL;
1485  return temp;
1486 }
1488  delete source_context_;
1489  source_context_ = source_context;
1490  if (source_context) {
1491 
1492  } else {
1493 
1494  }
1495  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_context)
1496 }
1497 
1498 // optional .google.protobuf.Syntax syntax = 5;
1499 inline void Enum::clear_syntax() {
1500  syntax_ = 0;
1501 }
1503  // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
1504  return static_cast< ::google::protobuf::Syntax >(syntax_);
1505 }
1507 
1508  syntax_ = value;
1509  // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
1510 }
1511 
1512 // -------------------------------------------------------------------
1513 
1514 // EnumValue
1515 
1516 // optional string name = 1;
1517 inline void EnumValue::clear_name() {
1518  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1519 }
1521  // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name)
1522  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1523 }
1525 
1526  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1527  // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
1528 }
1529 inline void EnumValue::set_name(const char* value) {
1530 
1532  // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name)
1533 }
1534 inline void EnumValue::set_name(const char* value, size_t size) {
1535 
1537  ::std::string(reinterpret_cast<const char*>(value), size));
1538  // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name)
1539 }
1541 
1542  // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name)
1543  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1544 }
1546  // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
1547 
1548  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1549 }
1551  if (name != NULL) {
1552 
1553  } else {
1554 
1555  }
1556  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1557  // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name)
1558 }
1559 
1560 // optional int32 number = 2;
1562  number_ = 0;
1563 }
1565  // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number)
1566  return number_;
1567 }
1569 
1570  number_ = value;
1571  // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number)
1572 }
1573 
1574 // repeated .google.protobuf.Option options = 3;
1575 inline int EnumValue::options_size() const {
1576  return options_.size();
1577 }
1579  options_.Clear();
1580 }
1581 inline const ::google::protobuf::Option& EnumValue::options(int index) const {
1582  // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.options)
1583  return options_.Get(index);
1584 }
1585 inline ::google::protobuf::Option* EnumValue::mutable_options(int index) {
1586  // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.options)
1587  return options_.Mutable(index);
1588 }
1589 inline ::google::protobuf::Option* EnumValue::add_options() {
1590  // @@protoc_insertion_point(field_add:google.protobuf.EnumValue.options)
1591  return options_.Add();
1592 }
1593 inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
1595  // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValue.options)
1596  return &options_;
1597 }
1598 inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
1600  // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options)
1601  return options_;
1602 }
1603 
1604 // -------------------------------------------------------------------
1605 
1606 // Option
1607 
1608 // optional string name = 1;
1609 inline void Option::clear_name() {
1610  name_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1611 }
1613  // @@protoc_insertion_point(field_get:google.protobuf.Option.name)
1614  return name_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1615 }
1617 
1618  name_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
1619  // @@protoc_insertion_point(field_set:google.protobuf.Option.name)
1620 }
1621 inline void Option::set_name(const char* value) {
1622 
1624  // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name)
1625 }
1626 inline void Option::set_name(const char* value, size_t size) {
1627 
1629  ::std::string(reinterpret_cast<const char*>(value), size));
1630  // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name)
1631 }
1633 
1634  // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name)
1635  return name_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1636 }
1638  // @@protoc_insertion_point(field_release:google.protobuf.Option.name)
1639 
1640  return name_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1641 }
1643  if (name != NULL) {
1644 
1645  } else {
1646 
1647  }
1648  name_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name);
1649  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name)
1650 }
1651 
1652 // optional .google.protobuf.Any value = 2;
1653 inline bool Option::has_value() const {
1654  return !_is_default_instance_ && value_ != NULL;
1655 }
1656 inline void Option::clear_value() {
1657  if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_;
1658  value_ = NULL;
1659 }
1660 inline const ::google::protobuf::Any& Option::value() const {
1661  // @@protoc_insertion_point(field_get:google.protobuf.Option.value)
1662  return value_ != NULL ? *value_ : *default_instance_->value_;
1663 }
1664 inline ::google::protobuf::Any* Option::mutable_value() {
1665 
1666  if (value_ == NULL) {
1667  value_ = new ::google::protobuf::Any;
1668  }
1669  // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value)
1670  return value_;
1671 }
1672 inline ::google::protobuf::Any* Option::release_value() {
1673  // @@protoc_insertion_point(field_release:google.protobuf.Option.value)
1674 
1675  ::google::protobuf::Any* temp = value_;
1676  value_ = NULL;
1677  return temp;
1678 }
1680  delete value_;
1681  value_ = value;
1682  if (value) {
1683 
1684  } else {
1685 
1686  }
1687  // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value)
1688 }
1689 
1690 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
1691 // -------------------------------------------------------------------
1692 
1693 // -------------------------------------------------------------------
1694 
1695 // -------------------------------------------------------------------
1696 
1697 // -------------------------------------------------------------------
1698 
1699 
1700 // @@protoc_insertion_point(namespace_scope)
1701 
1702 } // namespace protobuf
1703 } // namespace google
1704 
1705 #ifndef SWIG
1706 namespace google {
1707 namespace protobuf {
1708 
1710 template <>
1711 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::Field_Kind>() {
1713 }
1715 template <>
1716 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::Field_Cardinality>() {
1718 }
1720 template <>
1721 inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::Syntax>() {
1723 }
1724 
1725 } // namespace protobuf
1726 } // namespace google
1727 #endif // SWIG
1728 
1729 // @@protoc_insertion_point(global_scope)
1730 
1731 #endif // PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED
::std::string * mutable_json_name()
Definition: type.pb.h:1288
const ::std::string & default_value() const
Definition: type.pb.h:1312
bool has_value() const
Definition: type.pb.h:1653
Definition: descriptor.h:801
void set_name(const ::std::string &value)
Definition: type.pb.h:1364
Type & operator=(const Type &from)
Definition: type.pb.h:140
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > & options() const
Definition: type.pb.h:1015
void protobuf_AssignDesc_google_2fprotobuf_2ftype_2eproto()
Definition: type.pb.cc:47
void clear_kind()
Definition: type.pb.h:1077
::google::protobuf::int32 oneof_index() const
Definition: type.pb.h:1210
const Field_Cardinality Field_Cardinality_Cardinality_MIN
Definition: type.pb.h:96
int GetCachedSize() const
Definition: type.pb.h:168
Definition: message.h:179
EGLStreamKHR EGLint EGLint EGLint size
Definition: eglext.h:984
::google::protobuf::Option * add_options()
Definition: type.pb.h:1589
::google::protobuf::SourceContext * mutable_source_context()
Definition: type.pb.h:1472
void clear_type_url()
Definition: type.pb.h:1163
::google::protobuf::Option * add_options()
Definition: type.pb.h:1005
::std::string * mutable_default_value()
Definition: type.pb.h:1332
Definition: type.pb.h:111
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > * mutable_options()
Definition: type.pb.h:1254
void set_allocated_name(::std::string *name)
Definition: type.pb.h:1642
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > * mutable_options()
Definition: type.pb.h:1594
#define kint32max
Definition: main.cpp:12
::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue > * mutable_enumvalue()
Definition: type.pb.h:1420
bool Syntax_Parse(const ::std::string &name, Syntax *value)
Definition: type.pb.h:126
int GetCachedSize() const
Definition: type.pb.h:797
const ::google::protobuf::Any & value() const
Definition: type.pb.h:1660
const Field_Cardinality Field_Cardinality_Cardinality_MAX
Definition: type.pb.h:97
void clear_name()
Definition: type.pb.h:862
void clear_packed()
Definition: type.pb.h:1221
::std::string * release_name()
Definition: type.pb.h:1637
std::string kind
Definition: peerconnection_jni.cc:2054
void clear_default_value()
Definition: type.pb.h:1309
Field & operator=(const Field &from)
Definition: type.pb.h:283
EnumValue & operator=(const EnumValue &from)
Definition: type.pb.h:666
::google::protobuf::EnumValue * add_enumvalue()
Definition: type.pb.h:1415
string * type_url
Definition: conformance_cpp.cc:61
options
Definition: CodeGeneratorReplayInputs.py:1046
const ::google::protobuf::EnumDescriptor * Field_Cardinality_descriptor()
Definition: type.pb.cc:1007
static const ::std::string & Kind_Name(Kind value)
Definition: type.pb.h:382
::google::protobuf::Syntax syntax() const
Definition: type.pb.h:1502
::std::string * mutable_name()
Definition: type.pb.h:885
void protobuf_ShutdownFile_google_2fprotobuf_2ftype_2eproto()
Definition: type.pb.cc:178
void set_name(const ::std::string &value)
Definition: type.pb.h:1126
::std::string * release_default_value()
Definition: type.pb.h:1337
struct Descriptor Descriptor
Definition: protobuf.h:23
::std::string * release_name()
Definition: type.pb.h:890
const Descriptor * descriptor
Definition: descriptor.cc:271
Field * New() const
Definition: type.pb.h:295
void set_allocated_name(::std::string *name)
Definition: type.pb.h:895
uint8_t uint8
Definition: port.h:133
Definition: type.pb.h:533
Definition: type.pb.h:659
const ::std::string & json_name() const
Definition: type.pb.h:1268
::google::protobuf::Any * mutable_value()
Definition: type.pb.h:1664
int GetCachedSize() const
Definition: type.pb.h:311
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue > & enumvalue() const
Definition: type.pb.h:1425
void set_name(const ::std::string &value)
Definition: type.pb.h:1524
const ::google::protobuf::EnumDescriptor * Field_Kind_descriptor()
Definition: type.pb.cc:952
::google::protobuf::Field_Kind kind() const
Definition: type.pb.h:1080
void clear_number()
Definition: type.pb.h:1105
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > * mutable_options()
Definition: type.pb.h:1010
LIBPROTOBUF_EXPORTconst ::std::string & GetEmptyStringAlreadyInited()
Definition: generated_message_util.h:85
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > & options() const
Definition: type.pb.h:1455
Definition: arenastring.h:56
void clear_source_context()
Definition: type.pb.h:1464
Message
Definition: peerconnection_unittest.cc:105
Definition: command_line_interface.h:56
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field > & fields() const
Definition: type.pb.h:930
void clear_fields()
Definition: type.pb.h:909
void set_oneof_index(::google::protobuf::int32 value)
Definition: type.pb.h:1214
bool has_source_context() const
Definition: type.pb.h:1021
bool Field_Cardinality_IsValid(int value)
Definition: type.pb.cc:1011
EnumValue * New() const
Definition: type.pb.h:678
Definition: message.h:164
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > & options() const
Definition: type.pb.h:1599
void set_type_url(const ::std::string &value)
Definition: type.pb.h:1170
const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > & options() const
Definition: type.pb.h:1259
static bool Kind_Parse(const ::std::string &name, Kind *value)
Definition: type.pb.h:385
int options_size() const
Definition: type.pb.h:1235
#define output
Definition: wire_format_lite.h:418
void clear_cardinality()
Definition: type.pb.h:1091
void set_number(::google::protobuf::int32 value)
Definition: type.pb.h:1568
void set_packed(bool value)
Definition: type.pb.h:1228
void set_default_value(const ::std::string &value)
Definition: type.pb.h:1316
int fields_size() const
Definition: type.pb.h:906
const ::std::string & Syntax_Name(Syntax value)
Definition: type.pb.h:122
const Field_Kind Field_Kind_Kind_MIN
Definition: type.pb.h:73
void set_allocated_name(::std::string *name)
Definition: type.pb.h:1390
void set_syntax(::google::protobuf::Syntax value)
Definition: type.pb.h:1506
const int Syntax_ARRAYSIZE
Definition: type.pb.h:119
void clear_source_context()
Definition: type.pb.h:1024
::std::string * release_name()
Definition: type.pb.h:1385
::std::string * release_json_name()
Definition: type.pb.h:1293
const FieldDescriptor const OneofDescriptor value
Definition: descriptor.h:1717
int32_t int32
Definition: port.h:130
Definition: any.pb.h:45
Definition: template_util.h:77
void set_allocated_source_context(::google::protobuf::SourceContext *source_context)
Definition: type.pb.h:1047
Definition: source_context.pb.h:44
int enumvalue_size() const
Definition: type.pb.h:1401
Field_Kind Kind
Definition: type.pb.h:330
void clear_options()
Definition: type.pb.h:994
void set_oneofs(int index, const ::std::string &value)
Definition: type.pb.h:950
IsInitialized
Definition: python_message.py:1169
::google::protobuf::int32 number() const
Definition: type.pb.h:1108
static bool Cardinality_IsValid(int value)
Definition: type.pb.h:399
const ::std::string & name() const
Definition: type.pb.h:1520
bool Field_Cardinality_Parse(const ::std::string &name, Field_Cardinality *value)
Definition: type.pb.h:105
GLuint index
Definition: gl2.h:383
EGLAttrib * value
Definition: eglext.h:120
void clear_json_name()
Definition: type.pb.h:1265
const ::std::string & type_url() const
Definition: type.pb.h:1166
const ::google::protobuf::RepeatedPtrField< ::std::string > & oneofs() const
Definition: type.pb.h:980
int options_size() const
Definition: type.pb.h:1575
int options_size() const
Definition: type.pb.h:991
void clear_syntax()
Definition: type.pb.h:1499
bool Syntax_IsValid(int value)
Definition: type.pb.cc:264
void clear_name()
Definition: type.pb.h:1517
Enum & operator=(const Enum &from)
Definition: type.pb.h:540
Field_Cardinality Cardinality
Definition: type.pb.h:390
void clear_syntax()
Definition: type.pb.h:1059
::google::protobuf::SourceContext * release_source_context()
Definition: type.pb.h:1480
static bool Kind_IsValid(int value)
Definition: type.pb.h:369
Definition: generated_enum_util.h:41
void clear_oneof_index()
Definition: type.pb.h:1207
void clear_options()
Definition: type.pb.h:1578
EGLImageKHR EGLint * name
Definition: eglext.h:851
const AtomicString & number()
Definition: InputTypeNames.cpp:100
void set_allocated_json_name(::std::string *json_name)
Definition: type.pb.h:1298
Syntax
Definition: type.pb.h:110
const Syntax Syntax_MAX
Definition: type.pb.h:118
Definition: __init__.py:1
#define kint32min
Definition: main.cpp:13
::std::string * release_name()
Definition: type.pb.h:1147
const ::std::string & name() const
Definition: type.pb.h:865
void set_allocated_default_value(::std::string *default_value)
Definition: type.pb.h:1342
const Field_Kind Field_Kind_Kind_MAX
Definition: type.pb.h:74
::google::protobuf::RepeatedPtrField< ::std::string > * mutable_oneofs()
Definition: type.pb.h:985
void clear_name()
Definition: type.pb.h:1357
bool Field_Kind_IsValid(int value)
Definition: type.pb.cc:956
Definition: type.pb.h:276
void set_kind(::google::protobuf::Field_Kind value)
Definition: type.pb.h:1084
void clear_options()
Definition: type.pb.h:1238
The field type used for enum fields.
bool has_source_context() const
Definition: type.pb.h:1461
::std::string * mutable_name()
Definition: type.pb.h:1632
::google::protobuf::Any * release_value()
Definition: type.pb.h:1672
Definition: type.pb.h:762
Definition: type.pb.h:133
Definition: arena.h:218
const ::std::string & name() const
Definition: type.pb.h:1122
void set_allocated_name(::std::string *name)
Definition: type.pb.h:1550
void set_allocated_name(::std::string *name)
Definition: type.pb.h:1152
static const ::google::protobuf::EnumDescriptor * Cardinality_descriptor()
Definition: type.pb.h:409
const ::std::string & Field_Cardinality_Name(Field_Cardinality value)
Definition: type.pb.h:101
::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > * mutable_options()
Definition: type.pb.h:1450
::std::string * add_oneofs()
Definition: type.pb.h:963
void set_allocated_source_context(::google::protobuf::SourceContext *source_context)
Definition: type.pb.h:1487
void set_allocated_type_url(::std::string *type_url)
Definition: type.pb.h:1196
void clear_enumvalue()
Definition: type.pb.h:1404
GLsizei const GLchar *const * string
Definition: gl2.h:479
::google::protobuf::int32 number() const
Definition: type.pb.h:1564
const ::std::string & Field_Kind_Name(Field_Kind value)
Definition: type.pb.h:78
const int Field_Cardinality_Cardinality_ARRAYSIZE
Definition: type.pb.h:98
bool Field_Kind_Parse(const ::std::string &name, Field_Kind *value)
Definition: type.pb.h:82
const Element & Get(int index) const
Definition: repeated_field.h:1828
static const ::google::protobuf::EnumDescriptor * Kind_descriptor()
Definition: type.pb.h:379
Type * New() const
Definition: type.pb.h:152
::google::protobuf::Option * add_options()
Definition: type.pb.h:1445
void clear_name()
Definition: type.pb.h:1119
const ::std::string & name() const
Definition: type.pb.h:1360
const ::google::protobuf::SourceContext & source_context() const
Definition: type.pb.h:1468
int GetCachedSize() const
Definition: type.pb.h:568
Definition: type.pb.h:112
struct EnumDescriptor EnumDescriptor
Definition: protobuf.h:26
bool packed() const
Definition: type.pb.h:1224
::google::protobuf::RepeatedPtrField< ::google::protobuf::Field > * mutable_fields()
Definition: type.pb.h:925
int oneofs_size() const
Definition: type.pb.h:936
Option * New() const
Definition: type.pb.h:781
::google::protobuf::SourceContext * release_source_context()
Definition: type.pb.h:1040
#define NULL
Definition: common_types.h:41
void clear_oneofs()
Definition: type.pb.h:939
::std::string * mutable_name()
Definition: type.pb.h:1380
Element * Mutable(int index)
Definition: repeated_field.h:1834
::google::protobuf::SourceContext * mutable_source_context()
Definition: type.pb.h:1032
void clear_name()
Definition: type.pb.h:1609
void set_syntax(::google::protobuf::Syntax value)
Definition: type.pb.h:1066
void set_cardinality(::google::protobuf::Field_Cardinality value)
Definition: type.pb.h:1098
#define LIBPROTOBUF_EXPORT
Definition: port.h:97
const int Field_Kind_Kind_ARRAYSIZE
Definition: type.pb.h:75
::std::string * mutable_type_url()
Definition: type.pb.h:1186
::std::string * release_name()
Definition: type.pb.h:1545
static bool Cardinality_Parse(const ::std::string &name, Cardinality *value)
Definition: type.pb.h:415
::google::protobuf::Option * add_options()
Definition: type.pb.h:1249
Definition: gflags_completions.h:115
::google::protobuf::Field * add_fields()
Definition: type.pb.h:920
::std::string * release_type_url()
Definition: type.pb.h:1191
GPBFileSyntax syntax_
Definition: GPBDescriptor.m:250
string input
Definition: tokenizer_unittest.cc:198
LIBPROTOBUF_EXPORT const string & NameOfEnum(const EnumDescriptor *descriptor, int value)
Definition: generated_message_reflection.cc:70
ByteSize
Definition: python_message.py:1040
::google::protobuf::Field_Cardinality cardinality() const
Definition: type.pb.h:1094
::google::protobuf::Syntax syntax() const
Definition: type.pb.h:1062
static const ::std::string & Cardinality_Name(Cardinality value)
Definition: type.pb.h:412
Definition: coded_stream.h:665
void set_number(::google::protobuf::int32 value)
Definition: type.pb.h:1112
const ::std::string & name() const
Definition: type.pb.h:1612
Option & operator=(const Option &from)
Definition: type.pb.h:769
void set_allocated_value(::google::protobuf::Any *value)
Definition: type.pb.h:1679
::std::string * mutable_name()
Definition: type.pb.h:1540
void set_json_name(const ::std::string &value)
Definition: type.pb.h:1272
::std::string * mutable_name()
Definition: type.pb.h:1142
Type
Type of JSON value.
Definition: rapidjson.h:616
void set_name(const ::std::string &value)
Definition: type.pb.h:869
Definition: coded_stream.h:159
void clear_value()
Definition: type.pb.h:1656
Field_Kind
Definition: type.pb.h:49
Field_Cardinality
Definition: type.pb.h:87
int options_size() const
Definition: type.pb.h:1431
temp
Definition: parse_delay_file.m:64
const ::google::protobuf::SourceContext & source_context() const
Definition: type.pb.h:1028
void protobuf_AddDesc_google_2fprotobuf_2ftype_2eproto()
Definition: type.pb.cc:191
void clear_options()
Definition: type.pb.h:1434
MergeFrom
Definition: python_message.py:1259
void set_name(const ::std::string &value)
Definition: type.pb.h:1616
int32_t int32
Definition: angle_config.h:27
int GetCachedSize() const
Definition: type.pb.h:694
const ::google::protobuf::EnumDescriptor * Syntax_descriptor()
Definition: type.pb.cc:260
const Syntax Syntax_MIN
Definition: type.pb.h:117
void clear_number()
Definition: type.pb.h:1561
Enum * New() const
Definition: type.pb.h:552