blob: 1cf75d9bbf41234b049ff5f2fb84627cb01ab2a2 [file] [log] [blame]
Brian Silverman9c614bc2016-02-15 20:20:02 -05001// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: google/protobuf/struct.proto
3
Austin Schuh40c16522018-10-28 20:27:54 -07004#ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
5#define PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto
Brian Silverman9c614bc2016-02-15 20:20:02 -05006
7#include <string>
8
9#include <google/protobuf/stubs/common.h>
10
Austin Schuh40c16522018-10-28 20:27:54 -070011#if GOOGLE_PROTOBUF_VERSION < 3006001
Brian Silverman9c614bc2016-02-15 20:20:02 -050012#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
Austin Schuh40c16522018-10-28 20:27:54 -070016#if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
Brian Silverman9c614bc2016-02-15 20:20:02 -050017#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
Austin Schuh40c16522018-10-28 20:27:54 -070022#include <google/protobuf/io/coded_stream.h>
Brian Silverman9c614bc2016-02-15 20:20:02 -050023#include <google/protobuf/arena.h>
24#include <google/protobuf/arenastring.h>
Austin Schuh40c16522018-10-28 20:27:54 -070025#include <google/protobuf/generated_message_table_driven.h>
Brian Silverman9c614bc2016-02-15 20:20:02 -050026#include <google/protobuf/generated_message_util.h>
Austin Schuh40c16522018-10-28 20:27:54 -070027#include <google/protobuf/inlined_string_field.h>
Brian Silverman9c614bc2016-02-15 20:20:02 -050028#include <google/protobuf/metadata.h>
29#include <google/protobuf/message.h>
Austin Schuh40c16522018-10-28 20:27:54 -070030#include <google/protobuf/repeated_field.h> // IWYU pragma: export
31#include <google/protobuf/extension_set.h> // IWYU pragma: export
32#include <google/protobuf/map.h> // IWYU pragma: export
33#include <google/protobuf/map_entry.h>
Brian Silverman9c614bc2016-02-15 20:20:02 -050034#include <google/protobuf/map_field_inl.h>
35#include <google/protobuf/generated_enum_reflection.h>
36#include <google/protobuf/unknown_field_set.h>
37// @@protoc_insertion_point(includes)
Austin Schuh40c16522018-10-28 20:27:54 -070038#define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fstruct_2eproto LIBPROTOBUF_EXPORT
Brian Silverman9c614bc2016-02-15 20:20:02 -050039
Austin Schuh40c16522018-10-28 20:27:54 -070040namespace protobuf_google_2fprotobuf_2fstruct_2eproto {
41// Internal implementation detail -- do not use these members.
42struct LIBPROTOBUF_EXPORT TableStruct {
43 static const ::google::protobuf::internal::ParseTableField entries[];
44 static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
45 static const ::google::protobuf::internal::ParseTable schema[4];
46 static const ::google::protobuf::internal::FieldMetadata field_metadata[];
47 static const ::google::protobuf::internal::SerializationTable serialization_table[];
48 static const ::google::protobuf::uint32 offsets[];
49};
50void LIBPROTOBUF_EXPORT AddDescriptors();
51} // namespace protobuf_google_2fprotobuf_2fstruct_2eproto
Brian Silverman9c614bc2016-02-15 20:20:02 -050052namespace google {
53namespace protobuf {
Brian Silverman9c614bc2016-02-15 20:20:02 -050054class ListValue;
Austin Schuh40c16522018-10-28 20:27:54 -070055class ListValueDefaultTypeInternal;
56LIBPROTOBUF_EXPORT extern ListValueDefaultTypeInternal _ListValue_default_instance_;
Brian Silverman9c614bc2016-02-15 20:20:02 -050057class Struct;
Austin Schuh40c16522018-10-28 20:27:54 -070058class StructDefaultTypeInternal;
59LIBPROTOBUF_EXPORT extern StructDefaultTypeInternal _Struct_default_instance_;
60class Struct_FieldsEntry_DoNotUse;
61class Struct_FieldsEntry_DoNotUseDefaultTypeInternal;
62LIBPROTOBUF_EXPORT extern Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_;
Brian Silverman9c614bc2016-02-15 20:20:02 -050063class Value;
Austin Schuh40c16522018-10-28 20:27:54 -070064class ValueDefaultTypeInternal;
65LIBPROTOBUF_EXPORT extern ValueDefaultTypeInternal _Value_default_instance_;
66} // namespace protobuf
67} // namespace google
68namespace google {
69namespace protobuf {
70template<> LIBPROTOBUF_EXPORT ::google::protobuf::ListValue* Arena::CreateMaybeMessage<::google::protobuf::ListValue>(Arena*);
71template<> LIBPROTOBUF_EXPORT ::google::protobuf::Struct* Arena::CreateMaybeMessage<::google::protobuf::Struct>(Arena*);
72template<> LIBPROTOBUF_EXPORT ::google::protobuf::Struct_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::Struct_FieldsEntry_DoNotUse>(Arena*);
73template<> LIBPROTOBUF_EXPORT ::google::protobuf::Value* Arena::CreateMaybeMessage<::google::protobuf::Value>(Arena*);
74} // namespace protobuf
75} // namespace google
76namespace google {
77namespace protobuf {
Brian Silverman9c614bc2016-02-15 20:20:02 -050078
79enum NullValue {
80 NULL_VALUE = 0,
81 NullValue_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
82 NullValue_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
83};
84LIBPROTOBUF_EXPORT bool NullValue_IsValid(int value);
85const NullValue NullValue_MIN = NULL_VALUE;
86const NullValue NullValue_MAX = NULL_VALUE;
87const int NullValue_ARRAYSIZE = NullValue_MAX + 1;
88
89LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* NullValue_descriptor();
90inline const ::std::string& NullValue_Name(NullValue value) {
91 return ::google::protobuf::internal::NameOfEnum(
92 NullValue_descriptor(), value);
93}
94inline bool NullValue_Parse(
95 const ::std::string& name, NullValue* value) {
96 return ::google::protobuf::internal::ParseNamedEnum<NullValue>(
97 NullValue_descriptor(), name, value);
98}
99// ===================================================================
100
Austin Schuh40c16522018-10-28 20:27:54 -0700101class Struct_FieldsEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<Struct_FieldsEntry_DoNotUse,
102 ::std::string, ::google::protobuf::Value,
103 ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
104 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
105 0 > {
106public:
107 typedef ::google::protobuf::internal::MapEntry<Struct_FieldsEntry_DoNotUse,
108 ::std::string, ::google::protobuf::Value,
109 ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
110 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
111 0 > SuperType;
112 Struct_FieldsEntry_DoNotUse();
113 Struct_FieldsEntry_DoNotUse(::google::protobuf::Arena* arena);
114 void MergeFrom(const Struct_FieldsEntry_DoNotUse& other);
115 static const Struct_FieldsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const Struct_FieldsEntry_DoNotUse*>(&_Struct_FieldsEntry_DoNotUse_default_instance_); }
116 void MergeFrom(const ::google::protobuf::Message& other) final;
117 ::google::protobuf::Metadata GetMetadata() const;
118};
119
120// -------------------------------------------------------------------
121
122class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500123 public:
124 Struct();
125 virtual ~Struct();
126
127 Struct(const Struct& from);
128
129 inline Struct& operator=(const Struct& from) {
130 CopyFrom(from);
131 return *this;
132 }
Austin Schuh40c16522018-10-28 20:27:54 -0700133 #if LANG_CXX11
134 Struct(Struct&& from) noexcept
135 : Struct() {
136 *this = ::std::move(from);
137 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500138
Austin Schuh40c16522018-10-28 20:27:54 -0700139 inline Struct& operator=(Struct&& from) noexcept {
140 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
141 if (this != &from) InternalSwap(&from);
142 } else {
143 CopyFrom(from);
144 }
145 return *this;
146 }
147 #endif
148 inline ::google::protobuf::Arena* GetArena() const final {
149 return GetArenaNoVirtual();
150 }
151 inline void* GetMaybeArenaPointer() const final {
152 return MaybeArenaPtr();
153 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500154 static const ::google::protobuf::Descriptor* descriptor();
155 static const Struct& default_instance();
156
Austin Schuh40c16522018-10-28 20:27:54 -0700157 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
158 static inline const Struct* internal_default_instance() {
159 return reinterpret_cast<const Struct*>(
160 &_Struct_default_instance_);
161 }
162 static constexpr int kIndexInFileMessages =
163 1;
164
165 void UnsafeArenaSwap(Struct* other);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500166 void Swap(Struct* other);
Austin Schuh40c16522018-10-28 20:27:54 -0700167 friend void swap(Struct& a, Struct& b) {
168 a.Swap(&b);
169 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500170
171 // implements Message ----------------------------------------------
172
Austin Schuh40c16522018-10-28 20:27:54 -0700173 inline Struct* New() const final {
174 return CreateMaybeMessage<Struct>(NULL);
175 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500176
Austin Schuh40c16522018-10-28 20:27:54 -0700177 Struct* New(::google::protobuf::Arena* arena) const final {
178 return CreateMaybeMessage<Struct>(arena);
179 }
180 void CopyFrom(const ::google::protobuf::Message& from) final;
181 void MergeFrom(const ::google::protobuf::Message& from) final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500182 void CopyFrom(const Struct& from);
183 void MergeFrom(const Struct& from);
Austin Schuh40c16522018-10-28 20:27:54 -0700184 void Clear() final;
185 bool IsInitialized() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500186
Austin Schuh40c16522018-10-28 20:27:54 -0700187 size_t ByteSizeLong() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500188 bool MergePartialFromCodedStream(
Austin Schuh40c16522018-10-28 20:27:54 -0700189 ::google::protobuf::io::CodedInputStream* input) final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500190 void SerializeWithCachedSizes(
Austin Schuh40c16522018-10-28 20:27:54 -0700191 ::google::protobuf::io::CodedOutputStream* output) const final;
192 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
193 bool deterministic, ::google::protobuf::uint8* target) const final;
194 int GetCachedSize() const final { return _cached_size_.Get(); }
195
Brian Silverman9c614bc2016-02-15 20:20:02 -0500196 private:
197 void SharedCtor();
198 void SharedDtor();
Austin Schuh40c16522018-10-28 20:27:54 -0700199 void SetCachedSize(int size) const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500200 void InternalSwap(Struct* other);
Austin Schuh40c16522018-10-28 20:27:54 -0700201 protected:
202 explicit Struct(::google::protobuf::Arena* arena);
203 private:
204 static void ArenaDtor(void* object);
205 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500206 private:
207 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
208 return _internal_metadata_.arena();
209 }
210 inline void* MaybeArenaPtr() const {
211 return _internal_metadata_.raw_arena_ptr();
212 }
213 public:
214
Austin Schuh40c16522018-10-28 20:27:54 -0700215 ::google::protobuf::Metadata GetMetadata() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500216
217 // nested types ----------------------------------------------------
218
219
220 // accessors -------------------------------------------------------
221
222 // map<string, .google.protobuf.Value> fields = 1;
223 int fields_size() const;
224 void clear_fields();
225 static const int kFieldsFieldNumber = 1;
226 const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
227 fields() const;
228 ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
229 mutable_fields();
230
231 // @@protoc_insertion_point(class_scope:google.protobuf.Struct)
232 private:
233
234 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
Austin Schuh40c16522018-10-28 20:27:54 -0700235 template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
236 typedef void InternalArenaConstructable_;
237 typedef void DestructorSkippable_;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500238 ::google::protobuf::internal::MapField<
Austin Schuh40c16522018-10-28 20:27:54 -0700239 Struct_FieldsEntry_DoNotUse,
Brian Silverman9c614bc2016-02-15 20:20:02 -0500240 ::std::string, ::google::protobuf::Value,
241 ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
242 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
243 0 > fields_;
Austin Schuh40c16522018-10-28 20:27:54 -0700244 mutable ::google::protobuf::internal::CachedSize _cached_size_;
245 friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500246};
247// -------------------------------------------------------------------
248
Austin Schuh40c16522018-10-28 20:27:54 -0700249class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500250 public:
251 Value();
252 virtual ~Value();
253
254 Value(const Value& from);
255
256 inline Value& operator=(const Value& from) {
257 CopyFrom(from);
258 return *this;
259 }
Austin Schuh40c16522018-10-28 20:27:54 -0700260 #if LANG_CXX11
261 Value(Value&& from) noexcept
262 : Value() {
263 *this = ::std::move(from);
264 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500265
Austin Schuh40c16522018-10-28 20:27:54 -0700266 inline Value& operator=(Value&& from) noexcept {
267 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
268 if (this != &from) InternalSwap(&from);
269 } else {
270 CopyFrom(from);
271 }
272 return *this;
273 }
274 #endif
275 inline ::google::protobuf::Arena* GetArena() const final {
276 return GetArenaNoVirtual();
277 }
278 inline void* GetMaybeArenaPointer() const final {
279 return MaybeArenaPtr();
280 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500281 static const ::google::protobuf::Descriptor* descriptor();
282 static const Value& default_instance();
283
284 enum KindCase {
285 kNullValue = 1,
286 kNumberValue = 2,
287 kStringValue = 3,
288 kBoolValue = 4,
289 kStructValue = 5,
290 kListValue = 6,
291 KIND_NOT_SET = 0,
292 };
293
Austin Schuh40c16522018-10-28 20:27:54 -0700294 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
295 static inline const Value* internal_default_instance() {
296 return reinterpret_cast<const Value*>(
297 &_Value_default_instance_);
298 }
299 static constexpr int kIndexInFileMessages =
300 2;
301
302 void UnsafeArenaSwap(Value* other);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500303 void Swap(Value* other);
Austin Schuh40c16522018-10-28 20:27:54 -0700304 friend void swap(Value& a, Value& b) {
305 a.Swap(&b);
306 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500307
308 // implements Message ----------------------------------------------
309
Austin Schuh40c16522018-10-28 20:27:54 -0700310 inline Value* New() const final {
311 return CreateMaybeMessage<Value>(NULL);
312 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500313
Austin Schuh40c16522018-10-28 20:27:54 -0700314 Value* New(::google::protobuf::Arena* arena) const final {
315 return CreateMaybeMessage<Value>(arena);
316 }
317 void CopyFrom(const ::google::protobuf::Message& from) final;
318 void MergeFrom(const ::google::protobuf::Message& from) final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500319 void CopyFrom(const Value& from);
320 void MergeFrom(const Value& from);
Austin Schuh40c16522018-10-28 20:27:54 -0700321 void Clear() final;
322 bool IsInitialized() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500323
Austin Schuh40c16522018-10-28 20:27:54 -0700324 size_t ByteSizeLong() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500325 bool MergePartialFromCodedStream(
Austin Schuh40c16522018-10-28 20:27:54 -0700326 ::google::protobuf::io::CodedInputStream* input) final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500327 void SerializeWithCachedSizes(
Austin Schuh40c16522018-10-28 20:27:54 -0700328 ::google::protobuf::io::CodedOutputStream* output) const final;
329 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
330 bool deterministic, ::google::protobuf::uint8* target) const final;
331 int GetCachedSize() const final { return _cached_size_.Get(); }
332
Brian Silverman9c614bc2016-02-15 20:20:02 -0500333 private:
334 void SharedCtor();
335 void SharedDtor();
Austin Schuh40c16522018-10-28 20:27:54 -0700336 void SetCachedSize(int size) const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500337 void InternalSwap(Value* other);
Austin Schuh40c16522018-10-28 20:27:54 -0700338 protected:
339 explicit Value(::google::protobuf::Arena* arena);
340 private:
341 static void ArenaDtor(void* object);
342 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500343 private:
344 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
345 return _internal_metadata_.arena();
346 }
347 inline void* MaybeArenaPtr() const {
348 return _internal_metadata_.raw_arena_ptr();
349 }
350 public:
351
Austin Schuh40c16522018-10-28 20:27:54 -0700352 ::google::protobuf::Metadata GetMetadata() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500353
354 // nested types ----------------------------------------------------
355
356 // accessors -------------------------------------------------------
357
Austin Schuh40c16522018-10-28 20:27:54 -0700358 // .google.protobuf.NullValue null_value = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500359 private:
360 bool has_null_value() const;
361 public:
362 void clear_null_value();
363 static const int kNullValueFieldNumber = 1;
364 ::google::protobuf::NullValue null_value() const;
365 void set_null_value(::google::protobuf::NullValue value);
366
Austin Schuh40c16522018-10-28 20:27:54 -0700367 // double number_value = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500368 private:
369 bool has_number_value() const;
370 public:
371 void clear_number_value();
372 static const int kNumberValueFieldNumber = 2;
373 double number_value() const;
374 void set_number_value(double value);
375
Austin Schuh40c16522018-10-28 20:27:54 -0700376 // string string_value = 3;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500377 private:
378 bool has_string_value() const;
379 public:
380 void clear_string_value();
381 static const int kStringValueFieldNumber = 3;
382 const ::std::string& string_value() const;
383 void set_string_value(const ::std::string& value);
Austin Schuh40c16522018-10-28 20:27:54 -0700384 #if LANG_CXX11
385 void set_string_value(::std::string&& value);
386 #endif
Brian Silverman9c614bc2016-02-15 20:20:02 -0500387 void set_string_value(const char* value);
388 void set_string_value(const char* value, size_t size);
389 ::std::string* mutable_string_value();
390 ::std::string* release_string_value();
391 void set_allocated_string_value(::std::string* string_value);
Austin Schuh40c16522018-10-28 20:27:54 -0700392 PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
393 " string fields are deprecated and will be removed in a"
394 " future release.")
395 ::std::string* unsafe_arena_release_string_value();
396 PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
397 " string fields are deprecated and will be removed in a"
398 " future release.")
399 void unsafe_arena_set_allocated_string_value(
400 ::std::string* string_value);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500401
Austin Schuh40c16522018-10-28 20:27:54 -0700402 // bool bool_value = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500403 private:
404 bool has_bool_value() const;
405 public:
406 void clear_bool_value();
407 static const int kBoolValueFieldNumber = 4;
408 bool bool_value() const;
409 void set_bool_value(bool value);
410
Austin Schuh40c16522018-10-28 20:27:54 -0700411 // .google.protobuf.Struct struct_value = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500412 bool has_struct_value() const;
413 void clear_struct_value();
414 static const int kStructValueFieldNumber = 5;
Austin Schuh40c16522018-10-28 20:27:54 -0700415 private:
416 const ::google::protobuf::Struct& _internal_struct_value() const;
417 public:
Brian Silverman9c614bc2016-02-15 20:20:02 -0500418 const ::google::protobuf::Struct& struct_value() const;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500419 ::google::protobuf::Struct* release_struct_value();
Austin Schuh40c16522018-10-28 20:27:54 -0700420 ::google::protobuf::Struct* mutable_struct_value();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500421 void set_allocated_struct_value(::google::protobuf::Struct* struct_value);
Austin Schuh40c16522018-10-28 20:27:54 -0700422 void unsafe_arena_set_allocated_struct_value(
423 ::google::protobuf::Struct* struct_value);
424 ::google::protobuf::Struct* unsafe_arena_release_struct_value();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500425
Austin Schuh40c16522018-10-28 20:27:54 -0700426 // .google.protobuf.ListValue list_value = 6;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500427 bool has_list_value() const;
428 void clear_list_value();
429 static const int kListValueFieldNumber = 6;
Austin Schuh40c16522018-10-28 20:27:54 -0700430 private:
431 const ::google::protobuf::ListValue& _internal_list_value() const;
432 public:
Brian Silverman9c614bc2016-02-15 20:20:02 -0500433 const ::google::protobuf::ListValue& list_value() const;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500434 ::google::protobuf::ListValue* release_list_value();
Austin Schuh40c16522018-10-28 20:27:54 -0700435 ::google::protobuf::ListValue* mutable_list_value();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500436 void set_allocated_list_value(::google::protobuf::ListValue* list_value);
Austin Schuh40c16522018-10-28 20:27:54 -0700437 void unsafe_arena_set_allocated_list_value(
438 ::google::protobuf::ListValue* list_value);
439 ::google::protobuf::ListValue* unsafe_arena_release_list_value();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500440
Austin Schuh40c16522018-10-28 20:27:54 -0700441 void clear_kind();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500442 KindCase kind_case() const;
443 // @@protoc_insertion_point(class_scope:google.protobuf.Value)
444 private:
Austin Schuh40c16522018-10-28 20:27:54 -0700445 void set_has_null_value();
446 void set_has_number_value();
447 void set_has_string_value();
448 void set_has_bool_value();
449 void set_has_struct_value();
450 void set_has_list_value();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500451
452 inline bool has_kind() const;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500453 inline void clear_has_kind();
454
455 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
Austin Schuh40c16522018-10-28 20:27:54 -0700456 template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
457 typedef void InternalArenaConstructable_;
458 typedef void DestructorSkippable_;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500459 union KindUnion {
460 KindUnion() {}
461 int null_value_;
462 double number_value_;
463 ::google::protobuf::internal::ArenaStringPtr string_value_;
464 bool bool_value_;
465 ::google::protobuf::Struct* struct_value_;
466 ::google::protobuf::ListValue* list_value_;
467 } kind_;
Austin Schuh40c16522018-10-28 20:27:54 -0700468 mutable ::google::protobuf::internal::CachedSize _cached_size_;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500469 ::google::protobuf::uint32 _oneof_case_[1];
470
Austin Schuh40c16522018-10-28 20:27:54 -0700471 friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500472};
473// -------------------------------------------------------------------
474
Austin Schuh40c16522018-10-28 20:27:54 -0700475class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500476 public:
477 ListValue();
478 virtual ~ListValue();
479
480 ListValue(const ListValue& from);
481
482 inline ListValue& operator=(const ListValue& from) {
483 CopyFrom(from);
484 return *this;
485 }
Austin Schuh40c16522018-10-28 20:27:54 -0700486 #if LANG_CXX11
487 ListValue(ListValue&& from) noexcept
488 : ListValue() {
489 *this = ::std::move(from);
490 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500491
Austin Schuh40c16522018-10-28 20:27:54 -0700492 inline ListValue& operator=(ListValue&& from) noexcept {
493 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
494 if (this != &from) InternalSwap(&from);
495 } else {
496 CopyFrom(from);
497 }
498 return *this;
499 }
500 #endif
501 inline ::google::protobuf::Arena* GetArena() const final {
502 return GetArenaNoVirtual();
503 }
504 inline void* GetMaybeArenaPointer() const final {
505 return MaybeArenaPtr();
506 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500507 static const ::google::protobuf::Descriptor* descriptor();
508 static const ListValue& default_instance();
509
Austin Schuh40c16522018-10-28 20:27:54 -0700510 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
511 static inline const ListValue* internal_default_instance() {
512 return reinterpret_cast<const ListValue*>(
513 &_ListValue_default_instance_);
514 }
515 static constexpr int kIndexInFileMessages =
516 3;
517
518 void UnsafeArenaSwap(ListValue* other);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500519 void Swap(ListValue* other);
Austin Schuh40c16522018-10-28 20:27:54 -0700520 friend void swap(ListValue& a, ListValue& b) {
521 a.Swap(&b);
522 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500523
524 // implements Message ----------------------------------------------
525
Austin Schuh40c16522018-10-28 20:27:54 -0700526 inline ListValue* New() const final {
527 return CreateMaybeMessage<ListValue>(NULL);
528 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500529
Austin Schuh40c16522018-10-28 20:27:54 -0700530 ListValue* New(::google::protobuf::Arena* arena) const final {
531 return CreateMaybeMessage<ListValue>(arena);
532 }
533 void CopyFrom(const ::google::protobuf::Message& from) final;
534 void MergeFrom(const ::google::protobuf::Message& from) final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500535 void CopyFrom(const ListValue& from);
536 void MergeFrom(const ListValue& from);
Austin Schuh40c16522018-10-28 20:27:54 -0700537 void Clear() final;
538 bool IsInitialized() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500539
Austin Schuh40c16522018-10-28 20:27:54 -0700540 size_t ByteSizeLong() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500541 bool MergePartialFromCodedStream(
Austin Schuh40c16522018-10-28 20:27:54 -0700542 ::google::protobuf::io::CodedInputStream* input) final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500543 void SerializeWithCachedSizes(
Austin Schuh40c16522018-10-28 20:27:54 -0700544 ::google::protobuf::io::CodedOutputStream* output) const final;
545 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
546 bool deterministic, ::google::protobuf::uint8* target) const final;
547 int GetCachedSize() const final { return _cached_size_.Get(); }
548
Brian Silverman9c614bc2016-02-15 20:20:02 -0500549 private:
550 void SharedCtor();
551 void SharedDtor();
Austin Schuh40c16522018-10-28 20:27:54 -0700552 void SetCachedSize(int size) const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500553 void InternalSwap(ListValue* other);
Austin Schuh40c16522018-10-28 20:27:54 -0700554 protected:
555 explicit ListValue(::google::protobuf::Arena* arena);
556 private:
557 static void ArenaDtor(void* object);
558 inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500559 private:
560 inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
561 return _internal_metadata_.arena();
562 }
563 inline void* MaybeArenaPtr() const {
564 return _internal_metadata_.raw_arena_ptr();
565 }
566 public:
567
Austin Schuh40c16522018-10-28 20:27:54 -0700568 ::google::protobuf::Metadata GetMetadata() const final;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500569
570 // nested types ----------------------------------------------------
571
572 // accessors -------------------------------------------------------
573
574 // repeated .google.protobuf.Value values = 1;
575 int values_size() const;
576 void clear_values();
577 static const int kValuesFieldNumber = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500578 ::google::protobuf::Value* mutable_values(int index);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500579 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
580 mutable_values();
Austin Schuh40c16522018-10-28 20:27:54 -0700581 const ::google::protobuf::Value& values(int index) const;
582 ::google::protobuf::Value* add_values();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500583 const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
584 values() const;
585
586 // @@protoc_insertion_point(class_scope:google.protobuf.ListValue)
587 private:
588
589 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
Austin Schuh40c16522018-10-28 20:27:54 -0700590 template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
591 typedef void InternalArenaConstructable_;
592 typedef void DestructorSkippable_;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500593 ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_;
Austin Schuh40c16522018-10-28 20:27:54 -0700594 mutable ::google::protobuf::internal::CachedSize _cached_size_;
595 friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500596};
597// ===================================================================
598
599
600// ===================================================================
601
Austin Schuh40c16522018-10-28 20:27:54 -0700602#ifdef __GNUC__
603 #pragma GCC diagnostic push
604 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
605#endif // __GNUC__
606// -------------------------------------------------------------------
607
Brian Silverman9c614bc2016-02-15 20:20:02 -0500608// Struct
609
610// map<string, .google.protobuf.Value> fields = 1;
611inline int Struct::fields_size() const {
612 return fields_.size();
613}
614inline void Struct::clear_fields() {
615 fields_.Clear();
616}
617inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >&
618Struct::fields() const {
619 // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields)
620 return fields_.GetMap();
621}
622inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >*
623Struct::mutable_fields() {
624 // @@protoc_insertion_point(field_mutable_map:google.protobuf.Struct.fields)
625 return fields_.MutableMap();
626}
627
628// -------------------------------------------------------------------
629
630// Value
631
Austin Schuh40c16522018-10-28 20:27:54 -0700632// .google.protobuf.NullValue null_value = 1;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500633inline bool Value::has_null_value() const {
634 return kind_case() == kNullValue;
635}
636inline void Value::set_has_null_value() {
637 _oneof_case_[0] = kNullValue;
638}
639inline void Value::clear_null_value() {
640 if (has_null_value()) {
641 kind_.null_value_ = 0;
642 clear_has_kind();
643 }
644}
645inline ::google::protobuf::NullValue Value::null_value() const {
646 // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value)
647 if (has_null_value()) {
648 return static_cast< ::google::protobuf::NullValue >(kind_.null_value_);
649 }
650 return static_cast< ::google::protobuf::NullValue >(0);
651}
652inline void Value::set_null_value(::google::protobuf::NullValue value) {
653 if (!has_null_value()) {
654 clear_kind();
655 set_has_null_value();
656 }
657 kind_.null_value_ = value;
658 // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value)
659}
660
Austin Schuh40c16522018-10-28 20:27:54 -0700661// double number_value = 2;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500662inline bool Value::has_number_value() const {
663 return kind_case() == kNumberValue;
664}
665inline void Value::set_has_number_value() {
666 _oneof_case_[0] = kNumberValue;
667}
668inline void Value::clear_number_value() {
669 if (has_number_value()) {
670 kind_.number_value_ = 0;
671 clear_has_kind();
672 }
673}
674inline double Value::number_value() const {
675 // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value)
676 if (has_number_value()) {
677 return kind_.number_value_;
678 }
679 return 0;
680}
681inline void Value::set_number_value(double value) {
682 if (!has_number_value()) {
683 clear_kind();
684 set_has_number_value();
685 }
686 kind_.number_value_ = value;
687 // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value)
688}
689
Austin Schuh40c16522018-10-28 20:27:54 -0700690// string string_value = 3;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500691inline bool Value::has_string_value() const {
692 return kind_case() == kStringValue;
693}
694inline void Value::set_has_string_value() {
695 _oneof_case_[0] = kStringValue;
696}
697inline void Value::clear_string_value() {
698 if (has_string_value()) {
Austin Schuh40c16522018-10-28 20:27:54 -0700699 kind_.string_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
700 GetArenaNoVirtual());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500701 clear_has_kind();
702 }
703}
704inline const ::std::string& Value::string_value() const {
705 // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value)
706 if (has_string_value()) {
Austin Schuh40c16522018-10-28 20:27:54 -0700707 return kind_.string_value_.Get();
Brian Silverman9c614bc2016-02-15 20:20:02 -0500708 }
709 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
710}
711inline void Value::set_string_value(const ::std::string& value) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500712 if (!has_string_value()) {
713 clear_kind();
714 set_has_string_value();
715 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
716 }
Austin Schuh40c16522018-10-28 20:27:54 -0700717 kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
718 GetArenaNoVirtual());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500719 // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
720}
Austin Schuh40c16522018-10-28 20:27:54 -0700721#if LANG_CXX11
722inline void Value::set_string_value(::std::string&& value) {
723 // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500724 if (!has_string_value()) {
725 clear_kind();
726 set_has_string_value();
727 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
728 }
Austin Schuh40c16522018-10-28 20:27:54 -0700729 kind_.string_value_.Set(
730 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
731 // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Value.string_value)
732}
733#endif
734inline void Value::set_string_value(const char* value) {
735 GOOGLE_DCHECK(value != NULL);
736 if (!has_string_value()) {
737 clear_kind();
738 set_has_string_value();
739 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
740 }
741 kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
742 ::std::string(value), GetArenaNoVirtual());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500743 // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value)
744}
Austin Schuh40c16522018-10-28 20:27:54 -0700745inline void Value::set_string_value(const char* value,
746 size_t size) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500747 if (!has_string_value()) {
748 clear_kind();
749 set_has_string_value();
750 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
751 }
Austin Schuh40c16522018-10-28 20:27:54 -0700752 kind_.string_value_.Set(
753 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
754 reinterpret_cast<const char*>(value), size),
755 GetArenaNoVirtual());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500756 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_value)
757}
758inline ::std::string* Value::mutable_string_value() {
759 if (!has_string_value()) {
760 clear_kind();
761 set_has_string_value();
762 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
763 }
Austin Schuh40c16522018-10-28 20:27:54 -0700764 return kind_.string_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
765 GetArenaNoVirtual());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500766 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500767}
768inline ::std::string* Value::release_string_value() {
Austin Schuh40c16522018-10-28 20:27:54 -0700769 // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500770 if (has_string_value()) {
771 clear_has_kind();
Austin Schuh40c16522018-10-28 20:27:54 -0700772 return kind_.string_value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
773 GetArenaNoVirtual());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500774 } else {
775 return NULL;
776 }
777}
778inline void Value::set_allocated_string_value(::std::string* string_value) {
779 if (!has_string_value()) {
780 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
781 }
782 clear_kind();
783 if (string_value != NULL) {
784 set_has_string_value();
Austin Schuh40c16522018-10-28 20:27:54 -0700785 kind_.string_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value,
786 GetArenaNoVirtual());
Brian Silverman9c614bc2016-02-15 20:20:02 -0500787 }
788 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value)
789}
Austin Schuh40c16522018-10-28 20:27:54 -0700790inline ::std::string* Value::unsafe_arena_release_string_value() {
791 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.string_value)
792 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
793 if (has_string_value()) {
794 clear_has_kind();
795 return kind_.string_value_.UnsafeArenaRelease(
796 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
797 } else {
798 return NULL;
799 }
800}
801inline void Value::unsafe_arena_set_allocated_string_value(::std::string* string_value) {
802 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
803 if (!has_string_value()) {
804 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
805 }
806 clear_kind();
807 if (string_value) {
808 set_has_string_value();
809 kind_.string_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value, GetArenaNoVirtual());
810 }
811 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.string_value)
812}
Brian Silverman9c614bc2016-02-15 20:20:02 -0500813
Austin Schuh40c16522018-10-28 20:27:54 -0700814// bool bool_value = 4;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500815inline bool Value::has_bool_value() const {
816 return kind_case() == kBoolValue;
817}
818inline void Value::set_has_bool_value() {
819 _oneof_case_[0] = kBoolValue;
820}
821inline void Value::clear_bool_value() {
822 if (has_bool_value()) {
823 kind_.bool_value_ = false;
824 clear_has_kind();
825 }
826}
827inline bool Value::bool_value() const {
828 // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value)
829 if (has_bool_value()) {
830 return kind_.bool_value_;
831 }
832 return false;
833}
834inline void Value::set_bool_value(bool value) {
835 if (!has_bool_value()) {
836 clear_kind();
837 set_has_bool_value();
838 }
839 kind_.bool_value_ = value;
840 // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value)
841}
842
Austin Schuh40c16522018-10-28 20:27:54 -0700843// .google.protobuf.Struct struct_value = 5;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500844inline bool Value::has_struct_value() const {
845 return kind_case() == kStructValue;
846}
847inline void Value::set_has_struct_value() {
848 _oneof_case_[0] = kStructValue;
849}
850inline void Value::clear_struct_value() {
851 if (has_struct_value()) {
Austin Schuh40c16522018-10-28 20:27:54 -0700852 if (GetArenaNoVirtual() == NULL) {
853 delete kind_.struct_value_;
854 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500855 clear_has_kind();
856 }
857}
Austin Schuh40c16522018-10-28 20:27:54 -0700858inline const ::google::protobuf::Struct& Value::_internal_struct_value() const {
859 return *kind_.struct_value_;
860}
861inline ::google::protobuf::Struct* Value::release_struct_value() {
862 // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value)
863 if (has_struct_value()) {
864 clear_has_kind();
865 ::google::protobuf::Struct* temp = kind_.struct_value_;
866 if (GetArenaNoVirtual() != NULL) {
867 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
868 }
869 kind_.struct_value_ = NULL;
870 return temp;
871 } else {
872 return NULL;
873 }
874}
875inline const ::google::protobuf::Struct& Value::struct_value() const {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500876 // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value)
877 return has_struct_value()
878 ? *kind_.struct_value_
Austin Schuh40c16522018-10-28 20:27:54 -0700879 : *reinterpret_cast< ::google::protobuf::Struct*>(&::google::protobuf::_Struct_default_instance_);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500880}
Austin Schuh40c16522018-10-28 20:27:54 -0700881inline ::google::protobuf::Struct* Value::unsafe_arena_release_struct_value() {
882 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500883 if (has_struct_value()) {
884 clear_has_kind();
885 ::google::protobuf::Struct* temp = kind_.struct_value_;
886 kind_.struct_value_ = NULL;
887 return temp;
888 } else {
889 return NULL;
890 }
891}
Austin Schuh40c16522018-10-28 20:27:54 -0700892inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* struct_value) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500893 clear_kind();
894 if (struct_value) {
895 set_has_struct_value();
896 kind_.struct_value_ = struct_value;
897 }
Austin Schuh40c16522018-10-28 20:27:54 -0700898 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value)
899}
900inline ::google::protobuf::Struct* Value::mutable_struct_value() {
901 if (!has_struct_value()) {
902 clear_kind();
903 set_has_struct_value();
904 kind_.struct_value_ = CreateMaybeMessage< ::google::protobuf::Struct >(
905 GetArenaNoVirtual());
906 }
907 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value)
908 return kind_.struct_value_;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500909}
910
Austin Schuh40c16522018-10-28 20:27:54 -0700911// .google.protobuf.ListValue list_value = 6;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500912inline bool Value::has_list_value() const {
913 return kind_case() == kListValue;
914}
915inline void Value::set_has_list_value() {
916 _oneof_case_[0] = kListValue;
917}
918inline void Value::clear_list_value() {
919 if (has_list_value()) {
Austin Schuh40c16522018-10-28 20:27:54 -0700920 if (GetArenaNoVirtual() == NULL) {
921 delete kind_.list_value_;
922 }
Brian Silverman9c614bc2016-02-15 20:20:02 -0500923 clear_has_kind();
924 }
925}
Austin Schuh40c16522018-10-28 20:27:54 -0700926inline const ::google::protobuf::ListValue& Value::_internal_list_value() const {
927 return *kind_.list_value_;
928}
929inline ::google::protobuf::ListValue* Value::release_list_value() {
930 // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value)
931 if (has_list_value()) {
932 clear_has_kind();
933 ::google::protobuf::ListValue* temp = kind_.list_value_;
934 if (GetArenaNoVirtual() != NULL) {
935 temp = ::google::protobuf::internal::DuplicateIfNonNull(temp);
936 }
937 kind_.list_value_ = NULL;
938 return temp;
939 } else {
940 return NULL;
941 }
942}
943inline const ::google::protobuf::ListValue& Value::list_value() const {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500944 // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value)
945 return has_list_value()
946 ? *kind_.list_value_
Austin Schuh40c16522018-10-28 20:27:54 -0700947 : *reinterpret_cast< ::google::protobuf::ListValue*>(&::google::protobuf::_ListValue_default_instance_);
Brian Silverman9c614bc2016-02-15 20:20:02 -0500948}
Austin Schuh40c16522018-10-28 20:27:54 -0700949inline ::google::protobuf::ListValue* Value::unsafe_arena_release_list_value() {
950 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value)
Brian Silverman9c614bc2016-02-15 20:20:02 -0500951 if (has_list_value()) {
952 clear_has_kind();
953 ::google::protobuf::ListValue* temp = kind_.list_value_;
954 kind_.list_value_ = NULL;
955 return temp;
956 } else {
957 return NULL;
958 }
959}
Austin Schuh40c16522018-10-28 20:27:54 -0700960inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* list_value) {
Brian Silverman9c614bc2016-02-15 20:20:02 -0500961 clear_kind();
962 if (list_value) {
963 set_has_list_value();
964 kind_.list_value_ = list_value;
965 }
Austin Schuh40c16522018-10-28 20:27:54 -0700966 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value)
967}
968inline ::google::protobuf::ListValue* Value::mutable_list_value() {
969 if (!has_list_value()) {
970 clear_kind();
971 set_has_list_value();
972 kind_.list_value_ = CreateMaybeMessage< ::google::protobuf::ListValue >(
973 GetArenaNoVirtual());
974 }
975 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value)
976 return kind_.list_value_;
Brian Silverman9c614bc2016-02-15 20:20:02 -0500977}
978
979inline bool Value::has_kind() const {
980 return kind_case() != KIND_NOT_SET;
981}
982inline void Value::clear_has_kind() {
983 _oneof_case_[0] = KIND_NOT_SET;
984}
985inline Value::KindCase Value::kind_case() const {
986 return Value::KindCase(_oneof_case_[0]);
987}
988// -------------------------------------------------------------------
989
990// ListValue
991
992// repeated .google.protobuf.Value values = 1;
993inline int ListValue::values_size() const {
994 return values_.size();
995}
996inline void ListValue::clear_values() {
997 values_.Clear();
998}
Brian Silverman9c614bc2016-02-15 20:20:02 -0500999inline ::google::protobuf::Value* ListValue::mutable_values(int index) {
1000 // @@protoc_insertion_point(field_mutable:google.protobuf.ListValue.values)
1001 return values_.Mutable(index);
1002}
Brian Silverman9c614bc2016-02-15 20:20:02 -05001003inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >*
1004ListValue::mutable_values() {
1005 // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values)
1006 return &values_;
1007}
Austin Schuh40c16522018-10-28 20:27:54 -07001008inline const ::google::protobuf::Value& ListValue::values(int index) const {
1009 // @@protoc_insertion_point(field_get:google.protobuf.ListValue.values)
1010 return values_.Get(index);
1011}
1012inline ::google::protobuf::Value* ListValue::add_values() {
1013 // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values)
1014 return values_.Add();
1015}
Brian Silverman9c614bc2016-02-15 20:20:02 -05001016inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >&
1017ListValue::values() const {
1018 // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values)
1019 return values_;
1020}
1021
Austin Schuh40c16522018-10-28 20:27:54 -07001022#ifdef __GNUC__
1023 #pragma GCC diagnostic pop
1024#endif // __GNUC__
1025// -------------------------------------------------------------------
1026
Brian Silverman9c614bc2016-02-15 20:20:02 -05001027// -------------------------------------------------------------------
1028
1029// -------------------------------------------------------------------
1030
1031
1032// @@protoc_insertion_point(namespace_scope)
1033
1034} // namespace protobuf
1035} // namespace google
1036
Brian Silverman9c614bc2016-02-15 20:20:02 -05001037namespace google {
1038namespace protobuf {
1039
Austin Schuh40c16522018-10-28 20:27:54 -07001040template <> struct is_proto_enum< ::google::protobuf::NullValue> : ::std::true_type {};
Brian Silverman9c614bc2016-02-15 20:20:02 -05001041template <>
1042inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::NullValue>() {
1043 return ::google::protobuf::NullValue_descriptor();
1044}
1045
1046} // namespace protobuf
1047} // namespace google
Brian Silverman9c614bc2016-02-15 20:20:02 -05001048
1049// @@protoc_insertion_point(global_scope)
1050
Austin Schuh40c16522018-10-28 20:27:54 -07001051#endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto