| OLD | NEW |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: google/protobuf/struct.proto | 2 // source: google/protobuf/struct.proto |
| 3 | 3 |
| 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION | 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
| 5 #include <google/protobuf/struct.pb.h> | 5 #include <google/protobuf/struct.pb.h> |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include <google/protobuf/stubs/common.h> | 9 #include <google/protobuf/stubs/common.h> |
| 10 #include <google/protobuf/stubs/port.h> | 10 #include <google/protobuf/stubs/port.h> |
| 11 #include <google/protobuf/stubs/once.h> | 11 #include <google/protobuf/stubs/once.h> |
| 12 #include <google/protobuf/io/coded_stream.h> | 12 #include <google/protobuf/io/coded_stream.h> |
| 13 #include <google/protobuf/wire_format_lite_inl.h> | 13 #include <google/protobuf/wire_format_lite_inl.h> |
| 14 #include <google/protobuf/descriptor.h> | 14 #include <google/protobuf/descriptor.h> |
| 15 #include <google/protobuf/generated_message_reflection.h> | 15 #include <google/protobuf/generated_message_reflection.h> |
| 16 #include <google/protobuf/reflection_ops.h> | 16 #include <google/protobuf/reflection_ops.h> |
| 17 #include <google/protobuf/wire_format.h> | 17 #include <google/protobuf/wire_format.h> |
| 18 // @@protoc_insertion_point(includes) | 18 // @@protoc_insertion_point(includes) |
| 19 | 19 |
| 20 namespace google { | 20 namespace google { |
| 21 namespace protobuf { | 21 namespace protobuf { |
| 22 class StructDefaultTypeInternal : public ::google::protobuf::internal::Explicitl
yConstructed<Struct> {}; | |
| 23 StructDefaultTypeInternal _Struct_default_instance_; | |
| 24 class ValueDefaultTypeInternal : public ::google::protobuf::internal::Explicitly
Constructed<Value> {}; | |
| 25 ValueDefaultTypeInternal _Value_default_instance_; | |
| 26 class ListValueDefaultTypeInternal : public ::google::protobuf::internal::Explic
itlyConstructed<ListValue> {}; | |
| 27 ListValueDefaultTypeInternal _ListValue_default_instance_; | |
| 28 | 22 |
| 29 namespace { | 23 namespace { |
| 30 | 24 |
| 31 ::google::protobuf::Metadata file_level_metadata[4]; | 25 const ::google::protobuf::Descriptor* Struct_descriptor_ = NULL; |
| 32 const ::google::protobuf::EnumDescriptor* file_level_enum_descriptors[1]; | 26 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 27 Struct_reflection_ = NULL; |
| 28 const ::google::protobuf::Descriptor* Struct_FieldsEntry_descriptor_ = NULL; |
| 29 const ::google::protobuf::Descriptor* Value_descriptor_ = NULL; |
| 30 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 31 Value_reflection_ = NULL; |
| 33 struct ValueOneofInstance { | 32 struct ValueOneofInstance { |
| 34 int null_value_; | 33 int null_value_; |
| 35 double number_value_; | 34 double number_value_; |
| 36 ::google::protobuf::internal::ArenaStringPtr string_value_; | 35 ::google::protobuf::internal::ArenaStringPtr string_value_; |
| 37 bool bool_value_; | 36 bool bool_value_; |
| 38 const ::google::protobuf::Struct* struct_value_; | 37 const ::google::protobuf::Struct* struct_value_; |
| 39 const ::google::protobuf::ListValue* list_value_; | 38 const ::google::protobuf::ListValue* list_value_; |
| 40 } Value_default_oneof_instance_; | 39 }* Value_default_oneof_instance_ = NULL; |
| 40 const ::google::protobuf::Descriptor* ListValue_descriptor_ = NULL; |
| 41 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 42 ListValue_reflection_ = NULL; |
| 43 const ::google::protobuf::EnumDescriptor* NullValue_descriptor_ = NULL; |
| 41 | 44 |
| 42 } // namespace | 45 } // namespace |
| 43 | 46 |
| 44 | 47 |
| 45 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fstruct_2e
proto() GOOGLE_ATTRIBUTE_COLD; | 48 void protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto() { |
| 46 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fstruct_2e
proto() { | 49 protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); |
| 47 static const ::google::protobuf::uint32 offsets[] = { | 50 const ::google::protobuf::FileDescriptor* file = |
| 48 ~0u, // no _has_bits_ | 51 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( |
| 49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Struct, _internal_metadata_), | 52 "google/protobuf/struct.proto"); |
| 50 ~0u, // no _extensions_ | 53 GOOGLE_CHECK(file != NULL); |
| 51 ~0u, // no _oneof_case_ | 54 Struct_descriptor_ = file->message_type(0); |
| 55 static const int Struct_offsets_[1] = { |
| 52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Struct, fields_), | 56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Struct, fields_), |
| 53 ~0u, // no _has_bits_ | 57 }; |
| 54 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Value, _internal_metadata_), | 58 Struct_reflection_ = |
| 55 ~0u, // no _extensions_ | 59 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 56 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Value, _oneof_case_[0]), | 60 Struct_descriptor_, |
| 57 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&Value_default_oneof_instance_)
, null_value_), | 61 Struct::default_instance_, |
| 58 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&Value_default_oneof_instance_)
, number_value_), | 62 Struct_offsets_, |
| 59 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&Value_default_oneof_instance_)
, string_value_), | 63 -1, |
| 60 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&Value_default_oneof_instance_)
, bool_value_), | 64 -1, |
| 61 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&Value_default_oneof_instance_)
, struct_value_), | 65 -1, |
| 62 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET((&Value_default_oneof_instance_)
, list_value_), | 66 sizeof(Struct), |
| 67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Struct, _internal_metadata_
), |
| 68 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Struct, _is_default_instanc
e_)); |
| 69 Struct_FieldsEntry_descriptor_ = Struct_descriptor_->nested_type(0); |
| 70 Value_descriptor_ = file->message_type(1); |
| 71 static const int Value_offsets_[7] = { |
| 72 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Value_default_oneof_instance_, n
ull_value_), |
| 73 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Value_default_oneof_instance_, n
umber_value_), |
| 74 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Value_default_oneof_instance_, s
tring_value_), |
| 75 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Value_default_oneof_instance_, b
ool_value_), |
| 76 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Value_default_oneof_instance_, s
truct_value_), |
| 77 PROTO2_GENERATED_DEFAULT_ONEOF_FIELD_OFFSET(Value_default_oneof_instance_, l
ist_value_), |
| 63 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Value, kind_), | 78 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Value, kind_), |
| 64 ~0u, // no _has_bits_ | 79 }; |
| 65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListValue, _internal_metadata
_), | 80 Value_reflection_ = |
| 66 ~0u, // no _extensions_ | 81 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 67 ~0u, // no _oneof_case_ | 82 Value_descriptor_, |
| 83 Value::default_instance_, |
| 84 Value_offsets_, |
| 85 -1, |
| 86 -1, |
| 87 -1, |
| 88 Value_default_oneof_instance_, |
| 89 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Value, _oneof_case_[0]), |
| 90 sizeof(Value), |
| 91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Value, _internal_metadata_)
, |
| 92 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Value, _is_default_instance
_)); |
| 93 ListValue_descriptor_ = file->message_type(2); |
| 94 static const int ListValue_offsets_[1] = { |
| 68 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListValue, values_), | 95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListValue, values_), |
| 69 }; | 96 }; |
| 70 return offsets; | 97 ListValue_reflection_ = |
| 98 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 99 ListValue_descriptor_, |
| 100 ListValue::default_instance_, |
| 101 ListValue_offsets_, |
| 102 -1, |
| 103 -1, |
| 104 -1, |
| 105 sizeof(ListValue), |
| 106 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListValue, _internal_metada
ta_), |
| 107 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ListValue, _is_default_inst
ance_)); |
| 108 NullValue_descriptor_ = file->enum_type(0); |
| 71 } | 109 } |
| 72 | 110 |
| 73 static const ::google::protobuf::internal::MigrationSchema schemas[] = { | |
| 74 { 0, -1, sizeof(Struct)}, | |
| 75 { 5, -1, sizeof(Value)}, | |
| 76 { 16, -1, sizeof(ListValue)}, | |
| 77 }; | |
| 78 | |
| 79 static const ::google::protobuf::internal::DefaultInstanceData file_default_inst
ances[] = { | |
| 80 {reinterpret_cast<const ::google::protobuf::Message*>(&_Struct_default_instanc
e_), NULL}, | |
| 81 {reinterpret_cast<const ::google::protobuf::Message*>(&_Value_default_instance
_), &Value_default_oneof_instance_}, | |
| 82 {reinterpret_cast<const ::google::protobuf::Message*>(&_ListValue_default_inst
ance_), NULL}, | |
| 83 }; | |
| 84 | |
| 85 namespace { | 111 namespace { |
| 86 | 112 |
| 87 void protobuf_AssignDescriptors() { | 113 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
| 88 protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); | 114 inline void protobuf_AssignDescriptorsOnce() { |
| 89 ::google::protobuf::MessageFactory* factory = NULL; | 115 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
| 90 AssignDescriptors( | 116 &protobuf_AssignDesc_google_2fprotobuf_2fstruct_2eproto); |
| 91 "google/protobuf/struct.proto", schemas, file_default_instances, protobuf_
Offsets_google_2fprotobuf_2fstruct_2eproto(), factory, | |
| 92 file_level_metadata, file_level_enum_descriptors, NULL); | |
| 93 } | 117 } |
| 94 | 118 |
| 95 void protobuf_AssignDescriptorsOnce() { | |
| 96 static GOOGLE_PROTOBUF_DECLARE_ONCE(once); | |
| 97 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); | |
| 98 } | |
| 99 | |
| 100 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; | |
| 101 void protobuf_RegisterTypes(const ::std::string&) { | 119 void protobuf_RegisterTypes(const ::std::string&) { |
| 102 protobuf_AssignDescriptorsOnce(); | 120 protobuf_AssignDescriptorsOnce(); |
| 103 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4); | |
| 104 const ::google::protobuf::Descriptor* Struct_FieldsEntry_descriptor = file_lev
el_metadata[0].descriptor; | |
| 105 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( | 121 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 106 Struct_FieldsEntry_descriptor, | 122 Struct_descriptor_, &Struct::default_instance()); |
| 123 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 124 Struct_FieldsEntry_descriptor_, |
| 107 ::google::protobuf::internal::MapEntry< | 125 ::google::protobuf::internal::MapEntry< |
| 108 ::std::string, | 126 ::std::string, |
| 109 ::google::protobuf::Value, | 127 ::google::protobuf::Value, |
| 110 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, | 128 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
| 111 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, | 129 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
| 112 0>::CreateDefaultInstance( | 130 0>::CreateDefaultInstance( |
| 113 Struct_FieldsEntry_descriptor)); | 131 Struct_FieldsEntry_descriptor_)); |
| 132 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 133 Value_descriptor_, &Value::default_instance()); |
| 134 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 135 ListValue_descriptor_, &ListValue::default_instance()); |
| 114 } | 136 } |
| 115 | 137 |
| 116 } // namespace | 138 } // namespace |
| 117 | 139 |
| 118 void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto() { | 140 void protobuf_ShutdownFile_google_2fprotobuf_2fstruct_2eproto() { |
| 119 _Struct_default_instance_.Shutdown(); | 141 delete Struct::default_instance_; |
| 120 delete file_level_metadata[1].reflection; | 142 delete Struct_reflection_; |
| 121 _Value_default_instance_.Shutdown(); | 143 delete Value::default_instance_; |
| 122 delete file_level_metadata[2].reflection; | 144 delete Value_default_oneof_instance_; |
| 123 _ListValue_default_instance_.Shutdown(); | 145 delete Value_reflection_; |
| 124 delete file_level_metadata[3].reflection; | 146 delete ListValue::default_instance_; |
| 147 delete ListValue_reflection_; |
| 125 } | 148 } |
| 126 | 149 |
| 127 void protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto_impl() { | 150 void protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto() { |
| 151 static bool already_here = false; |
| 152 if (already_here) return; |
| 153 already_here = true; |
| 128 GOOGLE_PROTOBUF_VERIFY_VERSION; | 154 GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 129 | 155 |
| 130 ::google::protobuf::internal::InitProtobufDefaults(); | |
| 131 _Struct_default_instance_.DefaultConstruct(); | |
| 132 _Value_default_instance_.DefaultConstruct(); | |
| 133 _ListValue_default_instance_.DefaultConstruct(); | |
| 134 Value_default_oneof_instance_.null_value_ = 0; | |
| 135 Value_default_oneof_instance_.number_value_ = 0; | |
| 136 Value_default_oneof_instance_.string_value_.UnsafeSetDefault( | |
| 137 &::google::protobuf::internal::GetEmptyStringAlreadyInited()); | |
| 138 Value_default_oneof_instance_.bool_value_ = false; | |
| 139 Value_default_oneof_instance_.struct_value_ = const_cast< ::google::protobuf::
Struct*>( | |
| 140 ::google::protobuf::Struct::internal_default_instance()); | |
| 141 Value_default_oneof_instance_.list_value_ = const_cast< ::google::protobuf::Li
stValue*>( | |
| 142 ::google::protobuf::ListValue::internal_default_instance()); | |
| 143 } | |
| 144 | |
| 145 void protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto() { | |
| 146 static GOOGLE_PROTOBUF_DECLARE_ONCE(once); | |
| 147 ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprot
obuf_2fstruct_2eproto_impl); | |
| 148 } | |
| 149 void protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto_impl() { | |
| 150 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | |
| 151 static const char descriptor[] = { | |
| 152 "\n\034google/protobuf/struct.proto\022\017google.p" | |
| 153 "rotobuf\"\204\001\n\006Struct\0223\n\006fields\030\001 \003(\0132#.goo" | |
| 154 "gle.protobuf.Struct.FieldsEntry\032E\n\013Field" | |
| 155 "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\013
2\026.goo" | |
| 156 "gle.protobuf.Value:\0028\001\"\352\001\n\005Value\0220\n\nnull" | |
| 157 "_value\030\001 \001(\0162\032.google.protobuf.NullValue" | |
| 158 "H\000\022\026\n\014number_value\030\002 \001(\001H\000\022\026\n\014strin
g_val" | |
| 159 "ue\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\022/
\n\014stru" | |
| 160 "ct_value\030\005 \001(\0132\027.google.protobuf.StructH" | |
| 161 "\000\0220\n\nlist_value\030\006 \001(\0132\032.google.protobuf." | |
| 162 "ListValueH\000B\006\n\004kind\"3\n\tListValue\022&\n\006valu" | |
| 163 "es\030\001 \003(\0132\026.google.protobuf.Value*\033\n\tNull" | |
| 164 "Value\022\016\n\nNULL_VALUE\020\000B\201\001\n\023com.google.pro" | |
| 165 "tobufB\013StructProtoP\001Z1github.com/golang/" | |
| 166 "protobuf/ptypes/struct;structpb\370\001\001\242\002\003GPB" | |
| 167 "\252\002\036Google.Protobuf.WellKnownTypesb\006proto" | |
| 168 "3" | |
| 169 }; | |
| 170 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( | 156 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| 171 descriptor, 641); | 157 "\n\034google/protobuf/struct.proto\022\017google.p" |
| 158 "rotobuf\"\204\001\n\006Struct\0223\n\006fields\030\001 \003(\0132#.goo" |
| 159 "gle.protobuf.Struct.FieldsEntry\032E\n\013Field" |
| 160 "sEntry\022\013\n\003key\030\001 \001(\t\022%\n\005value\030\002 \001(\0132\
026.goo" |
| 161 "gle.protobuf.Value:\0028\001\"\352\001\n\005Value\0220\n\nnull" |
| 162 "_value\030\001 \001(\0162\032.google.protobuf.NullValue" |
| 163 "H\000\022\026\n\014number_value\030\002 \001(\001H\000\022\026\n\014string_
val" |
| 164 "ue\030\003 \001(\tH\000\022\024\n\nbool_value\030\004 \001(\010H\000\022/\n
\014stru" |
| 165 "ct_value\030\005 \001(\0132\027.google.protobuf.StructH" |
| 166 "\000\0220\n\nlist_value\030\006 \001(\0132\032.google.protobuf." |
| 167 "ListValueH\000B\006\n\004kind\"3\n\tListValue\022&\n\006valu" |
| 168 "es\030\001 \003(\0132\026.google.protobuf.Value*\033\n\tNull" |
| 169 "Value\022\016\n\nNULL_VALUE\020\000B\201\001\n\023com.google.pro" |
| 170 "tobufB\013StructProtoP\001Z1github.com/golang/" |
| 171 "protobuf/ptypes/struct;structpb\240\001\001\242\002\003GPB" |
| 172 "\252\002\036Google.Protobuf.WellKnownTypesb\006proto" |
| 173 "3", 641); |
| 172 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( | 174 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 173 "google/protobuf/struct.proto", &protobuf_RegisterTypes); | 175 "google/protobuf/struct.proto", &protobuf_RegisterTypes); |
| 176 Struct::default_instance_ = new Struct(); |
| 177 Value::default_instance_ = new Value(); |
| 178 Value_default_oneof_instance_ = new ValueOneofInstance(); |
| 179 ListValue::default_instance_ = new ListValue(); |
| 180 Struct::default_instance_->InitAsDefaultInstance(); |
| 181 Value::default_instance_->InitAsDefaultInstance(); |
| 182 ListValue::default_instance_->InitAsDefaultInstance(); |
| 174 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fstruct_2eproto); | 183 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fstruct_2eproto); |
| 175 } | 184 } |
| 176 | 185 |
| 177 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto
_once_); | |
| 178 void protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto() { | |
| 179 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fstruc
t_2eproto_once_, | |
| 180 &protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto_impl); | |
| 181 } | |
| 182 // Force AddDescriptors() to be called at static initialization time. | 186 // Force AddDescriptors() to be called at static initialization time. |
| 183 struct StaticDescriptorInitializer_google_2fprotobuf_2fstruct_2eproto { | 187 struct StaticDescriptorInitializer_google_2fprotobuf_2fstruct_2eproto { |
| 184 StaticDescriptorInitializer_google_2fprotobuf_2fstruct_2eproto() { | 188 StaticDescriptorInitializer_google_2fprotobuf_2fstruct_2eproto() { |
| 185 protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); | 189 protobuf_AddDesc_google_2fprotobuf_2fstruct_2eproto(); |
| 186 } | 190 } |
| 187 } static_descriptor_initializer_google_2fprotobuf_2fstruct_2eproto_; | 191 } static_descriptor_initializer_google_2fprotobuf_2fstruct_2eproto_; |
| 188 const ::google::protobuf::EnumDescriptor* NullValue_descriptor() { | 192 const ::google::protobuf::EnumDescriptor* NullValue_descriptor() { |
| 189 protobuf_AssignDescriptorsOnce(); | 193 protobuf_AssignDescriptorsOnce(); |
| 190 return file_level_enum_descriptors[0]; | 194 return NullValue_descriptor_; |
| 191 } | 195 } |
| 192 bool NullValue_IsValid(int value) { | 196 bool NullValue_IsValid(int value) { |
| 193 switch (value) { | 197 switch(value) { |
| 194 case 0: | 198 case 0: |
| 195 return true; | 199 return true; |
| 196 default: | 200 default: |
| 197 return false; | 201 return false; |
| 198 } | 202 } |
| 199 } | 203 } |
| 200 | 204 |
| 201 | 205 |
| 206 namespace { |
| 207 |
| 208 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
| 209 static void MergeFromFail(int line) { |
| 210 GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
| 211 } |
| 212 |
| 213 } // namespace |
| 214 |
| 215 |
| 202 // =================================================================== | 216 // =================================================================== |
| 203 | 217 |
| 204 #if PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 205 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | |
| 206 | |
| 207 // =================================================================== | |
| 208 | |
| 209 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 218 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 210 const int Struct::kFieldsFieldNumber; | 219 const int Struct::kFieldsFieldNumber; |
| 211 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 220 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 212 | 221 |
| 213 Struct::Struct() | 222 Struct::Struct() |
| 214 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 223 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 215 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 216 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | |
| 217 } | |
| 218 SharedCtor(); | 224 SharedCtor(); |
| 219 // @@protoc_insertion_point(constructor:google.protobuf.Struct) | 225 // @@protoc_insertion_point(constructor:google.protobuf.Struct) |
| 220 } | 226 } |
| 221 Struct::Struct(::google::protobuf::Arena* arena) | 227 |
| 222 : ::google::protobuf::Message(), | 228 void Struct::InitAsDefaultInstance() { |
| 223 _internal_metadata_(arena), | 229 _is_default_instance_ = true; |
| 224 fields_(arena) { | |
| 225 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 226 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | |
| 227 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 228 SharedCtor(); | |
| 229 RegisterArenaDtor(arena); | |
| 230 // @@protoc_insertion_point(arena_constructor:google.protobuf.Struct) | |
| 231 } | 230 } |
| 231 |
| 232 Struct::Struct(const Struct& from) | 232 Struct::Struct(const Struct& from) |
| 233 : ::google::protobuf::Message(), | 233 : ::google::protobuf::Message(), |
| 234 _internal_metadata_(NULL), | 234 _internal_metadata_(NULL) { |
| 235 _cached_size_(0) { | 235 SharedCtor(); |
| 236 _internal_metadata_.MergeFrom(from._internal_metadata_); | 236 MergeFrom(from); |
| 237 const ::google::protobuf::Descriptor*& Struct_FieldsEntry_descriptor = file_le
vel_metadata[0].descriptor; | |
| 238 fields_.SetAssignDescriptorCallback( | |
| 239 protobuf_AssignDescriptorsOnce); | |
| 240 fields_.SetEntryDescriptor( | |
| 241 &Struct_FieldsEntry_descriptor); | |
| 242 fields_.MergeFrom(from.fields_); | |
| 243 // @@protoc_insertion_point(copy_constructor:google.protobuf.Struct) | 237 // @@protoc_insertion_point(copy_constructor:google.protobuf.Struct) |
| 244 } | 238 } |
| 245 | 239 |
| 246 void Struct::SharedCtor() { | 240 void Struct::SharedCtor() { |
| 247 const ::google::protobuf::Descriptor*& Struct_FieldsEntry_descriptor = file_le
vel_metadata[0].descriptor; | 241 _is_default_instance_ = false; |
| 242 _cached_size_ = 0; |
| 248 fields_.SetAssignDescriptorCallback( | 243 fields_.SetAssignDescriptorCallback( |
| 249 protobuf_AssignDescriptorsOnce); | 244 protobuf_AssignDescriptorsOnce); |
| 250 fields_.SetEntryDescriptor( | 245 fields_.SetEntryDescriptor( |
| 251 &Struct_FieldsEntry_descriptor); | 246 &::google::protobuf::Struct_FieldsEntry_descriptor_); |
| 252 _cached_size_ = 0; | |
| 253 } | 247 } |
| 254 | 248 |
| 255 Struct::~Struct() { | 249 Struct::~Struct() { |
| 256 // @@protoc_insertion_point(destructor:google.protobuf.Struct) | 250 // @@protoc_insertion_point(destructor:google.protobuf.Struct) |
| 257 SharedDtor(); | 251 SharedDtor(); |
| 258 } | 252 } |
| 259 | 253 |
| 260 void Struct::SharedDtor() { | 254 void Struct::SharedDtor() { |
| 261 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 255 if (this != default_instance_) { |
| 262 if (arena != NULL) { | |
| 263 return; | |
| 264 } | 256 } |
| 265 | |
| 266 } | 257 } |
| 267 | 258 |
| 268 void Struct::ArenaDtor(void* object) { | |
| 269 Struct* _this = reinterpret_cast< Struct* >(object); | |
| 270 (void)_this; | |
| 271 } | |
| 272 void Struct::RegisterArenaDtor(::google::protobuf::Arena* arena) { | |
| 273 } | |
| 274 void Struct::SetCachedSize(int size) const { | 259 void Struct::SetCachedSize(int size) const { |
| 275 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 260 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 276 _cached_size_ = size; | 261 _cached_size_ = size; |
| 277 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 262 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 278 } | 263 } |
| 279 const ::google::protobuf::Descriptor* Struct::descriptor() { | 264 const ::google::protobuf::Descriptor* Struct::descriptor() { |
| 280 protobuf_AssignDescriptorsOnce(); | 265 protobuf_AssignDescriptorsOnce(); |
| 281 return file_level_metadata[1].descriptor; | 266 return Struct_descriptor_; |
| 282 } | 267 } |
| 283 | 268 |
| 284 const Struct& Struct::default_instance() { | 269 const Struct& Struct::default_instance() { |
| 285 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | 270 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep
roto(); |
| 286 return *internal_default_instance(); | 271 return *default_instance_; |
| 287 } | 272 } |
| 288 | 273 |
| 274 Struct* Struct::default_instance_ = NULL; |
| 275 |
| 289 Struct* Struct::New(::google::protobuf::Arena* arena) const { | 276 Struct* Struct::New(::google::protobuf::Arena* arena) const { |
| 290 return ::google::protobuf::Arena::CreateMessage<Struct>(arena); | 277 Struct* n = new Struct; |
| 278 if (arena != NULL) { |
| 279 arena->Own(n); |
| 280 } |
| 281 return n; |
| 291 } | 282 } |
| 292 | 283 |
| 293 void Struct::Clear() { | 284 void Struct::Clear() { |
| 294 // @@protoc_insertion_point(message_clear_start:google.protobuf.Struct) | 285 // @@protoc_insertion_point(message_clear_start:google.protobuf.Struct) |
| 295 fields_.Clear(); | 286 fields_.Clear(); |
| 296 } | 287 } |
| 297 | 288 |
| 298 bool Struct::MergePartialFromCodedStream( | 289 bool Struct::MergePartialFromCodedStream( |
| 299 ::google::protobuf::io::CodedInputStream* input) { | 290 ::google::protobuf::io::CodedInputStream* input) { |
| 300 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 291 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 301 ::google::protobuf::uint32 tag; | 292 ::google::protobuf::uint32 tag; |
| 302 // @@protoc_insertion_point(parse_start:google.protobuf.Struct) | 293 // @@protoc_insertion_point(parse_start:google.protobuf.Struct) |
| 303 for (;;) { | 294 for (;;) { |
| 304 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 295 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 305 tag = p.first; | 296 tag = p.first; |
| 306 if (!p.second) goto handle_unusual; | 297 if (!p.second) goto handle_unusual; |
| 307 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 298 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 308 // map<string, .google.protobuf.Value> fields = 1; | 299 // map<string, .google.protobuf.Value> fields = 1; |
| 309 case 1: { | 300 case 1: { |
| 310 if (tag == 10u) { | 301 if (tag == 10) { |
| 311 DO_(input->IncrementRecursionDepth()); | 302 DO_(input->IncrementRecursionDepth()); |
| 312 Struct_FieldsEntry::Parser< ::google::protobuf::internal::MapField< | 303 parse_loop_fields: |
| 313 ::std::string, ::google::protobuf::Value, | 304 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry(fields_.NewEn
try()); |
| 314 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, | |
| 315 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, | |
| 316 0 >, | |
| 317 ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >
> parser(&fields_); | |
| 318 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 305 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 319 input, &parser)); | 306 input, entry.get())); |
| 307 (*mutable_fields())[entry->key()].Swap(entry->mutable_value()); |
| 320 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 308 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 321 parser.key().data(), parser.key().length(), | 309 entry->key().data(), entry->key().length(), |
| 322 ::google::protobuf::internal::WireFormatLite::PARSE, | 310 ::google::protobuf::internal::WireFormatLite::PARSE, |
| 323 "google.protobuf.Struct.FieldsEntry.key")); | 311 "google.protobuf.Struct.FieldsEntry.key")); |
| 324 } else { | 312 } else { |
| 325 goto handle_unusual; | 313 goto handle_unusual; |
| 326 } | 314 } |
| 315 if (input->ExpectTag(10)) goto parse_loop_fields; |
| 327 input->UnsafeDecrementRecursionDepth(); | 316 input->UnsafeDecrementRecursionDepth(); |
| 317 if (input->ExpectAtEnd()) goto success; |
| 328 break; | 318 break; |
| 329 } | 319 } |
| 330 | 320 |
| 331 default: { | 321 default: { |
| 332 handle_unusual: | 322 handle_unusual: |
| 333 if (tag == 0 || | 323 if (tag == 0 || |
| 334 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 324 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 335 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 325 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 336 goto success; | 326 goto success; |
| 337 } | 327 } |
| 338 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 328 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 339 break; | 329 break; |
| 340 } | 330 } |
| 341 } | 331 } |
| 342 } | 332 } |
| 343 success: | 333 success: |
| 344 // @@protoc_insertion_point(parse_success:google.protobuf.Struct) | 334 // @@protoc_insertion_point(parse_success:google.protobuf.Struct) |
| 345 return true; | 335 return true; |
| 346 failure: | 336 failure: |
| 347 // @@protoc_insertion_point(parse_failure:google.protobuf.Struct) | 337 // @@protoc_insertion_point(parse_failure:google.protobuf.Struct) |
| 348 return false; | 338 return false; |
| 349 #undef DO_ | 339 #undef DO_ |
| 350 } | 340 } |
| 351 | 341 |
| 352 void Struct::SerializeWithCachedSizes( | 342 void Struct::SerializeWithCachedSizes( |
| 353 ::google::protobuf::io::CodedOutputStream* output) const { | 343 ::google::protobuf::io::CodedOutputStream* output) const { |
| 354 // @@protoc_insertion_point(serialize_start:google.protobuf.Struct) | 344 // @@protoc_insertion_point(serialize_start:google.protobuf.Struct) |
| 355 // map<string, .google.protobuf.Value> fields = 1; | 345 // map<string, .google.protobuf.Value> fields = 1; |
| 356 if (!this->fields().empty()) { | 346 { |
| 357 typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >:
:const_pointer | 347 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry; |
| 358 ConstPtr; | 348 for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::co
nst_iterator |
| 359 typedef ConstPtr SortItem; | 349 it = this->fields().begin(); |
| 360 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; | 350 it != this->fields().end(); ++it) { |
| 361 struct Utf8Check { | 351 entry.reset(fields_.NewEntryWrapper(it->first, it->second)); |
| 362 static void Check(ConstPtr p) { | 352 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 363 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 353 1, *entry, output); |
| 364 p->first.data(), p->first.length(), | 354 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 365 ::google::protobuf::internal::WireFormatLite::SERIALIZE, | 355 it->first.data(), it->first.length(), |
| 366 "google.protobuf.Struct.FieldsEntry.key"); | 356 ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 367 } | 357 "google.protobuf.Struct.FieldsEntry.key"); |
| 368 }; | |
| 369 | |
| 370 if (output->IsSerializationDeterministic() && | |
| 371 this->fields().size() > 1) { | |
| 372 ::google::protobuf::scoped_array<SortItem> items( | |
| 373 new SortItem[this->fields().size()]); | |
| 374 typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value
>::size_type size_type; | |
| 375 size_type n = 0; | |
| 376 for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::
const_iterator | |
| 377 it = this->fields().begin(); | |
| 378 it != this->fields().end(); ++it, ++n) { | |
| 379 items[n] = SortItem(&*it); | |
| 380 } | |
| 381 ::std::sort(&items[0], &items[n], Less()); | |
| 382 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry; | |
| 383 for (size_type i = 0; i < n; i++) { | |
| 384 entry.reset(fields_.NewEntryWrapper( | |
| 385 items[i]->first, items[i]->second)); | |
| 386 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | |
| 387 1, *entry, output); | |
| 388 if (entry->GetArena() != NULL) { | |
| 389 entry.release(); | |
| 390 } | |
| 391 Utf8Check::Check(items[i]); | |
| 392 } | |
| 393 } else { | |
| 394 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry; | |
| 395 for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::
const_iterator | |
| 396 it = this->fields().begin(); | |
| 397 it != this->fields().end(); ++it) { | |
| 398 entry.reset(fields_.NewEntryWrapper( | |
| 399 it->first, it->second)); | |
| 400 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | |
| 401 1, *entry, output); | |
| 402 if (entry->GetArena() != NULL) { | |
| 403 entry.release(); | |
| 404 } | |
| 405 Utf8Check::Check(&*it); | |
| 406 } | |
| 407 } | 358 } |
| 408 } | 359 } |
| 409 | 360 |
| 410 // @@protoc_insertion_point(serialize_end:google.protobuf.Struct) | 361 // @@protoc_insertion_point(serialize_end:google.protobuf.Struct) |
| 411 } | 362 } |
| 412 | 363 |
| 413 ::google::protobuf::uint8* Struct::InternalSerializeWithCachedSizesToArray( | 364 ::google::protobuf::uint8* Struct::SerializeWithCachedSizesToArray( |
| 414 bool deterministic, ::google::protobuf::uint8* target) const { | 365 ::google::protobuf::uint8* target) const { |
| 415 (void)deterministic; // Unused | |
| 416 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct) | 366 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Struct) |
| 417 // map<string, .google.protobuf.Value> fields = 1; | 367 // map<string, .google.protobuf.Value> fields = 1; |
| 418 if (!this->fields().empty()) { | 368 { |
| 419 typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value >:
:const_pointer | 369 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry; |
| 420 ConstPtr; | 370 for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::co
nst_iterator |
| 421 typedef ConstPtr SortItem; | 371 it = this->fields().begin(); |
| 422 typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less; | 372 it != this->fields().end(); ++it) { |
| 423 struct Utf8Check { | 373 entry.reset(fields_.NewEntryWrapper(it->first, it->second)); |
| 424 static void Check(ConstPtr p) { | 374 target = ::google::protobuf::internal::WireFormatLite:: |
| 425 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 375 WriteMessageNoVirtualToArray( |
| 426 p->first.data(), p->first.length(), | 376 1, *entry, target); |
| 427 ::google::protobuf::internal::WireFormatLite::SERIALIZE, | 377 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 428 "google.protobuf.Struct.FieldsEntry.key"); | 378 it->first.data(), it->first.length(), |
| 429 } | 379 ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 430 }; | 380 "google.protobuf.Struct.FieldsEntry.key"); |
| 431 | |
| 432 if (deterministic && | |
| 433 this->fields().size() > 1) { | |
| 434 ::google::protobuf::scoped_array<SortItem> items( | |
| 435 new SortItem[this->fields().size()]); | |
| 436 typedef ::google::protobuf::Map< ::std::string, ::google::protobuf::Value
>::size_type size_type; | |
| 437 size_type n = 0; | |
| 438 for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::
const_iterator | |
| 439 it = this->fields().begin(); | |
| 440 it != this->fields().end(); ++it, ++n) { | |
| 441 items[n] = SortItem(&*it); | |
| 442 } | |
| 443 ::std::sort(&items[0], &items[n], Less()); | |
| 444 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry; | |
| 445 for (size_type i = 0; i < n; i++) { | |
| 446 entry.reset(fields_.NewEntryWrapper( | |
| 447 items[i]->first, items[i]->second)); | |
| 448 target = ::google::protobuf::internal::WireFormatLite:: | |
| 449 InternalWriteMessageNoVirtualToArray( | |
| 450 1, *entry, deterministic, target); | |
| 451 ; | |
| 452 if (entry->GetArena() != NULL) { | |
| 453 entry.release(); | |
| 454 } | |
| 455 Utf8Check::Check(items[i]); | |
| 456 } | |
| 457 } else { | |
| 458 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry; | |
| 459 for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::
const_iterator | |
| 460 it = this->fields().begin(); | |
| 461 it != this->fields().end(); ++it) { | |
| 462 entry.reset(fields_.NewEntryWrapper( | |
| 463 it->first, it->second)); | |
| 464 target = ::google::protobuf::internal::WireFormatLite:: | |
| 465 InternalWriteMessageNoVirtualToArray( | |
| 466 1, *entry, deterministic, target); | |
| 467 ; | |
| 468 if (entry->GetArena() != NULL) { | |
| 469 entry.release(); | |
| 470 } | |
| 471 Utf8Check::Check(&*it); | |
| 472 } | |
| 473 } | 381 } |
| 474 } | 382 } |
| 475 | 383 |
| 476 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Struct) | 384 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Struct) |
| 477 return target; | 385 return target; |
| 478 } | 386 } |
| 479 | 387 |
| 480 size_t Struct::ByteSizeLong() const { | 388 int Struct::ByteSize() const { |
| 481 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct) | 389 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Struct) |
| 482 size_t total_size = 0; | 390 int total_size = 0; |
| 483 | 391 |
| 484 // map<string, .google.protobuf.Value> fields = 1; | 392 // map<string, .google.protobuf.Value> fields = 1; |
| 485 total_size += 1 * | 393 total_size += 1 * this->fields_size(); |
| 486 ::google::protobuf::internal::FromIntSize(this->fields_size()); | |
| 487 { | 394 { |
| 488 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry; | 395 ::google::protobuf::scoped_ptr<Struct_FieldsEntry> entry; |
| 489 for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::co
nst_iterator | 396 for (::google::protobuf::Map< ::std::string, ::google::protobuf::Value >::co
nst_iterator |
| 490 it = this->fields().begin(); | 397 it = this->fields().begin(); |
| 491 it != this->fields().end(); ++it) { | 398 it != this->fields().end(); ++it) { |
| 492 if (entry.get() != NULL && entry->GetArena() != NULL) { | |
| 493 entry.release(); | |
| 494 } | |
| 495 entry.reset(fields_.NewEntryWrapper(it->first, it->second)); | 399 entry.reset(fields_.NewEntryWrapper(it->first, it->second)); |
| 496 total_size += ::google::protobuf::internal::WireFormatLite:: | 400 total_size += ::google::protobuf::internal::WireFormatLite:: |
| 497 MessageSizeNoVirtual(*entry); | 401 MessageSizeNoVirtual(*entry); |
| 498 } | 402 } |
| 499 if (entry.get() != NULL && entry->GetArena() != NULL) { | |
| 500 entry.release(); | |
| 501 } | |
| 502 } | 403 } |
| 503 | 404 |
| 504 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 505 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 405 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 506 _cached_size_ = cached_size; | 406 _cached_size_ = total_size; |
| 507 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 407 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 508 return total_size; | 408 return total_size; |
| 509 } | 409 } |
| 510 | 410 |
| 511 void Struct::MergeFrom(const ::google::protobuf::Message& from) { | 411 void Struct::MergeFrom(const ::google::protobuf::Message& from) { |
| 512 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Struct) | 412 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Struct) |
| 513 GOOGLE_DCHECK_NE(&from, this); | 413 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 514 const Struct* source = | 414 const Struct* source = |
| 515 ::google::protobuf::internal::DynamicCastToGenerated<const Struct>( | 415 ::google::protobuf::internal::DynamicCastToGenerated<const Struct>( |
| 516 &from); | 416 &from); |
| 517 if (source == NULL) { | 417 if (source == NULL) { |
| 518 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
truct) | 418 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
truct) |
| 519 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 419 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 520 } else { | 420 } else { |
| 521 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Struct) | 421 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Struct) |
| 522 MergeFrom(*source); | 422 MergeFrom(*source); |
| 523 } | 423 } |
| 524 } | 424 } |
| 525 | 425 |
| 526 void Struct::MergeFrom(const Struct& from) { | 426 void Struct::MergeFrom(const Struct& from) { |
| 527 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Stru
ct) | 427 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Stru
ct) |
| 528 GOOGLE_DCHECK_NE(&from, this); | 428 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 529 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 530 fields_.MergeFrom(from.fields_); | 429 fields_.MergeFrom(from.fields_); |
| 531 } | 430 } |
| 532 | 431 |
| 533 void Struct::CopyFrom(const ::google::protobuf::Message& from) { | 432 void Struct::CopyFrom(const ::google::protobuf::Message& from) { |
| 534 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Struct) | 433 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Struct) |
| 535 if (&from == this) return; | 434 if (&from == this) return; |
| 536 Clear(); | 435 Clear(); |
| 537 MergeFrom(from); | 436 MergeFrom(from); |
| 538 } | 437 } |
| 539 | 438 |
| 540 void Struct::CopyFrom(const Struct& from) { | 439 void Struct::CopyFrom(const Struct& from) { |
| 541 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Struc
t) | 440 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Struc
t) |
| 542 if (&from == this) return; | 441 if (&from == this) return; |
| 543 Clear(); | 442 Clear(); |
| 544 MergeFrom(from); | 443 MergeFrom(from); |
| 545 } | 444 } |
| 546 | 445 |
| 547 bool Struct::IsInitialized() const { | 446 bool Struct::IsInitialized() const { |
| 447 |
| 548 return true; | 448 return true; |
| 549 } | 449 } |
| 550 | 450 |
| 551 void Struct::Swap(Struct* other) { | 451 void Struct::Swap(Struct* other) { |
| 552 if (other == this) return; | 452 if (other == this) return; |
| 553 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | |
| 554 InternalSwap(other); | |
| 555 } else { | |
| 556 Struct* temp = New(GetArenaNoVirtual()); | |
| 557 temp->MergeFrom(*other); | |
| 558 other->CopyFrom(*this); | |
| 559 InternalSwap(temp); | |
| 560 if (GetArenaNoVirtual() == NULL) { | |
| 561 delete temp; | |
| 562 } | |
| 563 } | |
| 564 } | |
| 565 void Struct::UnsafeArenaSwap(Struct* other) { | |
| 566 if (other == this) return; | |
| 567 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | |
| 568 InternalSwap(other); | 453 InternalSwap(other); |
| 569 } | 454 } |
| 570 void Struct::InternalSwap(Struct* other) { | 455 void Struct::InternalSwap(Struct* other) { |
| 571 fields_.Swap(&other->fields_); | 456 fields_.Swap(&other->fields_); |
| 457 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 572 std::swap(_cached_size_, other->_cached_size_); | 458 std::swap(_cached_size_, other->_cached_size_); |
| 573 } | 459 } |
| 574 | 460 |
| 575 ::google::protobuf::Metadata Struct::GetMetadata() const { | 461 ::google::protobuf::Metadata Struct::GetMetadata() const { |
| 576 protobuf_AssignDescriptorsOnce(); | 462 protobuf_AssignDescriptorsOnce(); |
| 577 return file_level_metadata[1]; | 463 ::google::protobuf::Metadata metadata; |
| 464 metadata.descriptor = Struct_descriptor_; |
| 465 metadata.reflection = Struct_reflection_; |
| 466 return metadata; |
| 578 } | 467 } |
| 579 | 468 |
| 580 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 469 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 581 // Struct | 470 // Struct |
| 582 | 471 |
| 583 // map<string, .google.protobuf.Value> fields = 1; | 472 // map<string, .google.protobuf.Value> fields = 1; |
| 584 int Struct::fields_size() const { | 473 int Struct::fields_size() const { |
| 585 return fields_.size(); | 474 return fields_.size(); |
| 586 } | 475 } |
| 587 void Struct::clear_fields() { | 476 void Struct::clear_fields() { |
| (...skipping 18 matching lines...) Expand all Loading... |
| 606 const int Value::kNullValueFieldNumber; | 495 const int Value::kNullValueFieldNumber; |
| 607 const int Value::kNumberValueFieldNumber; | 496 const int Value::kNumberValueFieldNumber; |
| 608 const int Value::kStringValueFieldNumber; | 497 const int Value::kStringValueFieldNumber; |
| 609 const int Value::kBoolValueFieldNumber; | 498 const int Value::kBoolValueFieldNumber; |
| 610 const int Value::kStructValueFieldNumber; | 499 const int Value::kStructValueFieldNumber; |
| 611 const int Value::kListValueFieldNumber; | 500 const int Value::kListValueFieldNumber; |
| 612 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 501 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 613 | 502 |
| 614 Value::Value() | 503 Value::Value() |
| 615 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 504 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 616 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 617 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | |
| 618 } | |
| 619 SharedCtor(); | 505 SharedCtor(); |
| 620 // @@protoc_insertion_point(constructor:google.protobuf.Value) | 506 // @@protoc_insertion_point(constructor:google.protobuf.Value) |
| 621 } | 507 } |
| 622 Value::Value(::google::protobuf::Arena* arena) | 508 |
| 623 : ::google::protobuf::Message(), | 509 void Value::InitAsDefaultInstance() { |
| 624 _internal_metadata_(arena) { | 510 _is_default_instance_ = true; |
| 625 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | 511 Value_default_oneof_instance_->null_value_ = 0; |
| 626 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | 512 Value_default_oneof_instance_->number_value_ = 0; |
| 627 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | 513 Value_default_oneof_instance_->string_value_.UnsafeSetDefault(&::google::proto
buf::internal::GetEmptyStringAlreadyInited()); |
| 628 SharedCtor(); | 514 Value_default_oneof_instance_->bool_value_ = false; |
| 629 RegisterArenaDtor(arena); | 515 Value_default_oneof_instance_->struct_value_ = const_cast< ::google::protobuf:
:Struct*>(&::google::protobuf::Struct::default_instance()); |
| 630 // @@protoc_insertion_point(arena_constructor:google.protobuf.Value) | 516 Value_default_oneof_instance_->list_value_ = const_cast< ::google::protobuf::L
istValue*>(&::google::protobuf::ListValue::default_instance()); |
| 631 } | 517 } |
| 518 |
| 632 Value::Value(const Value& from) | 519 Value::Value(const Value& from) |
| 633 : ::google::protobuf::Message(), | 520 : ::google::protobuf::Message(), |
| 634 _internal_metadata_(NULL), | 521 _internal_metadata_(NULL) { |
| 635 _cached_size_(0) { | 522 SharedCtor(); |
| 636 _internal_metadata_.MergeFrom(from._internal_metadata_); | 523 MergeFrom(from); |
| 637 clear_has_kind(); | |
| 638 switch (from.kind_case()) { | |
| 639 case kNullValue: { | |
| 640 set_null_value(from.null_value()); | |
| 641 break; | |
| 642 } | |
| 643 case kNumberValue: { | |
| 644 set_number_value(from.number_value()); | |
| 645 break; | |
| 646 } | |
| 647 case kStringValue: { | |
| 648 set_string_value(from.string_value()); | |
| 649 break; | |
| 650 } | |
| 651 case kBoolValue: { | |
| 652 set_bool_value(from.bool_value()); | |
| 653 break; | |
| 654 } | |
| 655 case kStructValue: { | |
| 656 mutable_struct_value()->::google::protobuf::Struct::MergeFrom(from.struct_
value()); | |
| 657 break; | |
| 658 } | |
| 659 case kListValue: { | |
| 660 mutable_list_value()->::google::protobuf::ListValue::MergeFrom(from.list_v
alue()); | |
| 661 break; | |
| 662 } | |
| 663 case KIND_NOT_SET: { | |
| 664 break; | |
| 665 } | |
| 666 } | |
| 667 // @@protoc_insertion_point(copy_constructor:google.protobuf.Value) | 524 // @@protoc_insertion_point(copy_constructor:google.protobuf.Value) |
| 668 } | 525 } |
| 669 | 526 |
| 670 void Value::SharedCtor() { | 527 void Value::SharedCtor() { |
| 528 _is_default_instance_ = false; |
| 529 ::google::protobuf::internal::GetEmptyString(); |
| 530 _cached_size_ = 0; |
| 671 clear_has_kind(); | 531 clear_has_kind(); |
| 672 _cached_size_ = 0; | |
| 673 } | 532 } |
| 674 | 533 |
| 675 Value::~Value() { | 534 Value::~Value() { |
| 676 // @@protoc_insertion_point(destructor:google.protobuf.Value) | 535 // @@protoc_insertion_point(destructor:google.protobuf.Value) |
| 677 SharedDtor(); | 536 SharedDtor(); |
| 678 } | 537 } |
| 679 | 538 |
| 680 void Value::SharedDtor() { | 539 void Value::SharedDtor() { |
| 681 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | |
| 682 if (arena != NULL) { | |
| 683 return; | |
| 684 } | |
| 685 | |
| 686 if (has_kind()) { | 540 if (has_kind()) { |
| 687 clear_kind(); | 541 clear_kind(); |
| 688 } | 542 } |
| 543 if (this != default_instance_) { |
| 544 } |
| 689 } | 545 } |
| 690 | 546 |
| 691 void Value::ArenaDtor(void* object) { | |
| 692 Value* _this = reinterpret_cast< Value* >(object); | |
| 693 (void)_this; | |
| 694 } | |
| 695 void Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { | |
| 696 } | |
| 697 void Value::SetCachedSize(int size) const { | 547 void Value::SetCachedSize(int size) const { |
| 698 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 548 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 699 _cached_size_ = size; | 549 _cached_size_ = size; |
| 700 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 550 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 701 } | 551 } |
| 702 const ::google::protobuf::Descriptor* Value::descriptor() { | 552 const ::google::protobuf::Descriptor* Value::descriptor() { |
| 703 protobuf_AssignDescriptorsOnce(); | 553 protobuf_AssignDescriptorsOnce(); |
| 704 return file_level_metadata[2].descriptor; | 554 return Value_descriptor_; |
| 705 } | 555 } |
| 706 | 556 |
| 707 const Value& Value::default_instance() { | 557 const Value& Value::default_instance() { |
| 708 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | 558 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep
roto(); |
| 709 return *internal_default_instance(); | 559 return *default_instance_; |
| 710 } | 560 } |
| 711 | 561 |
| 562 Value* Value::default_instance_ = NULL; |
| 563 |
| 712 Value* Value::New(::google::protobuf::Arena* arena) const { | 564 Value* Value::New(::google::protobuf::Arena* arena) const { |
| 713 return ::google::protobuf::Arena::CreateMessage<Value>(arena); | 565 Value* n = new Value; |
| 566 if (arena != NULL) { |
| 567 arena->Own(n); |
| 568 } |
| 569 return n; |
| 714 } | 570 } |
| 715 | 571 |
| 716 void Value::clear_kind() { | 572 void Value::clear_kind() { |
| 717 // @@protoc_insertion_point(one_of_clear_start:google.protobuf.Value) | 573 // @@protoc_insertion_point(one_of_clear_start:google.protobuf.Value) |
| 718 switch (kind_case()) { | 574 switch(kind_case()) { |
| 719 case kNullValue: { | 575 case kNullValue: { |
| 720 // No need to clear | 576 // No need to clear |
| 721 break; | 577 break; |
| 722 } | 578 } |
| 723 case kNumberValue: { | 579 case kNumberValue: { |
| 724 // No need to clear | 580 // No need to clear |
| 725 break; | 581 break; |
| 726 } | 582 } |
| 727 case kStringValue: { | 583 case kStringValue: { |
| 728 kind_.string_value_.Destroy(&::google::protobuf::internal::GetEmptyStringA
lreadyInited(), | 584 kind_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 729 GetArenaNoVirtual()); | |
| 730 break; | 585 break; |
| 731 } | 586 } |
| 732 case kBoolValue: { | 587 case kBoolValue: { |
| 733 // No need to clear | 588 // No need to clear |
| 734 break; | 589 break; |
| 735 } | 590 } |
| 736 case kStructValue: { | 591 case kStructValue: { |
| 737 if (GetArenaNoVirtual() == NULL) { | 592 delete kind_.struct_value_; |
| 738 delete kind_.struct_value_; | |
| 739 } | |
| 740 break; | 593 break; |
| 741 } | 594 } |
| 742 case kListValue: { | 595 case kListValue: { |
| 743 if (GetArenaNoVirtual() == NULL) { | 596 delete kind_.list_value_; |
| 744 delete kind_.list_value_; | |
| 745 } | |
| 746 break; | 597 break; |
| 747 } | 598 } |
| 748 case KIND_NOT_SET: { | 599 case KIND_NOT_SET: { |
| 749 break; | 600 break; |
| 750 } | 601 } |
| 751 } | 602 } |
| 752 _oneof_case_[0] = KIND_NOT_SET; | 603 _oneof_case_[0] = KIND_NOT_SET; |
| 753 } | 604 } |
| 754 | 605 |
| 755 | 606 |
| 756 void Value::Clear() { | 607 void Value::Clear() { |
| 757 // @@protoc_insertion_point(message_clear_start:google.protobuf.Value) | 608 // @@protoc_insertion_point(message_clear_start:google.protobuf.Value) |
| 758 clear_kind(); | 609 clear_kind(); |
| 759 } | 610 } |
| 760 | 611 |
| 761 bool Value::MergePartialFromCodedStream( | 612 bool Value::MergePartialFromCodedStream( |
| 762 ::google::protobuf::io::CodedInputStream* input) { | 613 ::google::protobuf::io::CodedInputStream* input) { |
| 763 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 614 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 764 ::google::protobuf::uint32 tag; | 615 ::google::protobuf::uint32 tag; |
| 765 // @@protoc_insertion_point(parse_start:google.protobuf.Value) | 616 // @@protoc_insertion_point(parse_start:google.protobuf.Value) |
| 766 for (;;) { | 617 for (;;) { |
| 767 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 618 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 768 tag = p.first; | 619 tag = p.first; |
| 769 if (!p.second) goto handle_unusual; | 620 if (!p.second) goto handle_unusual; |
| 770 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 621 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 771 // .google.protobuf.NullValue null_value = 1; | 622 // optional .google.protobuf.NullValue null_value = 1; |
| 772 case 1: { | 623 case 1: { |
| 773 if (tag == 8u) { | 624 if (tag == 8) { |
| 774 int value; | 625 int value; |
| 775 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 626 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 776 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( | 627 int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>
( |
| 777 input, &value))); | 628 input, &value))); |
| 778 set_null_value(static_cast< ::google::protobuf::NullValue >(value)); | 629 set_null_value(static_cast< ::google::protobuf::NullValue >(value)); |
| 779 } else { | 630 } else { |
| 780 goto handle_unusual; | 631 goto handle_unusual; |
| 781 } | 632 } |
| 633 if (input->ExpectTag(17)) goto parse_number_value; |
| 782 break; | 634 break; |
| 783 } | 635 } |
| 784 | 636 |
| 785 // double number_value = 2; | 637 // optional double number_value = 2; |
| 786 case 2: { | 638 case 2: { |
| 787 if (tag == 17u) { | 639 if (tag == 17) { |
| 640 parse_number_value: |
| 788 clear_kind(); | 641 clear_kind(); |
| 789 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 642 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 790 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( | 643 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( |
| 791 input, &kind_.number_value_))); | 644 input, &kind_.number_value_))); |
| 792 set_has_number_value(); | 645 set_has_number_value(); |
| 793 } else { | 646 } else { |
| 794 goto handle_unusual; | 647 goto handle_unusual; |
| 795 } | 648 } |
| 649 if (input->ExpectTag(26)) goto parse_string_value; |
| 796 break; | 650 break; |
| 797 } | 651 } |
| 798 | 652 |
| 799 // string string_value = 3; | 653 // optional string string_value = 3; |
| 800 case 3: { | 654 case 3: { |
| 801 if (tag == 26u) { | 655 if (tag == 26) { |
| 656 parse_string_value: |
| 802 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 657 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 803 input, this->mutable_string_value())); | 658 input, this->mutable_string_value())); |
| 804 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 659 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 805 this->string_value().data(), this->string_value().length(), | 660 this->string_value().data(), this->string_value().length(), |
| 806 ::google::protobuf::internal::WireFormatLite::PARSE, | 661 ::google::protobuf::internal::WireFormatLite::PARSE, |
| 807 "google.protobuf.Value.string_value")); | 662 "google.protobuf.Value.string_value")); |
| 808 } else { | 663 } else { |
| 809 goto handle_unusual; | 664 goto handle_unusual; |
| 810 } | 665 } |
| 666 if (input->ExpectTag(32)) goto parse_bool_value; |
| 811 break; | 667 break; |
| 812 } | 668 } |
| 813 | 669 |
| 814 // bool bool_value = 4; | 670 // optional bool bool_value = 4; |
| 815 case 4: { | 671 case 4: { |
| 816 if (tag == 32u) { | 672 if (tag == 32) { |
| 673 parse_bool_value: |
| 817 clear_kind(); | 674 clear_kind(); |
| 818 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 675 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 819 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 676 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 820 input, &kind_.bool_value_))); | 677 input, &kind_.bool_value_))); |
| 821 set_has_bool_value(); | 678 set_has_bool_value(); |
| 822 } else { | 679 } else { |
| 823 goto handle_unusual; | 680 goto handle_unusual; |
| 824 } | 681 } |
| 682 if (input->ExpectTag(42)) goto parse_struct_value; |
| 825 break; | 683 break; |
| 826 } | 684 } |
| 827 | 685 |
| 828 // .google.protobuf.Struct struct_value = 5; | 686 // optional .google.protobuf.Struct struct_value = 5; |
| 829 case 5: { | 687 case 5: { |
| 830 if (tag == 42u) { | 688 if (tag == 42) { |
| 689 parse_struct_value: |
| 831 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 690 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 832 input, mutable_struct_value())); | 691 input, mutable_struct_value())); |
| 833 } else { | 692 } else { |
| 834 goto handle_unusual; | 693 goto handle_unusual; |
| 835 } | 694 } |
| 695 if (input->ExpectTag(50)) goto parse_list_value; |
| 836 break; | 696 break; |
| 837 } | 697 } |
| 838 | 698 |
| 839 // .google.protobuf.ListValue list_value = 6; | 699 // optional .google.protobuf.ListValue list_value = 6; |
| 840 case 6: { | 700 case 6: { |
| 841 if (tag == 50u) { | 701 if (tag == 50) { |
| 702 parse_list_value: |
| 842 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( | 703 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
( |
| 843 input, mutable_list_value())); | 704 input, mutable_list_value())); |
| 844 } else { | 705 } else { |
| 845 goto handle_unusual; | 706 goto handle_unusual; |
| 846 } | 707 } |
| 708 if (input->ExpectAtEnd()) goto success; |
| 847 break; | 709 break; |
| 848 } | 710 } |
| 849 | 711 |
| 850 default: { | 712 default: { |
| 851 handle_unusual: | 713 handle_unusual: |
| 852 if (tag == 0 || | 714 if (tag == 0 || |
| 853 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 715 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 854 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 716 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 855 goto success; | 717 goto success; |
| 856 } | 718 } |
| 857 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 719 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 858 break; | 720 break; |
| 859 } | 721 } |
| 860 } | 722 } |
| 861 } | 723 } |
| 862 success: | 724 success: |
| 863 // @@protoc_insertion_point(parse_success:google.protobuf.Value) | 725 // @@protoc_insertion_point(parse_success:google.protobuf.Value) |
| 864 return true; | 726 return true; |
| 865 failure: | 727 failure: |
| 866 // @@protoc_insertion_point(parse_failure:google.protobuf.Value) | 728 // @@protoc_insertion_point(parse_failure:google.protobuf.Value) |
| 867 return false; | 729 return false; |
| 868 #undef DO_ | 730 #undef DO_ |
| 869 } | 731 } |
| 870 | 732 |
| 871 void Value::SerializeWithCachedSizes( | 733 void Value::SerializeWithCachedSizes( |
| 872 ::google::protobuf::io::CodedOutputStream* output) const { | 734 ::google::protobuf::io::CodedOutputStream* output) const { |
| 873 // @@protoc_insertion_point(serialize_start:google.protobuf.Value) | 735 // @@protoc_insertion_point(serialize_start:google.protobuf.Value) |
| 874 // .google.protobuf.NullValue null_value = 1; | 736 // optional .google.protobuf.NullValue null_value = 1; |
| 875 if (has_null_value()) { | 737 if (has_null_value()) { |
| 876 ::google::protobuf::internal::WireFormatLite::WriteEnum( | 738 ::google::protobuf::internal::WireFormatLite::WriteEnum( |
| 877 1, this->null_value(), output); | 739 1, this->null_value(), output); |
| 878 } | 740 } |
| 879 | 741 |
| 880 // double number_value = 2; | 742 // optional double number_value = 2; |
| 881 if (has_number_value()) { | 743 if (has_number_value()) { |
| 882 ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->number_va
lue(), output); | 744 ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->number_va
lue(), output); |
| 883 } | 745 } |
| 884 | 746 |
| 885 // string string_value = 3; | 747 // optional string string_value = 3; |
| 886 if (has_string_value()) { | 748 if (has_string_value()) { |
| 887 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 749 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 888 this->string_value().data(), this->string_value().length(), | 750 this->string_value().data(), this->string_value().length(), |
| 889 ::google::protobuf::internal::WireFormatLite::SERIALIZE, | 751 ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 890 "google.protobuf.Value.string_value"); | 752 "google.protobuf.Value.string_value"); |
| 891 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | 753 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 892 3, this->string_value(), output); | 754 3, this->string_value(), output); |
| 893 } | 755 } |
| 894 | 756 |
| 895 // bool bool_value = 4; | 757 // optional bool bool_value = 4; |
| 896 if (has_bool_value()) { | 758 if (has_bool_value()) { |
| 897 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->bool_value(
), output); | 759 ::google::protobuf::internal::WireFormatLite::WriteBool(4, this->bool_value(
), output); |
| 898 } | 760 } |
| 899 | 761 |
| 900 // .google.protobuf.Struct struct_value = 5; | 762 // optional .google.protobuf.Struct struct_value = 5; |
| 901 if (has_struct_value()) { | 763 if (has_struct_value()) { |
| 902 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 764 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 903 5, *kind_.struct_value_, output); | 765 5, *kind_.struct_value_, output); |
| 904 } | 766 } |
| 905 | 767 |
| 906 // .google.protobuf.ListValue list_value = 6; | 768 // optional .google.protobuf.ListValue list_value = 6; |
| 907 if (has_list_value()) { | 769 if (has_list_value()) { |
| 908 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 770 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 909 6, *kind_.list_value_, output); | 771 6, *kind_.list_value_, output); |
| 910 } | 772 } |
| 911 | 773 |
| 912 // @@protoc_insertion_point(serialize_end:google.protobuf.Value) | 774 // @@protoc_insertion_point(serialize_end:google.protobuf.Value) |
| 913 } | 775 } |
| 914 | 776 |
| 915 ::google::protobuf::uint8* Value::InternalSerializeWithCachedSizesToArray( | 777 ::google::protobuf::uint8* Value::SerializeWithCachedSizesToArray( |
| 916 bool deterministic, ::google::protobuf::uint8* target) const { | 778 ::google::protobuf::uint8* target) const { |
| 917 (void)deterministic; // Unused | |
| 918 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value) | 779 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Value) |
| 919 // .google.protobuf.NullValue null_value = 1; | 780 // optional .google.protobuf.NullValue null_value = 1; |
| 920 if (has_null_value()) { | 781 if (has_null_value()) { |
| 921 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( | 782 target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( |
| 922 1, this->null_value(), target); | 783 1, this->null_value(), target); |
| 923 } | 784 } |
| 924 | 785 |
| 925 // double number_value = 2; | 786 // optional double number_value = 2; |
| 926 if (has_number_value()) { | 787 if (has_number_value()) { |
| 927 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2,
this->number_value(), target); | 788 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2,
this->number_value(), target); |
| 928 } | 789 } |
| 929 | 790 |
| 930 // string string_value = 3; | 791 // optional string string_value = 3; |
| 931 if (has_string_value()) { | 792 if (has_string_value()) { |
| 932 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 793 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 933 this->string_value().data(), this->string_value().length(), | 794 this->string_value().data(), this->string_value().length(), |
| 934 ::google::protobuf::internal::WireFormatLite::SERIALIZE, | 795 ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 935 "google.protobuf.Value.string_value"); | 796 "google.protobuf.Value.string_value"); |
| 936 target = | 797 target = |
| 937 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 798 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 938 3, this->string_value(), target); | 799 3, this->string_value(), target); |
| 939 } | 800 } |
| 940 | 801 |
| 941 // bool bool_value = 4; | 802 // optional bool bool_value = 4; |
| 942 if (has_bool_value()) { | 803 if (has_bool_value()) { |
| 943 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, t
his->bool_value(), target); | 804 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(4, t
his->bool_value(), target); |
| 944 } | 805 } |
| 945 | 806 |
| 946 // .google.protobuf.Struct struct_value = 5; | 807 // optional .google.protobuf.Struct struct_value = 5; |
| 947 if (has_struct_value()) { | 808 if (has_struct_value()) { |
| 948 target = ::google::protobuf::internal::WireFormatLite:: | 809 target = ::google::protobuf::internal::WireFormatLite:: |
| 949 InternalWriteMessageNoVirtualToArray( | 810 WriteMessageNoVirtualToArray( |
| 950 5, *kind_.struct_value_, false, target); | 811 5, *kind_.struct_value_, target); |
| 951 } | 812 } |
| 952 | 813 |
| 953 // .google.protobuf.ListValue list_value = 6; | 814 // optional .google.protobuf.ListValue list_value = 6; |
| 954 if (has_list_value()) { | 815 if (has_list_value()) { |
| 955 target = ::google::protobuf::internal::WireFormatLite:: | 816 target = ::google::protobuf::internal::WireFormatLite:: |
| 956 InternalWriteMessageNoVirtualToArray( | 817 WriteMessageNoVirtualToArray( |
| 957 6, *kind_.list_value_, false, target); | 818 6, *kind_.list_value_, target); |
| 958 } | 819 } |
| 959 | 820 |
| 960 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Value) | 821 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Value) |
| 961 return target; | 822 return target; |
| 962 } | 823 } |
| 963 | 824 |
| 964 size_t Value::ByteSizeLong() const { | 825 int Value::ByteSize() const { |
| 965 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value) | 826 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Value) |
| 966 size_t total_size = 0; | 827 int total_size = 0; |
| 967 | 828 |
| 968 switch (kind_case()) { | 829 switch (kind_case()) { |
| 969 // .google.protobuf.NullValue null_value = 1; | 830 // optional .google.protobuf.NullValue null_value = 1; |
| 970 case kNullValue: { | 831 case kNullValue: { |
| 971 total_size += 1 + | 832 total_size += 1 + |
| 972 ::google::protobuf::internal::WireFormatLite::EnumSize(this->null_value(
)); | 833 ::google::protobuf::internal::WireFormatLite::EnumSize(this->null_value(
)); |
| 973 break; | 834 break; |
| 974 } | 835 } |
| 975 // double number_value = 2; | 836 // optional double number_value = 2; |
| 976 case kNumberValue: { | 837 case kNumberValue: { |
| 977 total_size += 1 + 8; | 838 total_size += 1 + 8; |
| 978 break; | 839 break; |
| 979 } | 840 } |
| 980 // string string_value = 3; | 841 // optional string string_value = 3; |
| 981 case kStringValue: { | 842 case kStringValue: { |
| 982 total_size += 1 + | 843 total_size += 1 + |
| 983 ::google::protobuf::internal::WireFormatLite::StringSize( | 844 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 984 this->string_value()); | 845 this->string_value()); |
| 985 break; | 846 break; |
| 986 } | 847 } |
| 987 // bool bool_value = 4; | 848 // optional bool bool_value = 4; |
| 988 case kBoolValue: { | 849 case kBoolValue: { |
| 989 total_size += 1 + 1; | 850 total_size += 1 + 1; |
| 990 break; | 851 break; |
| 991 } | 852 } |
| 992 // .google.protobuf.Struct struct_value = 5; | 853 // optional .google.protobuf.Struct struct_value = 5; |
| 993 case kStructValue: { | 854 case kStructValue: { |
| 994 total_size += 1 + | 855 total_size += 1 + |
| 995 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 856 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 996 *kind_.struct_value_); | 857 *kind_.struct_value_); |
| 997 break; | 858 break; |
| 998 } | 859 } |
| 999 // .google.protobuf.ListValue list_value = 6; | 860 // optional .google.protobuf.ListValue list_value = 6; |
| 1000 case kListValue: { | 861 case kListValue: { |
| 1001 total_size += 1 + | 862 total_size += 1 + |
| 1002 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | 863 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1003 *kind_.list_value_); | 864 *kind_.list_value_); |
| 1004 break; | 865 break; |
| 1005 } | 866 } |
| 1006 case KIND_NOT_SET: { | 867 case KIND_NOT_SET: { |
| 1007 break; | 868 break; |
| 1008 } | 869 } |
| 1009 } | 870 } |
| 1010 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 1011 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 871 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1012 _cached_size_ = cached_size; | 872 _cached_size_ = total_size; |
| 1013 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 873 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1014 return total_size; | 874 return total_size; |
| 1015 } | 875 } |
| 1016 | 876 |
| 1017 void Value::MergeFrom(const ::google::protobuf::Message& from) { | 877 void Value::MergeFrom(const ::google::protobuf::Message& from) { |
| 1018 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Value) | 878 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Value) |
| 1019 GOOGLE_DCHECK_NE(&from, this); | 879 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1020 const Value* source = | 880 const Value* source = |
| 1021 ::google::protobuf::internal::DynamicCastToGenerated<const Value>( | 881 ::google::protobuf::internal::DynamicCastToGenerated<const Value>( |
| 1022 &from); | 882 &from); |
| 1023 if (source == NULL) { | 883 if (source == NULL) { |
| 1024 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.V
alue) | 884 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.V
alue) |
| 1025 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 885 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1026 } else { | 886 } else { |
| 1027 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Value) | 887 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Value) |
| 1028 MergeFrom(*source); | 888 MergeFrom(*source); |
| 1029 } | 889 } |
| 1030 } | 890 } |
| 1031 | 891 |
| 1032 void Value::MergeFrom(const Value& from) { | 892 void Value::MergeFrom(const Value& from) { |
| 1033 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Valu
e) | 893 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Valu
e) |
| 1034 GOOGLE_DCHECK_NE(&from, this); | 894 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1035 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1036 switch (from.kind_case()) { | 895 switch (from.kind_case()) { |
| 1037 case kNullValue: { | 896 case kNullValue: { |
| 1038 set_null_value(from.null_value()); | 897 set_null_value(from.null_value()); |
| 1039 break; | 898 break; |
| 1040 } | 899 } |
| 1041 case kNumberValue: { | 900 case kNumberValue: { |
| 1042 set_number_value(from.number_value()); | 901 set_number_value(from.number_value()); |
| 1043 break; | 902 break; |
| 1044 } | 903 } |
| 1045 case kStringValue: { | 904 case kStringValue: { |
| (...skipping 26 matching lines...) Expand all Loading... |
| 1072 } | 931 } |
| 1073 | 932 |
| 1074 void Value::CopyFrom(const Value& from) { | 933 void Value::CopyFrom(const Value& from) { |
| 1075 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Value
) | 934 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Value
) |
| 1076 if (&from == this) return; | 935 if (&from == this) return; |
| 1077 Clear(); | 936 Clear(); |
| 1078 MergeFrom(from); | 937 MergeFrom(from); |
| 1079 } | 938 } |
| 1080 | 939 |
| 1081 bool Value::IsInitialized() const { | 940 bool Value::IsInitialized() const { |
| 941 |
| 1082 return true; | 942 return true; |
| 1083 } | 943 } |
| 1084 | 944 |
| 1085 void Value::Swap(Value* other) { | 945 void Value::Swap(Value* other) { |
| 1086 if (other == this) return; | 946 if (other == this) return; |
| 1087 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | |
| 1088 InternalSwap(other); | |
| 1089 } else { | |
| 1090 Value* temp = New(GetArenaNoVirtual()); | |
| 1091 temp->MergeFrom(*other); | |
| 1092 other->CopyFrom(*this); | |
| 1093 InternalSwap(temp); | |
| 1094 if (GetArenaNoVirtual() == NULL) { | |
| 1095 delete temp; | |
| 1096 } | |
| 1097 } | |
| 1098 } | |
| 1099 void Value::UnsafeArenaSwap(Value* other) { | |
| 1100 if (other == this) return; | |
| 1101 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | |
| 1102 InternalSwap(other); | 947 InternalSwap(other); |
| 1103 } | 948 } |
| 1104 void Value::InternalSwap(Value* other) { | 949 void Value::InternalSwap(Value* other) { |
| 1105 std::swap(kind_, other->kind_); | 950 std::swap(kind_, other->kind_); |
| 1106 std::swap(_oneof_case_[0], other->_oneof_case_[0]); | 951 std::swap(_oneof_case_[0], other->_oneof_case_[0]); |
| 952 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1107 std::swap(_cached_size_, other->_cached_size_); | 953 std::swap(_cached_size_, other->_cached_size_); |
| 1108 } | 954 } |
| 1109 | 955 |
| 1110 ::google::protobuf::Metadata Value::GetMetadata() const { | 956 ::google::protobuf::Metadata Value::GetMetadata() const { |
| 1111 protobuf_AssignDescriptorsOnce(); | 957 protobuf_AssignDescriptorsOnce(); |
| 1112 return file_level_metadata[2]; | 958 ::google::protobuf::Metadata metadata; |
| 959 metadata.descriptor = Value_descriptor_; |
| 960 metadata.reflection = Value_reflection_; |
| 961 return metadata; |
| 1113 } | 962 } |
| 1114 | 963 |
| 1115 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 964 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1116 // Value | 965 // Value |
| 1117 | 966 |
| 1118 // .google.protobuf.NullValue null_value = 1; | 967 // optional .google.protobuf.NullValue null_value = 1; |
| 1119 bool Value::has_null_value() const { | 968 bool Value::has_null_value() const { |
| 1120 return kind_case() == kNullValue; | 969 return kind_case() == kNullValue; |
| 1121 } | 970 } |
| 1122 void Value::set_has_null_value() { | 971 void Value::set_has_null_value() { |
| 1123 _oneof_case_[0] = kNullValue; | 972 _oneof_case_[0] = kNullValue; |
| 1124 } | 973 } |
| 1125 void Value::clear_null_value() { | 974 void Value::clear_null_value() { |
| 1126 if (has_null_value()) { | 975 if (has_null_value()) { |
| 1127 kind_.null_value_ = 0; | 976 kind_.null_value_ = 0; |
| 1128 clear_has_kind(); | 977 clear_has_kind(); |
| 1129 } | 978 } |
| 1130 } | 979 } |
| 1131 ::google::protobuf::NullValue Value::null_value() const { | 980 ::google::protobuf::NullValue Value::null_value() const { |
| 1132 // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value) | 981 // @@protoc_insertion_point(field_get:google.protobuf.Value.null_value) |
| 1133 if (has_null_value()) { | 982 if (has_null_value()) { |
| 1134 return static_cast< ::google::protobuf::NullValue >(kind_.null_value_); | 983 return static_cast< ::google::protobuf::NullValue >(kind_.null_value_); |
| 1135 } | 984 } |
| 1136 return static_cast< ::google::protobuf::NullValue >(0); | 985 return static_cast< ::google::protobuf::NullValue >(0); |
| 1137 } | 986 } |
| 1138 void Value::set_null_value(::google::protobuf::NullValue value) { | 987 void Value::set_null_value(::google::protobuf::NullValue value) { |
| 1139 if (!has_null_value()) { | 988 if (!has_null_value()) { |
| 1140 clear_kind(); | 989 clear_kind(); |
| 1141 set_has_null_value(); | 990 set_has_null_value(); |
| 1142 } | 991 } |
| 1143 kind_.null_value_ = value; | 992 kind_.null_value_ = value; |
| 1144 // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value) | 993 // @@protoc_insertion_point(field_set:google.protobuf.Value.null_value) |
| 1145 } | 994 } |
| 1146 | 995 |
| 1147 // double number_value = 2; | 996 // optional double number_value = 2; |
| 1148 bool Value::has_number_value() const { | 997 bool Value::has_number_value() const { |
| 1149 return kind_case() == kNumberValue; | 998 return kind_case() == kNumberValue; |
| 1150 } | 999 } |
| 1151 void Value::set_has_number_value() { | 1000 void Value::set_has_number_value() { |
| 1152 _oneof_case_[0] = kNumberValue; | 1001 _oneof_case_[0] = kNumberValue; |
| 1153 } | 1002 } |
| 1154 void Value::clear_number_value() { | 1003 void Value::clear_number_value() { |
| 1155 if (has_number_value()) { | 1004 if (has_number_value()) { |
| 1156 kind_.number_value_ = 0; | 1005 kind_.number_value_ = 0; |
| 1157 clear_has_kind(); | 1006 clear_has_kind(); |
| 1158 } | 1007 } |
| 1159 } | 1008 } |
| 1160 double Value::number_value() const { | 1009 double Value::number_value() const { |
| 1161 // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value) | 1010 // @@protoc_insertion_point(field_get:google.protobuf.Value.number_value) |
| 1162 if (has_number_value()) { | 1011 if (has_number_value()) { |
| 1163 return kind_.number_value_; | 1012 return kind_.number_value_; |
| 1164 } | 1013 } |
| 1165 return 0; | 1014 return 0; |
| 1166 } | 1015 } |
| 1167 void Value::set_number_value(double value) { | 1016 void Value::set_number_value(double value) { |
| 1168 if (!has_number_value()) { | 1017 if (!has_number_value()) { |
| 1169 clear_kind(); | 1018 clear_kind(); |
| 1170 set_has_number_value(); | 1019 set_has_number_value(); |
| 1171 } | 1020 } |
| 1172 kind_.number_value_ = value; | 1021 kind_.number_value_ = value; |
| 1173 // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value) | 1022 // @@protoc_insertion_point(field_set:google.protobuf.Value.number_value) |
| 1174 } | 1023 } |
| 1175 | 1024 |
| 1176 // string string_value = 3; | 1025 // optional string string_value = 3; |
| 1177 bool Value::has_string_value() const { | 1026 bool Value::has_string_value() const { |
| 1178 return kind_case() == kStringValue; | 1027 return kind_case() == kStringValue; |
| 1179 } | 1028 } |
| 1180 void Value::set_has_string_value() { | 1029 void Value::set_has_string_value() { |
| 1181 _oneof_case_[0] = kStringValue; | 1030 _oneof_case_[0] = kStringValue; |
| 1182 } | 1031 } |
| 1183 void Value::clear_string_value() { | 1032 void Value::clear_string_value() { |
| 1184 if (has_string_value()) { | 1033 if (has_string_value()) { |
| 1185 kind_.string_value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlr
eadyInited(), | 1034 kind_.string_value_.DestroyNoArena(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited()); |
| 1186 GetArenaNoVirtual()); | |
| 1187 clear_has_kind(); | 1035 clear_has_kind(); |
| 1188 } | 1036 } |
| 1189 } | 1037 } |
| 1190 const ::std::string& Value::string_value() const { | 1038 const ::std::string& Value::string_value() const { |
| 1191 // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) | 1039 // @@protoc_insertion_point(field_get:google.protobuf.Value.string_value) |
| 1192 if (has_string_value()) { | 1040 if (has_string_value()) { |
| 1193 return kind_.string_value_.Get(); | 1041 return kind_.string_value_.GetNoArena(&::google::protobuf::internal::GetEmpt
yStringAlreadyInited()); |
| 1194 } | 1042 } |
| 1195 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); | 1043 return *&::google::protobuf::internal::GetEmptyStringAlreadyInited(); |
| 1196 } | 1044 } |
| 1197 void Value::set_string_value(const ::std::string& value) { | 1045 void Value::set_string_value(const ::std::string& value) { |
| 1046 // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) |
| 1198 if (!has_string_value()) { | 1047 if (!has_string_value()) { |
| 1199 clear_kind(); | 1048 clear_kind(); |
| 1200 set_has_string_value(); | 1049 set_has_string_value(); |
| 1201 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 1050 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 1202 } | 1051 } |
| 1203 kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), value, | 1052 kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), value); |
| 1204 GetArenaNoVirtual()); | |
| 1205 // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) | 1053 // @@protoc_insertion_point(field_set:google.protobuf.Value.string_value) |
| 1206 } | 1054 } |
| 1207 void Value::set_string_value(const char* value) { | 1055 void Value::set_string_value(const char* value) { |
| 1208 if (!has_string_value()) { | 1056 if (!has_string_value()) { |
| 1209 clear_kind(); | 1057 clear_kind(); |
| 1210 set_has_string_value(); | 1058 set_has_string_value(); |
| 1211 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 1059 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 1212 } | 1060 } |
| 1213 kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), | 1061 kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), |
| 1214 ::std::string(value), GetArenaNoVirtual()); | 1062 ::std::string(value)); |
| 1215 // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value) | 1063 // @@protoc_insertion_point(field_set_char:google.protobuf.Value.string_value) |
| 1216 } | 1064 } |
| 1217 void Value::set_string_value(const char* value, | 1065 void Value::set_string_value(const char* value, size_t size) { |
| 1218 size_t size) { | |
| 1219 if (!has_string_value()) { | 1066 if (!has_string_value()) { |
| 1220 clear_kind(); | 1067 clear_kind(); |
| 1221 set_has_string_value(); | 1068 set_has_string_value(); |
| 1222 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 1069 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 1223 } | 1070 } |
| 1224 kind_.string_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited(), ::std::string( | 1071 kind_.string_value_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), ::std::string( |
| 1225 reinterpret_cast<const char*>(value), size), | 1072 reinterpret_cast<const char*>(value), size)); |
| 1226 GetArenaNoVirtual()); | |
| 1227 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_val
ue) | 1073 // @@protoc_insertion_point(field_set_pointer:google.protobuf.Value.string_val
ue) |
| 1228 } | 1074 } |
| 1229 ::std::string* Value::mutable_string_value() { | 1075 ::std::string* Value::mutable_string_value() { |
| 1230 if (!has_string_value()) { | 1076 if (!has_string_value()) { |
| 1231 clear_kind(); | 1077 clear_kind(); |
| 1232 set_has_string_value(); | 1078 set_has_string_value(); |
| 1233 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 1079 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 1234 } | 1080 } |
| 1235 return kind_.string_value_.Mutable(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), | |
| 1236 GetArenaNoVirtual()); | |
| 1237 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) | 1081 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.string_value) |
| 1082 return kind_.string_value_.MutableNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited()); |
| 1238 } | 1083 } |
| 1239 ::std::string* Value::release_string_value() { | 1084 ::std::string* Value::release_string_value() { |
| 1240 // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value) | 1085 // @@protoc_insertion_point(field_release:google.protobuf.Value.string_value) |
| 1241 if (has_string_value()) { | 1086 if (has_string_value()) { |
| 1242 clear_has_kind(); | 1087 clear_has_kind(); |
| 1243 return kind_.string_value_.Release(&::google::protobuf::internal::GetEmptySt
ringAlreadyInited(), | 1088 return kind_.string_value_.ReleaseNoArena(&::google::protobuf::internal::Get
EmptyStringAlreadyInited()); |
| 1244 GetArenaNoVirtual()); | |
| 1245 } else { | 1089 } else { |
| 1246 return NULL; | 1090 return NULL; |
| 1247 } | 1091 } |
| 1248 } | 1092 } |
| 1249 ::std::string* Value::unsafe_arena_release_string_value() { | 1093 void Value::set_allocated_string_value(::std::string* string_value) { |
| 1250 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.s
tring_value) | |
| 1251 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); | |
| 1252 if (has_string_value()) { | |
| 1253 clear_has_kind(); | |
| 1254 return kind_.string_value_.UnsafeArenaRelease( | |
| 1255 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNo
Virtual()); | |
| 1256 } else { | |
| 1257 return NULL; | |
| 1258 } | |
| 1259 } | |
| 1260 void Value::set_allocated_string_value(::std::string* string_value) { | |
| 1261 if (!has_string_value()) { | 1094 if (!has_string_value()) { |
| 1262 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | 1095 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); |
| 1263 } | 1096 } |
| 1264 clear_kind(); | 1097 clear_kind(); |
| 1265 if (string_value != NULL) { | 1098 if (string_value != NULL) { |
| 1266 set_has_string_value(); | 1099 set_has_string_value(); |
| 1267 kind_.string_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStri
ngAlreadyInited(), string_value, | 1100 kind_.string_value_.SetAllocatedNoArena(&::google::protobuf::internal::GetEm
ptyStringAlreadyInited(), |
| 1268 GetArenaNoVirtual()); | 1101 string_value); |
| 1269 } | 1102 } |
| 1270 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_v
alue) | 1103 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.string_v
alue) |
| 1271 } | 1104 } |
| 1272 void Value::unsafe_arena_set_allocated_string_value(::std::string* string_value)
{ | |
| 1273 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); | |
| 1274 if (!has_string_value()) { | |
| 1275 kind_.string_value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmpty
StringAlreadyInited()); | |
| 1276 } | |
| 1277 clear_kind(); | |
| 1278 if (string_value) { | |
| 1279 set_has_string_value(); | |
| 1280 kind_.string_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::G
etEmptyStringAlreadyInited(), string_value, GetArenaNoVirtual()); | |
| 1281 } | |
| 1282 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.V
alue.string_value) | |
| 1283 } | |
| 1284 | 1105 |
| 1285 // bool bool_value = 4; | 1106 // optional bool bool_value = 4; |
| 1286 bool Value::has_bool_value() const { | 1107 bool Value::has_bool_value() const { |
| 1287 return kind_case() == kBoolValue; | 1108 return kind_case() == kBoolValue; |
| 1288 } | 1109 } |
| 1289 void Value::set_has_bool_value() { | 1110 void Value::set_has_bool_value() { |
| 1290 _oneof_case_[0] = kBoolValue; | 1111 _oneof_case_[0] = kBoolValue; |
| 1291 } | 1112 } |
| 1292 void Value::clear_bool_value() { | 1113 void Value::clear_bool_value() { |
| 1293 if (has_bool_value()) { | 1114 if (has_bool_value()) { |
| 1294 kind_.bool_value_ = false; | 1115 kind_.bool_value_ = false; |
| 1295 clear_has_kind(); | 1116 clear_has_kind(); |
| 1296 } | 1117 } |
| 1297 } | 1118 } |
| 1298 bool Value::bool_value() const { | 1119 bool Value::bool_value() const { |
| 1299 // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value) | 1120 // @@protoc_insertion_point(field_get:google.protobuf.Value.bool_value) |
| 1300 if (has_bool_value()) { | 1121 if (has_bool_value()) { |
| 1301 return kind_.bool_value_; | 1122 return kind_.bool_value_; |
| 1302 } | 1123 } |
| 1303 return false; | 1124 return false; |
| 1304 } | 1125 } |
| 1305 void Value::set_bool_value(bool value) { | 1126 void Value::set_bool_value(bool value) { |
| 1306 if (!has_bool_value()) { | 1127 if (!has_bool_value()) { |
| 1307 clear_kind(); | 1128 clear_kind(); |
| 1308 set_has_bool_value(); | 1129 set_has_bool_value(); |
| 1309 } | 1130 } |
| 1310 kind_.bool_value_ = value; | 1131 kind_.bool_value_ = value; |
| 1311 // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value) | 1132 // @@protoc_insertion_point(field_set:google.protobuf.Value.bool_value) |
| 1312 } | 1133 } |
| 1313 | 1134 |
| 1314 // .google.protobuf.Struct struct_value = 5; | 1135 // optional .google.protobuf.Struct struct_value = 5; |
| 1315 bool Value::has_struct_value() const { | 1136 bool Value::has_struct_value() const { |
| 1316 return kind_case() == kStructValue; | 1137 return kind_case() == kStructValue; |
| 1317 } | 1138 } |
| 1318 void Value::set_has_struct_value() { | 1139 void Value::set_has_struct_value() { |
| 1319 _oneof_case_[0] = kStructValue; | 1140 _oneof_case_[0] = kStructValue; |
| 1320 } | 1141 } |
| 1321 void Value::clear_struct_value() { | 1142 void Value::clear_struct_value() { |
| 1322 if (has_struct_value()) { | 1143 if (has_struct_value()) { |
| 1323 if (GetArenaNoVirtual() == NULL) { | 1144 delete kind_.struct_value_; |
| 1324 delete kind_.struct_value_; | |
| 1325 } | |
| 1326 clear_has_kind(); | 1145 clear_has_kind(); |
| 1327 } | 1146 } |
| 1328 } | 1147 } |
| 1329 const ::google::protobuf::Struct& Value::struct_value() const { | 1148 const ::google::protobuf::Struct& Value::struct_value() const { |
| 1330 // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value) | 1149 // @@protoc_insertion_point(field_get:google.protobuf.Value.struct_value) |
| 1331 return has_struct_value() | 1150 return has_struct_value() |
| 1332 ? *kind_.struct_value_ | 1151 ? *kind_.struct_value_ |
| 1333 : ::google::protobuf::Struct::default_instance(); | 1152 : ::google::protobuf::Struct::default_instance(); |
| 1334 } | 1153 } |
| 1335 ::google::protobuf::Struct* Value::mutable_struct_value() { | 1154 ::google::protobuf::Struct* Value::mutable_struct_value() { |
| 1336 if (!has_struct_value()) { | 1155 if (!has_struct_value()) { |
| 1337 clear_kind(); | 1156 clear_kind(); |
| 1338 set_has_struct_value(); | 1157 set_has_struct_value(); |
| 1339 kind_.struct_value_ = | 1158 kind_.struct_value_ = new ::google::protobuf::Struct; |
| 1340 ::google::protobuf::Arena::CreateMessage< ::google::protobuf::Struct >( | |
| 1341 GetArenaNoVirtual()); | |
| 1342 } | 1159 } |
| 1343 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) | 1160 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.struct_value) |
| 1344 return kind_.struct_value_; | 1161 return kind_.struct_value_; |
| 1345 } | 1162 } |
| 1346 ::google::protobuf::Struct* Value::release_struct_value() { | 1163 ::google::protobuf::Struct* Value::release_struct_value() { |
| 1347 // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value) | 1164 // @@protoc_insertion_point(field_release:google.protobuf.Value.struct_value) |
| 1348 if (has_struct_value()) { | 1165 if (has_struct_value()) { |
| 1349 clear_has_kind(); | 1166 clear_has_kind(); |
| 1350 if (GetArenaNoVirtual() != NULL) { | |
| 1351 ::google::protobuf::Struct* temp = new ::google::protobuf::Struct(*kind_.s
truct_value_); | |
| 1352 kind_.struct_value_ = NULL; | |
| 1353 return temp; | |
| 1354 } else { | |
| 1355 ::google::protobuf::Struct* temp = kind_.struct_value_; | |
| 1356 kind_.struct_value_ = NULL; | |
| 1357 return temp; | |
| 1358 } | |
| 1359 } else { | |
| 1360 return NULL; | |
| 1361 } | |
| 1362 } | |
| 1363 void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value)
{ | |
| 1364 clear_kind(); | |
| 1365 if (struct_value) { | |
| 1366 if (GetArenaNoVirtual() != NULL && | |
| 1367 ::google::protobuf::Arena::GetArena(struct_value) == NULL) { | |
| 1368 GetArenaNoVirtual()->Own(struct_value); | |
| 1369 } else if (GetArenaNoVirtual() != | |
| 1370 ::google::protobuf::Arena::GetArena(struct_value)) { | |
| 1371 ::google::protobuf::Struct* new_struct_value = | |
| 1372 ::google::protobuf::Arena::CreateMessage< ::google::protobuf::Struct >
( | |
| 1373 GetArenaNoVirtual()); | |
| 1374 new_struct_value->CopyFrom(*struct_value); | |
| 1375 struct_value = new_struct_value; | |
| 1376 } | |
| 1377 set_has_struct_value(); | |
| 1378 kind_.struct_value_ = struct_value; | |
| 1379 } | |
| 1380 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_v
alue) | |
| 1381 } | |
| 1382 ::google::protobuf::Struct* Value::unsafe_arena_release_struct_value() { | |
| 1383 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.s
truct_value) | |
| 1384 if (has_struct_value()) { | |
| 1385 clear_has_kind(); | |
| 1386 ::google::protobuf::Struct* temp = kind_.struct_value_; | 1167 ::google::protobuf::Struct* temp = kind_.struct_value_; |
| 1387 kind_.struct_value_ = NULL; | 1168 kind_.struct_value_ = NULL; |
| 1388 return temp; | 1169 return temp; |
| 1389 } else { | 1170 } else { |
| 1390 return NULL; | 1171 return NULL; |
| 1391 } | 1172 } |
| 1392 } | 1173 } |
| 1393 void Value::unsafe_arena_set_allocated_struct_value(::google::protobuf::Struct*
struct_value) { | 1174 void Value::set_allocated_struct_value(::google::protobuf::Struct* struct_value)
{ |
| 1394 clear_kind(); | 1175 clear_kind(); |
| 1395 if (struct_value) { | 1176 if (struct_value) { |
| 1396 set_has_struct_value(); | 1177 set_has_struct_value(); |
| 1397 kind_.struct_value_ = struct_value; | 1178 kind_.struct_value_ = struct_value; |
| 1398 } | 1179 } |
| 1399 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.V
alue.struct_value) | 1180 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.struct_v
alue) |
| 1400 } | 1181 } |
| 1401 | 1182 |
| 1402 // .google.protobuf.ListValue list_value = 6; | 1183 // optional .google.protobuf.ListValue list_value = 6; |
| 1403 bool Value::has_list_value() const { | 1184 bool Value::has_list_value() const { |
| 1404 return kind_case() == kListValue; | 1185 return kind_case() == kListValue; |
| 1405 } | 1186 } |
| 1406 void Value::set_has_list_value() { | 1187 void Value::set_has_list_value() { |
| 1407 _oneof_case_[0] = kListValue; | 1188 _oneof_case_[0] = kListValue; |
| 1408 } | 1189 } |
| 1409 void Value::clear_list_value() { | 1190 void Value::clear_list_value() { |
| 1410 if (has_list_value()) { | 1191 if (has_list_value()) { |
| 1411 if (GetArenaNoVirtual() == NULL) { | 1192 delete kind_.list_value_; |
| 1412 delete kind_.list_value_; | |
| 1413 } | |
| 1414 clear_has_kind(); | 1193 clear_has_kind(); |
| 1415 } | 1194 } |
| 1416 } | 1195 } |
| 1417 const ::google::protobuf::ListValue& Value::list_value() const { | 1196 const ::google::protobuf::ListValue& Value::list_value() const { |
| 1418 // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value) | 1197 // @@protoc_insertion_point(field_get:google.protobuf.Value.list_value) |
| 1419 return has_list_value() | 1198 return has_list_value() |
| 1420 ? *kind_.list_value_ | 1199 ? *kind_.list_value_ |
| 1421 : ::google::protobuf::ListValue::default_instance(); | 1200 : ::google::protobuf::ListValue::default_instance(); |
| 1422 } | 1201 } |
| 1423 ::google::protobuf::ListValue* Value::mutable_list_value() { | 1202 ::google::protobuf::ListValue* Value::mutable_list_value() { |
| 1424 if (!has_list_value()) { | 1203 if (!has_list_value()) { |
| 1425 clear_kind(); | 1204 clear_kind(); |
| 1426 set_has_list_value(); | 1205 set_has_list_value(); |
| 1427 kind_.list_value_ = | 1206 kind_.list_value_ = new ::google::protobuf::ListValue; |
| 1428 ::google::protobuf::Arena::CreateMessage< ::google::protobuf::ListValue >( | |
| 1429 GetArenaNoVirtual()); | |
| 1430 } | 1207 } |
| 1431 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) | 1208 // @@protoc_insertion_point(field_mutable:google.protobuf.Value.list_value) |
| 1432 return kind_.list_value_; | 1209 return kind_.list_value_; |
| 1433 } | 1210 } |
| 1434 ::google::protobuf::ListValue* Value::release_list_value() { | 1211 ::google::protobuf::ListValue* Value::release_list_value() { |
| 1435 // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value) | 1212 // @@protoc_insertion_point(field_release:google.protobuf.Value.list_value) |
| 1436 if (has_list_value()) { | 1213 if (has_list_value()) { |
| 1437 clear_has_kind(); | 1214 clear_has_kind(); |
| 1438 if (GetArenaNoVirtual() != NULL) { | |
| 1439 ::google::protobuf::ListValue* temp = new ::google::protobuf::ListValue(*k
ind_.list_value_); | |
| 1440 kind_.list_value_ = NULL; | |
| 1441 return temp; | |
| 1442 } else { | |
| 1443 ::google::protobuf::ListValue* temp = kind_.list_value_; | |
| 1444 kind_.list_value_ = NULL; | |
| 1445 return temp; | |
| 1446 } | |
| 1447 } else { | |
| 1448 return NULL; | |
| 1449 } | |
| 1450 } | |
| 1451 void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value)
{ | |
| 1452 clear_kind(); | |
| 1453 if (list_value) { | |
| 1454 if (GetArenaNoVirtual() != NULL && | |
| 1455 ::google::protobuf::Arena::GetArena(list_value) == NULL) { | |
| 1456 GetArenaNoVirtual()->Own(list_value); | |
| 1457 } else if (GetArenaNoVirtual() != | |
| 1458 ::google::protobuf::Arena::GetArena(list_value)) { | |
| 1459 ::google::protobuf::ListValue* new_list_value = | |
| 1460 ::google::protobuf::Arena::CreateMessage< ::google::protobuf::ListValu
e >( | |
| 1461 GetArenaNoVirtual()); | |
| 1462 new_list_value->CopyFrom(*list_value); | |
| 1463 list_value = new_list_value; | |
| 1464 } | |
| 1465 set_has_list_value(); | |
| 1466 kind_.list_value_ = list_value; | |
| 1467 } | |
| 1468 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_val
ue) | |
| 1469 } | |
| 1470 ::google::protobuf::ListValue* Value::unsafe_arena_release_list_value() { | |
| 1471 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Value.l
ist_value) | |
| 1472 if (has_list_value()) { | |
| 1473 clear_has_kind(); | |
| 1474 ::google::protobuf::ListValue* temp = kind_.list_value_; | 1215 ::google::protobuf::ListValue* temp = kind_.list_value_; |
| 1475 kind_.list_value_ = NULL; | 1216 kind_.list_value_ = NULL; |
| 1476 return temp; | 1217 return temp; |
| 1477 } else { | 1218 } else { |
| 1478 return NULL; | 1219 return NULL; |
| 1479 } | 1220 } |
| 1480 } | 1221 } |
| 1481 void Value::unsafe_arena_set_allocated_list_value(::google::protobuf::ListValue
* list_value) { | 1222 void Value::set_allocated_list_value(::google::protobuf::ListValue* list_value)
{ |
| 1482 clear_kind(); | 1223 clear_kind(); |
| 1483 if (list_value) { | 1224 if (list_value) { |
| 1484 set_has_list_value(); | 1225 set_has_list_value(); |
| 1485 kind_.list_value_ = list_value; | 1226 kind_.list_value_ = list_value; |
| 1486 } | 1227 } |
| 1487 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.V
alue.list_value) | 1228 // @@protoc_insertion_point(field_set_allocated:google.protobuf.Value.list_val
ue) |
| 1488 } | 1229 } |
| 1489 | 1230 |
| 1490 bool Value::has_kind() const { | 1231 bool Value::has_kind() const { |
| 1491 return kind_case() != KIND_NOT_SET; | 1232 return kind_case() != KIND_NOT_SET; |
| 1492 } | 1233 } |
| 1493 void Value::clear_has_kind() { | 1234 void Value::clear_has_kind() { |
| 1494 _oneof_case_[0] = KIND_NOT_SET; | 1235 _oneof_case_[0] = KIND_NOT_SET; |
| 1495 } | 1236 } |
| 1496 Value::KindCase Value::kind_case() const { | 1237 Value::KindCase Value::kind_case() const { |
| 1497 return Value::KindCase(_oneof_case_[0]); | 1238 return Value::KindCase(_oneof_case_[0]); |
| 1498 } | 1239 } |
| 1499 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 1240 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1500 | 1241 |
| 1501 // =================================================================== | 1242 // =================================================================== |
| 1502 | 1243 |
| 1503 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 1244 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1504 const int ListValue::kValuesFieldNumber; | 1245 const int ListValue::kValuesFieldNumber; |
| 1505 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 1246 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1506 | 1247 |
| 1507 ListValue::ListValue() | 1248 ListValue::ListValue() |
| 1508 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 1249 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1509 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 1510 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | |
| 1511 } | |
| 1512 SharedCtor(); | 1250 SharedCtor(); |
| 1513 // @@protoc_insertion_point(constructor:google.protobuf.ListValue) | 1251 // @@protoc_insertion_point(constructor:google.protobuf.ListValue) |
| 1514 } | 1252 } |
| 1515 ListValue::ListValue(::google::protobuf::Arena* arena) | 1253 |
| 1516 : ::google::protobuf::Message(), | 1254 void ListValue::InitAsDefaultInstance() { |
| 1517 _internal_metadata_(arena), | 1255 _is_default_instance_ = true; |
| 1518 values_(arena) { | |
| 1519 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1520 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | |
| 1521 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1522 SharedCtor(); | |
| 1523 RegisterArenaDtor(arena); | |
| 1524 // @@protoc_insertion_point(arena_constructor:google.protobuf.ListValue) | |
| 1525 } | 1256 } |
| 1257 |
| 1526 ListValue::ListValue(const ListValue& from) | 1258 ListValue::ListValue(const ListValue& from) |
| 1527 : ::google::protobuf::Message(), | 1259 : ::google::protobuf::Message(), |
| 1528 _internal_metadata_(NULL), | 1260 _internal_metadata_(NULL) { |
| 1529 values_(from.values_), | 1261 SharedCtor(); |
| 1530 _cached_size_(0) { | 1262 MergeFrom(from); |
| 1531 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1532 // @@protoc_insertion_point(copy_constructor:google.protobuf.ListValue) | 1263 // @@protoc_insertion_point(copy_constructor:google.protobuf.ListValue) |
| 1533 } | 1264 } |
| 1534 | 1265 |
| 1535 void ListValue::SharedCtor() { | 1266 void ListValue::SharedCtor() { |
| 1267 _is_default_instance_ = false; |
| 1536 _cached_size_ = 0; | 1268 _cached_size_ = 0; |
| 1537 } | 1269 } |
| 1538 | 1270 |
| 1539 ListValue::~ListValue() { | 1271 ListValue::~ListValue() { |
| 1540 // @@protoc_insertion_point(destructor:google.protobuf.ListValue) | 1272 // @@protoc_insertion_point(destructor:google.protobuf.ListValue) |
| 1541 SharedDtor(); | 1273 SharedDtor(); |
| 1542 } | 1274 } |
| 1543 | 1275 |
| 1544 void ListValue::SharedDtor() { | 1276 void ListValue::SharedDtor() { |
| 1545 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 1277 if (this != default_instance_) { |
| 1546 if (arena != NULL) { | |
| 1547 return; | |
| 1548 } | 1278 } |
| 1549 | |
| 1550 } | 1279 } |
| 1551 | 1280 |
| 1552 void ListValue::ArenaDtor(void* object) { | |
| 1553 ListValue* _this = reinterpret_cast< ListValue* >(object); | |
| 1554 (void)_this; | |
| 1555 } | |
| 1556 void ListValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { | |
| 1557 } | |
| 1558 void ListValue::SetCachedSize(int size) const { | 1281 void ListValue::SetCachedSize(int size) const { |
| 1559 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1282 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1560 _cached_size_ = size; | 1283 _cached_size_ = size; |
| 1561 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1284 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1562 } | 1285 } |
| 1563 const ::google::protobuf::Descriptor* ListValue::descriptor() { | 1286 const ::google::protobuf::Descriptor* ListValue::descriptor() { |
| 1564 protobuf_AssignDescriptorsOnce(); | 1287 protobuf_AssignDescriptorsOnce(); |
| 1565 return file_level_metadata[3].descriptor; | 1288 return ListValue_descriptor_; |
| 1566 } | 1289 } |
| 1567 | 1290 |
| 1568 const ListValue& ListValue::default_instance() { | 1291 const ListValue& ListValue::default_instance() { |
| 1569 protobuf_InitDefaults_google_2fprotobuf_2fstruct_2eproto(); | 1292 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fstruct_2ep
roto(); |
| 1570 return *internal_default_instance(); | 1293 return *default_instance_; |
| 1571 } | 1294 } |
| 1572 | 1295 |
| 1296 ListValue* ListValue::default_instance_ = NULL; |
| 1297 |
| 1573 ListValue* ListValue::New(::google::protobuf::Arena* arena) const { | 1298 ListValue* ListValue::New(::google::protobuf::Arena* arena) const { |
| 1574 return ::google::protobuf::Arena::CreateMessage<ListValue>(arena); | 1299 ListValue* n = new ListValue; |
| 1300 if (arena != NULL) { |
| 1301 arena->Own(n); |
| 1302 } |
| 1303 return n; |
| 1575 } | 1304 } |
| 1576 | 1305 |
| 1577 void ListValue::Clear() { | 1306 void ListValue::Clear() { |
| 1578 // @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue) | 1307 // @@protoc_insertion_point(message_clear_start:google.protobuf.ListValue) |
| 1579 values_.Clear(); | 1308 values_.Clear(); |
| 1580 } | 1309 } |
| 1581 | 1310 |
| 1582 bool ListValue::MergePartialFromCodedStream( | 1311 bool ListValue::MergePartialFromCodedStream( |
| 1583 ::google::protobuf::io::CodedInputStream* input) { | 1312 ::google::protobuf::io::CodedInputStream* input) { |
| 1584 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 1313 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1585 ::google::protobuf::uint32 tag; | 1314 ::google::protobuf::uint32 tag; |
| 1586 // @@protoc_insertion_point(parse_start:google.protobuf.ListValue) | 1315 // @@protoc_insertion_point(parse_start:google.protobuf.ListValue) |
| 1587 for (;;) { | 1316 for (;;) { |
| 1588 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 1317 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 1589 tag = p.first; | 1318 tag = p.first; |
| 1590 if (!p.second) goto handle_unusual; | 1319 if (!p.second) goto handle_unusual; |
| 1591 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1320 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 1592 // repeated .google.protobuf.Value values = 1; | 1321 // repeated .google.protobuf.Value values = 1; |
| 1593 case 1: { | 1322 case 1: { |
| 1594 if (tag == 10u) { | 1323 if (tag == 10) { |
| 1595 DO_(input->IncrementRecursionDepth()); | 1324 DO_(input->IncrementRecursionDepth()); |
| 1325 parse_loop_values: |
| 1596 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( | 1326 DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual
NoRecursionDepth( |
| 1597 input, add_values())); | 1327 input, add_values())); |
| 1598 } else { | 1328 } else { |
| 1599 goto handle_unusual; | 1329 goto handle_unusual; |
| 1600 } | 1330 } |
| 1331 if (input->ExpectTag(10)) goto parse_loop_values; |
| 1601 input->UnsafeDecrementRecursionDepth(); | 1332 input->UnsafeDecrementRecursionDepth(); |
| 1333 if (input->ExpectAtEnd()) goto success; |
| 1602 break; | 1334 break; |
| 1603 } | 1335 } |
| 1604 | 1336 |
| 1605 default: { | 1337 default: { |
| 1606 handle_unusual: | 1338 handle_unusual: |
| 1607 if (tag == 0 || | 1339 if (tag == 0 || |
| 1608 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1340 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1609 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1341 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1610 goto success; | 1342 goto success; |
| 1611 } | 1343 } |
| (...skipping 16 matching lines...) Expand all Loading... |
| 1628 // @@protoc_insertion_point(serialize_start:google.protobuf.ListValue) | 1360 // @@protoc_insertion_point(serialize_start:google.protobuf.ListValue) |
| 1629 // repeated .google.protobuf.Value values = 1; | 1361 // repeated .google.protobuf.Value values = 1; |
| 1630 for (unsigned int i = 0, n = this->values_size(); i < n; i++) { | 1362 for (unsigned int i = 0, n = this->values_size(); i < n; i++) { |
| 1631 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( | 1363 ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( |
| 1632 1, this->values(i), output); | 1364 1, this->values(i), output); |
| 1633 } | 1365 } |
| 1634 | 1366 |
| 1635 // @@protoc_insertion_point(serialize_end:google.protobuf.ListValue) | 1367 // @@protoc_insertion_point(serialize_end:google.protobuf.ListValue) |
| 1636 } | 1368 } |
| 1637 | 1369 |
| 1638 ::google::protobuf::uint8* ListValue::InternalSerializeWithCachedSizesToArray( | 1370 ::google::protobuf::uint8* ListValue::SerializeWithCachedSizesToArray( |
| 1639 bool deterministic, ::google::protobuf::uint8* target) const { | 1371 ::google::protobuf::uint8* target) const { |
| 1640 (void)deterministic; // Unused | |
| 1641 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue
) | 1372 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.ListValue
) |
| 1642 // repeated .google.protobuf.Value values = 1; | 1373 // repeated .google.protobuf.Value values = 1; |
| 1643 for (unsigned int i = 0, n = this->values_size(); i < n; i++) { | 1374 for (unsigned int i = 0, n = this->values_size(); i < n; i++) { |
| 1644 target = ::google::protobuf::internal::WireFormatLite:: | 1375 target = ::google::protobuf::internal::WireFormatLite:: |
| 1645 InternalWriteMessageNoVirtualToArray( | 1376 WriteMessageNoVirtualToArray( |
| 1646 1, this->values(i), false, target); | 1377 1, this->values(i), target); |
| 1647 } | 1378 } |
| 1648 | 1379 |
| 1649 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ListValue) | 1380 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.ListValue) |
| 1650 return target; | 1381 return target; |
| 1651 } | 1382 } |
| 1652 | 1383 |
| 1653 size_t ListValue::ByteSizeLong() const { | 1384 int ListValue::ByteSize() const { |
| 1654 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue) | 1385 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.ListValue) |
| 1655 size_t total_size = 0; | 1386 int total_size = 0; |
| 1656 | 1387 |
| 1657 // repeated .google.protobuf.Value values = 1; | 1388 // repeated .google.protobuf.Value values = 1; |
| 1658 { | 1389 total_size += 1 * this->values_size(); |
| 1659 unsigned int count = this->values_size(); | 1390 for (int i = 0; i < this->values_size(); i++) { |
| 1660 total_size += 1UL * count; | 1391 total_size += |
| 1661 for (unsigned int i = 0; i < count; i++) { | 1392 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( |
| 1662 total_size += | 1393 this->values(i)); |
| 1663 ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( | |
| 1664 this->values(i)); | |
| 1665 } | |
| 1666 } | 1394 } |
| 1667 | 1395 |
| 1668 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 1669 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1396 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1670 _cached_size_ = cached_size; | 1397 _cached_size_ = total_size; |
| 1671 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1398 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1672 return total_size; | 1399 return total_size; |
| 1673 } | 1400 } |
| 1674 | 1401 |
| 1675 void ListValue::MergeFrom(const ::google::protobuf::Message& from) { | 1402 void ListValue::MergeFrom(const ::google::protobuf::Message& from) { |
| 1676 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ListVal
ue) | 1403 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.ListVal
ue) |
| 1677 GOOGLE_DCHECK_NE(&from, this); | 1404 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1678 const ListValue* source = | 1405 const ListValue* source = |
| 1679 ::google::protobuf::internal::DynamicCastToGenerated<const ListValue>( | 1406 ::google::protobuf::internal::DynamicCastToGenerated<const ListValue>( |
| 1680 &from); | 1407 &from); |
| 1681 if (source == NULL) { | 1408 if (source == NULL) { |
| 1682 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.L
istValue) | 1409 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.L
istValue) |
| 1683 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1410 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1684 } else { | 1411 } else { |
| 1685 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.ListValue) | 1412 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.ListValue) |
| 1686 MergeFrom(*source); | 1413 MergeFrom(*source); |
| 1687 } | 1414 } |
| 1688 } | 1415 } |
| 1689 | 1416 |
| 1690 void ListValue::MergeFrom(const ListValue& from) { | 1417 void ListValue::MergeFrom(const ListValue& from) { |
| 1691 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.List
Value) | 1418 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.List
Value) |
| 1692 GOOGLE_DCHECK_NE(&from, this); | 1419 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1693 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1694 values_.MergeFrom(from.values_); | 1420 values_.MergeFrom(from.values_); |
| 1695 } | 1421 } |
| 1696 | 1422 |
| 1697 void ListValue::CopyFrom(const ::google::protobuf::Message& from) { | 1423 void ListValue::CopyFrom(const ::google::protobuf::Message& from) { |
| 1698 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ListValu
e) | 1424 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.ListValu
e) |
| 1699 if (&from == this) return; | 1425 if (&from == this) return; |
| 1700 Clear(); | 1426 Clear(); |
| 1701 MergeFrom(from); | 1427 MergeFrom(from); |
| 1702 } | 1428 } |
| 1703 | 1429 |
| 1704 void ListValue::CopyFrom(const ListValue& from) { | 1430 void ListValue::CopyFrom(const ListValue& from) { |
| 1705 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ListV
alue) | 1431 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.ListV
alue) |
| 1706 if (&from == this) return; | 1432 if (&from == this) return; |
| 1707 Clear(); | 1433 Clear(); |
| 1708 MergeFrom(from); | 1434 MergeFrom(from); |
| 1709 } | 1435 } |
| 1710 | 1436 |
| 1711 bool ListValue::IsInitialized() const { | 1437 bool ListValue::IsInitialized() const { |
| 1438 |
| 1712 return true; | 1439 return true; |
| 1713 } | 1440 } |
| 1714 | 1441 |
| 1715 void ListValue::Swap(ListValue* other) { | 1442 void ListValue::Swap(ListValue* other) { |
| 1716 if (other == this) return; | 1443 if (other == this) return; |
| 1717 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | |
| 1718 InternalSwap(other); | |
| 1719 } else { | |
| 1720 ListValue* temp = New(GetArenaNoVirtual()); | |
| 1721 temp->MergeFrom(*other); | |
| 1722 other->CopyFrom(*this); | |
| 1723 InternalSwap(temp); | |
| 1724 if (GetArenaNoVirtual() == NULL) { | |
| 1725 delete temp; | |
| 1726 } | |
| 1727 } | |
| 1728 } | |
| 1729 void ListValue::UnsafeArenaSwap(ListValue* other) { | |
| 1730 if (other == this) return; | |
| 1731 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | |
| 1732 InternalSwap(other); | 1444 InternalSwap(other); |
| 1733 } | 1445 } |
| 1734 void ListValue::InternalSwap(ListValue* other) { | 1446 void ListValue::InternalSwap(ListValue* other) { |
| 1735 values_.UnsafeArenaSwap(&other->values_); | 1447 values_.UnsafeArenaSwap(&other->values_); |
| 1448 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1736 std::swap(_cached_size_, other->_cached_size_); | 1449 std::swap(_cached_size_, other->_cached_size_); |
| 1737 } | 1450 } |
| 1738 | 1451 |
| 1739 ::google::protobuf::Metadata ListValue::GetMetadata() const { | 1452 ::google::protobuf::Metadata ListValue::GetMetadata() const { |
| 1740 protobuf_AssignDescriptorsOnce(); | 1453 protobuf_AssignDescriptorsOnce(); |
| 1741 return file_level_metadata[3]; | 1454 ::google::protobuf::Metadata metadata; |
| 1455 metadata.descriptor = ListValue_descriptor_; |
| 1456 metadata.reflection = ListValue_reflection_; |
| 1457 return metadata; |
| 1742 } | 1458 } |
| 1743 | 1459 |
| 1744 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 1460 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1745 // ListValue | 1461 // ListValue |
| 1746 | 1462 |
| 1747 // repeated .google.protobuf.Value values = 1; | 1463 // repeated .google.protobuf.Value values = 1; |
| 1748 int ListValue::values_size() const { | 1464 int ListValue::values_size() const { |
| 1749 return values_.size(); | 1465 return values_.size(); |
| 1750 } | 1466 } |
| 1751 void ListValue::clear_values() { | 1467 void ListValue::clear_values() { |
| (...skipping 23 matching lines...) Expand all Loading... |
| 1775 } | 1491 } |
| 1776 | 1492 |
| 1777 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 1493 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1778 | 1494 |
| 1779 // @@protoc_insertion_point(namespace_scope) | 1495 // @@protoc_insertion_point(namespace_scope) |
| 1780 | 1496 |
| 1781 } // namespace protobuf | 1497 } // namespace protobuf |
| 1782 } // namespace google | 1498 } // namespace google |
| 1783 | 1499 |
| 1784 // @@protoc_insertion_point(global_scope) | 1500 // @@protoc_insertion_point(global_scope) |
| OLD | NEW |