Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/struct.proto |
| 3 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 4 | #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto |
| 5 | #define PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 6 | |
| 7 | #include <string> |
| 8 | |
| 9 | #include <google/protobuf/stubs/common.h> |
| 10 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 11 | #if GOOGLE_PROTOBUF_VERSION < 3006001 |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 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 |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 16 | #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 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 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 22 | #include <google/protobuf/io/coded_stream.h> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 23 | #include <google/protobuf/arena.h> |
| 24 | #include <google/protobuf/arenastring.h> |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 25 | #include <google/protobuf/generated_message_table_driven.h> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 26 | #include <google/protobuf/generated_message_util.h> |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 27 | #include <google/protobuf/inlined_string_field.h> |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 28 | #include <google/protobuf/metadata.h> |
| 29 | #include <google/protobuf/message.h> |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 30 | #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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 34 | #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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 38 | #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fstruct_2eproto LIBPROTOBUF_EXPORT |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 39 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 40 | namespace protobuf_google_2fprotobuf_2fstruct_2eproto { |
| 41 | // Internal implementation detail -- do not use these members. |
| 42 | struct 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 | }; |
| 50 | void LIBPROTOBUF_EXPORT AddDescriptors(); |
| 51 | } // namespace protobuf_google_2fprotobuf_2fstruct_2eproto |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 52 | namespace google { |
| 53 | namespace protobuf { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 54 | class ListValue; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 55 | class ListValueDefaultTypeInternal; |
| 56 | LIBPROTOBUF_EXPORT extern ListValueDefaultTypeInternal _ListValue_default_instance_; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 57 | class Struct; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 58 | class StructDefaultTypeInternal; |
| 59 | LIBPROTOBUF_EXPORT extern StructDefaultTypeInternal _Struct_default_instance_; |
| 60 | class Struct_FieldsEntry_DoNotUse; |
| 61 | class Struct_FieldsEntry_DoNotUseDefaultTypeInternal; |
| 62 | LIBPROTOBUF_EXPORT extern Struct_FieldsEntry_DoNotUseDefaultTypeInternal _Struct_FieldsEntry_DoNotUse_default_instance_; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 63 | class Value; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 64 | class ValueDefaultTypeInternal; |
| 65 | LIBPROTOBUF_EXPORT extern ValueDefaultTypeInternal _Value_default_instance_; |
| 66 | } // namespace protobuf |
| 67 | } // namespace google |
| 68 | namespace google { |
| 69 | namespace protobuf { |
| 70 | template<> LIBPROTOBUF_EXPORT ::google::protobuf::ListValue* Arena::CreateMaybeMessage<::google::protobuf::ListValue>(Arena*); |
| 71 | template<> LIBPROTOBUF_EXPORT ::google::protobuf::Struct* Arena::CreateMaybeMessage<::google::protobuf::Struct>(Arena*); |
| 72 | template<> LIBPROTOBUF_EXPORT ::google::protobuf::Struct_FieldsEntry_DoNotUse* Arena::CreateMaybeMessage<::google::protobuf::Struct_FieldsEntry_DoNotUse>(Arena*); |
| 73 | template<> LIBPROTOBUF_EXPORT ::google::protobuf::Value* Arena::CreateMaybeMessage<::google::protobuf::Value>(Arena*); |
| 74 | } // namespace protobuf |
| 75 | } // namespace google |
| 76 | namespace google { |
| 77 | namespace protobuf { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 78 | |
| 79 | enum 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 | }; |
| 84 | LIBPROTOBUF_EXPORT bool NullValue_IsValid(int value); |
| 85 | const NullValue NullValue_MIN = NULL_VALUE; |
| 86 | const NullValue NullValue_MAX = NULL_VALUE; |
| 87 | const int NullValue_ARRAYSIZE = NullValue_MAX + 1; |
| 88 | |
| 89 | LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* NullValue_descriptor(); |
| 90 | inline const ::std::string& NullValue_Name(NullValue value) { |
| 91 | return ::google::protobuf::internal::NameOfEnum( |
| 92 | NullValue_descriptor(), value); |
| 93 | } |
| 94 | inline 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 101 | class 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 > { |
| 106 | public: |
| 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 | |
| 122 | class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 123 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 133 | #if LANG_CXX11 |
| 134 | Struct(Struct&& from) noexcept |
| 135 | : Struct() { |
| 136 | *this = ::std::move(from); |
| 137 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 138 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 139 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 154 | static const ::google::protobuf::Descriptor* descriptor(); |
| 155 | static const Struct& default_instance(); |
| 156 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 157 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 166 | void Swap(Struct* other); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 167 | friend void swap(Struct& a, Struct& b) { |
| 168 | a.Swap(&b); |
| 169 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 170 | |
| 171 | // implements Message ---------------------------------------------- |
| 172 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 173 | inline Struct* New() const final { |
| 174 | return CreateMaybeMessage<Struct>(NULL); |
| 175 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 176 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 177 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 182 | void CopyFrom(const Struct& from); |
| 183 | void MergeFrom(const Struct& from); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 184 | void Clear() final; |
| 185 | bool IsInitialized() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 186 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 187 | size_t ByteSizeLong() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 188 | bool MergePartialFromCodedStream( |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 189 | ::google::protobuf::io::CodedInputStream* input) final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 190 | void SerializeWithCachedSizes( |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 191 | ::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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 196 | private: |
| 197 | void SharedCtor(); |
| 198 | void SharedDtor(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 199 | void SetCachedSize(int size) const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 200 | void InternalSwap(Struct* other); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 201 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 206 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 215 | ::google::protobuf::Metadata GetMetadata() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 216 | |
| 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 235 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 236 | typedef void InternalArenaConstructable_; |
| 237 | typedef void DestructorSkippable_; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 238 | ::google::protobuf::internal::MapField< |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 239 | Struct_FieldsEntry_DoNotUse, |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 240 | ::std::string, ::google::protobuf::Value, |
| 241 | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
| 242 | ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
| 243 | 0 > fields_; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 244 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 245 | friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 246 | }; |
| 247 | // ------------------------------------------------------------------- |
| 248 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 249 | class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 250 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 260 | #if LANG_CXX11 |
| 261 | Value(Value&& from) noexcept |
| 262 | : Value() { |
| 263 | *this = ::std::move(from); |
| 264 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 265 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 266 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 281 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 294 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 303 | void Swap(Value* other); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 304 | friend void swap(Value& a, Value& b) { |
| 305 | a.Swap(&b); |
| 306 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 307 | |
| 308 | // implements Message ---------------------------------------------- |
| 309 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 310 | inline Value* New() const final { |
| 311 | return CreateMaybeMessage<Value>(NULL); |
| 312 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 313 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 314 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 319 | void CopyFrom(const Value& from); |
| 320 | void MergeFrom(const Value& from); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 321 | void Clear() final; |
| 322 | bool IsInitialized() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 323 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 324 | size_t ByteSizeLong() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 325 | bool MergePartialFromCodedStream( |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 326 | ::google::protobuf::io::CodedInputStream* input) final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 327 | void SerializeWithCachedSizes( |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 328 | ::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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 333 | private: |
| 334 | void SharedCtor(); |
| 335 | void SharedDtor(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 336 | void SetCachedSize(int size) const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 337 | void InternalSwap(Value* other); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 338 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 343 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 352 | ::google::protobuf::Metadata GetMetadata() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 353 | |
| 354 | // nested types ---------------------------------------------------- |
| 355 | |
| 356 | // accessors ------------------------------------------------------- |
| 357 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 358 | // .google.protobuf.NullValue null_value = 1; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 359 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 367 | // double number_value = 2; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 368 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 376 | // string string_value = 3; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 377 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 384 | #if LANG_CXX11 |
| 385 | void set_string_value(::std::string&& value); |
| 386 | #endif |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 387 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 392 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 401 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 402 | // bool bool_value = 4; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 403 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 411 | // .google.protobuf.Struct struct_value = 5; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 412 | bool has_struct_value() const; |
| 413 | void clear_struct_value(); |
| 414 | static const int kStructValueFieldNumber = 5; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 415 | private: |
| 416 | const ::google::protobuf::Struct& _internal_struct_value() const; |
| 417 | public: |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 418 | const ::google::protobuf::Struct& struct_value() const; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 419 | ::google::protobuf::Struct* release_struct_value(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 420 | ::google::protobuf::Struct* mutable_struct_value(); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 421 | void set_allocated_struct_value(::google::protobuf::Struct* struct_value); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 422 | void unsafe_arena_set_allocated_struct_value( |
| 423 | ::google::protobuf::Struct* struct_value); |
| 424 | ::google::protobuf::Struct* unsafe_arena_release_struct_value(); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 425 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 426 | // .google.protobuf.ListValue list_value = 6; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 427 | bool has_list_value() const; |
| 428 | void clear_list_value(); |
| 429 | static const int kListValueFieldNumber = 6; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 430 | private: |
| 431 | const ::google::protobuf::ListValue& _internal_list_value() const; |
| 432 | public: |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 433 | const ::google::protobuf::ListValue& list_value() const; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 434 | ::google::protobuf::ListValue* release_list_value(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 435 | ::google::protobuf::ListValue* mutable_list_value(); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 436 | void set_allocated_list_value(::google::protobuf::ListValue* list_value); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 437 | void unsafe_arena_set_allocated_list_value( |
| 438 | ::google::protobuf::ListValue* list_value); |
| 439 | ::google::protobuf::ListValue* unsafe_arena_release_list_value(); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 440 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 441 | void clear_kind(); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 442 | KindCase kind_case() const; |
| 443 | // @@protoc_insertion_point(class_scope:google.protobuf.Value) |
| 444 | private: |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 445 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 451 | |
| 452 | inline bool has_kind() const; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 453 | inline void clear_has_kind(); |
| 454 | |
| 455 | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 456 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 457 | typedef void InternalArenaConstructable_; |
| 458 | typedef void DestructorSkippable_; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 459 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 468 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 469 | ::google::protobuf::uint32 _oneof_case_[1]; |
| 470 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 471 | friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 472 | }; |
| 473 | // ------------------------------------------------------------------- |
| 474 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 475 | class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 476 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 486 | #if LANG_CXX11 |
| 487 | ListValue(ListValue&& from) noexcept |
| 488 | : ListValue() { |
| 489 | *this = ::std::move(from); |
| 490 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 491 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 492 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 507 | static const ::google::protobuf::Descriptor* descriptor(); |
| 508 | static const ListValue& default_instance(); |
| 509 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 510 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 519 | void Swap(ListValue* other); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 520 | friend void swap(ListValue& a, ListValue& b) { |
| 521 | a.Swap(&b); |
| 522 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 523 | |
| 524 | // implements Message ---------------------------------------------- |
| 525 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 526 | inline ListValue* New() const final { |
| 527 | return CreateMaybeMessage<ListValue>(NULL); |
| 528 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 529 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 530 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 535 | void CopyFrom(const ListValue& from); |
| 536 | void MergeFrom(const ListValue& from); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 537 | void Clear() final; |
| 538 | bool IsInitialized() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 539 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 540 | size_t ByteSizeLong() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 541 | bool MergePartialFromCodedStream( |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 542 | ::google::protobuf::io::CodedInputStream* input) final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 543 | void SerializeWithCachedSizes( |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 544 | ::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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 549 | private: |
| 550 | void SharedCtor(); |
| 551 | void SharedDtor(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 552 | void SetCachedSize(int size) const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 553 | void InternalSwap(ListValue* other); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 554 | 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 559 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 568 | ::google::protobuf::Metadata GetMetadata() const final; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 569 | |
| 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 578 | ::google::protobuf::Value* mutable_values(int index); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 579 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >* |
| 580 | mutable_values(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 581 | const ::google::protobuf::Value& values(int index) const; |
| 582 | ::google::protobuf::Value* add_values(); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 583 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 590 | template <typename T> friend class ::google::protobuf::Arena::InternalHelper; |
| 591 | typedef void InternalArenaConstructable_; |
| 592 | typedef void DestructorSkippable_; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 593 | ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_; |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 594 | mutable ::google::protobuf::internal::CachedSize _cached_size_; |
| 595 | friend struct ::protobuf_google_2fprotobuf_2fstruct_2eproto::TableStruct; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 596 | }; |
| 597 | // =================================================================== |
| 598 | |
| 599 | |
| 600 | // =================================================================== |
| 601 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 602 | #ifdef __GNUC__ |
| 603 | #pragma GCC diagnostic push |
| 604 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
| 605 | #endif // __GNUC__ |
| 606 | // ------------------------------------------------------------------- |
| 607 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 608 | // Struct |
| 609 | |
| 610 | // map<string, .google.protobuf.Value> fields = 1; |
| 611 | inline int Struct::fields_size() const { |
| 612 | return fields_.size(); |
| 613 | } |
| 614 | inline void Struct::clear_fields() { |
| 615 | fields_.Clear(); |
| 616 | } |
| 617 | inline const ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >& |
| 618 | Struct::fields() const { |
| 619 | // @@protoc_insertion_point(field_map:google.protobuf.Struct.fields) |
| 620 | return fields_.GetMap(); |
| 621 | } |
| 622 | inline ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >* |
| 623 | Struct::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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 632 | // .google.protobuf.NullValue null_value = 1; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 633 | inline bool Value::has_null_value() const { |
| 634 | return kind_case() == kNullValue; |
| 635 | } |
| 636 | inline void Value::set_has_null_value() { |
| 637 | _oneof_case_[0] = kNullValue; |
| 638 | } |
| 639 | inline void Value::clear_null_value() { |
| 640 | if (has_null_value()) { |
| 641 | kind_.null_value_ = 0; |
| 642 | clear_has_kind(); |
| 643 | } |
| 644 | } |
| 645 | inline ::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 | } |
| 652 | inline 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 661 | // double number_value = 2; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 662 | inline bool Value::has_number_value() const { |
| 663 | return kind_case() == kNumberValue; |
| 664 | } |
| 665 | inline void Value::set_has_number_value() { |
| 666 | _oneof_case_[0] = kNumberValue; |
| 667 | } |
| 668 | inline void Value::clear_number_value() { |
| 669 | if (has_number_value()) { |
| 670 | kind_.number_value_ = 0; |
| 671 | clear_has_kind(); |
| 672 | } |
| 673 | } |
| 674 | inline 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 | } |
| 681 | inline 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 690 | // string string_value = 3; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 691 | inline bool Value::has_string_value() const { |
| 692 | return kind_case() == kStringValue; |
| 693 | } |
| 694 | inline void Value::set_has_string_value() { |
| 695 | _oneof_case_[0] = kStringValue; |
| 696 | } |
| 697 | inline void Value::clear_string_value() { |
| 698 | if (has_string_value()) { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 699 | kind_.string_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 700 | GetArenaNoVirtual()); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 701 | clear_has_kind(); |
| 702 | } |
| 703 | } |
| 704 | inline const ::std::string& Value::string_value() const { |
| 705 | // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) |
| 706 | if (has_string_value()) { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 707 | return kind_.string_value_.Get(); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 708 | } |
| 709 | return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); |
| 710 | } |
| 711 | inline void Value::set_string_value(const ::std::string& value) { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 712 | if (!has_string_value()) { |
| 713 | clear_kind(); |
| 714 | set_has_string_value(); |
| 715 | kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 716 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 717 | kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, |
| 718 | GetArenaNoVirtual()); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 719 | // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) |
| 720 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 721 | #if LANG_CXX11 |
| 722 | inline void Value::set_string_value(::std::string&& value) { |
| 723 | // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 724 | if (!has_string_value()) { |
| 725 | clear_kind(); |
| 726 | set_has_string_value(); |
| 727 | kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 728 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 729 | 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 |
| 734 | inline 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 743 | // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value) |
| 744 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 745 | inline void Value::set_string_value(const char* value, |
| 746 | size_t size) { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 747 | if (!has_string_value()) { |
| 748 | clear_kind(); |
| 749 | set_has_string_value(); |
| 750 | kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
| 751 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 752 | kind_.string_value_.Set( |
| 753 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
| 754 | reinterpret_cast<const char*>(value), size), |
| 755 | GetArenaNoVirtual()); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 756 | // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_value) |
| 757 | } |
| 758 | inline ::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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 764 | return kind_.string_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 765 | GetArenaNoVirtual()); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 766 | // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 767 | } |
| 768 | inline ::std::string* Value::release_string_value() { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 769 | // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value) |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 770 | if (has_string_value()) { |
| 771 | clear_has_kind(); |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 772 | return kind_.string_value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
| 773 | GetArenaNoVirtual()); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 774 | } else { |
| 775 | return NULL; |
| 776 | } |
| 777 | } |
| 778 | inline 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 785 | kind_.string_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value, |
| 786 | GetArenaNoVirtual()); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 787 | } |
| 788 | // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value) |
| 789 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 790 | inline ::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 | } |
| 801 | inline 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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 813 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 814 | // bool bool_value = 4; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 815 | inline bool Value::has_bool_value() const { |
| 816 | return kind_case() == kBoolValue; |
| 817 | } |
| 818 | inline void Value::set_has_bool_value() { |
| 819 | _oneof_case_[0] = kBoolValue; |
| 820 | } |
| 821 | inline void Value::clear_bool_value() { |
| 822 | if (has_bool_value()) { |
| 823 | kind_.bool_value_ = false; |
| 824 | clear_has_kind(); |
| 825 | } |
| 826 | } |
| 827 | inline 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 | } |
| 834 | inline 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 843 | // .google.protobuf.Struct struct_value = 5; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 844 | inline bool Value::has_struct_value() const { |
| 845 | return kind_case() == kStructValue; |
| 846 | } |
| 847 | inline void Value::set_has_struct_value() { |
| 848 | _oneof_case_[0] = kStructValue; |
| 849 | } |
| 850 | inline void Value::clear_struct_value() { |
| 851 | if (has_struct_value()) { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 852 | if (GetArenaNoVirtual() == NULL) { |
| 853 | delete kind_.struct_value_; |
| 854 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 855 | clear_has_kind(); |
| 856 | } |
| 857 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 858 | inline const ::google::protobuf::Struct& Value::_internal_struct_value() const { |
| 859 | return *kind_.struct_value_; |
| 860 | } |
| 861 | inline ::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 | } |
| 875 | inline const ::google::protobuf::Struct& Value::struct_value() const { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 876 | // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value) |
| 877 | return has_struct_value() |
| 878 | ? *kind_.struct_value_ |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 879 | : *reinterpret_cast< ::google::protobuf::Struct*>(&::google::protobuf::_Struct_default_instance_); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 880 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 881 | inline ::google::protobuf::Struct* Value::unsafe_arena_release_struct_value() { |
| 882 | // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value) |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 883 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 892 | inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* struct_value) { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 893 | clear_kind(); |
| 894 | if (struct_value) { |
| 895 | set_has_struct_value(); |
| 896 | kind_.struct_value_ = struct_value; |
| 897 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 898 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value) |
| 899 | } |
| 900 | inline ::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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 909 | } |
| 910 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 911 | // .google.protobuf.ListValue list_value = 6; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 912 | inline bool Value::has_list_value() const { |
| 913 | return kind_case() == kListValue; |
| 914 | } |
| 915 | inline void Value::set_has_list_value() { |
| 916 | _oneof_case_[0] = kListValue; |
| 917 | } |
| 918 | inline void Value::clear_list_value() { |
| 919 | if (has_list_value()) { |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 920 | if (GetArenaNoVirtual() == NULL) { |
| 921 | delete kind_.list_value_; |
| 922 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 923 | clear_has_kind(); |
| 924 | } |
| 925 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 926 | inline const ::google::protobuf::ListValue& Value::_internal_list_value() const { |
| 927 | return *kind_.list_value_; |
| 928 | } |
| 929 | inline ::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 | } |
| 943 | inline const ::google::protobuf::ListValue& Value::list_value() const { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 944 | // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value) |
| 945 | return has_list_value() |
| 946 | ? *kind_.list_value_ |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 947 | : *reinterpret_cast< ::google::protobuf::ListValue*>(&::google::protobuf::_ListValue_default_instance_); |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 948 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 949 | inline ::google::protobuf::ListValue* Value::unsafe_arena_release_list_value() { |
| 950 | // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value) |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 951 | 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 Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 960 | inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* list_value) { |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 961 | clear_kind(); |
| 962 | if (list_value) { |
| 963 | set_has_list_value(); |
| 964 | kind_.list_value_ = list_value; |
| 965 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 966 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value) |
| 967 | } |
| 968 | inline ::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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 977 | } |
| 978 | |
| 979 | inline bool Value::has_kind() const { |
| 980 | return kind_case() != KIND_NOT_SET; |
| 981 | } |
| 982 | inline void Value::clear_has_kind() { |
| 983 | _oneof_case_[0] = KIND_NOT_SET; |
| 984 | } |
| 985 | inline 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; |
| 993 | inline int ListValue::values_size() const { |
| 994 | return values_.size(); |
| 995 | } |
| 996 | inline void ListValue::clear_values() { |
| 997 | values_.Clear(); |
| 998 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 999 | inline ::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 Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1003 | inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >* |
| 1004 | ListValue::mutable_values() { |
| 1005 | // @@protoc_insertion_point(field_mutable_list:google.protobuf.ListValue.values) |
| 1006 | return &values_; |
| 1007 | } |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1008 | inline 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 | } |
| 1012 | inline ::google::protobuf::Value* ListValue::add_values() { |
| 1013 | // @@protoc_insertion_point(field_add:google.protobuf.ListValue.values) |
| 1014 | return values_.Add(); |
| 1015 | } |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1016 | inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Value >& |
| 1017 | ListValue::values() const { |
| 1018 | // @@protoc_insertion_point(field_list:google.protobuf.ListValue.values) |
| 1019 | return values_; |
| 1020 | } |
| 1021 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1022 | #ifdef __GNUC__ |
| 1023 | #pragma GCC diagnostic pop |
| 1024 | #endif // __GNUC__ |
| 1025 | // ------------------------------------------------------------------- |
| 1026 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1027 | // ------------------------------------------------------------------- |
| 1028 | |
| 1029 | // ------------------------------------------------------------------- |
| 1030 | |
| 1031 | |
| 1032 | // @@protoc_insertion_point(namespace_scope) |
| 1033 | |
| 1034 | } // namespace protobuf |
| 1035 | } // namespace google |
| 1036 | |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1037 | namespace google { |
| 1038 | namespace protobuf { |
| 1039 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1040 | template <> struct is_proto_enum< ::google::protobuf::NullValue> : ::std::true_type {}; |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1041 | template <> |
| 1042 | inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::NullValue>() { |
| 1043 | return ::google::protobuf::NullValue_descriptor(); |
| 1044 | } |
| 1045 | |
| 1046 | } // namespace protobuf |
| 1047 | } // namespace google |
Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [diff] [blame] | 1048 | |
| 1049 | // @@protoc_insertion_point(global_scope) |
| 1050 | |
Austin Schuh | 40c1652 | 2018-10-28 20:27:54 -0700 | [diff] [blame^] | 1051 | #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2fstruct_2eproto |