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