1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: google/protobuf/type.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftype_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftype_2eproto
6
7 #include <limits>
8 #include <string>
9
10 #include <google/protobuf/port_def.inc>
11 #if PROTOBUF_VERSION < 3013000
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 3013000 < 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/port_undef.inc>
23 #include <google/protobuf/io/coded_stream.h>
24 #include <google/protobuf/arena.h>
25 #include <google/protobuf/arenastring.h>
26 #include <google/protobuf/generated_message_table_driven.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/inlined_string_field.h>
29 #include <google/protobuf/metadata_lite.h>
30 #include <google/protobuf/generated_message_reflection.h>
31 #include <google/protobuf/message.h>
32 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
33 #include <google/protobuf/extension_set.h> // IWYU pragma: export
34 #include <google/protobuf/generated_enum_reflection.h>
35 #include <google/protobuf/unknown_field_set.h>
36 #include <google/protobuf/any.pb.h>
37 #include <google/protobuf/source_context.pb.h>
38 // @@protoc_insertion_point(includes)
39 #include <google/protobuf/port_def.inc>
40 #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2ftype_2eproto PROTOBUF_EXPORT
41 PROTOBUF_NAMESPACE_OPEN
42 namespace internal {
43 class AnyMetadata;
44 } // namespace internal
45 PROTOBUF_NAMESPACE_CLOSE
46
47 // Internal implementation detail -- do not use these members.
48 struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2ftype_2eproto {
49 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
50 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
52 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[5]
54 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
56 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
57 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
58 };
59 extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2ftype_2eproto;
60 PROTOBUF_NAMESPACE_OPEN
61 class Enum;
62 class EnumDefaultTypeInternal;
63 PROTOBUF_EXPORT extern EnumDefaultTypeInternal _Enum_default_instance_;
64 class EnumValue;
65 class EnumValueDefaultTypeInternal;
66 PROTOBUF_EXPORT extern EnumValueDefaultTypeInternal _EnumValue_default_instance_;
67 class Field;
68 class FieldDefaultTypeInternal;
69 PROTOBUF_EXPORT extern FieldDefaultTypeInternal _Field_default_instance_;
70 class Option;
71 class OptionDefaultTypeInternal;
72 PROTOBUF_EXPORT extern OptionDefaultTypeInternal _Option_default_instance_;
73 class Type;
74 class TypeDefaultTypeInternal;
75 PROTOBUF_EXPORT extern TypeDefaultTypeInternal _Type_default_instance_;
76 PROTOBUF_NAMESPACE_CLOSE
77 PROTOBUF_NAMESPACE_OPEN
78 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Enum* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Enum>(Arena*);
79 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::EnumValue* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::EnumValue>(Arena*);
80 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Field* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Field>(Arena*);
81 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Option* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Option>(Arena*);
82 template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Type* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Type>(Arena*);
83 PROTOBUF_NAMESPACE_CLOSE
84 PROTOBUF_NAMESPACE_OPEN
85
86 enum Field_Kind : int {
87 Field_Kind_TYPE_UNKNOWN = 0,
88 Field_Kind_TYPE_DOUBLE = 1,
89 Field_Kind_TYPE_FLOAT = 2,
90 Field_Kind_TYPE_INT64 = 3,
91 Field_Kind_TYPE_UINT64 = 4,
92 Field_Kind_TYPE_INT32 = 5,
93 Field_Kind_TYPE_FIXED64 = 6,
94 Field_Kind_TYPE_FIXED32 = 7,
95 Field_Kind_TYPE_BOOL = 8,
96 Field_Kind_TYPE_STRING = 9,
97 Field_Kind_TYPE_GROUP = 10,
98 Field_Kind_TYPE_MESSAGE = 11,
99 Field_Kind_TYPE_BYTES = 12,
100 Field_Kind_TYPE_UINT32 = 13,
101 Field_Kind_TYPE_ENUM = 14,
102 Field_Kind_TYPE_SFIXED32 = 15,
103 Field_Kind_TYPE_SFIXED64 = 16,
104 Field_Kind_TYPE_SINT32 = 17,
105 Field_Kind_TYPE_SINT64 = 18,
106 Field_Kind_Field_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
107 Field_Kind_Field_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
108 };
109 PROTOBUF_EXPORT bool Field_Kind_IsValid(int value);
110 constexpr Field_Kind Field_Kind_Kind_MIN = Field_Kind_TYPE_UNKNOWN;
111 constexpr Field_Kind Field_Kind_Kind_MAX = Field_Kind_TYPE_SINT64;
112 constexpr int Field_Kind_Kind_ARRAYSIZE = Field_Kind_Kind_MAX + 1;
113
114 PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Kind_descriptor();
115 template<typename T>
Field_Kind_Name(T enum_t_value)116 inline const std::string& Field_Kind_Name(T enum_t_value) {
117 static_assert(::std::is_same<T, Field_Kind>::value ||
118 ::std::is_integral<T>::value,
119 "Incorrect type passed to function Field_Kind_Name.");
120 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
121 Field_Kind_descriptor(), enum_t_value);
122 }
Field_Kind_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Field_Kind * value)123 inline bool Field_Kind_Parse(
124 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Field_Kind* value) {
125 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Field_Kind>(
126 Field_Kind_descriptor(), name, value);
127 }
128 enum Field_Cardinality : int {
129 Field_Cardinality_CARDINALITY_UNKNOWN = 0,
130 Field_Cardinality_CARDINALITY_OPTIONAL = 1,
131 Field_Cardinality_CARDINALITY_REQUIRED = 2,
132 Field_Cardinality_CARDINALITY_REPEATED = 3,
133 Field_Cardinality_Field_Cardinality_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
134 Field_Cardinality_Field_Cardinality_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
135 };
136 PROTOBUF_EXPORT bool Field_Cardinality_IsValid(int value);
137 constexpr Field_Cardinality Field_Cardinality_Cardinality_MIN = Field_Cardinality_CARDINALITY_UNKNOWN;
138 constexpr Field_Cardinality Field_Cardinality_Cardinality_MAX = Field_Cardinality_CARDINALITY_REPEATED;
139 constexpr int Field_Cardinality_Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_MAX + 1;
140
141 PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Field_Cardinality_descriptor();
142 template<typename T>
Field_Cardinality_Name(T enum_t_value)143 inline const std::string& Field_Cardinality_Name(T enum_t_value) {
144 static_assert(::std::is_same<T, Field_Cardinality>::value ||
145 ::std::is_integral<T>::value,
146 "Incorrect type passed to function Field_Cardinality_Name.");
147 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
148 Field_Cardinality_descriptor(), enum_t_value);
149 }
Field_Cardinality_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Field_Cardinality * value)150 inline bool Field_Cardinality_Parse(
151 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Field_Cardinality* value) {
152 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Field_Cardinality>(
153 Field_Cardinality_descriptor(), name, value);
154 }
155 enum Syntax : int {
156 SYNTAX_PROTO2 = 0,
157 SYNTAX_PROTO3 = 1,
158 Syntax_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(),
159 Syntax_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max()
160 };
161 PROTOBUF_EXPORT bool Syntax_IsValid(int value);
162 constexpr Syntax Syntax_MIN = SYNTAX_PROTO2;
163 constexpr Syntax Syntax_MAX = SYNTAX_PROTO3;
164 constexpr int Syntax_ARRAYSIZE = Syntax_MAX + 1;
165
166 PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Syntax_descriptor();
167 template<typename T>
Syntax_Name(T enum_t_value)168 inline const std::string& Syntax_Name(T enum_t_value) {
169 static_assert(::std::is_same<T, Syntax>::value ||
170 ::std::is_integral<T>::value,
171 "Incorrect type passed to function Syntax_Name.");
172 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
173 Syntax_descriptor(), enum_t_value);
174 }
Syntax_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Syntax * value)175 inline bool Syntax_Parse(
176 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Syntax* value) {
177 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Syntax>(
178 Syntax_descriptor(), name, value);
179 }
180 // ===================================================================
181
182 class PROTOBUF_EXPORT Type PROTOBUF_FINAL :
183 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Type) */ {
184 public:
Type()185 inline Type() : Type(nullptr) {}
186 virtual ~Type();
187
188 Type(const Type& from);
Type(Type && from)189 Type(Type&& from) noexcept
190 : Type() {
191 *this = ::std::move(from);
192 }
193
194 inline Type& operator=(const Type& from) {
195 CopyFrom(from);
196 return *this;
197 }
198 inline Type& operator=(Type&& from) noexcept {
199 if (GetArena() == from.GetArena()) {
200 if (this != &from) InternalSwap(&from);
201 } else {
202 CopyFrom(from);
203 }
204 return *this;
205 }
206
descriptor()207 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
208 return GetDescriptor();
209 }
GetDescriptor()210 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
211 return GetMetadataStatic().descriptor;
212 }
GetReflection()213 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
214 return GetMetadataStatic().reflection;
215 }
216 static const Type& default_instance();
217
218 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()219 static inline const Type* internal_default_instance() {
220 return reinterpret_cast<const Type*>(
221 &_Type_default_instance_);
222 }
223 static constexpr int kIndexInFileMessages =
224 0;
225
swap(Type & a,Type & b)226 friend void swap(Type& a, Type& b) {
227 a.Swap(&b);
228 }
Swap(Type * other)229 inline void Swap(Type* other) {
230 if (other == this) return;
231 if (GetArena() == other->GetArena()) {
232 InternalSwap(other);
233 } else {
234 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
235 }
236 }
UnsafeArenaSwap(Type * other)237 void UnsafeArenaSwap(Type* other) {
238 if (other == this) return;
239 GOOGLE_DCHECK(GetArena() == other->GetArena());
240 InternalSwap(other);
241 }
242
243 // implements Message ----------------------------------------------
244
New()245 inline Type* New() const final {
246 return CreateMaybeMessage<Type>(nullptr);
247 }
248
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)249 Type* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
250 return CreateMaybeMessage<Type>(arena);
251 }
252 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
253 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
254 void CopyFrom(const Type& from);
255 void MergeFrom(const Type& from);
256 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
257 bool IsInitialized() const final;
258
259 size_t ByteSizeLong() const final;
260 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
261 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
262 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()263 int GetCachedSize() const final { return _cached_size_.Get(); }
264
265 private:
266 inline void SharedCtor();
267 inline void SharedDtor();
268 void SetCachedSize(int size) const final;
269 void InternalSwap(Type* other);
270 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()271 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
272 return "google.protobuf.Type";
273 }
274 protected:
275 explicit Type(::PROTOBUF_NAMESPACE_ID::Arena* arena);
276 private:
277 static void ArenaDtor(void* object);
278 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
279 public:
280
281 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
282 private:
GetMetadataStatic()283 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
284 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ftype_2eproto);
285 return ::descriptor_table_google_2fprotobuf_2ftype_2eproto.file_level_metadata[kIndexInFileMessages];
286 }
287
288 public:
289
290 // nested types ----------------------------------------------------
291
292 // accessors -------------------------------------------------------
293
294 enum : int {
295 kFieldsFieldNumber = 2,
296 kOneofsFieldNumber = 3,
297 kOptionsFieldNumber = 4,
298 kNameFieldNumber = 1,
299 kSourceContextFieldNumber = 5,
300 kSyntaxFieldNumber = 6,
301 };
302 // repeated .google.protobuf.Field fields = 2;
303 int fields_size() const;
304 private:
305 int _internal_fields_size() const;
306 public:
307 void clear_fields();
308 PROTOBUF_NAMESPACE_ID::Field* mutable_fields(int index);
309 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Field >*
310 mutable_fields();
311 private:
312 const PROTOBUF_NAMESPACE_ID::Field& _internal_fields(int index) const;
313 PROTOBUF_NAMESPACE_ID::Field* _internal_add_fields();
314 public:
315 const PROTOBUF_NAMESPACE_ID::Field& fields(int index) const;
316 PROTOBUF_NAMESPACE_ID::Field* add_fields();
317 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Field >&
318 fields() const;
319
320 // repeated string oneofs = 3;
321 int oneofs_size() const;
322 private:
323 int _internal_oneofs_size() const;
324 public:
325 void clear_oneofs();
326 const std::string& oneofs(int index) const;
327 std::string* mutable_oneofs(int index);
328 void set_oneofs(int index, const std::string& value);
329 void set_oneofs(int index, std::string&& value);
330 void set_oneofs(int index, const char* value);
331 void set_oneofs(int index, const char* value, size_t size);
332 std::string* add_oneofs();
333 void add_oneofs(const std::string& value);
334 void add_oneofs(std::string&& value);
335 void add_oneofs(const char* value);
336 void add_oneofs(const char* value, size_t size);
337 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& oneofs() const;
338 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_oneofs();
339 private:
340 const std::string& _internal_oneofs(int index) const;
341 std::string* _internal_add_oneofs();
342 public:
343
344 // repeated .google.protobuf.Option options = 4;
345 int options_size() const;
346 private:
347 int _internal_options_size() const;
348 public:
349 void clear_options();
350 PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index);
351 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
352 mutable_options();
353 private:
354 const PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const;
355 PROTOBUF_NAMESPACE_ID::Option* _internal_add_options();
356 public:
357 const PROTOBUF_NAMESPACE_ID::Option& options(int index) const;
358 PROTOBUF_NAMESPACE_ID::Option* add_options();
359 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
360 options() const;
361
362 // string name = 1;
363 void clear_name();
364 const std::string& name() const;
365 void set_name(const std::string& value);
366 void set_name(std::string&& value);
367 void set_name(const char* value);
368 void set_name(const char* value, size_t size);
369 std::string* mutable_name();
370 std::string* release_name();
371 void set_allocated_name(std::string* name);
372 private:
373 const std::string& _internal_name() const;
374 void _internal_set_name(const std::string& value);
375 std::string* _internal_mutable_name();
376 public:
377
378 // .google.protobuf.SourceContext source_context = 5;
379 bool has_source_context() const;
380 private:
381 bool _internal_has_source_context() const;
382 public:
383 void clear_source_context();
384 const PROTOBUF_NAMESPACE_ID::SourceContext& source_context() const;
385 PROTOBUF_NAMESPACE_ID::SourceContext* release_source_context();
386 PROTOBUF_NAMESPACE_ID::SourceContext* mutable_source_context();
387 void set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext* source_context);
388 private:
389 const PROTOBUF_NAMESPACE_ID::SourceContext& _internal_source_context() const;
390 PROTOBUF_NAMESPACE_ID::SourceContext* _internal_mutable_source_context();
391 public:
392 void unsafe_arena_set_allocated_source_context(
393 PROTOBUF_NAMESPACE_ID::SourceContext* source_context);
394 PROTOBUF_NAMESPACE_ID::SourceContext* unsafe_arena_release_source_context();
395
396 // .google.protobuf.Syntax syntax = 6;
397 void clear_syntax();
398 PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
399 void set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value);
400 private:
401 PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
402 void _internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value);
403 public:
404
405 // @@protoc_insertion_point(class_scope:google.protobuf.Type)
406 private:
407 class _Internal;
408
409 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
410 typedef void InternalArenaConstructable_;
411 typedef void DestructorSkippable_;
412 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Field > fields_;
413 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> oneofs_;
414 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option > options_;
415 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
416 PROTOBUF_NAMESPACE_ID::SourceContext* source_context_;
417 int syntax_;
418 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
419 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
420 };
421 // -------------------------------------------------------------------
422
423 class PROTOBUF_EXPORT Field PROTOBUF_FINAL :
424 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Field) */ {
425 public:
Field()426 inline Field() : Field(nullptr) {}
427 virtual ~Field();
428
429 Field(const Field& from);
Field(Field && from)430 Field(Field&& from) noexcept
431 : Field() {
432 *this = ::std::move(from);
433 }
434
435 inline Field& operator=(const Field& from) {
436 CopyFrom(from);
437 return *this;
438 }
439 inline Field& operator=(Field&& from) noexcept {
440 if (GetArena() == from.GetArena()) {
441 if (this != &from) InternalSwap(&from);
442 } else {
443 CopyFrom(from);
444 }
445 return *this;
446 }
447
descriptor()448 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
449 return GetDescriptor();
450 }
GetDescriptor()451 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
452 return GetMetadataStatic().descriptor;
453 }
GetReflection()454 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
455 return GetMetadataStatic().reflection;
456 }
457 static const Field& default_instance();
458
459 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()460 static inline const Field* internal_default_instance() {
461 return reinterpret_cast<const Field*>(
462 &_Field_default_instance_);
463 }
464 static constexpr int kIndexInFileMessages =
465 1;
466
swap(Field & a,Field & b)467 friend void swap(Field& a, Field& b) {
468 a.Swap(&b);
469 }
Swap(Field * other)470 inline void Swap(Field* other) {
471 if (other == this) return;
472 if (GetArena() == other->GetArena()) {
473 InternalSwap(other);
474 } else {
475 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
476 }
477 }
UnsafeArenaSwap(Field * other)478 void UnsafeArenaSwap(Field* other) {
479 if (other == this) return;
480 GOOGLE_DCHECK(GetArena() == other->GetArena());
481 InternalSwap(other);
482 }
483
484 // implements Message ----------------------------------------------
485
New()486 inline Field* New() const final {
487 return CreateMaybeMessage<Field>(nullptr);
488 }
489
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)490 Field* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
491 return CreateMaybeMessage<Field>(arena);
492 }
493 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
494 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
495 void CopyFrom(const Field& from);
496 void MergeFrom(const Field& from);
497 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
498 bool IsInitialized() const final;
499
500 size_t ByteSizeLong() const final;
501 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
502 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
503 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()504 int GetCachedSize() const final { return _cached_size_.Get(); }
505
506 private:
507 inline void SharedCtor();
508 inline void SharedDtor();
509 void SetCachedSize(int size) const final;
510 void InternalSwap(Field* other);
511 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()512 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
513 return "google.protobuf.Field";
514 }
515 protected:
516 explicit Field(::PROTOBUF_NAMESPACE_ID::Arena* arena);
517 private:
518 static void ArenaDtor(void* object);
519 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
520 public:
521
522 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
523 private:
GetMetadataStatic()524 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
525 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ftype_2eproto);
526 return ::descriptor_table_google_2fprotobuf_2ftype_2eproto.file_level_metadata[kIndexInFileMessages];
527 }
528
529 public:
530
531 // nested types ----------------------------------------------------
532
533 typedef Field_Kind Kind;
534 static constexpr Kind TYPE_UNKNOWN =
535 Field_Kind_TYPE_UNKNOWN;
536 static constexpr Kind TYPE_DOUBLE =
537 Field_Kind_TYPE_DOUBLE;
538 static constexpr Kind TYPE_FLOAT =
539 Field_Kind_TYPE_FLOAT;
540 static constexpr Kind TYPE_INT64 =
541 Field_Kind_TYPE_INT64;
542 static constexpr Kind TYPE_UINT64 =
543 Field_Kind_TYPE_UINT64;
544 static constexpr Kind TYPE_INT32 =
545 Field_Kind_TYPE_INT32;
546 static constexpr Kind TYPE_FIXED64 =
547 Field_Kind_TYPE_FIXED64;
548 static constexpr Kind TYPE_FIXED32 =
549 Field_Kind_TYPE_FIXED32;
550 static constexpr Kind TYPE_BOOL =
551 Field_Kind_TYPE_BOOL;
552 static constexpr Kind TYPE_STRING =
553 Field_Kind_TYPE_STRING;
554 static constexpr Kind TYPE_GROUP =
555 Field_Kind_TYPE_GROUP;
556 static constexpr Kind TYPE_MESSAGE =
557 Field_Kind_TYPE_MESSAGE;
558 static constexpr Kind TYPE_BYTES =
559 Field_Kind_TYPE_BYTES;
560 static constexpr Kind TYPE_UINT32 =
561 Field_Kind_TYPE_UINT32;
562 static constexpr Kind TYPE_ENUM =
563 Field_Kind_TYPE_ENUM;
564 static constexpr Kind TYPE_SFIXED32 =
565 Field_Kind_TYPE_SFIXED32;
566 static constexpr Kind TYPE_SFIXED64 =
567 Field_Kind_TYPE_SFIXED64;
568 static constexpr Kind TYPE_SINT32 =
569 Field_Kind_TYPE_SINT32;
570 static constexpr Kind TYPE_SINT64 =
571 Field_Kind_TYPE_SINT64;
Kind_IsValid(int value)572 static inline bool Kind_IsValid(int value) {
573 return Field_Kind_IsValid(value);
574 }
575 static constexpr Kind Kind_MIN =
576 Field_Kind_Kind_MIN;
577 static constexpr Kind Kind_MAX =
578 Field_Kind_Kind_MAX;
579 static constexpr int Kind_ARRAYSIZE =
580 Field_Kind_Kind_ARRAYSIZE;
581 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
Kind_descriptor()582 Kind_descriptor() {
583 return Field_Kind_descriptor();
584 }
585 template<typename T>
Kind_Name(T enum_t_value)586 static inline const std::string& Kind_Name(T enum_t_value) {
587 static_assert(::std::is_same<T, Kind>::value ||
588 ::std::is_integral<T>::value,
589 "Incorrect type passed to function Kind_Name.");
590 return Field_Kind_Name(enum_t_value);
591 }
Kind_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Kind * value)592 static inline bool Kind_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
593 Kind* value) {
594 return Field_Kind_Parse(name, value);
595 }
596
597 typedef Field_Cardinality Cardinality;
598 static constexpr Cardinality CARDINALITY_UNKNOWN =
599 Field_Cardinality_CARDINALITY_UNKNOWN;
600 static constexpr Cardinality CARDINALITY_OPTIONAL =
601 Field_Cardinality_CARDINALITY_OPTIONAL;
602 static constexpr Cardinality CARDINALITY_REQUIRED =
603 Field_Cardinality_CARDINALITY_REQUIRED;
604 static constexpr Cardinality CARDINALITY_REPEATED =
605 Field_Cardinality_CARDINALITY_REPEATED;
Cardinality_IsValid(int value)606 static inline bool Cardinality_IsValid(int value) {
607 return Field_Cardinality_IsValid(value);
608 }
609 static constexpr Cardinality Cardinality_MIN =
610 Field_Cardinality_Cardinality_MIN;
611 static constexpr Cardinality Cardinality_MAX =
612 Field_Cardinality_Cardinality_MAX;
613 static constexpr int Cardinality_ARRAYSIZE =
614 Field_Cardinality_Cardinality_ARRAYSIZE;
615 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
Cardinality_descriptor()616 Cardinality_descriptor() {
617 return Field_Cardinality_descriptor();
618 }
619 template<typename T>
Cardinality_Name(T enum_t_value)620 static inline const std::string& Cardinality_Name(T enum_t_value) {
621 static_assert(::std::is_same<T, Cardinality>::value ||
622 ::std::is_integral<T>::value,
623 "Incorrect type passed to function Cardinality_Name.");
624 return Field_Cardinality_Name(enum_t_value);
625 }
Cardinality_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,Cardinality * value)626 static inline bool Cardinality_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
627 Cardinality* value) {
628 return Field_Cardinality_Parse(name, value);
629 }
630
631 // accessors -------------------------------------------------------
632
633 enum : int {
634 kOptionsFieldNumber = 9,
635 kNameFieldNumber = 4,
636 kTypeUrlFieldNumber = 6,
637 kJsonNameFieldNumber = 10,
638 kDefaultValueFieldNumber = 11,
639 kKindFieldNumber = 1,
640 kCardinalityFieldNumber = 2,
641 kNumberFieldNumber = 3,
642 kOneofIndexFieldNumber = 7,
643 kPackedFieldNumber = 8,
644 };
645 // repeated .google.protobuf.Option options = 9;
646 int options_size() const;
647 private:
648 int _internal_options_size() const;
649 public:
650 void clear_options();
651 PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index);
652 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
653 mutable_options();
654 private:
655 const PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const;
656 PROTOBUF_NAMESPACE_ID::Option* _internal_add_options();
657 public:
658 const PROTOBUF_NAMESPACE_ID::Option& options(int index) const;
659 PROTOBUF_NAMESPACE_ID::Option* add_options();
660 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
661 options() const;
662
663 // string name = 4;
664 void clear_name();
665 const std::string& name() const;
666 void set_name(const std::string& value);
667 void set_name(std::string&& value);
668 void set_name(const char* value);
669 void set_name(const char* value, size_t size);
670 std::string* mutable_name();
671 std::string* release_name();
672 void set_allocated_name(std::string* name);
673 private:
674 const std::string& _internal_name() const;
675 void _internal_set_name(const std::string& value);
676 std::string* _internal_mutable_name();
677 public:
678
679 // string type_url = 6;
680 void clear_type_url();
681 const std::string& type_url() const;
682 void set_type_url(const std::string& value);
683 void set_type_url(std::string&& value);
684 void set_type_url(const char* value);
685 void set_type_url(const char* value, size_t size);
686 std::string* mutable_type_url();
687 std::string* release_type_url();
688 void set_allocated_type_url(std::string* type_url);
689 private:
690 const std::string& _internal_type_url() const;
691 void _internal_set_type_url(const std::string& value);
692 std::string* _internal_mutable_type_url();
693 public:
694
695 // string json_name = 10;
696 void clear_json_name();
697 const std::string& json_name() const;
698 void set_json_name(const std::string& value);
699 void set_json_name(std::string&& value);
700 void set_json_name(const char* value);
701 void set_json_name(const char* value, size_t size);
702 std::string* mutable_json_name();
703 std::string* release_json_name();
704 void set_allocated_json_name(std::string* json_name);
705 private:
706 const std::string& _internal_json_name() const;
707 void _internal_set_json_name(const std::string& value);
708 std::string* _internal_mutable_json_name();
709 public:
710
711 // string default_value = 11;
712 void clear_default_value();
713 const std::string& default_value() const;
714 void set_default_value(const std::string& value);
715 void set_default_value(std::string&& value);
716 void set_default_value(const char* value);
717 void set_default_value(const char* value, size_t size);
718 std::string* mutable_default_value();
719 std::string* release_default_value();
720 void set_allocated_default_value(std::string* default_value);
721 private:
722 const std::string& _internal_default_value() const;
723 void _internal_set_default_value(const std::string& value);
724 std::string* _internal_mutable_default_value();
725 public:
726
727 // .google.protobuf.Field.Kind kind = 1;
728 void clear_kind();
729 PROTOBUF_NAMESPACE_ID::Field_Kind kind() const;
730 void set_kind(PROTOBUF_NAMESPACE_ID::Field_Kind value);
731 private:
732 PROTOBUF_NAMESPACE_ID::Field_Kind _internal_kind() const;
733 void _internal_set_kind(PROTOBUF_NAMESPACE_ID::Field_Kind value);
734 public:
735
736 // .google.protobuf.Field.Cardinality cardinality = 2;
737 void clear_cardinality();
738 PROTOBUF_NAMESPACE_ID::Field_Cardinality cardinality() const;
739 void set_cardinality(PROTOBUF_NAMESPACE_ID::Field_Cardinality value);
740 private:
741 PROTOBUF_NAMESPACE_ID::Field_Cardinality _internal_cardinality() const;
742 void _internal_set_cardinality(PROTOBUF_NAMESPACE_ID::Field_Cardinality value);
743 public:
744
745 // int32 number = 3;
746 void clear_number();
747 ::PROTOBUF_NAMESPACE_ID::int32 number() const;
748 void set_number(::PROTOBUF_NAMESPACE_ID::int32 value);
749 private:
750 ::PROTOBUF_NAMESPACE_ID::int32 _internal_number() const;
751 void _internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value);
752 public:
753
754 // int32 oneof_index = 7;
755 void clear_oneof_index();
756 ::PROTOBUF_NAMESPACE_ID::int32 oneof_index() const;
757 void set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value);
758 private:
759 ::PROTOBUF_NAMESPACE_ID::int32 _internal_oneof_index() const;
760 void _internal_set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value);
761 public:
762
763 // bool packed = 8;
764 void clear_packed();
765 bool packed() const;
766 void set_packed(bool value);
767 private:
768 bool _internal_packed() const;
769 void _internal_set_packed(bool value);
770 public:
771
772 // @@protoc_insertion_point(class_scope:google.protobuf.Field)
773 private:
774 class _Internal;
775
776 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
777 typedef void InternalArenaConstructable_;
778 typedef void DestructorSkippable_;
779 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option > options_;
780 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
781 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr type_url_;
782 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr json_name_;
783 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr default_value_;
784 int kind_;
785 int cardinality_;
786 ::PROTOBUF_NAMESPACE_ID::int32 number_;
787 ::PROTOBUF_NAMESPACE_ID::int32 oneof_index_;
788 bool packed_;
789 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
790 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
791 };
792 // -------------------------------------------------------------------
793
794 class PROTOBUF_EXPORT Enum PROTOBUF_FINAL :
795 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Enum) */ {
796 public:
Enum()797 inline Enum() : Enum(nullptr) {}
798 virtual ~Enum();
799
800 Enum(const Enum& from);
Enum(Enum && from)801 Enum(Enum&& from) noexcept
802 : Enum() {
803 *this = ::std::move(from);
804 }
805
806 inline Enum& operator=(const Enum& from) {
807 CopyFrom(from);
808 return *this;
809 }
810 inline Enum& operator=(Enum&& from) noexcept {
811 if (GetArena() == from.GetArena()) {
812 if (this != &from) InternalSwap(&from);
813 } else {
814 CopyFrom(from);
815 }
816 return *this;
817 }
818
descriptor()819 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
820 return GetDescriptor();
821 }
GetDescriptor()822 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
823 return GetMetadataStatic().descriptor;
824 }
GetReflection()825 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
826 return GetMetadataStatic().reflection;
827 }
828 static const Enum& default_instance();
829
830 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()831 static inline const Enum* internal_default_instance() {
832 return reinterpret_cast<const Enum*>(
833 &_Enum_default_instance_);
834 }
835 static constexpr int kIndexInFileMessages =
836 2;
837
swap(Enum & a,Enum & b)838 friend void swap(Enum& a, Enum& b) {
839 a.Swap(&b);
840 }
Swap(Enum * other)841 inline void Swap(Enum* other) {
842 if (other == this) return;
843 if (GetArena() == other->GetArena()) {
844 InternalSwap(other);
845 } else {
846 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
847 }
848 }
UnsafeArenaSwap(Enum * other)849 void UnsafeArenaSwap(Enum* other) {
850 if (other == this) return;
851 GOOGLE_DCHECK(GetArena() == other->GetArena());
852 InternalSwap(other);
853 }
854
855 // implements Message ----------------------------------------------
856
New()857 inline Enum* New() const final {
858 return CreateMaybeMessage<Enum>(nullptr);
859 }
860
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)861 Enum* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
862 return CreateMaybeMessage<Enum>(arena);
863 }
864 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
865 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
866 void CopyFrom(const Enum& from);
867 void MergeFrom(const Enum& from);
868 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
869 bool IsInitialized() const final;
870
871 size_t ByteSizeLong() const final;
872 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
873 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
874 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()875 int GetCachedSize() const final { return _cached_size_.Get(); }
876
877 private:
878 inline void SharedCtor();
879 inline void SharedDtor();
880 void SetCachedSize(int size) const final;
881 void InternalSwap(Enum* other);
882 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()883 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
884 return "google.protobuf.Enum";
885 }
886 protected:
887 explicit Enum(::PROTOBUF_NAMESPACE_ID::Arena* arena);
888 private:
889 static void ArenaDtor(void* object);
890 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
891 public:
892
893 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
894 private:
GetMetadataStatic()895 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
896 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ftype_2eproto);
897 return ::descriptor_table_google_2fprotobuf_2ftype_2eproto.file_level_metadata[kIndexInFileMessages];
898 }
899
900 public:
901
902 // nested types ----------------------------------------------------
903
904 // accessors -------------------------------------------------------
905
906 enum : int {
907 kEnumvalueFieldNumber = 2,
908 kOptionsFieldNumber = 3,
909 kNameFieldNumber = 1,
910 kSourceContextFieldNumber = 4,
911 kSyntaxFieldNumber = 5,
912 };
913 // repeated .google.protobuf.EnumValue enumvalue = 2;
914 int enumvalue_size() const;
915 private:
916 int _internal_enumvalue_size() const;
917 public:
918 void clear_enumvalue();
919 PROTOBUF_NAMESPACE_ID::EnumValue* mutable_enumvalue(int index);
920 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValue >*
921 mutable_enumvalue();
922 private:
923 const PROTOBUF_NAMESPACE_ID::EnumValue& _internal_enumvalue(int index) const;
924 PROTOBUF_NAMESPACE_ID::EnumValue* _internal_add_enumvalue();
925 public:
926 const PROTOBUF_NAMESPACE_ID::EnumValue& enumvalue(int index) const;
927 PROTOBUF_NAMESPACE_ID::EnumValue* add_enumvalue();
928 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValue >&
929 enumvalue() const;
930
931 // repeated .google.protobuf.Option options = 3;
932 int options_size() const;
933 private:
934 int _internal_options_size() const;
935 public:
936 void clear_options();
937 PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index);
938 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
939 mutable_options();
940 private:
941 const PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const;
942 PROTOBUF_NAMESPACE_ID::Option* _internal_add_options();
943 public:
944 const PROTOBUF_NAMESPACE_ID::Option& options(int index) const;
945 PROTOBUF_NAMESPACE_ID::Option* add_options();
946 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
947 options() const;
948
949 // string name = 1;
950 void clear_name();
951 const std::string& name() const;
952 void set_name(const std::string& value);
953 void set_name(std::string&& value);
954 void set_name(const char* value);
955 void set_name(const char* value, size_t size);
956 std::string* mutable_name();
957 std::string* release_name();
958 void set_allocated_name(std::string* name);
959 private:
960 const std::string& _internal_name() const;
961 void _internal_set_name(const std::string& value);
962 std::string* _internal_mutable_name();
963 public:
964
965 // .google.protobuf.SourceContext source_context = 4;
966 bool has_source_context() const;
967 private:
968 bool _internal_has_source_context() const;
969 public:
970 void clear_source_context();
971 const PROTOBUF_NAMESPACE_ID::SourceContext& source_context() const;
972 PROTOBUF_NAMESPACE_ID::SourceContext* release_source_context();
973 PROTOBUF_NAMESPACE_ID::SourceContext* mutable_source_context();
974 void set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext* source_context);
975 private:
976 const PROTOBUF_NAMESPACE_ID::SourceContext& _internal_source_context() const;
977 PROTOBUF_NAMESPACE_ID::SourceContext* _internal_mutable_source_context();
978 public:
979 void unsafe_arena_set_allocated_source_context(
980 PROTOBUF_NAMESPACE_ID::SourceContext* source_context);
981 PROTOBUF_NAMESPACE_ID::SourceContext* unsafe_arena_release_source_context();
982
983 // .google.protobuf.Syntax syntax = 5;
984 void clear_syntax();
985 PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
986 void set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value);
987 private:
988 PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
989 void _internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value);
990 public:
991
992 // @@protoc_insertion_point(class_scope:google.protobuf.Enum)
993 private:
994 class _Internal;
995
996 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
997 typedef void InternalArenaConstructable_;
998 typedef void DestructorSkippable_;
999 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValue > enumvalue_;
1000 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option > options_;
1001 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
1002 PROTOBUF_NAMESPACE_ID::SourceContext* source_context_;
1003 int syntax_;
1004 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1005 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
1006 };
1007 // -------------------------------------------------------------------
1008
1009 class PROTOBUF_EXPORT EnumValue PROTOBUF_FINAL :
1010 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValue) */ {
1011 public:
EnumValue()1012 inline EnumValue() : EnumValue(nullptr) {}
1013 virtual ~EnumValue();
1014
1015 EnumValue(const EnumValue& from);
EnumValue(EnumValue && from)1016 EnumValue(EnumValue&& from) noexcept
1017 : EnumValue() {
1018 *this = ::std::move(from);
1019 }
1020
1021 inline EnumValue& operator=(const EnumValue& from) {
1022 CopyFrom(from);
1023 return *this;
1024 }
1025 inline EnumValue& operator=(EnumValue&& from) noexcept {
1026 if (GetArena() == from.GetArena()) {
1027 if (this != &from) InternalSwap(&from);
1028 } else {
1029 CopyFrom(from);
1030 }
1031 return *this;
1032 }
1033
descriptor()1034 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1035 return GetDescriptor();
1036 }
GetDescriptor()1037 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1038 return GetMetadataStatic().descriptor;
1039 }
GetReflection()1040 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1041 return GetMetadataStatic().reflection;
1042 }
1043 static const EnumValue& default_instance();
1044
1045 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()1046 static inline const EnumValue* internal_default_instance() {
1047 return reinterpret_cast<const EnumValue*>(
1048 &_EnumValue_default_instance_);
1049 }
1050 static constexpr int kIndexInFileMessages =
1051 3;
1052
swap(EnumValue & a,EnumValue & b)1053 friend void swap(EnumValue& a, EnumValue& b) {
1054 a.Swap(&b);
1055 }
Swap(EnumValue * other)1056 inline void Swap(EnumValue* other) {
1057 if (other == this) return;
1058 if (GetArena() == other->GetArena()) {
1059 InternalSwap(other);
1060 } else {
1061 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1062 }
1063 }
UnsafeArenaSwap(EnumValue * other)1064 void UnsafeArenaSwap(EnumValue* other) {
1065 if (other == this) return;
1066 GOOGLE_DCHECK(GetArena() == other->GetArena());
1067 InternalSwap(other);
1068 }
1069
1070 // implements Message ----------------------------------------------
1071
New()1072 inline EnumValue* New() const final {
1073 return CreateMaybeMessage<EnumValue>(nullptr);
1074 }
1075
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)1076 EnumValue* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1077 return CreateMaybeMessage<EnumValue>(arena);
1078 }
1079 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1080 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1081 void CopyFrom(const EnumValue& from);
1082 void MergeFrom(const EnumValue& from);
1083 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1084 bool IsInitialized() const final;
1085
1086 size_t ByteSizeLong() const final;
1087 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1088 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
1089 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()1090 int GetCachedSize() const final { return _cached_size_.Get(); }
1091
1092 private:
1093 inline void SharedCtor();
1094 inline void SharedDtor();
1095 void SetCachedSize(int size) const final;
1096 void InternalSwap(EnumValue* other);
1097 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()1098 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1099 return "google.protobuf.EnumValue";
1100 }
1101 protected:
1102 explicit EnumValue(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1103 private:
1104 static void ArenaDtor(void* object);
1105 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1106 public:
1107
1108 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1109 private:
GetMetadataStatic()1110 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1111 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ftype_2eproto);
1112 return ::descriptor_table_google_2fprotobuf_2ftype_2eproto.file_level_metadata[kIndexInFileMessages];
1113 }
1114
1115 public:
1116
1117 // nested types ----------------------------------------------------
1118
1119 // accessors -------------------------------------------------------
1120
1121 enum : int {
1122 kOptionsFieldNumber = 3,
1123 kNameFieldNumber = 1,
1124 kNumberFieldNumber = 2,
1125 };
1126 // repeated .google.protobuf.Option options = 3;
1127 int options_size() const;
1128 private:
1129 int _internal_options_size() const;
1130 public:
1131 void clear_options();
1132 PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index);
1133 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
1134 mutable_options();
1135 private:
1136 const PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const;
1137 PROTOBUF_NAMESPACE_ID::Option* _internal_add_options();
1138 public:
1139 const PROTOBUF_NAMESPACE_ID::Option& options(int index) const;
1140 PROTOBUF_NAMESPACE_ID::Option* add_options();
1141 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
1142 options() const;
1143
1144 // string name = 1;
1145 void clear_name();
1146 const std::string& name() const;
1147 void set_name(const std::string& value);
1148 void set_name(std::string&& value);
1149 void set_name(const char* value);
1150 void set_name(const char* value, size_t size);
1151 std::string* mutable_name();
1152 std::string* release_name();
1153 void set_allocated_name(std::string* name);
1154 private:
1155 const std::string& _internal_name() const;
1156 void _internal_set_name(const std::string& value);
1157 std::string* _internal_mutable_name();
1158 public:
1159
1160 // int32 number = 2;
1161 void clear_number();
1162 ::PROTOBUF_NAMESPACE_ID::int32 number() const;
1163 void set_number(::PROTOBUF_NAMESPACE_ID::int32 value);
1164 private:
1165 ::PROTOBUF_NAMESPACE_ID::int32 _internal_number() const;
1166 void _internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value);
1167 public:
1168
1169 // @@protoc_insertion_point(class_scope:google.protobuf.EnumValue)
1170 private:
1171 class _Internal;
1172
1173 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1174 typedef void InternalArenaConstructable_;
1175 typedef void DestructorSkippable_;
1176 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option > options_;
1177 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
1178 ::PROTOBUF_NAMESPACE_ID::int32 number_;
1179 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1180 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
1181 };
1182 // -------------------------------------------------------------------
1183
1184 class PROTOBUF_EXPORT Option PROTOBUF_FINAL :
1185 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Option) */ {
1186 public:
Option()1187 inline Option() : Option(nullptr) {}
1188 virtual ~Option();
1189
1190 Option(const Option& from);
Option(Option && from)1191 Option(Option&& from) noexcept
1192 : Option() {
1193 *this = ::std::move(from);
1194 }
1195
1196 inline Option& operator=(const Option& from) {
1197 CopyFrom(from);
1198 return *this;
1199 }
1200 inline Option& operator=(Option&& from) noexcept {
1201 if (GetArena() == from.GetArena()) {
1202 if (this != &from) InternalSwap(&from);
1203 } else {
1204 CopyFrom(from);
1205 }
1206 return *this;
1207 }
1208
descriptor()1209 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1210 return GetDescriptor();
1211 }
GetDescriptor()1212 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1213 return GetMetadataStatic().descriptor;
1214 }
GetReflection()1215 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1216 return GetMetadataStatic().reflection;
1217 }
1218 static const Option& default_instance();
1219
1220 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
internal_default_instance()1221 static inline const Option* internal_default_instance() {
1222 return reinterpret_cast<const Option*>(
1223 &_Option_default_instance_);
1224 }
1225 static constexpr int kIndexInFileMessages =
1226 4;
1227
swap(Option & a,Option & b)1228 friend void swap(Option& a, Option& b) {
1229 a.Swap(&b);
1230 }
Swap(Option * other)1231 inline void Swap(Option* other) {
1232 if (other == this) return;
1233 if (GetArena() == other->GetArena()) {
1234 InternalSwap(other);
1235 } else {
1236 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1237 }
1238 }
UnsafeArenaSwap(Option * other)1239 void UnsafeArenaSwap(Option* other) {
1240 if (other == this) return;
1241 GOOGLE_DCHECK(GetArena() == other->GetArena());
1242 InternalSwap(other);
1243 }
1244
1245 // implements Message ----------------------------------------------
1246
New()1247 inline Option* New() const final {
1248 return CreateMaybeMessage<Option>(nullptr);
1249 }
1250
New(::PROTOBUF_NAMESPACE_ID::Arena * arena)1251 Option* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1252 return CreateMaybeMessage<Option>(arena);
1253 }
1254 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1255 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1256 void CopyFrom(const Option& from);
1257 void MergeFrom(const Option& from);
1258 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1259 bool IsInitialized() const final;
1260
1261 size_t ByteSizeLong() const final;
1262 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1263 ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
1264 ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
GetCachedSize()1265 int GetCachedSize() const final { return _cached_size_.Get(); }
1266
1267 private:
1268 inline void SharedCtor();
1269 inline void SharedDtor();
1270 void SetCachedSize(int size) const final;
1271 void InternalSwap(Option* other);
1272 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
FullMessageName()1273 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1274 return "google.protobuf.Option";
1275 }
1276 protected:
1277 explicit Option(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1278 private:
1279 static void ArenaDtor(void* object);
1280 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1281 public:
1282
1283 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1284 private:
GetMetadataStatic()1285 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1286 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2ftype_2eproto);
1287 return ::descriptor_table_google_2fprotobuf_2ftype_2eproto.file_level_metadata[kIndexInFileMessages];
1288 }
1289
1290 public:
1291
1292 // nested types ----------------------------------------------------
1293
1294 // accessors -------------------------------------------------------
1295
1296 enum : int {
1297 kNameFieldNumber = 1,
1298 kValueFieldNumber = 2,
1299 };
1300 // string name = 1;
1301 void clear_name();
1302 const std::string& name() const;
1303 void set_name(const std::string& value);
1304 void set_name(std::string&& value);
1305 void set_name(const char* value);
1306 void set_name(const char* value, size_t size);
1307 std::string* mutable_name();
1308 std::string* release_name();
1309 void set_allocated_name(std::string* name);
1310 private:
1311 const std::string& _internal_name() const;
1312 void _internal_set_name(const std::string& value);
1313 std::string* _internal_mutable_name();
1314 public:
1315
1316 // .google.protobuf.Any value = 2;
1317 bool has_value() const;
1318 private:
1319 bool _internal_has_value() const;
1320 public:
1321 void clear_value();
1322 const PROTOBUF_NAMESPACE_ID::Any& value() const;
1323 PROTOBUF_NAMESPACE_ID::Any* release_value();
1324 PROTOBUF_NAMESPACE_ID::Any* mutable_value();
1325 void set_allocated_value(PROTOBUF_NAMESPACE_ID::Any* value);
1326 private:
1327 const PROTOBUF_NAMESPACE_ID::Any& _internal_value() const;
1328 PROTOBUF_NAMESPACE_ID::Any* _internal_mutable_value();
1329 public:
1330 void unsafe_arena_set_allocated_value(
1331 PROTOBUF_NAMESPACE_ID::Any* value);
1332 PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_value();
1333
1334 // @@protoc_insertion_point(class_scope:google.protobuf.Option)
1335 private:
1336 class _Internal;
1337
1338 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1339 typedef void InternalArenaConstructable_;
1340 typedef void DestructorSkippable_;
1341 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
1342 PROTOBUF_NAMESPACE_ID::Any* value_;
1343 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1344 friend struct ::TableStruct_google_2fprotobuf_2ftype_2eproto;
1345 };
1346 // ===================================================================
1347
1348
1349 // ===================================================================
1350
1351 #ifdef __GNUC__
1352 #pragma GCC diagnostic push
1353 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1354 #endif // __GNUC__
1355 // Type
1356
1357 // string name = 1;
clear_name()1358 inline void Type::clear_name() {
1359 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1360 }
name()1361 inline const std::string& Type::name() const {
1362 // @@protoc_insertion_point(field_get:google.protobuf.Type.name)
1363 return _internal_name();
1364 }
set_name(const std::string & value)1365 inline void Type::set_name(const std::string& value) {
1366 _internal_set_name(value);
1367 // @@protoc_insertion_point(field_set:google.protobuf.Type.name)
1368 }
mutable_name()1369 inline std::string* Type::mutable_name() {
1370 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name)
1371 return _internal_mutable_name();
1372 }
_internal_name()1373 inline const std::string& Type::_internal_name() const {
1374 return name_.Get();
1375 }
_internal_set_name(const std::string & value)1376 inline void Type::_internal_set_name(const std::string& value) {
1377
1378 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1379 }
set_name(std::string && value)1380 inline void Type::set_name(std::string&& value) {
1381
1382 name_.Set(
1383 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1384 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Type.name)
1385 }
set_name(const char * value)1386 inline void Type::set_name(const char* value) {
1387 GOOGLE_DCHECK(value != nullptr);
1388
1389 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1390 GetArena());
1391 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name)
1392 }
set_name(const char * value,size_t size)1393 inline void Type::set_name(const char* value,
1394 size_t size) {
1395
1396 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1397 reinterpret_cast<const char*>(value), size), GetArena());
1398 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name)
1399 }
_internal_mutable_name()1400 inline std::string* Type::_internal_mutable_name() {
1401
1402 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1403 }
release_name()1404 inline std::string* Type::release_name() {
1405 // @@protoc_insertion_point(field_release:google.protobuf.Type.name)
1406 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1407 }
set_allocated_name(std::string * name)1408 inline void Type::set_allocated_name(std::string* name) {
1409 if (name != nullptr) {
1410
1411 } else {
1412
1413 }
1414 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
1415 GetArena());
1416 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name)
1417 }
1418
1419 // repeated .google.protobuf.Field fields = 2;
_internal_fields_size()1420 inline int Type::_internal_fields_size() const {
1421 return fields_.size();
1422 }
fields_size()1423 inline int Type::fields_size() const {
1424 return _internal_fields_size();
1425 }
clear_fields()1426 inline void Type::clear_fields() {
1427 fields_.Clear();
1428 }
mutable_fields(int index)1429 inline PROTOBUF_NAMESPACE_ID::Field* Type::mutable_fields(int index) {
1430 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.fields)
1431 return fields_.Mutable(index);
1432 }
1433 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Field >*
mutable_fields()1434 Type::mutable_fields() {
1435 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.fields)
1436 return &fields_;
1437 }
_internal_fields(int index)1438 inline const PROTOBUF_NAMESPACE_ID::Field& Type::_internal_fields(int index) const {
1439 return fields_.Get(index);
1440 }
fields(int index)1441 inline const PROTOBUF_NAMESPACE_ID::Field& Type::fields(int index) const {
1442 // @@protoc_insertion_point(field_get:google.protobuf.Type.fields)
1443 return _internal_fields(index);
1444 }
_internal_add_fields()1445 inline PROTOBUF_NAMESPACE_ID::Field* Type::_internal_add_fields() {
1446 return fields_.Add();
1447 }
add_fields()1448 inline PROTOBUF_NAMESPACE_ID::Field* Type::add_fields() {
1449 // @@protoc_insertion_point(field_add:google.protobuf.Type.fields)
1450 return _internal_add_fields();
1451 }
1452 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Field >&
fields()1453 Type::fields() const {
1454 // @@protoc_insertion_point(field_list:google.protobuf.Type.fields)
1455 return fields_;
1456 }
1457
1458 // repeated string oneofs = 3;
_internal_oneofs_size()1459 inline int Type::_internal_oneofs_size() const {
1460 return oneofs_.size();
1461 }
oneofs_size()1462 inline int Type::oneofs_size() const {
1463 return _internal_oneofs_size();
1464 }
clear_oneofs()1465 inline void Type::clear_oneofs() {
1466 oneofs_.Clear();
1467 }
add_oneofs()1468 inline std::string* Type::add_oneofs() {
1469 // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs)
1470 return _internal_add_oneofs();
1471 }
_internal_oneofs(int index)1472 inline const std::string& Type::_internal_oneofs(int index) const {
1473 return oneofs_.Get(index);
1474 }
oneofs(int index)1475 inline const std::string& Type::oneofs(int index) const {
1476 // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
1477 return _internal_oneofs(index);
1478 }
mutable_oneofs(int index)1479 inline std::string* Type::mutable_oneofs(int index) {
1480 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
1481 return oneofs_.Mutable(index);
1482 }
set_oneofs(int index,const std::string & value)1483 inline void Type::set_oneofs(int index, const std::string& value) {
1484 // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
1485 oneofs_.Mutable(index)->assign(value);
1486 }
set_oneofs(int index,std::string && value)1487 inline void Type::set_oneofs(int index, std::string&& value) {
1488 // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
1489 oneofs_.Mutable(index)->assign(std::move(value));
1490 }
set_oneofs(int index,const char * value)1491 inline void Type::set_oneofs(int index, const char* value) {
1492 GOOGLE_DCHECK(value != nullptr);
1493 oneofs_.Mutable(index)->assign(value);
1494 // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs)
1495 }
set_oneofs(int index,const char * value,size_t size)1496 inline void Type::set_oneofs(int index, const char* value, size_t size) {
1497 oneofs_.Mutable(index)->assign(
1498 reinterpret_cast<const char*>(value), size);
1499 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs)
1500 }
_internal_add_oneofs()1501 inline std::string* Type::_internal_add_oneofs() {
1502 return oneofs_.Add();
1503 }
add_oneofs(const std::string & value)1504 inline void Type::add_oneofs(const std::string& value) {
1505 oneofs_.Add()->assign(value);
1506 // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
1507 }
add_oneofs(std::string && value)1508 inline void Type::add_oneofs(std::string&& value) {
1509 oneofs_.Add(std::move(value));
1510 // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
1511 }
add_oneofs(const char * value)1512 inline void Type::add_oneofs(const char* value) {
1513 GOOGLE_DCHECK(value != nullptr);
1514 oneofs_.Add()->assign(value);
1515 // @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs)
1516 }
add_oneofs(const char * value,size_t size)1517 inline void Type::add_oneofs(const char* value, size_t size) {
1518 oneofs_.Add()->assign(reinterpret_cast<const char*>(value), size);
1519 // @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs)
1520 }
1521 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
oneofs()1522 Type::oneofs() const {
1523 // @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs)
1524 return oneofs_;
1525 }
1526 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
mutable_oneofs()1527 Type::mutable_oneofs() {
1528 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs)
1529 return &oneofs_;
1530 }
1531
1532 // repeated .google.protobuf.Option options = 4;
_internal_options_size()1533 inline int Type::_internal_options_size() const {
1534 return options_.size();
1535 }
options_size()1536 inline int Type::options_size() const {
1537 return _internal_options_size();
1538 }
clear_options()1539 inline void Type::clear_options() {
1540 options_.Clear();
1541 }
mutable_options(int index)1542 inline PROTOBUF_NAMESPACE_ID::Option* Type::mutable_options(int index) {
1543 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.options)
1544 return options_.Mutable(index);
1545 }
1546 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
mutable_options()1547 Type::mutable_options() {
1548 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options)
1549 return &options_;
1550 }
_internal_options(int index)1551 inline const PROTOBUF_NAMESPACE_ID::Option& Type::_internal_options(int index) const {
1552 return options_.Get(index);
1553 }
options(int index)1554 inline const PROTOBUF_NAMESPACE_ID::Option& Type::options(int index) const {
1555 // @@protoc_insertion_point(field_get:google.protobuf.Type.options)
1556 return _internal_options(index);
1557 }
_internal_add_options()1558 inline PROTOBUF_NAMESPACE_ID::Option* Type::_internal_add_options() {
1559 return options_.Add();
1560 }
add_options()1561 inline PROTOBUF_NAMESPACE_ID::Option* Type::add_options() {
1562 // @@protoc_insertion_point(field_add:google.protobuf.Type.options)
1563 return _internal_add_options();
1564 }
1565 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
options()1566 Type::options() const {
1567 // @@protoc_insertion_point(field_list:google.protobuf.Type.options)
1568 return options_;
1569 }
1570
1571 // .google.protobuf.SourceContext source_context = 5;
_internal_has_source_context()1572 inline bool Type::_internal_has_source_context() const {
1573 return this != internal_default_instance() && source_context_ != nullptr;
1574 }
has_source_context()1575 inline bool Type::has_source_context() const {
1576 return _internal_has_source_context();
1577 }
_internal_source_context()1578 inline const PROTOBUF_NAMESPACE_ID::SourceContext& Type::_internal_source_context() const {
1579 const PROTOBUF_NAMESPACE_ID::SourceContext* p = source_context_;
1580 return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::SourceContext*>(
1581 &PROTOBUF_NAMESPACE_ID::_SourceContext_default_instance_);
1582 }
source_context()1583 inline const PROTOBUF_NAMESPACE_ID::SourceContext& Type::source_context() const {
1584 // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context)
1585 return _internal_source_context();
1586 }
unsafe_arena_set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext * source_context)1587 inline void Type::unsafe_arena_set_allocated_source_context(
1588 PROTOBUF_NAMESPACE_ID::SourceContext* source_context) {
1589 if (GetArena() == nullptr) {
1590 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context_);
1591 }
1592 source_context_ = source_context;
1593 if (source_context) {
1594
1595 } else {
1596
1597 }
1598 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Type.source_context)
1599 }
release_source_context()1600 inline PROTOBUF_NAMESPACE_ID::SourceContext* Type::release_source_context() {
1601
1602 PROTOBUF_NAMESPACE_ID::SourceContext* temp = source_context_;
1603 source_context_ = nullptr;
1604 if (GetArena() != nullptr) {
1605 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1606 }
1607 return temp;
1608 }
unsafe_arena_release_source_context()1609 inline PROTOBUF_NAMESPACE_ID::SourceContext* Type::unsafe_arena_release_source_context() {
1610 // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
1611
1612 PROTOBUF_NAMESPACE_ID::SourceContext* temp = source_context_;
1613 source_context_ = nullptr;
1614 return temp;
1615 }
_internal_mutable_source_context()1616 inline PROTOBUF_NAMESPACE_ID::SourceContext* Type::_internal_mutable_source_context() {
1617
1618 if (source_context_ == nullptr) {
1619 auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceContext>(GetArena());
1620 source_context_ = p;
1621 }
1622 return source_context_;
1623 }
mutable_source_context()1624 inline PROTOBUF_NAMESPACE_ID::SourceContext* Type::mutable_source_context() {
1625 // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context)
1626 return _internal_mutable_source_context();
1627 }
set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext * source_context)1628 inline void Type::set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext* source_context) {
1629 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
1630 if (message_arena == nullptr) {
1631 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context_);
1632 }
1633 if (source_context) {
1634 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1635 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context)->GetArena();
1636 if (message_arena != submessage_arena) {
1637 source_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1638 message_arena, source_context, submessage_arena);
1639 }
1640
1641 } else {
1642
1643 }
1644 source_context_ = source_context;
1645 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_context)
1646 }
1647
1648 // .google.protobuf.Syntax syntax = 6;
clear_syntax()1649 inline void Type::clear_syntax() {
1650 syntax_ = 0;
1651 }
_internal_syntax()1652 inline PROTOBUF_NAMESPACE_ID::Syntax Type::_internal_syntax() const {
1653 return static_cast< PROTOBUF_NAMESPACE_ID::Syntax >(syntax_);
1654 }
syntax()1655 inline PROTOBUF_NAMESPACE_ID::Syntax Type::syntax() const {
1656 // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
1657 return _internal_syntax();
1658 }
_internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value)1659 inline void Type::_internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value) {
1660
1661 syntax_ = value;
1662 }
set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value)1663 inline void Type::set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value) {
1664 _internal_set_syntax(value);
1665 // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
1666 }
1667
1668 // -------------------------------------------------------------------
1669
1670 // Field
1671
1672 // .google.protobuf.Field.Kind kind = 1;
clear_kind()1673 inline void Field::clear_kind() {
1674 kind_ = 0;
1675 }
_internal_kind()1676 inline PROTOBUF_NAMESPACE_ID::Field_Kind Field::_internal_kind() const {
1677 return static_cast< PROTOBUF_NAMESPACE_ID::Field_Kind >(kind_);
1678 }
kind()1679 inline PROTOBUF_NAMESPACE_ID::Field_Kind Field::kind() const {
1680 // @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
1681 return _internal_kind();
1682 }
_internal_set_kind(PROTOBUF_NAMESPACE_ID::Field_Kind value)1683 inline void Field::_internal_set_kind(PROTOBUF_NAMESPACE_ID::Field_Kind value) {
1684
1685 kind_ = value;
1686 }
set_kind(PROTOBUF_NAMESPACE_ID::Field_Kind value)1687 inline void Field::set_kind(PROTOBUF_NAMESPACE_ID::Field_Kind value) {
1688 _internal_set_kind(value);
1689 // @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
1690 }
1691
1692 // .google.protobuf.Field.Cardinality cardinality = 2;
clear_cardinality()1693 inline void Field::clear_cardinality() {
1694 cardinality_ = 0;
1695 }
_internal_cardinality()1696 inline PROTOBUF_NAMESPACE_ID::Field_Cardinality Field::_internal_cardinality() const {
1697 return static_cast< PROTOBUF_NAMESPACE_ID::Field_Cardinality >(cardinality_);
1698 }
cardinality()1699 inline PROTOBUF_NAMESPACE_ID::Field_Cardinality Field::cardinality() const {
1700 // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
1701 return _internal_cardinality();
1702 }
_internal_set_cardinality(PROTOBUF_NAMESPACE_ID::Field_Cardinality value)1703 inline void Field::_internal_set_cardinality(PROTOBUF_NAMESPACE_ID::Field_Cardinality value) {
1704
1705 cardinality_ = value;
1706 }
set_cardinality(PROTOBUF_NAMESPACE_ID::Field_Cardinality value)1707 inline void Field::set_cardinality(PROTOBUF_NAMESPACE_ID::Field_Cardinality value) {
1708 _internal_set_cardinality(value);
1709 // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
1710 }
1711
1712 // int32 number = 3;
clear_number()1713 inline void Field::clear_number() {
1714 number_ = 0;
1715 }
_internal_number()1716 inline ::PROTOBUF_NAMESPACE_ID::int32 Field::_internal_number() const {
1717 return number_;
1718 }
number()1719 inline ::PROTOBUF_NAMESPACE_ID::int32 Field::number() const {
1720 // @@protoc_insertion_point(field_get:google.protobuf.Field.number)
1721 return _internal_number();
1722 }
_internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value)1723 inline void Field::_internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value) {
1724
1725 number_ = value;
1726 }
set_number(::PROTOBUF_NAMESPACE_ID::int32 value)1727 inline void Field::set_number(::PROTOBUF_NAMESPACE_ID::int32 value) {
1728 _internal_set_number(value);
1729 // @@protoc_insertion_point(field_set:google.protobuf.Field.number)
1730 }
1731
1732 // string name = 4;
clear_name()1733 inline void Field::clear_name() {
1734 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1735 }
name()1736 inline const std::string& Field::name() const {
1737 // @@protoc_insertion_point(field_get:google.protobuf.Field.name)
1738 return _internal_name();
1739 }
set_name(const std::string & value)1740 inline void Field::set_name(const std::string& value) {
1741 _internal_set_name(value);
1742 // @@protoc_insertion_point(field_set:google.protobuf.Field.name)
1743 }
mutable_name()1744 inline std::string* Field::mutable_name() {
1745 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name)
1746 return _internal_mutable_name();
1747 }
_internal_name()1748 inline const std::string& Field::_internal_name() const {
1749 return name_.Get();
1750 }
_internal_set_name(const std::string & value)1751 inline void Field::_internal_set_name(const std::string& value) {
1752
1753 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1754 }
set_name(std::string && value)1755 inline void Field::set_name(std::string&& value) {
1756
1757 name_.Set(
1758 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1759 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.name)
1760 }
set_name(const char * value)1761 inline void Field::set_name(const char* value) {
1762 GOOGLE_DCHECK(value != nullptr);
1763
1764 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1765 GetArena());
1766 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name)
1767 }
set_name(const char * value,size_t size)1768 inline void Field::set_name(const char* value,
1769 size_t size) {
1770
1771 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1772 reinterpret_cast<const char*>(value), size), GetArena());
1773 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name)
1774 }
_internal_mutable_name()1775 inline std::string* Field::_internal_mutable_name() {
1776
1777 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1778 }
release_name()1779 inline std::string* Field::release_name() {
1780 // @@protoc_insertion_point(field_release:google.protobuf.Field.name)
1781 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1782 }
set_allocated_name(std::string * name)1783 inline void Field::set_allocated_name(std::string* name) {
1784 if (name != nullptr) {
1785
1786 } else {
1787
1788 }
1789 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
1790 GetArena());
1791 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name)
1792 }
1793
1794 // string type_url = 6;
clear_type_url()1795 inline void Field::clear_type_url() {
1796 type_url_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1797 }
type_url()1798 inline const std::string& Field::type_url() const {
1799 // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url)
1800 return _internal_type_url();
1801 }
set_type_url(const std::string & value)1802 inline void Field::set_type_url(const std::string& value) {
1803 _internal_set_type_url(value);
1804 // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
1805 }
mutable_type_url()1806 inline std::string* Field::mutable_type_url() {
1807 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url)
1808 return _internal_mutable_type_url();
1809 }
_internal_type_url()1810 inline const std::string& Field::_internal_type_url() const {
1811 return type_url_.Get();
1812 }
_internal_set_type_url(const std::string & value)1813 inline void Field::_internal_set_type_url(const std::string& value) {
1814
1815 type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1816 }
set_type_url(std::string && value)1817 inline void Field::set_type_url(std::string&& value) {
1818
1819 type_url_.Set(
1820 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1821 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.type_url)
1822 }
set_type_url(const char * value)1823 inline void Field::set_type_url(const char* value) {
1824 GOOGLE_DCHECK(value != nullptr);
1825
1826 type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1827 GetArena());
1828 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url)
1829 }
set_type_url(const char * value,size_t size)1830 inline void Field::set_type_url(const char* value,
1831 size_t size) {
1832
1833 type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1834 reinterpret_cast<const char*>(value), size), GetArena());
1835 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url)
1836 }
_internal_mutable_type_url()1837 inline std::string* Field::_internal_mutable_type_url() {
1838
1839 return type_url_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1840 }
release_type_url()1841 inline std::string* Field::release_type_url() {
1842 // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
1843 return type_url_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1844 }
set_allocated_type_url(std::string * type_url)1845 inline void Field::set_allocated_type_url(std::string* type_url) {
1846 if (type_url != nullptr) {
1847
1848 } else {
1849
1850 }
1851 type_url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), type_url,
1852 GetArena());
1853 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url)
1854 }
1855
1856 // int32 oneof_index = 7;
clear_oneof_index()1857 inline void Field::clear_oneof_index() {
1858 oneof_index_ = 0;
1859 }
_internal_oneof_index()1860 inline ::PROTOBUF_NAMESPACE_ID::int32 Field::_internal_oneof_index() const {
1861 return oneof_index_;
1862 }
oneof_index()1863 inline ::PROTOBUF_NAMESPACE_ID::int32 Field::oneof_index() const {
1864 // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index)
1865 return _internal_oneof_index();
1866 }
_internal_set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value)1867 inline void Field::_internal_set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value) {
1868
1869 oneof_index_ = value;
1870 }
set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value)1871 inline void Field::set_oneof_index(::PROTOBUF_NAMESPACE_ID::int32 value) {
1872 _internal_set_oneof_index(value);
1873 // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
1874 }
1875
1876 // bool packed = 8;
clear_packed()1877 inline void Field::clear_packed() {
1878 packed_ = false;
1879 }
_internal_packed()1880 inline bool Field::_internal_packed() const {
1881 return packed_;
1882 }
packed()1883 inline bool Field::packed() const {
1884 // @@protoc_insertion_point(field_get:google.protobuf.Field.packed)
1885 return _internal_packed();
1886 }
_internal_set_packed(bool value)1887 inline void Field::_internal_set_packed(bool value) {
1888
1889 packed_ = value;
1890 }
set_packed(bool value)1891 inline void Field::set_packed(bool value) {
1892 _internal_set_packed(value);
1893 // @@protoc_insertion_point(field_set:google.protobuf.Field.packed)
1894 }
1895
1896 // repeated .google.protobuf.Option options = 9;
_internal_options_size()1897 inline int Field::_internal_options_size() const {
1898 return options_.size();
1899 }
options_size()1900 inline int Field::options_size() const {
1901 return _internal_options_size();
1902 }
clear_options()1903 inline void Field::clear_options() {
1904 options_.Clear();
1905 }
mutable_options(int index)1906 inline PROTOBUF_NAMESPACE_ID::Option* Field::mutable_options(int index) {
1907 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.options)
1908 return options_.Mutable(index);
1909 }
1910 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
mutable_options()1911 Field::mutable_options() {
1912 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options)
1913 return &options_;
1914 }
_internal_options(int index)1915 inline const PROTOBUF_NAMESPACE_ID::Option& Field::_internal_options(int index) const {
1916 return options_.Get(index);
1917 }
options(int index)1918 inline const PROTOBUF_NAMESPACE_ID::Option& Field::options(int index) const {
1919 // @@protoc_insertion_point(field_get:google.protobuf.Field.options)
1920 return _internal_options(index);
1921 }
_internal_add_options()1922 inline PROTOBUF_NAMESPACE_ID::Option* Field::_internal_add_options() {
1923 return options_.Add();
1924 }
add_options()1925 inline PROTOBUF_NAMESPACE_ID::Option* Field::add_options() {
1926 // @@protoc_insertion_point(field_add:google.protobuf.Field.options)
1927 return _internal_add_options();
1928 }
1929 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
options()1930 Field::options() const {
1931 // @@protoc_insertion_point(field_list:google.protobuf.Field.options)
1932 return options_;
1933 }
1934
1935 // string json_name = 10;
clear_json_name()1936 inline void Field::clear_json_name() {
1937 json_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1938 }
json_name()1939 inline const std::string& Field::json_name() const {
1940 // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name)
1941 return _internal_json_name();
1942 }
set_json_name(const std::string & value)1943 inline void Field::set_json_name(const std::string& value) {
1944 _internal_set_json_name(value);
1945 // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
1946 }
mutable_json_name()1947 inline std::string* Field::mutable_json_name() {
1948 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name)
1949 return _internal_mutable_json_name();
1950 }
_internal_json_name()1951 inline const std::string& Field::_internal_json_name() const {
1952 return json_name_.Get();
1953 }
_internal_set_json_name(const std::string & value)1954 inline void Field::_internal_set_json_name(const std::string& value) {
1955
1956 json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
1957 }
set_json_name(std::string && value)1958 inline void Field::set_json_name(std::string&& value) {
1959
1960 json_name_.Set(
1961 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
1962 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.json_name)
1963 }
set_json_name(const char * value)1964 inline void Field::set_json_name(const char* value) {
1965 GOOGLE_DCHECK(value != nullptr);
1966
1967 json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1968 GetArena());
1969 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name)
1970 }
set_json_name(const char * value,size_t size)1971 inline void Field::set_json_name(const char* value,
1972 size_t size) {
1973
1974 json_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1975 reinterpret_cast<const char*>(value), size), GetArena());
1976 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name)
1977 }
_internal_mutable_json_name()1978 inline std::string* Field::_internal_mutable_json_name() {
1979
1980 return json_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1981 }
release_json_name()1982 inline std::string* Field::release_json_name() {
1983 // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
1984 return json_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
1985 }
set_allocated_json_name(std::string * json_name)1986 inline void Field::set_allocated_json_name(std::string* json_name) {
1987 if (json_name != nullptr) {
1988
1989 } else {
1990
1991 }
1992 json_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), json_name,
1993 GetArena());
1994 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_name)
1995 }
1996
1997 // string default_value = 11;
clear_default_value()1998 inline void Field::clear_default_value() {
1999 default_value_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2000 }
default_value()2001 inline const std::string& Field::default_value() const {
2002 // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value)
2003 return _internal_default_value();
2004 }
set_default_value(const std::string & value)2005 inline void Field::set_default_value(const std::string& value) {
2006 _internal_set_default_value(value);
2007 // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
2008 }
mutable_default_value()2009 inline std::string* Field::mutable_default_value() {
2010 // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value)
2011 return _internal_mutable_default_value();
2012 }
_internal_default_value()2013 inline const std::string& Field::_internal_default_value() const {
2014 return default_value_.Get();
2015 }
_internal_set_default_value(const std::string & value)2016 inline void Field::_internal_set_default_value(const std::string& value) {
2017
2018 default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
2019 }
set_default_value(std::string && value)2020 inline void Field::set_default_value(std::string&& value) {
2021
2022 default_value_.Set(
2023 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
2024 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Field.default_value)
2025 }
set_default_value(const char * value)2026 inline void Field::set_default_value(const char* value) {
2027 GOOGLE_DCHECK(value != nullptr);
2028
2029 default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2030 GetArena());
2031 // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value)
2032 }
set_default_value(const char * value,size_t size)2033 inline void Field::set_default_value(const char* value,
2034 size_t size) {
2035
2036 default_value_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
2037 reinterpret_cast<const char*>(value), size), GetArena());
2038 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_value)
2039 }
_internal_mutable_default_value()2040 inline std::string* Field::_internal_mutable_default_value() {
2041
2042 return default_value_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2043 }
release_default_value()2044 inline std::string* Field::release_default_value() {
2045 // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
2046 return default_value_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2047 }
set_allocated_default_value(std::string * default_value)2048 inline void Field::set_allocated_default_value(std::string* default_value) {
2049 if (default_value != nullptr) {
2050
2051 } else {
2052
2053 }
2054 default_value_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), default_value,
2055 GetArena());
2056 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_value)
2057 }
2058
2059 // -------------------------------------------------------------------
2060
2061 // Enum
2062
2063 // string name = 1;
clear_name()2064 inline void Enum::clear_name() {
2065 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2066 }
name()2067 inline const std::string& Enum::name() const {
2068 // @@protoc_insertion_point(field_get:google.protobuf.Enum.name)
2069 return _internal_name();
2070 }
set_name(const std::string & value)2071 inline void Enum::set_name(const std::string& value) {
2072 _internal_set_name(value);
2073 // @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
2074 }
mutable_name()2075 inline std::string* Enum::mutable_name() {
2076 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name)
2077 return _internal_mutable_name();
2078 }
_internal_name()2079 inline const std::string& Enum::_internal_name() const {
2080 return name_.Get();
2081 }
_internal_set_name(const std::string & value)2082 inline void Enum::_internal_set_name(const std::string& value) {
2083
2084 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
2085 }
set_name(std::string && value)2086 inline void Enum::set_name(std::string&& value) {
2087
2088 name_.Set(
2089 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
2090 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Enum.name)
2091 }
set_name(const char * value)2092 inline void Enum::set_name(const char* value) {
2093 GOOGLE_DCHECK(value != nullptr);
2094
2095 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2096 GetArena());
2097 // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name)
2098 }
set_name(const char * value,size_t size)2099 inline void Enum::set_name(const char* value,
2100 size_t size) {
2101
2102 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
2103 reinterpret_cast<const char*>(value), size), GetArena());
2104 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name)
2105 }
_internal_mutable_name()2106 inline std::string* Enum::_internal_mutable_name() {
2107
2108 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2109 }
release_name()2110 inline std::string* Enum::release_name() {
2111 // @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
2112 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2113 }
set_allocated_name(std::string * name)2114 inline void Enum::set_allocated_name(std::string* name) {
2115 if (name != nullptr) {
2116
2117 } else {
2118
2119 }
2120 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
2121 GetArena());
2122 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name)
2123 }
2124
2125 // repeated .google.protobuf.EnumValue enumvalue = 2;
_internal_enumvalue_size()2126 inline int Enum::_internal_enumvalue_size() const {
2127 return enumvalue_.size();
2128 }
enumvalue_size()2129 inline int Enum::enumvalue_size() const {
2130 return _internal_enumvalue_size();
2131 }
clear_enumvalue()2132 inline void Enum::clear_enumvalue() {
2133 enumvalue_.Clear();
2134 }
mutable_enumvalue(int index)2135 inline PROTOBUF_NAMESPACE_ID::EnumValue* Enum::mutable_enumvalue(int index) {
2136 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.enumvalue)
2137 return enumvalue_.Mutable(index);
2138 }
2139 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValue >*
mutable_enumvalue()2140 Enum::mutable_enumvalue() {
2141 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.enumvalue)
2142 return &enumvalue_;
2143 }
_internal_enumvalue(int index)2144 inline const PROTOBUF_NAMESPACE_ID::EnumValue& Enum::_internal_enumvalue(int index) const {
2145 return enumvalue_.Get(index);
2146 }
enumvalue(int index)2147 inline const PROTOBUF_NAMESPACE_ID::EnumValue& Enum::enumvalue(int index) const {
2148 // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue)
2149 return _internal_enumvalue(index);
2150 }
_internal_add_enumvalue()2151 inline PROTOBUF_NAMESPACE_ID::EnumValue* Enum::_internal_add_enumvalue() {
2152 return enumvalue_.Add();
2153 }
add_enumvalue()2154 inline PROTOBUF_NAMESPACE_ID::EnumValue* Enum::add_enumvalue() {
2155 // @@protoc_insertion_point(field_add:google.protobuf.Enum.enumvalue)
2156 return _internal_add_enumvalue();
2157 }
2158 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::EnumValue >&
enumvalue()2159 Enum::enumvalue() const {
2160 // @@protoc_insertion_point(field_list:google.protobuf.Enum.enumvalue)
2161 return enumvalue_;
2162 }
2163
2164 // repeated .google.protobuf.Option options = 3;
_internal_options_size()2165 inline int Enum::_internal_options_size() const {
2166 return options_.size();
2167 }
options_size()2168 inline int Enum::options_size() const {
2169 return _internal_options_size();
2170 }
clear_options()2171 inline void Enum::clear_options() {
2172 options_.Clear();
2173 }
mutable_options(int index)2174 inline PROTOBUF_NAMESPACE_ID::Option* Enum::mutable_options(int index) {
2175 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.options)
2176 return options_.Mutable(index);
2177 }
2178 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
mutable_options()2179 Enum::mutable_options() {
2180 // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options)
2181 return &options_;
2182 }
_internal_options(int index)2183 inline const PROTOBUF_NAMESPACE_ID::Option& Enum::_internal_options(int index) const {
2184 return options_.Get(index);
2185 }
options(int index)2186 inline const PROTOBUF_NAMESPACE_ID::Option& Enum::options(int index) const {
2187 // @@protoc_insertion_point(field_get:google.protobuf.Enum.options)
2188 return _internal_options(index);
2189 }
_internal_add_options()2190 inline PROTOBUF_NAMESPACE_ID::Option* Enum::_internal_add_options() {
2191 return options_.Add();
2192 }
add_options()2193 inline PROTOBUF_NAMESPACE_ID::Option* Enum::add_options() {
2194 // @@protoc_insertion_point(field_add:google.protobuf.Enum.options)
2195 return _internal_add_options();
2196 }
2197 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
options()2198 Enum::options() const {
2199 // @@protoc_insertion_point(field_list:google.protobuf.Enum.options)
2200 return options_;
2201 }
2202
2203 // .google.protobuf.SourceContext source_context = 4;
_internal_has_source_context()2204 inline bool Enum::_internal_has_source_context() const {
2205 return this != internal_default_instance() && source_context_ != nullptr;
2206 }
has_source_context()2207 inline bool Enum::has_source_context() const {
2208 return _internal_has_source_context();
2209 }
_internal_source_context()2210 inline const PROTOBUF_NAMESPACE_ID::SourceContext& Enum::_internal_source_context() const {
2211 const PROTOBUF_NAMESPACE_ID::SourceContext* p = source_context_;
2212 return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::SourceContext*>(
2213 &PROTOBUF_NAMESPACE_ID::_SourceContext_default_instance_);
2214 }
source_context()2215 inline const PROTOBUF_NAMESPACE_ID::SourceContext& Enum::source_context() const {
2216 // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context)
2217 return _internal_source_context();
2218 }
unsafe_arena_set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext * source_context)2219 inline void Enum::unsafe_arena_set_allocated_source_context(
2220 PROTOBUF_NAMESPACE_ID::SourceContext* source_context) {
2221 if (GetArena() == nullptr) {
2222 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context_);
2223 }
2224 source_context_ = source_context;
2225 if (source_context) {
2226
2227 } else {
2228
2229 }
2230 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Enum.source_context)
2231 }
release_source_context()2232 inline PROTOBUF_NAMESPACE_ID::SourceContext* Enum::release_source_context() {
2233
2234 PROTOBUF_NAMESPACE_ID::SourceContext* temp = source_context_;
2235 source_context_ = nullptr;
2236 if (GetArena() != nullptr) {
2237 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2238 }
2239 return temp;
2240 }
unsafe_arena_release_source_context()2241 inline PROTOBUF_NAMESPACE_ID::SourceContext* Enum::unsafe_arena_release_source_context() {
2242 // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
2243
2244 PROTOBUF_NAMESPACE_ID::SourceContext* temp = source_context_;
2245 source_context_ = nullptr;
2246 return temp;
2247 }
_internal_mutable_source_context()2248 inline PROTOBUF_NAMESPACE_ID::SourceContext* Enum::_internal_mutable_source_context() {
2249
2250 if (source_context_ == nullptr) {
2251 auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceContext>(GetArena());
2252 source_context_ = p;
2253 }
2254 return source_context_;
2255 }
mutable_source_context()2256 inline PROTOBUF_NAMESPACE_ID::SourceContext* Enum::mutable_source_context() {
2257 // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context)
2258 return _internal_mutable_source_context();
2259 }
set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext * source_context)2260 inline void Enum::set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext* source_context) {
2261 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2262 if (message_arena == nullptr) {
2263 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context_);
2264 }
2265 if (source_context) {
2266 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2267 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context)->GetArena();
2268 if (message_arena != submessage_arena) {
2269 source_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2270 message_arena, source_context, submessage_arena);
2271 }
2272
2273 } else {
2274
2275 }
2276 source_context_ = source_context;
2277 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_context)
2278 }
2279
2280 // .google.protobuf.Syntax syntax = 5;
clear_syntax()2281 inline void Enum::clear_syntax() {
2282 syntax_ = 0;
2283 }
_internal_syntax()2284 inline PROTOBUF_NAMESPACE_ID::Syntax Enum::_internal_syntax() const {
2285 return static_cast< PROTOBUF_NAMESPACE_ID::Syntax >(syntax_);
2286 }
syntax()2287 inline PROTOBUF_NAMESPACE_ID::Syntax Enum::syntax() const {
2288 // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
2289 return _internal_syntax();
2290 }
_internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value)2291 inline void Enum::_internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value) {
2292
2293 syntax_ = value;
2294 }
set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value)2295 inline void Enum::set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value) {
2296 _internal_set_syntax(value);
2297 // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
2298 }
2299
2300 // -------------------------------------------------------------------
2301
2302 // EnumValue
2303
2304 // string name = 1;
clear_name()2305 inline void EnumValue::clear_name() {
2306 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2307 }
name()2308 inline const std::string& EnumValue::name() const {
2309 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name)
2310 return _internal_name();
2311 }
set_name(const std::string & value)2312 inline void EnumValue::set_name(const std::string& value) {
2313 _internal_set_name(value);
2314 // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
2315 }
mutable_name()2316 inline std::string* EnumValue::mutable_name() {
2317 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name)
2318 return _internal_mutable_name();
2319 }
_internal_name()2320 inline const std::string& EnumValue::_internal_name() const {
2321 return name_.Get();
2322 }
_internal_set_name(const std::string & value)2323 inline void EnumValue::_internal_set_name(const std::string& value) {
2324
2325 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
2326 }
set_name(std::string && value)2327 inline void EnumValue::set_name(std::string&& value) {
2328
2329 name_.Set(
2330 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
2331 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.EnumValue.name)
2332 }
set_name(const char * value)2333 inline void EnumValue::set_name(const char* value) {
2334 GOOGLE_DCHECK(value != nullptr);
2335
2336 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2337 GetArena());
2338 // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name)
2339 }
set_name(const char * value,size_t size)2340 inline void EnumValue::set_name(const char* value,
2341 size_t size) {
2342
2343 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
2344 reinterpret_cast<const char*>(value), size), GetArena());
2345 // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name)
2346 }
_internal_mutable_name()2347 inline std::string* EnumValue::_internal_mutable_name() {
2348
2349 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2350 }
release_name()2351 inline std::string* EnumValue::release_name() {
2352 // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
2353 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2354 }
set_allocated_name(std::string * name)2355 inline void EnumValue::set_allocated_name(std::string* name) {
2356 if (name != nullptr) {
2357
2358 } else {
2359
2360 }
2361 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
2362 GetArena());
2363 // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name)
2364 }
2365
2366 // int32 number = 2;
clear_number()2367 inline void EnumValue::clear_number() {
2368 number_ = 0;
2369 }
_internal_number()2370 inline ::PROTOBUF_NAMESPACE_ID::int32 EnumValue::_internal_number() const {
2371 return number_;
2372 }
number()2373 inline ::PROTOBUF_NAMESPACE_ID::int32 EnumValue::number() const {
2374 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number)
2375 return _internal_number();
2376 }
_internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value)2377 inline void EnumValue::_internal_set_number(::PROTOBUF_NAMESPACE_ID::int32 value) {
2378
2379 number_ = value;
2380 }
set_number(::PROTOBUF_NAMESPACE_ID::int32 value)2381 inline void EnumValue::set_number(::PROTOBUF_NAMESPACE_ID::int32 value) {
2382 _internal_set_number(value);
2383 // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number)
2384 }
2385
2386 // repeated .google.protobuf.Option options = 3;
_internal_options_size()2387 inline int EnumValue::_internal_options_size() const {
2388 return options_.size();
2389 }
options_size()2390 inline int EnumValue::options_size() const {
2391 return _internal_options_size();
2392 }
clear_options()2393 inline void EnumValue::clear_options() {
2394 options_.Clear();
2395 }
mutable_options(int index)2396 inline PROTOBUF_NAMESPACE_ID::Option* EnumValue::mutable_options(int index) {
2397 // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.options)
2398 return options_.Mutable(index);
2399 }
2400 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
mutable_options()2401 EnumValue::mutable_options() {
2402 // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValue.options)
2403 return &options_;
2404 }
_internal_options(int index)2405 inline const PROTOBUF_NAMESPACE_ID::Option& EnumValue::_internal_options(int index) const {
2406 return options_.Get(index);
2407 }
options(int index)2408 inline const PROTOBUF_NAMESPACE_ID::Option& EnumValue::options(int index) const {
2409 // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.options)
2410 return _internal_options(index);
2411 }
_internal_add_options()2412 inline PROTOBUF_NAMESPACE_ID::Option* EnumValue::_internal_add_options() {
2413 return options_.Add();
2414 }
add_options()2415 inline PROTOBUF_NAMESPACE_ID::Option* EnumValue::add_options() {
2416 // @@protoc_insertion_point(field_add:google.protobuf.EnumValue.options)
2417 return _internal_add_options();
2418 }
2419 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
options()2420 EnumValue::options() const {
2421 // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options)
2422 return options_;
2423 }
2424
2425 // -------------------------------------------------------------------
2426
2427 // Option
2428
2429 // string name = 1;
clear_name()2430 inline void Option::clear_name() {
2431 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2432 }
name()2433 inline const std::string& Option::name() const {
2434 // @@protoc_insertion_point(field_get:google.protobuf.Option.name)
2435 return _internal_name();
2436 }
set_name(const std::string & value)2437 inline void Option::set_name(const std::string& value) {
2438 _internal_set_name(value);
2439 // @@protoc_insertion_point(field_set:google.protobuf.Option.name)
2440 }
mutable_name()2441 inline std::string* Option::mutable_name() {
2442 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name)
2443 return _internal_mutable_name();
2444 }
_internal_name()2445 inline const std::string& Option::_internal_name() const {
2446 return name_.Get();
2447 }
_internal_set_name(const std::string & value)2448 inline void Option::_internal_set_name(const std::string& value) {
2449
2450 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
2451 }
set_name(std::string && value)2452 inline void Option::set_name(std::string&& value) {
2453
2454 name_.Set(
2455 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
2456 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Option.name)
2457 }
set_name(const char * value)2458 inline void Option::set_name(const char* value) {
2459 GOOGLE_DCHECK(value != nullptr);
2460
2461 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
2462 GetArena());
2463 // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name)
2464 }
set_name(const char * value,size_t size)2465 inline void Option::set_name(const char* value,
2466 size_t size) {
2467
2468 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
2469 reinterpret_cast<const char*>(value), size), GetArena());
2470 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name)
2471 }
_internal_mutable_name()2472 inline std::string* Option::_internal_mutable_name() {
2473
2474 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2475 }
release_name()2476 inline std::string* Option::release_name() {
2477 // @@protoc_insertion_point(field_release:google.protobuf.Option.name)
2478 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
2479 }
set_allocated_name(std::string * name)2480 inline void Option::set_allocated_name(std::string* name) {
2481 if (name != nullptr) {
2482
2483 } else {
2484
2485 }
2486 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
2487 GetArena());
2488 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name)
2489 }
2490
2491 // .google.protobuf.Any value = 2;
_internal_has_value()2492 inline bool Option::_internal_has_value() const {
2493 return this != internal_default_instance() && value_ != nullptr;
2494 }
has_value()2495 inline bool Option::has_value() const {
2496 return _internal_has_value();
2497 }
_internal_value()2498 inline const PROTOBUF_NAMESPACE_ID::Any& Option::_internal_value() const {
2499 const PROTOBUF_NAMESPACE_ID::Any* p = value_;
2500 return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Any*>(
2501 &PROTOBUF_NAMESPACE_ID::_Any_default_instance_);
2502 }
value()2503 inline const PROTOBUF_NAMESPACE_ID::Any& Option::value() const {
2504 // @@protoc_insertion_point(field_get:google.protobuf.Option.value)
2505 return _internal_value();
2506 }
unsafe_arena_set_allocated_value(PROTOBUF_NAMESPACE_ID::Any * value)2507 inline void Option::unsafe_arena_set_allocated_value(
2508 PROTOBUF_NAMESPACE_ID::Any* value) {
2509 if (GetArena() == nullptr) {
2510 delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_);
2511 }
2512 value_ = value;
2513 if (value) {
2514
2515 } else {
2516
2517 }
2518 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Option.value)
2519 }
release_value()2520 inline PROTOBUF_NAMESPACE_ID::Any* Option::release_value() {
2521
2522 PROTOBUF_NAMESPACE_ID::Any* temp = value_;
2523 value_ = nullptr;
2524 if (GetArena() != nullptr) {
2525 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
2526 }
2527 return temp;
2528 }
unsafe_arena_release_value()2529 inline PROTOBUF_NAMESPACE_ID::Any* Option::unsafe_arena_release_value() {
2530 // @@protoc_insertion_point(field_release:google.protobuf.Option.value)
2531
2532 PROTOBUF_NAMESPACE_ID::Any* temp = value_;
2533 value_ = nullptr;
2534 return temp;
2535 }
_internal_mutable_value()2536 inline PROTOBUF_NAMESPACE_ID::Any* Option::_internal_mutable_value() {
2537
2538 if (value_ == nullptr) {
2539 auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Any>(GetArena());
2540 value_ = p;
2541 }
2542 return value_;
2543 }
mutable_value()2544 inline PROTOBUF_NAMESPACE_ID::Any* Option::mutable_value() {
2545 // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value)
2546 return _internal_mutable_value();
2547 }
set_allocated_value(PROTOBUF_NAMESPACE_ID::Any * value)2548 inline void Option::set_allocated_value(PROTOBUF_NAMESPACE_ID::Any* value) {
2549 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
2550 if (message_arena == nullptr) {
2551 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(value_);
2552 }
2553 if (value) {
2554 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
2555 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(value)->GetArena();
2556 if (message_arena != submessage_arena) {
2557 value = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2558 message_arena, value, submessage_arena);
2559 }
2560
2561 } else {
2562
2563 }
2564 value_ = value;
2565 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value)
2566 }
2567
2568 #ifdef __GNUC__
2569 #pragma GCC diagnostic pop
2570 #endif // __GNUC__
2571 // -------------------------------------------------------------------
2572
2573 // -------------------------------------------------------------------
2574
2575 // -------------------------------------------------------------------
2576
2577 // -------------------------------------------------------------------
2578
2579
2580 // @@protoc_insertion_point(namespace_scope)
2581
2582 PROTOBUF_NAMESPACE_CLOSE
2583
2584 PROTOBUF_NAMESPACE_OPEN
2585
2586 template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::Field_Kind> : ::std::true_type {};
2587 template <>
2588 inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::Field_Kind>() {
2589 return PROTOBUF_NAMESPACE_ID::Field_Kind_descriptor();
2590 }
2591 template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::Field_Cardinality> : ::std::true_type {};
2592 template <>
2593 inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::Field_Cardinality>() {
2594 return PROTOBUF_NAMESPACE_ID::Field_Cardinality_descriptor();
2595 }
2596 template <> struct is_proto_enum< PROTOBUF_NAMESPACE_ID::Syntax> : ::std::true_type {};
2597 template <>
2598 inline const EnumDescriptor* GetEnumDescriptor< PROTOBUF_NAMESPACE_ID::Syntax>() {
2599 return PROTOBUF_NAMESPACE_ID::Syntax_descriptor();
2600 }
2601
2602 PROTOBUF_NAMESPACE_CLOSE
2603
2604 // @@protoc_insertion_point(global_scope)
2605
2606 #include <google/protobuf/port_undef.inc>
2607 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2ftype_2eproto
2608