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