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