Index: third_party/protobuf/src/google/protobuf/struct.pb.h |
diff --git a/third_party/protobuf/src/google/protobuf/struct.pb.h b/third_party/protobuf/src/google/protobuf/struct.pb.h |
index 6a4764a7f342c88f1af21270486994f718e77f6a..1037d84c35ee8d809de1e4ccf7a5b722b632d1f3 100644 |
--- a/third_party/protobuf/src/google/protobuf/struct.pb.h |
+++ b/third_party/protobuf/src/google/protobuf/struct.pb.h |
@@ -8,12 +8,12 @@ |
#include <google/protobuf/stubs/common.h> |
-#if GOOGLE_PROTOBUF_VERSION < 3000000 |
+#if GOOGLE_PROTOBUF_VERSION < 3001000 |
#error This file was generated by a newer version of protoc which is |
#error incompatible with your Protocol Buffer headers. Please update |
#error your headers. |
#endif |
-#if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
+#if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
#error This file was generated by an older version of protoc which is |
#error incompatible with your Protocol Buffer headers. Please |
#error regenerate this file with a newer version of protoc. |
@@ -24,25 +24,33 @@ |
#include <google/protobuf/generated_message_util.h> |
#include <google/protobuf/metadata.h> |
#include <google/protobuf/message.h> |
-#include <google/protobuf/repeated_field.h> |
-#include <google/protobuf/extension_set.h> |
+#include <google/protobuf/repeated_field.h> // IWYU pragma: export |
+#include <google/protobuf/extension_set.h> // IWYU pragma: export |
#include <google/protobuf/map.h> |
#include <google/protobuf/map_field_inl.h> |
#include <google/protobuf/generated_enum_reflection.h> |
#include <google/protobuf/unknown_field_set.h> |
// @@protoc_insertion_point(includes) |
+namespace google { |
+namespace protobuf { |
+class ListValue; |
+class ListValueDefaultTypeInternal; |
+LIBPROTOBUF_EXPORT extern ListValueDefaultTypeInternal _ListValue_default_instance_; |
+class Struct; |
+class StructDefaultTypeInternal; |
+LIBPROTOBUF_EXPORT extern StructDefaultTypeInternal _Struct_default_instance_; |
+class Value; |
+class ValueDefaultTypeInternal; |
+LIBPROTOBUF_EXPORT extern ValueDefaultTypeInternal _Value_default_instance_; |
+} // namespace protobuf |
+} // namespace google |
namespace google { |
namespace protobuf { |
// Internal implementation detail -- do not call these. |
void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); |
-void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto(); |
-void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto(); |
- |
-class ListValue; |
-class Struct; |
-class Value; |
+void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); |
enum NullValue { |
NULL_VALUE = 0, |
@@ -66,7 +74,10 @@ inline bool NullValue_Parse( |
} |
// =================================================================== |
-class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message { |
+ |
+// ------------------------------------------------------------------- |
+ |
+class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Struct) */ { |
public: |
Struct(); |
virtual ~Struct(); |
@@ -78,35 +89,57 @@ class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message { |
return *this; |
} |
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
+ return GetArenaNoVirtual(); |
+ } |
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
+ return MaybeArenaPtr(); |
+ } |
static const ::google::protobuf::Descriptor* descriptor(); |
static const Struct& default_instance(); |
+ static inline const Struct* internal_default_instance() { |
+ return reinterpret_cast<const Struct*>( |
+ &_Struct_default_instance_); |
+ } |
+ |
+ void UnsafeArenaSwap(Struct* other); |
void Swap(Struct* other); |
// implements Message ---------------------------------------------- |
- inline Struct* New() const { return New(NULL); } |
+ inline Struct* New() const PROTOBUF_FINAL { return New(NULL); } |
- Struct* New(::google::protobuf::Arena* arena) const; |
- void CopyFrom(const ::google::protobuf::Message& from); |
- void MergeFrom(const ::google::protobuf::Message& from); |
+ Struct* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
+ void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
+ void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
void CopyFrom(const Struct& from); |
void MergeFrom(const Struct& from); |
- void Clear(); |
- bool IsInitialized() const; |
+ void Clear() PROTOBUF_FINAL; |
+ bool IsInitialized() const PROTOBUF_FINAL; |
- int ByteSize() const; |
+ size_t ByteSizeLong() const PROTOBUF_FINAL; |
bool MergePartialFromCodedStream( |
- ::google::protobuf::io::CodedInputStream* input); |
+ ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
void SerializeWithCachedSizes( |
- ::google::protobuf::io::CodedOutputStream* output) const; |
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
- int GetCachedSize() const { return _cached_size_; } |
+ ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
+ ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) |
+ const PROTOBUF_FINAL { |
+ return InternalSerializeWithCachedSizesToArray(false, output); |
+ } |
+ int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
private: |
void SharedCtor(); |
void SharedDtor(); |
- void SetCachedSize(int size) const; |
+ void SetCachedSize(int size) const PROTOBUF_FINAL; |
void InternalSwap(Struct* other); |
+ protected: |
+ explicit Struct(::google::protobuf::Arena* arena); |
+ private: |
+ static void ArenaDtor(void* object); |
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
private: |
inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
return _internal_metadata_.arena(); |
@@ -116,7 +149,7 @@ class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message { |
} |
public: |
- ::google::protobuf::Metadata GetMetadata() const; |
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
// nested types ---------------------------------------------------- |
@@ -136,7 +169,9 @@ class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message { |
private: |
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
- bool _is_default_instance_; |
+ friend class ::google::protobuf::Arena; |
+ typedef void InternalArenaConstructable_; |
+ typedef void DestructorSkippable_; |
typedef ::google::protobuf::internal::MapEntryLite< |
::std::string, ::google::protobuf::Value, |
::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
@@ -149,16 +184,15 @@ class LIBPROTOBUF_EXPORT Struct : public ::google::protobuf::Message { |
::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
0 > fields_; |
mutable int _cached_size_; |
- friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); |
- friend void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto(); |
+ friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto_impl(); |
+ friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto_impl(); |
+ friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fstruct_2eproto(); |
friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto(); |
- void InitAsDefaultInstance(); |
- static Struct* default_instance_; |
}; |
// ------------------------------------------------------------------- |
-class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
+class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Value) */ { |
public: |
Value(); |
virtual ~Value(); |
@@ -170,6 +204,12 @@ class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
return *this; |
} |
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
+ return GetArenaNoVirtual(); |
+ } |
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
+ return MaybeArenaPtr(); |
+ } |
static const ::google::protobuf::Descriptor* descriptor(); |
static const Value& default_instance(); |
@@ -183,32 +223,48 @@ class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
KIND_NOT_SET = 0, |
}; |
+ static inline const Value* internal_default_instance() { |
+ return reinterpret_cast<const Value*>( |
+ &_Value_default_instance_); |
+ } |
+ |
+ void UnsafeArenaSwap(Value* other); |
void Swap(Value* other); |
// implements Message ---------------------------------------------- |
- inline Value* New() const { return New(NULL); } |
+ inline Value* New() const PROTOBUF_FINAL { return New(NULL); } |
- Value* New(::google::protobuf::Arena* arena) const; |
- void CopyFrom(const ::google::protobuf::Message& from); |
- void MergeFrom(const ::google::protobuf::Message& from); |
+ Value* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
+ void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
+ void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
void CopyFrom(const Value& from); |
void MergeFrom(const Value& from); |
- void Clear(); |
- bool IsInitialized() const; |
+ void Clear() PROTOBUF_FINAL; |
+ bool IsInitialized() const PROTOBUF_FINAL; |
- int ByteSize() const; |
+ size_t ByteSizeLong() const PROTOBUF_FINAL; |
bool MergePartialFromCodedStream( |
- ::google::protobuf::io::CodedInputStream* input); |
+ ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
void SerializeWithCachedSizes( |
- ::google::protobuf::io::CodedOutputStream* output) const; |
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
- int GetCachedSize() const { return _cached_size_; } |
+ ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
+ ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) |
+ const PROTOBUF_FINAL { |
+ return InternalSerializeWithCachedSizesToArray(false, output); |
+ } |
+ int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
private: |
void SharedCtor(); |
void SharedDtor(); |
- void SetCachedSize(int size) const; |
+ void SetCachedSize(int size) const PROTOBUF_FINAL; |
void InternalSwap(Value* other); |
+ protected: |
+ explicit Value(::google::protobuf::Arena* arena); |
+ private: |
+ static void ArenaDtor(void* object); |
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
private: |
inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
return _internal_metadata_.arena(); |
@@ -218,13 +274,13 @@ class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
} |
public: |
- ::google::protobuf::Metadata GetMetadata() const; |
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
// nested types ---------------------------------------------------- |
// accessors ------------------------------------------------------- |
- // optional .google.protobuf.NullValue null_value = 1; |
+ // .google.protobuf.NullValue null_value = 1; |
private: |
bool has_null_value() const; |
public: |
@@ -233,7 +289,7 @@ class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
::google::protobuf::NullValue null_value() const; |
void set_null_value(::google::protobuf::NullValue value); |
- // optional double number_value = 2; |
+ // double number_value = 2; |
private: |
bool has_number_value() const; |
public: |
@@ -242,7 +298,7 @@ class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
double number_value() const; |
void set_number_value(double value); |
- // optional string string_value = 3; |
+ // string string_value = 3; |
private: |
bool has_string_value() const; |
public: |
@@ -255,8 +311,11 @@ class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
::std::string* mutable_string_value(); |
::std::string* release_string_value(); |
void set_allocated_string_value(::std::string* string_value); |
+ ::std::string* unsafe_arena_release_string_value(); |
+ void unsafe_arena_set_allocated_string_value( |
+ ::std::string* string_value); |
- // optional bool bool_value = 4; |
+ // bool bool_value = 4; |
private: |
bool has_bool_value() const; |
public: |
@@ -265,40 +324,60 @@ class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
bool bool_value() const; |
void set_bool_value(bool value); |
- // optional .google.protobuf.Struct struct_value = 5; |
+ // .google.protobuf.Struct struct_value = 5; |
bool has_struct_value() const; |
void clear_struct_value(); |
static const int kStructValueFieldNumber = 5; |
+ private: |
+ void _slow_mutable_struct_value(); |
+ void _slow_set_allocated_struct_value( |
+ ::google::protobuf::Arena* message_arena, ::google::protobuf::Struct** struct_value); |
+ ::google::protobuf::Struct* _slow_release_struct_value(); |
+ public: |
const ::google::protobuf::Struct& struct_value() const; |
::google::protobuf::Struct* mutable_struct_value(); |
::google::protobuf::Struct* release_struct_value(); |
void set_allocated_struct_value(::google::protobuf::Struct* struct_value); |
+ ::google::protobuf::Struct* unsafe_arena_release_struct_value(); |
+ void unsafe_arena_set_allocated_struct_value( |
+ ::google::protobuf::Struct* struct_value); |
- // optional .google.protobuf.ListValue list_value = 6; |
+ // .google.protobuf.ListValue list_value = 6; |
bool has_list_value() const; |
void clear_list_value(); |
static const int kListValueFieldNumber = 6; |
+ private: |
+ void _slow_mutable_list_value(); |
+ void _slow_set_allocated_list_value( |
+ ::google::protobuf::Arena* message_arena, ::google::protobuf::ListValue** list_value); |
+ ::google::protobuf::ListValue* _slow_release_list_value(); |
+ public: |
const ::google::protobuf::ListValue& list_value() const; |
::google::protobuf::ListValue* mutable_list_value(); |
::google::protobuf::ListValue* release_list_value(); |
void set_allocated_list_value(::google::protobuf::ListValue* list_value); |
+ ::google::protobuf::ListValue* unsafe_arena_release_list_value(); |
+ void unsafe_arena_set_allocated_list_value( |
+ ::google::protobuf::ListValue* list_value); |
KindCase kind_case() const; |
// @@protoc_insertion_point(class_scope:google.protobuf.Value) |
private: |
- inline void set_has_null_value(); |
- inline void set_has_number_value(); |
- inline void set_has_string_value(); |
- inline void set_has_bool_value(); |
- inline void set_has_struct_value(); |
- inline void set_has_list_value(); |
+ void set_has_null_value(); |
+ void set_has_number_value(); |
+ void set_has_string_value(); |
+ void set_has_bool_value(); |
+ void set_has_struct_value(); |
+ void set_has_list_value(); |
inline bool has_kind() const; |
void clear_kind(); |
inline void clear_has_kind(); |
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
- bool _is_default_instance_; |
+ friend class ::google::protobuf::Arena; |
+ typedef void InternalArenaConstructable_; |
+ typedef void DestructorSkippable_; |
union KindUnion { |
KindUnion() {} |
int null_value_; |
@@ -311,16 +390,15 @@ class LIBPROTOBUF_EXPORT Value : public ::google::protobuf::Message { |
mutable int _cached_size_; |
::google::protobuf::uint32 _oneof_case_[1]; |
- friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); |
- friend void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto(); |
+ friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto_impl(); |
+ friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto_impl(); |
+ friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fstruct_2eproto(); |
friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto(); |
- void InitAsDefaultInstance(); |
- static Value* default_instance_; |
}; |
// ------------------------------------------------------------------- |
-class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message { |
+class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.ListValue) */ { |
public: |
ListValue(); |
virtual ~ListValue(); |
@@ -332,35 +410,57 @@ class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message { |
return *this; |
} |
+ inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
+ return GetArenaNoVirtual(); |
+ } |
+ inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
+ return MaybeArenaPtr(); |
+ } |
static const ::google::protobuf::Descriptor* descriptor(); |
static const ListValue& default_instance(); |
+ static inline const ListValue* internal_default_instance() { |
+ return reinterpret_cast<const ListValue*>( |
+ &_ListValue_default_instance_); |
+ } |
+ |
+ void UnsafeArenaSwap(ListValue* other); |
void Swap(ListValue* other); |
// implements Message ---------------------------------------------- |
- inline ListValue* New() const { return New(NULL); } |
+ inline ListValue* New() const PROTOBUF_FINAL { return New(NULL); } |
- ListValue* New(::google::protobuf::Arena* arena) const; |
- void CopyFrom(const ::google::protobuf::Message& from); |
- void MergeFrom(const ::google::protobuf::Message& from); |
+ ListValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
+ void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
+ void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
void CopyFrom(const ListValue& from); |
void MergeFrom(const ListValue& from); |
- void Clear(); |
- bool IsInitialized() const; |
+ void Clear() PROTOBUF_FINAL; |
+ bool IsInitialized() const PROTOBUF_FINAL; |
- int ByteSize() const; |
+ size_t ByteSizeLong() const PROTOBUF_FINAL; |
bool MergePartialFromCodedStream( |
- ::google::protobuf::io::CodedInputStream* input); |
+ ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
void SerializeWithCachedSizes( |
- ::google::protobuf::io::CodedOutputStream* output) const; |
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; |
- int GetCachedSize() const { return _cached_size_; } |
+ ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
+ ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
+ bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
+ ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) |
+ const PROTOBUF_FINAL { |
+ return InternalSerializeWithCachedSizesToArray(false, output); |
+ } |
+ int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
private: |
void SharedCtor(); |
void SharedDtor(); |
- void SetCachedSize(int size) const; |
+ void SetCachedSize(int size) const PROTOBUF_FINAL; |
void InternalSwap(ListValue* other); |
+ protected: |
+ explicit ListValue(::google::protobuf::Arena* arena); |
+ private: |
+ static void ArenaDtor(void* object); |
+ inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
private: |
inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
return _internal_metadata_.arena(); |
@@ -370,7 +470,7 @@ class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message { |
} |
public: |
- ::google::protobuf::Metadata GetMetadata() const; |
+ ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
// nested types ---------------------------------------------------- |
@@ -392,15 +492,16 @@ class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message { |
private: |
::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
- bool _is_default_instance_; |
+ friend class ::google::protobuf::Arena; |
+ typedef void InternalArenaConstructable_; |
+ typedef void DestructorSkippable_; |
::google::protobuf::RepeatedPtrField< ::google::protobuf::Value > values_; |
mutable int _cached_size_; |
- friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); |
- friend void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto(); |
+ friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto_impl(); |
+ friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto_impl(); |
+ friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fstruct_2eproto(); |
friend void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto(); |
- void InitAsDefaultInstance(); |
- static ListValue* default_instance_; |
}; |
// =================================================================== |
@@ -408,6 +509,8 @@ class LIBPROTOBUF_EXPORT ListValue : public ::google::protobuf::Message { |
// =================================================================== |
#if !PROTOBUF_INLINE_NOT_IN_HEADERS |
+// ------------------------------------------------------------------- |
+ |
// Struct |
// map<string, .google.protobuf.Value> fields = 1; |
@@ -432,7 +535,7 @@ Struct::mutable_fields() { |
// Value |
-// optional .google.protobuf.NullValue null_value = 1; |
+// .google.protobuf.NullValue null_value = 1; |
inline bool Value::has_null_value() const { |
return kind_case() == kNullValue; |
} |
@@ -461,7 +564,7 @@ inline void Value::set_null_value(::google::protobuf::NullValue value) { |
// @@protoc_insertion_point(field_set:google.protobuf.Value.null_value) |
} |
-// optional double number_value = 2; |
+// double number_value = 2; |
inline bool Value::has_number_value() const { |
return kind_case() == kNumberValue; |
} |
@@ -490,7 +593,7 @@ inline void Value::set_number_value(double value) { |
// @@protoc_insertion_point(field_set:google.protobuf.Value.number_value) |
} |
-// optional string string_value = 3; |
+// string string_value = 3; |
inline bool Value::has_string_value() const { |
return kind_case() == kStringValue; |
} |
@@ -499,25 +602,26 @@ inline void Value::set_has_string_value() { |
} |
inline void Value::clear_string_value() { |
if (has_string_value()) { |
- kind_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ kind_.string_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ GetArenaNoVirtual()); |
clear_has_kind(); |
} |
} |
inline const ::std::string& Value::string_value() const { |
// @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) |
if (has_string_value()) { |
- return kind_.string_value_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ return kind_.string_value_.Get(); |
} |
return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); |
} |
inline void Value::set_string_value(const ::std::string& value) { |
- // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) |
if (!has_string_value()) { |
clear_kind(); |
set_has_string_value(); |
kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
+ kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, |
+ GetArenaNoVirtual()); |
// @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) |
} |
inline void Value::set_string_value(const char* value) { |
@@ -526,18 +630,20 @@ inline void Value::set_string_value(const char* value) { |
set_has_string_value(); |
kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
- ::std::string(value)); |
+ kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ ::std::string(value), GetArenaNoVirtual()); |
// @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value) |
} |
-inline void Value::set_string_value(const char* value, size_t size) { |
+inline void Value::set_string_value(const char* value, |
+ size_t size) { |
if (!has_string_value()) { |
clear_kind(); |
set_has_string_value(); |
kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
- kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
- reinterpret_cast<const char*>(value), size)); |
+ kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string( |
+ reinterpret_cast<const char*>(value), size), |
+ GetArenaNoVirtual()); |
// @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_value) |
} |
inline ::std::string* Value::mutable_string_value() { |
@@ -546,14 +652,27 @@ inline ::std::string* Value::mutable_string_value() { |
set_has_string_value(); |
kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
+ return kind_.string_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ GetArenaNoVirtual()); |
// @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) |
- return kind_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
} |
inline ::std::string* Value::release_string_value() { |
// @@protoc_insertion_point(field_release:google.protobuf.Value.string_value) |
if (has_string_value()) { |
clear_has_kind(); |
- return kind_.string_value_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ return kind_.string_value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
+ GetArenaNoVirtual()); |
+ } else { |
+ return NULL; |
+ } |
+} |
+inline ::std::string* Value::unsafe_arena_release_string_value() { |
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.string_value) |
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
+ if (has_string_value()) { |
+ clear_has_kind(); |
+ return kind_.string_value_.UnsafeArenaRelease( |
+ &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
} else { |
return NULL; |
} |
@@ -565,13 +684,25 @@ inline void Value::set_allocated_string_value(::std::string* string_value) { |
clear_kind(); |
if (string_value != NULL) { |
set_has_string_value(); |
- kind_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
- string_value); |
+ kind_.string_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value, |
+ GetArenaNoVirtual()); |
} |
// @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_value) |
} |
+inline void Value::unsafe_arena_set_allocated_string_value(::std::string* string_value) { |
+ GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
+ if (!has_string_value()) { |
+ kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
+ } |
+ clear_kind(); |
+ if (string_value) { |
+ set_has_string_value(); |
+ kind_.string_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), string_value, GetArenaNoVirtual()); |
+ } |
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.string_value) |
+} |
-// optional bool bool_value = 4; |
+// bool bool_value = 4; |
inline bool Value::has_bool_value() const { |
return kind_case() == kBoolValue; |
} |
@@ -600,7 +731,7 @@ inline void Value::set_bool_value(bool value) { |
// @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value) |
} |
-// optional .google.protobuf.Struct struct_value = 5; |
+// .google.protobuf.Struct struct_value = 5; |
inline bool Value::has_struct_value() const { |
return kind_case() == kStructValue; |
} |
@@ -609,7 +740,9 @@ inline void Value::set_has_struct_value() { |
} |
inline void Value::clear_struct_value() { |
if (has_struct_value()) { |
- delete kind_.struct_value_; |
+ if (GetArenaNoVirtual() == NULL) { |
+ delete kind_.struct_value_; |
+ } |
clear_has_kind(); |
} |
} |
@@ -623,7 +756,9 @@ inline ::google::protobuf::Struct* Value::mutable_struct_value() { |
if (!has_struct_value()) { |
clear_kind(); |
set_has_struct_value(); |
- kind_.struct_value_ = new ::google::protobuf::Struct; |
+ kind_.struct_value_ = |
+ ::google::protobuf::Arena::CreateMessage< ::google::protobuf::Struct >( |
+ GetArenaNoVirtual()); |
} |
// @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) |
return kind_.struct_value_; |
@@ -632,6 +767,42 @@ inline ::google::protobuf::Struct* Value::release_struct_value() { |
// @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value) |
if (has_struct_value()) { |
clear_has_kind(); |
+ if (GetArenaNoVirtual() != NULL) { |
+ ::google::protobuf::Struct* temp = new ::google::protobuf::Struct(*kind_.struct_value_); |
+ kind_.struct_value_ = NULL; |
+ return temp; |
+ } else { |
+ ::google::protobuf::Struct* temp = kind_.struct_value_; |
+ kind_.struct_value_ = NULL; |
+ return temp; |
+ } |
+ } else { |
+ return NULL; |
+ } |
+} |
+inline void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value) { |
+ clear_kind(); |
+ if (struct_value) { |
+ if (GetArenaNoVirtual() != NULL && |
+ ::google::protobuf::Arena::GetArena(struct_value) == NULL) { |
+ GetArenaNoVirtual()->Own(struct_value); |
+ } else if (GetArenaNoVirtual() != |
+ ::google::protobuf::Arena::GetArena(struct_value)) { |
+ ::google::protobuf::Struct* new_struct_value = |
+ ::google::protobuf::Arena::CreateMessage< ::google::protobuf::Struct >( |
+ GetArenaNoVirtual()); |
+ new_struct_value->CopyFrom(*struct_value); |
+ struct_value = new_struct_value; |
+ } |
+ set_has_struct_value(); |
+ kind_.struct_value_ = struct_value; |
+ } |
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_value) |
+} |
+inline ::google::protobuf::Struct* Value::unsafe_arena_release_struct_value() { |
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.struct_value) |
+ if (has_struct_value()) { |
+ clear_has_kind(); |
::google::protobuf::Struct* temp = kind_.struct_value_; |
kind_.struct_value_ = NULL; |
return temp; |
@@ -639,16 +810,16 @@ inline ::google::protobuf::Struct* Value::release_struct_value() { |
return NULL; |
} |
} |
-inline void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value) { |
+inline void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct* struct_value) { |
clear_kind(); |
if (struct_value) { |
set_has_struct_value(); |
kind_.struct_value_ = struct_value; |
} |
- // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_value) |
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.struct_value) |
} |
-// optional .google.protobuf.ListValue list_value = 6; |
+// .google.protobuf.ListValue list_value = 6; |
inline bool Value::has_list_value() const { |
return kind_case() == kListValue; |
} |
@@ -657,7 +828,9 @@ inline void Value::set_has_list_value() { |
} |
inline void Value::clear_list_value() { |
if (has_list_value()) { |
- delete kind_.list_value_; |
+ if (GetArenaNoVirtual() == NULL) { |
+ delete kind_.list_value_; |
+ } |
clear_has_kind(); |
} |
} |
@@ -671,7 +844,9 @@ inline ::google::protobuf::ListValue* Value::mutable_list_value() { |
if (!has_list_value()) { |
clear_kind(); |
set_has_list_value(); |
- kind_.list_value_ = new ::google::protobuf::ListValue; |
+ kind_.list_value_ = |
+ ::google::protobuf::Arena::CreateMessage< ::google::protobuf::ListValue >( |
+ GetArenaNoVirtual()); |
} |
// @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) |
return kind_.list_value_; |
@@ -680,6 +855,42 @@ inline ::google::protobuf::ListValue* Value::release_list_value() { |
// @@protoc_insertion_point(field_release:google.protobuf.Value.list_value) |
if (has_list_value()) { |
clear_has_kind(); |
+ if (GetArenaNoVirtual() != NULL) { |
+ ::google::protobuf::ListValue* temp = new ::google::protobuf::ListValue(*kind_.list_value_); |
+ kind_.list_value_ = NULL; |
+ return temp; |
+ } else { |
+ ::google::protobuf::ListValue* temp = kind_.list_value_; |
+ kind_.list_value_ = NULL; |
+ return temp; |
+ } |
+ } else { |
+ return NULL; |
+ } |
+} |
+inline void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value) { |
+ clear_kind(); |
+ if (list_value) { |
+ if (GetArenaNoVirtual() != NULL && |
+ ::google::protobuf::Arena::GetArena(list_value) == NULL) { |
+ GetArenaNoVirtual()->Own(list_value); |
+ } else if (GetArenaNoVirtual() != |
+ ::google::protobuf::Arena::GetArena(list_value)) { |
+ ::google::protobuf::ListValue* new_list_value = |
+ ::google::protobuf::Arena::CreateMessage< ::google::protobuf::ListValue >( |
+ GetArenaNoVirtual()); |
+ new_list_value->CopyFrom(*list_value); |
+ list_value = new_list_value; |
+ } |
+ set_has_list_value(); |
+ kind_.list_value_ = list_value; |
+ } |
+ // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_value) |
+} |
+inline ::google::protobuf::ListValue* Value::unsafe_arena_release_list_value() { |
+ // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.list_value) |
+ if (has_list_value()) { |
+ clear_has_kind(); |
::google::protobuf::ListValue* temp = kind_.list_value_; |
kind_.list_value_ = NULL; |
return temp; |
@@ -687,13 +898,13 @@ inline ::google::protobuf::ListValue* Value::release_list_value() { |
return NULL; |
} |
} |
-inline void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value) { |
+inline void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue* list_value) { |
clear_kind(); |
if (list_value) { |
set_has_list_value(); |
kind_.list_value_ = list_value; |
} |
- // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_value) |
+ // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Value.list_value) |
} |
inline bool Value::has_kind() const { |
@@ -744,9 +955,12 @@ ListValue::values() const { |
// ------------------------------------------------------------------- |
+// ------------------------------------------------------------------- |
+ |
// @@protoc_insertion_point(namespace_scope) |
+ |
} // namespace protobuf |
} // namespace google |