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