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