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