| 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/wrappers.proto | 2 // source: google/protobuf/wrappers.proto |
| 3 | 3 |
| 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION | 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
| 5 #include <google/protobuf/wrappers.pb.h> | 5 #include <google/protobuf/wrappers.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 DoubleValueDefaultTypeInternal : public ::google::protobuf::internal::Expl
icitlyConstructed<DoubleValue> {}; | |
| 23 DoubleValueDefaultTypeInternal _DoubleValue_default_instance_; | |
| 24 class FloatValueDefaultTypeInternal : public ::google::protobuf::internal::Expli
citlyConstructed<FloatValue> {}; | |
| 25 FloatValueDefaultTypeInternal _FloatValue_default_instance_; | |
| 26 class Int64ValueDefaultTypeInternal : public ::google::protobuf::internal::Expli
citlyConstructed<Int64Value> {}; | |
| 27 Int64ValueDefaultTypeInternal _Int64Value_default_instance_; | |
| 28 class UInt64ValueDefaultTypeInternal : public ::google::protobuf::internal::Expl
icitlyConstructed<UInt64Value> {}; | |
| 29 UInt64ValueDefaultTypeInternal _UInt64Value_default_instance_; | |
| 30 class Int32ValueDefaultTypeInternal : public ::google::protobuf::internal::Expli
citlyConstructed<Int32Value> {}; | |
| 31 Int32ValueDefaultTypeInternal _Int32Value_default_instance_; | |
| 32 class UInt32ValueDefaultTypeInternal : public ::google::protobuf::internal::Expl
icitlyConstructed<UInt32Value> {}; | |
| 33 UInt32ValueDefaultTypeInternal _UInt32Value_default_instance_; | |
| 34 class BoolValueDefaultTypeInternal : public ::google::protobuf::internal::Explic
itlyConstructed<BoolValue> {}; | |
| 35 BoolValueDefaultTypeInternal _BoolValue_default_instance_; | |
| 36 class StringValueDefaultTypeInternal : public ::google::protobuf::internal::Expl
icitlyConstructed<StringValue> {}; | |
| 37 StringValueDefaultTypeInternal _StringValue_default_instance_; | |
| 38 class BytesValueDefaultTypeInternal : public ::google::protobuf::internal::Expli
citlyConstructed<BytesValue> {}; | |
| 39 BytesValueDefaultTypeInternal _BytesValue_default_instance_; | |
| 40 | 22 |
| 41 namespace { | 23 namespace { |
| 42 | 24 |
| 43 ::google::protobuf::Metadata file_level_metadata[9]; | 25 const ::google::protobuf::Descriptor* DoubleValue_descriptor_ = NULL; |
| 26 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 27 DoubleValue_reflection_ = NULL; |
| 28 const ::google::protobuf::Descriptor* FloatValue_descriptor_ = NULL; |
| 29 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 30 FloatValue_reflection_ = NULL; |
| 31 const ::google::protobuf::Descriptor* Int64Value_descriptor_ = NULL; |
| 32 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 33 Int64Value_reflection_ = NULL; |
| 34 const ::google::protobuf::Descriptor* UInt64Value_descriptor_ = NULL; |
| 35 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 36 UInt64Value_reflection_ = NULL; |
| 37 const ::google::protobuf::Descriptor* Int32Value_descriptor_ = NULL; |
| 38 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 39 Int32Value_reflection_ = NULL; |
| 40 const ::google::protobuf::Descriptor* UInt32Value_descriptor_ = NULL; |
| 41 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 42 UInt32Value_reflection_ = NULL; |
| 43 const ::google::protobuf::Descriptor* BoolValue_descriptor_ = NULL; |
| 44 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 45 BoolValue_reflection_ = NULL; |
| 46 const ::google::protobuf::Descriptor* StringValue_descriptor_ = NULL; |
| 47 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 48 StringValue_reflection_ = NULL; |
| 49 const ::google::protobuf::Descriptor* BytesValue_descriptor_ = NULL; |
| 50 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 51 BytesValue_reflection_ = NULL; |
| 44 | 52 |
| 45 } // namespace | 53 } // namespace |
| 46 | 54 |
| 47 | 55 |
| 48 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fwrappers_
2eproto() GOOGLE_ATTRIBUTE_COLD; | 56 void protobuf_AssignDesc_google_2fprotobuf_2fwrappers_2eproto() { |
| 49 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fwrappers_
2eproto() { | 57 protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); |
| 50 static const ::google::protobuf::uint32 offsets[] = { | 58 const ::google::protobuf::FileDescriptor* file = |
| 51 ~0u, // no _has_bits_ | 59 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( |
| 52 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleValue, _internal_metada
ta_), | 60 "google/protobuf/wrappers.proto"); |
| 53 ~0u, // no _extensions_ | 61 GOOGLE_CHECK(file != NULL); |
| 54 ~0u, // no _oneof_case_ | 62 DoubleValue_descriptor_ = file->message_type(0); |
| 63 static const int DoubleValue_offsets_[1] = { |
| 55 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleValue, value_), | 64 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleValue, value_), |
| 56 ~0u, // no _has_bits_ | 65 }; |
| 57 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FloatValue, _internal_metadat
a_), | 66 DoubleValue_reflection_ = |
| 58 ~0u, // no _extensions_ | 67 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 59 ~0u, // no _oneof_case_ | 68 DoubleValue_descriptor_, |
| 69 DoubleValue::default_instance_, |
| 70 DoubleValue_offsets_, |
| 71 -1, |
| 72 -1, |
| 73 -1, |
| 74 sizeof(DoubleValue), |
| 75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleValue, _internal_meta
data_), |
| 76 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(DoubleValue, _is_default_in
stance_)); |
| 77 FloatValue_descriptor_ = file->message_type(1); |
| 78 static const int FloatValue_offsets_[1] = { |
| 60 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FloatValue, value_), | 79 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FloatValue, value_), |
| 61 ~0u, // no _has_bits_ | 80 }; |
| 62 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int64Value, _internal_metadat
a_), | 81 FloatValue_reflection_ = |
| 63 ~0u, // no _extensions_ | 82 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 64 ~0u, // no _oneof_case_ | 83 FloatValue_descriptor_, |
| 84 FloatValue::default_instance_, |
| 85 FloatValue_offsets_, |
| 86 -1, |
| 87 -1, |
| 88 -1, |
| 89 sizeof(FloatValue), |
| 90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FloatValue, _internal_metad
ata_), |
| 91 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(FloatValue, _is_default_ins
tance_)); |
| 92 Int64Value_descriptor_ = file->message_type(2); |
| 93 static const int Int64Value_offsets_[1] = { |
| 65 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int64Value, value_), | 94 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int64Value, value_), |
| 66 ~0u, // no _has_bits_ | 95 }; |
| 67 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt64Value, _internal_metada
ta_), | 96 Int64Value_reflection_ = |
| 68 ~0u, // no _extensions_ | 97 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 69 ~0u, // no _oneof_case_ | 98 Int64Value_descriptor_, |
| 99 Int64Value::default_instance_, |
| 100 Int64Value_offsets_, |
| 101 -1, |
| 102 -1, |
| 103 -1, |
| 104 sizeof(Int64Value), |
| 105 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int64Value, _internal_metad
ata_), |
| 106 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int64Value, _is_default_ins
tance_)); |
| 107 UInt64Value_descriptor_ = file->message_type(3); |
| 108 static const int UInt64Value_offsets_[1] = { |
| 70 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt64Value, value_), | 109 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt64Value, value_), |
| 71 ~0u, // no _has_bits_ | 110 }; |
| 72 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int32Value, _internal_metadat
a_), | 111 UInt64Value_reflection_ = |
| 73 ~0u, // no _extensions_ | 112 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 74 ~0u, // no _oneof_case_ | 113 UInt64Value_descriptor_, |
| 114 UInt64Value::default_instance_, |
| 115 UInt64Value_offsets_, |
| 116 -1, |
| 117 -1, |
| 118 -1, |
| 119 sizeof(UInt64Value), |
| 120 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt64Value, _internal_meta
data_), |
| 121 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt64Value, _is_default_in
stance_)); |
| 122 Int32Value_descriptor_ = file->message_type(4); |
| 123 static const int Int32Value_offsets_[1] = { |
| 75 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int32Value, value_), | 124 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int32Value, value_), |
| 76 ~0u, // no _has_bits_ | 125 }; |
| 77 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt32Value, _internal_metada
ta_), | 126 Int32Value_reflection_ = |
| 78 ~0u, // no _extensions_ | 127 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 79 ~0u, // no _oneof_case_ | 128 Int32Value_descriptor_, |
| 129 Int32Value::default_instance_, |
| 130 Int32Value_offsets_, |
| 131 -1, |
| 132 -1, |
| 133 -1, |
| 134 sizeof(Int32Value), |
| 135 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int32Value, _internal_metad
ata_), |
| 136 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Int32Value, _is_default_ins
tance_)); |
| 137 UInt32Value_descriptor_ = file->message_type(5); |
| 138 static const int UInt32Value_offsets_[1] = { |
| 80 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt32Value, value_), | 139 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt32Value, value_), |
| 81 ~0u, // no _has_bits_ | 140 }; |
| 82 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolValue, _internal_metadata
_), | 141 UInt32Value_reflection_ = |
| 83 ~0u, // no _extensions_ | 142 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 84 ~0u, // no _oneof_case_ | 143 UInt32Value_descriptor_, |
| 144 UInt32Value::default_instance_, |
| 145 UInt32Value_offsets_, |
| 146 -1, |
| 147 -1, |
| 148 -1, |
| 149 sizeof(UInt32Value), |
| 150 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt32Value, _internal_meta
data_), |
| 151 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(UInt32Value, _is_default_in
stance_)); |
| 152 BoolValue_descriptor_ = file->message_type(6); |
| 153 static const int BoolValue_offsets_[1] = { |
| 85 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolValue, value_), | 154 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolValue, value_), |
| 86 ~0u, // no _has_bits_ | 155 }; |
| 87 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringValue, _internal_metada
ta_), | 156 BoolValue_reflection_ = |
| 88 ~0u, // no _extensions_ | 157 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 89 ~0u, // no _oneof_case_ | 158 BoolValue_descriptor_, |
| 159 BoolValue::default_instance_, |
| 160 BoolValue_offsets_, |
| 161 -1, |
| 162 -1, |
| 163 -1, |
| 164 sizeof(BoolValue), |
| 165 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolValue, _internal_metada
ta_), |
| 166 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BoolValue, _is_default_inst
ance_)); |
| 167 StringValue_descriptor_ = file->message_type(7); |
| 168 static const int StringValue_offsets_[1] = { |
| 90 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringValue, value_), | 169 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringValue, value_), |
| 91 ~0u, // no _has_bits_ | 170 }; |
| 92 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesValue, _internal_metadat
a_), | 171 StringValue_reflection_ = |
| 93 ~0u, // no _extensions_ | 172 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 94 ~0u, // no _oneof_case_ | 173 StringValue_descriptor_, |
| 174 StringValue::default_instance_, |
| 175 StringValue_offsets_, |
| 176 -1, |
| 177 -1, |
| 178 -1, |
| 179 sizeof(StringValue), |
| 180 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringValue, _internal_meta
data_), |
| 181 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(StringValue, _is_default_in
stance_)); |
| 182 BytesValue_descriptor_ = file->message_type(8); |
| 183 static const int BytesValue_offsets_[1] = { |
| 95 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesValue, value_), | 184 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesValue, value_), |
| 96 }; | 185 }; |
| 97 return offsets; | 186 BytesValue_reflection_ = |
| 98 } | 187 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 99 | 188 BytesValue_descriptor_, |
| 100 static const ::google::protobuf::internal::MigrationSchema schemas[] = { | 189 BytesValue::default_instance_, |
| 101 { 0, -1, sizeof(DoubleValue)}, | 190 BytesValue_offsets_, |
| 102 { 5, -1, sizeof(FloatValue)}, | 191 -1, |
| 103 { 10, -1, sizeof(Int64Value)}, | 192 -1, |
| 104 { 15, -1, sizeof(UInt64Value)}, | 193 -1, |
| 105 { 20, -1, sizeof(Int32Value)}, | 194 sizeof(BytesValue), |
| 106 { 25, -1, sizeof(UInt32Value)}, | 195 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesValue, _internal_metad
ata_), |
| 107 { 30, -1, sizeof(BoolValue)}, | 196 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(BytesValue, _is_default_ins
tance_)); |
| 108 { 35, -1, sizeof(StringValue)}, | 197 } |
| 109 { 40, -1, sizeof(BytesValue)}, | |
| 110 }; | |
| 111 | |
| 112 static const ::google::protobuf::internal::DefaultInstanceData file_default_inst
ances[] = { | |
| 113 {reinterpret_cast<const ::google::protobuf::Message*>(&_DoubleValue_default_in
stance_), NULL}, | |
| 114 {reinterpret_cast<const ::google::protobuf::Message*>(&_FloatValue_default_ins
tance_), NULL}, | |
| 115 {reinterpret_cast<const ::google::protobuf::Message*>(&_Int64Value_default_ins
tance_), NULL}, | |
| 116 {reinterpret_cast<const ::google::protobuf::Message*>(&_UInt64Value_default_in
stance_), NULL}, | |
| 117 {reinterpret_cast<const ::google::protobuf::Message*>(&_Int32Value_default_ins
tance_), NULL}, | |
| 118 {reinterpret_cast<const ::google::protobuf::Message*>(&_UInt32Value_default_in
stance_), NULL}, | |
| 119 {reinterpret_cast<const ::google::protobuf::Message*>(&_BoolValue_default_inst
ance_), NULL}, | |
| 120 {reinterpret_cast<const ::google::protobuf::Message*>(&_StringValue_default_in
stance_), NULL}, | |
| 121 {reinterpret_cast<const ::google::protobuf::Message*>(&_BytesValue_default_ins
tance_), NULL}, | |
| 122 }; | |
| 123 | 198 |
| 124 namespace { | 199 namespace { |
| 125 | 200 |
| 126 void protobuf_AssignDescriptors() { | 201 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
| 127 protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); | 202 inline void protobuf_AssignDescriptorsOnce() { |
| 128 ::google::protobuf::MessageFactory* factory = NULL; | 203 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
| 129 AssignDescriptors( | 204 &protobuf_AssignDesc_google_2fprotobuf_2fwrappers_2eproto); |
| 130 "google/protobuf/wrappers.proto", schemas, file_default_instances, protobu
f_Offsets_google_2fprotobuf_2fwrappers_2eproto(), factory, | 205 } |
| 131 file_level_metadata, NULL, NULL); | 206 |
| 132 } | |
| 133 | |
| 134 void protobuf_AssignDescriptorsOnce() { | |
| 135 static GOOGLE_PROTOBUF_DECLARE_ONCE(once); | |
| 136 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); | |
| 137 } | |
| 138 | |
| 139 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; | |
| 140 void protobuf_RegisterTypes(const ::std::string&) { | 207 void protobuf_RegisterTypes(const ::std::string&) { |
| 141 protobuf_AssignDescriptorsOnce(); | 208 protobuf_AssignDescriptorsOnce(); |
| 142 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 9); | 209 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 210 DoubleValue_descriptor_, &DoubleValue::default_instance()); |
| 211 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 212 FloatValue_descriptor_, &FloatValue::default_instance()); |
| 213 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 214 Int64Value_descriptor_, &Int64Value::default_instance()); |
| 215 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 216 UInt64Value_descriptor_, &UInt64Value::default_instance()); |
| 217 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 218 Int32Value_descriptor_, &Int32Value::default_instance()); |
| 219 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 220 UInt32Value_descriptor_, &UInt32Value::default_instance()); |
| 221 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 222 BoolValue_descriptor_, &BoolValue::default_instance()); |
| 223 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 224 StringValue_descriptor_, &StringValue::default_instance()); |
| 225 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 226 BytesValue_descriptor_, &BytesValue::default_instance()); |
| 143 } | 227 } |
| 144 | 228 |
| 145 } // namespace | 229 } // namespace |
| 146 | 230 |
| 147 void protobuf_ShutdownFile_google_2fprotobuf_2fwrappers_2eproto() { | 231 void protobuf_ShutdownFile_google_2fprotobuf_2fwrappers_2eproto() { |
| 148 _DoubleValue_default_instance_.Shutdown(); | 232 delete DoubleValue::default_instance_; |
| 149 delete file_level_metadata[0].reflection; | 233 delete DoubleValue_reflection_; |
| 150 _FloatValue_default_instance_.Shutdown(); | 234 delete FloatValue::default_instance_; |
| 151 delete file_level_metadata[1].reflection; | 235 delete FloatValue_reflection_; |
| 152 _Int64Value_default_instance_.Shutdown(); | 236 delete Int64Value::default_instance_; |
| 153 delete file_level_metadata[2].reflection; | 237 delete Int64Value_reflection_; |
| 154 _UInt64Value_default_instance_.Shutdown(); | 238 delete UInt64Value::default_instance_; |
| 155 delete file_level_metadata[3].reflection; | 239 delete UInt64Value_reflection_; |
| 156 _Int32Value_default_instance_.Shutdown(); | 240 delete Int32Value::default_instance_; |
| 157 delete file_level_metadata[4].reflection; | 241 delete Int32Value_reflection_; |
| 158 _UInt32Value_default_instance_.Shutdown(); | 242 delete UInt32Value::default_instance_; |
| 159 delete file_level_metadata[5].reflection; | 243 delete UInt32Value_reflection_; |
| 160 _BoolValue_default_instance_.Shutdown(); | 244 delete BoolValue::default_instance_; |
| 161 delete file_level_metadata[6].reflection; | 245 delete BoolValue_reflection_; |
| 162 _StringValue_default_instance_.Shutdown(); | 246 delete StringValue::default_instance_; |
| 163 delete file_level_metadata[7].reflection; | 247 delete StringValue_reflection_; |
| 164 _BytesValue_default_instance_.Shutdown(); | 248 delete BytesValue::default_instance_; |
| 165 delete file_level_metadata[8].reflection; | 249 delete BytesValue_reflection_; |
| 166 } | 250 } |
| 167 | 251 |
| 168 void protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto_impl() { | 252 void protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto() { |
| 253 static bool already_here = false; |
| 254 if (already_here) return; |
| 255 already_here = true; |
| 169 GOOGLE_PROTOBUF_VERIFY_VERSION; | 256 GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 170 | 257 |
| 171 ::google::protobuf::internal::InitProtobufDefaults(); | |
| 172 _DoubleValue_default_instance_.DefaultConstruct(); | |
| 173 _FloatValue_default_instance_.DefaultConstruct(); | |
| 174 _Int64Value_default_instance_.DefaultConstruct(); | |
| 175 _UInt64Value_default_instance_.DefaultConstruct(); | |
| 176 _Int32Value_default_instance_.DefaultConstruct(); | |
| 177 _UInt32Value_default_instance_.DefaultConstruct(); | |
| 178 _BoolValue_default_instance_.DefaultConstruct(); | |
| 179 _StringValue_default_instance_.DefaultConstruct(); | |
| 180 _BytesValue_default_instance_.DefaultConstruct(); | |
| 181 } | |
| 182 | |
| 183 void protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto() { | |
| 184 static GOOGLE_PROTOBUF_DECLARE_ONCE(once); | |
| 185 ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprot
obuf_2fwrappers_2eproto_impl); | |
| 186 } | |
| 187 void protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto_impl() { | |
| 188 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 189 static const char descriptor[] = { | |
| 190 "\n\036google/protobuf/wrappers.proto\022\017google" | |
| 191 ".protobuf\"\034\n\013DoubleValue\022\r\n\005value\030\001 \001(\001\"" | |
| 192 "\033\n\nFloatValue\022\r\n\005value\030\001 \001(\002\"\033\n\nInt64Val" | |
| 193 "ue\022\r\n\005value\030\001 \001(\003\"\034\n\013UInt64Value\022\r\n\005v
alu" | |
| 194 "e\030\001 \001(\004\"\033\n\nInt32Value\022\r\n\005value\030\001 \001(\00
5\"\034\n\013" | |
| 195 "UInt32Value\022\r\n\005value\030\001 \001(\r\"\032\n\tBoolValue\022" | |
| 196 "\r\n\005value\030\001 \001(\010\"\034\n\013StringValue\022\r\n\005value\0
30\001" | |
| 197 " \001(\t\"\033\n\nBytesValue\022\r\n\005value\030\001 \001(\014B|\n\023co
m" | |
| 198 ".google.protobufB\rWrappersProtoP\001Z*githu" | |
| 199 "b.com/golang/protobuf/ptypes/wrappers\370\001\001" | |
| 200 "\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTypesb" | |
| 201 "\006proto3" | |
| 202 }; | |
| 203 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( | 258 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| 204 descriptor, 447); | 259 "\n\036google/protobuf/wrappers.proto\022\017google" |
| 260 ".protobuf\"\034\n\013DoubleValue\022\r\n\005value\030\001 \001(\001\"" |
| 261 "\033\n\nFloatValue\022\r\n\005value\030\001 \001(\002\"\033\n\nInt64Val" |
| 262 "ue\022\r\n\005value\030\001 \001(\003\"\034\n\013UInt64Value\022\r\n\005val
u" |
| 263 "e\030\001 \001(\004\"\033\n\nInt32Value\022\r\n\005value\030\001 \001(\005\
"\034\n\013" |
| 264 "UInt32Value\022\r\n\005value\030\001 \001(\r\"\032\n\tBoolValue\022" |
| 265 "\r\n\005value\030\001 \001(\010\"\034\n\013StringValue\022\r\n\005value\030
\001" |
| 266 " \001(\t\"\033\n\nBytesValue\022\r\n\005value\030\001 \001(\014B\177\n\023c
om" |
| 267 ".google.protobufB\rWrappersProtoP\001Z*githu" |
| 268 "b.com/golang/protobuf/ptypes/wrappers\240\001\001" |
| 269 "\370\001\001\242\002\003GPB\252\002\036Google.Protobuf.WellKnownTyp" |
| 270 "esb\006proto3", 450); |
| 205 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( | 271 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 206 "google/protobuf/wrappers.proto", &protobuf_RegisterTypes); | 272 "google/protobuf/wrappers.proto", &protobuf_RegisterTypes); |
| 273 DoubleValue::default_instance_ = new DoubleValue(); |
| 274 FloatValue::default_instance_ = new FloatValue(); |
| 275 Int64Value::default_instance_ = new Int64Value(); |
| 276 UInt64Value::default_instance_ = new UInt64Value(); |
| 277 Int32Value::default_instance_ = new Int32Value(); |
| 278 UInt32Value::default_instance_ = new UInt32Value(); |
| 279 BoolValue::default_instance_ = new BoolValue(); |
| 280 StringValue::default_instance_ = new StringValue(); |
| 281 BytesValue::default_instance_ = new BytesValue(); |
| 282 DoubleValue::default_instance_->InitAsDefaultInstance(); |
| 283 FloatValue::default_instance_->InitAsDefaultInstance(); |
| 284 Int64Value::default_instance_->InitAsDefaultInstance(); |
| 285 UInt64Value::default_instance_->InitAsDefaultInstance(); |
| 286 Int32Value::default_instance_->InitAsDefaultInstance(); |
| 287 UInt32Value::default_instance_->InitAsDefaultInstance(); |
| 288 BoolValue::default_instance_->InitAsDefaultInstance(); |
| 289 StringValue::default_instance_->InitAsDefaultInstance(); |
| 290 BytesValue::default_instance_->InitAsDefaultInstance(); |
| 207 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fwrappers_2eproto); | 291 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fwrappers_2eproto); |
| 208 } | 292 } |
| 209 | 293 |
| 210 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fwrappers_2epro
to_once_); | |
| 211 void protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto() { | |
| 212 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fwrapp
ers_2eproto_once_, | |
| 213 &protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto_impl); | |
| 214 } | |
| 215 // Force AddDescriptors() to be called at static initialization time. | 294 // Force AddDescriptors() to be called at static initialization time. |
| 216 struct StaticDescriptorInitializer_google_2fprotobuf_2fwrappers_2eproto { | 295 struct StaticDescriptorInitializer_google_2fprotobuf_2fwrappers_2eproto { |
| 217 StaticDescriptorInitializer_google_2fprotobuf_2fwrappers_2eproto() { | 296 StaticDescriptorInitializer_google_2fprotobuf_2fwrappers_2eproto() { |
| 218 protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); | 297 protobuf_AddDesc_google_2fprotobuf_2fwrappers_2eproto(); |
| 219 } | 298 } |
| 220 } static_descriptor_initializer_google_2fprotobuf_2fwrappers_2eproto_; | 299 } static_descriptor_initializer_google_2fprotobuf_2fwrappers_2eproto_; |
| 221 | 300 |
| 301 namespace { |
| 302 |
| 303 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
| 304 static void MergeFromFail(int line) { |
| 305 GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
| 306 } |
| 307 |
| 308 } // namespace |
| 309 |
| 310 |
| 222 // =================================================================== | 311 // =================================================================== |
| 223 | 312 |
| 224 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 313 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 225 const int DoubleValue::kValueFieldNumber; | 314 const int DoubleValue::kValueFieldNumber; |
| 226 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 315 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 227 | 316 |
| 228 DoubleValue::DoubleValue() | 317 DoubleValue::DoubleValue() |
| 229 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 318 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 230 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 231 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 232 } | |
| 233 SharedCtor(); | 319 SharedCtor(); |
| 234 // @@protoc_insertion_point(constructor:google.protobuf.DoubleValue) | 320 // @@protoc_insertion_point(constructor:google.protobuf.DoubleValue) |
| 235 } | 321 } |
| 322 |
| 236 DoubleValue::DoubleValue(::google::protobuf::Arena* arena) | 323 DoubleValue::DoubleValue(::google::protobuf::Arena* arena) |
| 237 : ::google::protobuf::Message(), | 324 : ::google::protobuf::Message(), |
| 238 _internal_metadata_(arena) { | 325 _internal_metadata_(arena) { |
| 239 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 240 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 241 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 242 SharedCtor(); | 326 SharedCtor(); |
| 243 RegisterArenaDtor(arena); | 327 RegisterArenaDtor(arena); |
| 244 // @@protoc_insertion_point(arena_constructor:google.protobuf.DoubleValue) | 328 // @@protoc_insertion_point(arena_constructor:google.protobuf.DoubleValue) |
| 245 } | 329 } |
| 330 |
| 331 void DoubleValue::InitAsDefaultInstance() { |
| 332 _is_default_instance_ = true; |
| 333 } |
| 334 |
| 246 DoubleValue::DoubleValue(const DoubleValue& from) | 335 DoubleValue::DoubleValue(const DoubleValue& from) |
| 247 : ::google::protobuf::Message(), | 336 : ::google::protobuf::Message(), |
| 248 _internal_metadata_(NULL), | 337 _internal_metadata_(NULL) { |
| 249 _cached_size_(0) { | 338 SharedCtor(); |
| 250 _internal_metadata_.MergeFrom(from._internal_metadata_); | 339 MergeFrom(from); |
| 251 value_ = from.value_; | |
| 252 // @@protoc_insertion_point(copy_constructor:google.protobuf.DoubleValue) | 340 // @@protoc_insertion_point(copy_constructor:google.protobuf.DoubleValue) |
| 253 } | 341 } |
| 254 | 342 |
| 255 void DoubleValue::SharedCtor() { | 343 void DoubleValue::SharedCtor() { |
| 344 _is_default_instance_ = false; |
| 345 _cached_size_ = 0; |
| 256 value_ = 0; | 346 value_ = 0; |
| 257 _cached_size_ = 0; | |
| 258 } | 347 } |
| 259 | 348 |
| 260 DoubleValue::~DoubleValue() { | 349 DoubleValue::~DoubleValue() { |
| 261 // @@protoc_insertion_point(destructor:google.protobuf.DoubleValue) | 350 // @@protoc_insertion_point(destructor:google.protobuf.DoubleValue) |
| 262 SharedDtor(); | 351 SharedDtor(); |
| 263 } | 352 } |
| 264 | 353 |
| 265 void DoubleValue::SharedDtor() { | 354 void DoubleValue::SharedDtor() { |
| 266 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 355 if (GetArenaNoVirtual() != NULL) { |
| 267 if (arena != NULL) { | |
| 268 return; | 356 return; |
| 269 } | 357 } |
| 270 | 358 |
| 359 if (this != default_instance_) { |
| 360 } |
| 271 } | 361 } |
| 272 | 362 |
| 273 void DoubleValue::ArenaDtor(void* object) { | 363 void DoubleValue::ArenaDtor(void* object) { |
| 274 DoubleValue* _this = reinterpret_cast< DoubleValue* >(object); | 364 DoubleValue* _this = reinterpret_cast< DoubleValue* >(object); |
| 275 (void)_this; | 365 (void)_this; |
| 276 } | 366 } |
| 277 void DoubleValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 367 void DoubleValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 278 } | 368 } |
| 279 void DoubleValue::SetCachedSize(int size) const { | 369 void DoubleValue::SetCachedSize(int size) const { |
| 280 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 370 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 281 _cached_size_ = size; | 371 _cached_size_ = size; |
| 282 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 372 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 283 } | 373 } |
| 284 const ::google::protobuf::Descriptor* DoubleValue::descriptor() { | 374 const ::google::protobuf::Descriptor* DoubleValue::descriptor() { |
| 285 protobuf_AssignDescriptorsOnce(); | 375 protobuf_AssignDescriptorsOnce(); |
| 286 return file_level_metadata[0].descriptor; | 376 return DoubleValue_descriptor_; |
| 287 } | 377 } |
| 288 | 378 |
| 289 const DoubleValue& DoubleValue::default_instance() { | 379 const DoubleValue& DoubleValue::default_instance() { |
| 290 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 380 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 291 return *internal_default_instance(); | 381 return *default_instance_; |
| 292 } | 382 } |
| 293 | 383 |
| 384 DoubleValue* DoubleValue::default_instance_ = NULL; |
| 385 |
| 294 DoubleValue* DoubleValue::New(::google::protobuf::Arena* arena) const { | 386 DoubleValue* DoubleValue::New(::google::protobuf::Arena* arena) const { |
| 295 return ::google::protobuf::Arena::CreateMessage<DoubleValue>(arena); | 387 return ::google::protobuf::Arena::CreateMessage<DoubleValue>(arena); |
| 296 } | 388 } |
| 297 | 389 |
| 298 void DoubleValue::Clear() { | 390 void DoubleValue::Clear() { |
| 299 // @@protoc_insertion_point(message_clear_start:google.protobuf.DoubleValue) | 391 // @@protoc_insertion_point(message_clear_start:google.protobuf.DoubleValue) |
| 300 value_ = 0; | 392 value_ = 0; |
| 301 } | 393 } |
| 302 | 394 |
| 303 bool DoubleValue::MergePartialFromCodedStream( | 395 bool DoubleValue::MergePartialFromCodedStream( |
| 304 ::google::protobuf::io::CodedInputStream* input) { | 396 ::google::protobuf::io::CodedInputStream* input) { |
| 305 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 397 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 306 ::google::protobuf::uint32 tag; | 398 ::google::protobuf::uint32 tag; |
| 307 // @@protoc_insertion_point(parse_start:google.protobuf.DoubleValue) | 399 // @@protoc_insertion_point(parse_start:google.protobuf.DoubleValue) |
| 308 for (;;) { | 400 for (;;) { |
| 309 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 401 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 310 tag = p.first; | 402 tag = p.first; |
| 311 if (!p.second) goto handle_unusual; | 403 if (!p.second) goto handle_unusual; |
| 312 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 404 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 313 // double value = 1; | 405 // optional double value = 1; |
| 314 case 1: { | 406 case 1: { |
| 315 if (tag == 9u) { | 407 if (tag == 9) { |
| 316 | |
| 317 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 408 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 318 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( | 409 double, ::google::protobuf::internal::WireFormatLite::TYPE_DO
UBLE>( |
| 319 input, &value_))); | 410 input, &value_))); |
| 411 |
| 320 } else { | 412 } else { |
| 321 goto handle_unusual; | 413 goto handle_unusual; |
| 322 } | 414 } |
| 415 if (input->ExpectAtEnd()) goto success; |
| 323 break; | 416 break; |
| 324 } | 417 } |
| 325 | 418 |
| 326 default: { | 419 default: { |
| 327 handle_unusual: | 420 handle_unusual: |
| 328 if (tag == 0 || | 421 if (tag == 0 || |
| 329 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 422 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 330 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 423 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 331 goto success; | 424 goto success; |
| 332 } | 425 } |
| 333 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 426 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 334 break; | 427 break; |
| 335 } | 428 } |
| 336 } | 429 } |
| 337 } | 430 } |
| 338 success: | 431 success: |
| 339 // @@protoc_insertion_point(parse_success:google.protobuf.DoubleValue) | 432 // @@protoc_insertion_point(parse_success:google.protobuf.DoubleValue) |
| 340 return true; | 433 return true; |
| 341 failure: | 434 failure: |
| 342 // @@protoc_insertion_point(parse_failure:google.protobuf.DoubleValue) | 435 // @@protoc_insertion_point(parse_failure:google.protobuf.DoubleValue) |
| 343 return false; | 436 return false; |
| 344 #undef DO_ | 437 #undef DO_ |
| 345 } | 438 } |
| 346 | 439 |
| 347 void DoubleValue::SerializeWithCachedSizes( | 440 void DoubleValue::SerializeWithCachedSizes( |
| 348 ::google::protobuf::io::CodedOutputStream* output) const { | 441 ::google::protobuf::io::CodedOutputStream* output) const { |
| 349 // @@protoc_insertion_point(serialize_start:google.protobuf.DoubleValue) | 442 // @@protoc_insertion_point(serialize_start:google.protobuf.DoubleValue) |
| 350 // double value = 1; | 443 // optional double value = 1; |
| 351 if (this->value() != 0) { | 444 if (this->value() != 0) { |
| 352 ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->value(),
output); | 445 ::google::protobuf::internal::WireFormatLite::WriteDouble(1, this->value(),
output); |
| 353 } | 446 } |
| 354 | 447 |
| 355 // @@protoc_insertion_point(serialize_end:google.protobuf.DoubleValue) | 448 // @@protoc_insertion_point(serialize_end:google.protobuf.DoubleValue) |
| 356 } | 449 } |
| 357 | 450 |
| 358 ::google::protobuf::uint8* DoubleValue::InternalSerializeWithCachedSizesToArray( | 451 ::google::protobuf::uint8* DoubleValue::SerializeWithCachedSizesToArray( |
| 359 bool deterministic, ::google::protobuf::uint8* target) const { | 452 ::google::protobuf::uint8* target) const { |
| 360 (void)deterministic; // Unused | |
| 361 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DoubleVal
ue) | 453 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.DoubleVal
ue) |
| 362 // double value = 1; | 454 // optional double value = 1; |
| 363 if (this->value() != 0) { | 455 if (this->value() != 0) { |
| 364 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1,
this->value(), target); | 456 target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(1,
this->value(), target); |
| 365 } | 457 } |
| 366 | 458 |
| 367 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DoubleValue
) | 459 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.DoubleValue
) |
| 368 return target; | 460 return target; |
| 369 } | 461 } |
| 370 | 462 |
| 371 size_t DoubleValue::ByteSizeLong() const { | 463 int DoubleValue::ByteSize() const { |
| 372 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DoubleValue) | 464 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.DoubleValue) |
| 373 size_t total_size = 0; | 465 int total_size = 0; |
| 374 | 466 |
| 375 // double value = 1; | 467 // optional double value = 1; |
| 376 if (this->value() != 0) { | 468 if (this->value() != 0) { |
| 377 total_size += 1 + 8; | 469 total_size += 1 + 8; |
| 378 } | 470 } |
| 379 | 471 |
| 380 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 381 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 472 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 382 _cached_size_ = cached_size; | 473 _cached_size_ = total_size; |
| 383 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 474 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 384 return total_size; | 475 return total_size; |
| 385 } | 476 } |
| 386 | 477 |
| 387 void DoubleValue::MergeFrom(const ::google::protobuf::Message& from) { | 478 void DoubleValue::MergeFrom(const ::google::protobuf::Message& from) { |
| 388 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DoubleV
alue) | 479 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.DoubleV
alue) |
| 389 GOOGLE_DCHECK_NE(&from, this); | 480 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 390 const DoubleValue* source = | 481 const DoubleValue* source = |
| 391 ::google::protobuf::internal::DynamicCastToGenerated<const DoubleValue>( | 482 ::google::protobuf::internal::DynamicCastToGenerated<const DoubleValue>( |
| 392 &from); | 483 &from); |
| 393 if (source == NULL) { | 484 if (source == NULL) { |
| 394 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D
oubleValue) | 485 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.D
oubleValue) |
| 395 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 486 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 396 } else { | 487 } else { |
| 397 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.DoubleValue) | 488 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.DoubleValue) |
| 398 MergeFrom(*source); | 489 MergeFrom(*source); |
| 399 } | 490 } |
| 400 } | 491 } |
| 401 | 492 |
| 402 void DoubleValue::MergeFrom(const DoubleValue& from) { | 493 void DoubleValue::MergeFrom(const DoubleValue& from) { |
| 403 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Doub
leValue) | 494 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Doub
leValue) |
| 404 GOOGLE_DCHECK_NE(&from, this); | 495 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 405 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 406 if (from.value() != 0) { | 496 if (from.value() != 0) { |
| 407 set_value(from.value()); | 497 set_value(from.value()); |
| 408 } | 498 } |
| 409 } | 499 } |
| 410 | 500 |
| 411 void DoubleValue::CopyFrom(const ::google::protobuf::Message& from) { | 501 void DoubleValue::CopyFrom(const ::google::protobuf::Message& from) { |
| 412 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DoubleVa
lue) | 502 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.DoubleVa
lue) |
| 413 if (&from == this) return; | 503 if (&from == this) return; |
| 414 Clear(); | 504 Clear(); |
| 415 MergeFrom(from); | 505 MergeFrom(from); |
| 416 } | 506 } |
| 417 | 507 |
| 418 void DoubleValue::CopyFrom(const DoubleValue& from) { | 508 void DoubleValue::CopyFrom(const DoubleValue& from) { |
| 419 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Doubl
eValue) | 509 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Doubl
eValue) |
| 420 if (&from == this) return; | 510 if (&from == this) return; |
| 421 Clear(); | 511 Clear(); |
| 422 MergeFrom(from); | 512 MergeFrom(from); |
| 423 } | 513 } |
| 424 | 514 |
| 425 bool DoubleValue::IsInitialized() const { | 515 bool DoubleValue::IsInitialized() const { |
| 516 |
| 426 return true; | 517 return true; |
| 427 } | 518 } |
| 428 | 519 |
| 429 void DoubleValue::Swap(DoubleValue* other) { | 520 void DoubleValue::Swap(DoubleValue* other) { |
| 430 if (other == this) return; | 521 if (other == this) return; |
| 431 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 522 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 432 InternalSwap(other); | 523 InternalSwap(other); |
| 433 } else { | 524 } else { |
| 434 DoubleValue* temp = New(GetArenaNoVirtual()); | 525 DoubleValue temp; |
| 435 temp->MergeFrom(*other); | 526 temp.MergeFrom(*this); |
| 436 other->CopyFrom(*this); | 527 CopyFrom(*other); |
| 437 InternalSwap(temp); | 528 other->CopyFrom(temp); |
| 438 if (GetArenaNoVirtual() == NULL) { | |
| 439 delete temp; | |
| 440 } | |
| 441 } | 529 } |
| 442 } | 530 } |
| 443 void DoubleValue::UnsafeArenaSwap(DoubleValue* other) { | 531 void DoubleValue::UnsafeArenaSwap(DoubleValue* other) { |
| 444 if (other == this) return; | 532 if (other == this) return; |
| 445 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 533 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 446 InternalSwap(other); | 534 InternalSwap(other); |
| 447 } | 535 } |
| 448 void DoubleValue::InternalSwap(DoubleValue* other) { | 536 void DoubleValue::InternalSwap(DoubleValue* other) { |
| 449 std::swap(value_, other->value_); | 537 std::swap(value_, other->value_); |
| 538 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 450 std::swap(_cached_size_, other->_cached_size_); | 539 std::swap(_cached_size_, other->_cached_size_); |
| 451 } | 540 } |
| 452 | 541 |
| 453 ::google::protobuf::Metadata DoubleValue::GetMetadata() const { | 542 ::google::protobuf::Metadata DoubleValue::GetMetadata() const { |
| 454 protobuf_AssignDescriptorsOnce(); | 543 protobuf_AssignDescriptorsOnce(); |
| 455 return file_level_metadata[0]; | 544 ::google::protobuf::Metadata metadata; |
| 545 metadata.descriptor = DoubleValue_descriptor_; |
| 546 metadata.reflection = DoubleValue_reflection_; |
| 547 return metadata; |
| 456 } | 548 } |
| 457 | 549 |
| 458 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 550 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 459 // DoubleValue | 551 // DoubleValue |
| 460 | 552 |
| 461 // double value = 1; | 553 // optional double value = 1; |
| 462 void DoubleValue::clear_value() { | 554 void DoubleValue::clear_value() { |
| 463 value_ = 0; | 555 value_ = 0; |
| 464 } | 556 } |
| 465 double DoubleValue::value() const { | 557 double DoubleValue::value() const { |
| 466 // @@protoc_insertion_point(field_get:google.protobuf.DoubleValue.value) | 558 // @@protoc_insertion_point(field_get:google.protobuf.DoubleValue.value) |
| 467 return value_; | 559 return value_; |
| 468 } | 560 } |
| 469 void DoubleValue::set_value(double value) { | 561 void DoubleValue::set_value(double value) { |
| 470 | 562 |
| 471 value_ = value; | 563 value_ = value; |
| 472 // @@protoc_insertion_point(field_set:google.protobuf.DoubleValue.value) | 564 // @@protoc_insertion_point(field_set:google.protobuf.DoubleValue.value) |
| 473 } | 565 } |
| 474 | 566 |
| 475 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 567 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 476 | 568 |
| 477 // =================================================================== | 569 // =================================================================== |
| 478 | 570 |
| 479 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 571 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 480 const int FloatValue::kValueFieldNumber; | 572 const int FloatValue::kValueFieldNumber; |
| 481 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 573 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 482 | 574 |
| 483 FloatValue::FloatValue() | 575 FloatValue::FloatValue() |
| 484 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 576 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 485 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 486 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 487 } | |
| 488 SharedCtor(); | 577 SharedCtor(); |
| 489 // @@protoc_insertion_point(constructor:google.protobuf.FloatValue) | 578 // @@protoc_insertion_point(constructor:google.protobuf.FloatValue) |
| 490 } | 579 } |
| 580 |
| 491 FloatValue::FloatValue(::google::protobuf::Arena* arena) | 581 FloatValue::FloatValue(::google::protobuf::Arena* arena) |
| 492 : ::google::protobuf::Message(), | 582 : ::google::protobuf::Message(), |
| 493 _internal_metadata_(arena) { | 583 _internal_metadata_(arena) { |
| 494 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 495 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 496 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 497 SharedCtor(); | 584 SharedCtor(); |
| 498 RegisterArenaDtor(arena); | 585 RegisterArenaDtor(arena); |
| 499 // @@protoc_insertion_point(arena_constructor:google.protobuf.FloatValue) | 586 // @@protoc_insertion_point(arena_constructor:google.protobuf.FloatValue) |
| 500 } | 587 } |
| 588 |
| 589 void FloatValue::InitAsDefaultInstance() { |
| 590 _is_default_instance_ = true; |
| 591 } |
| 592 |
| 501 FloatValue::FloatValue(const FloatValue& from) | 593 FloatValue::FloatValue(const FloatValue& from) |
| 502 : ::google::protobuf::Message(), | 594 : ::google::protobuf::Message(), |
| 503 _internal_metadata_(NULL), | 595 _internal_metadata_(NULL) { |
| 504 _cached_size_(0) { | 596 SharedCtor(); |
| 505 _internal_metadata_.MergeFrom(from._internal_metadata_); | 597 MergeFrom(from); |
| 506 value_ = from.value_; | |
| 507 // @@protoc_insertion_point(copy_constructor:google.protobuf.FloatValue) | 598 // @@protoc_insertion_point(copy_constructor:google.protobuf.FloatValue) |
| 508 } | 599 } |
| 509 | 600 |
| 510 void FloatValue::SharedCtor() { | 601 void FloatValue::SharedCtor() { |
| 602 _is_default_instance_ = false; |
| 603 _cached_size_ = 0; |
| 511 value_ = 0; | 604 value_ = 0; |
| 512 _cached_size_ = 0; | |
| 513 } | 605 } |
| 514 | 606 |
| 515 FloatValue::~FloatValue() { | 607 FloatValue::~FloatValue() { |
| 516 // @@protoc_insertion_point(destructor:google.protobuf.FloatValue) | 608 // @@protoc_insertion_point(destructor:google.protobuf.FloatValue) |
| 517 SharedDtor(); | 609 SharedDtor(); |
| 518 } | 610 } |
| 519 | 611 |
| 520 void FloatValue::SharedDtor() { | 612 void FloatValue::SharedDtor() { |
| 521 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 613 if (GetArenaNoVirtual() != NULL) { |
| 522 if (arena != NULL) { | |
| 523 return; | 614 return; |
| 524 } | 615 } |
| 525 | 616 |
| 617 if (this != default_instance_) { |
| 618 } |
| 526 } | 619 } |
| 527 | 620 |
| 528 void FloatValue::ArenaDtor(void* object) { | 621 void FloatValue::ArenaDtor(void* object) { |
| 529 FloatValue* _this = reinterpret_cast< FloatValue* >(object); | 622 FloatValue* _this = reinterpret_cast< FloatValue* >(object); |
| 530 (void)_this; | 623 (void)_this; |
| 531 } | 624 } |
| 532 void FloatValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 625 void FloatValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 533 } | 626 } |
| 534 void FloatValue::SetCachedSize(int size) const { | 627 void FloatValue::SetCachedSize(int size) const { |
| 535 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 628 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 536 _cached_size_ = size; | 629 _cached_size_ = size; |
| 537 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 630 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 538 } | 631 } |
| 539 const ::google::protobuf::Descriptor* FloatValue::descriptor() { | 632 const ::google::protobuf::Descriptor* FloatValue::descriptor() { |
| 540 protobuf_AssignDescriptorsOnce(); | 633 protobuf_AssignDescriptorsOnce(); |
| 541 return file_level_metadata[1].descriptor; | 634 return FloatValue_descriptor_; |
| 542 } | 635 } |
| 543 | 636 |
| 544 const FloatValue& FloatValue::default_instance() { | 637 const FloatValue& FloatValue::default_instance() { |
| 545 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 638 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 546 return *internal_default_instance(); | 639 return *default_instance_; |
| 547 } | 640 } |
| 548 | 641 |
| 642 FloatValue* FloatValue::default_instance_ = NULL; |
| 643 |
| 549 FloatValue* FloatValue::New(::google::protobuf::Arena* arena) const { | 644 FloatValue* FloatValue::New(::google::protobuf::Arena* arena) const { |
| 550 return ::google::protobuf::Arena::CreateMessage<FloatValue>(arena); | 645 return ::google::protobuf::Arena::CreateMessage<FloatValue>(arena); |
| 551 } | 646 } |
| 552 | 647 |
| 553 void FloatValue::Clear() { | 648 void FloatValue::Clear() { |
| 554 // @@protoc_insertion_point(message_clear_start:google.protobuf.FloatValue) | 649 // @@protoc_insertion_point(message_clear_start:google.protobuf.FloatValue) |
| 555 value_ = 0; | 650 value_ = 0; |
| 556 } | 651 } |
| 557 | 652 |
| 558 bool FloatValue::MergePartialFromCodedStream( | 653 bool FloatValue::MergePartialFromCodedStream( |
| 559 ::google::protobuf::io::CodedInputStream* input) { | 654 ::google::protobuf::io::CodedInputStream* input) { |
| 560 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 655 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 561 ::google::protobuf::uint32 tag; | 656 ::google::protobuf::uint32 tag; |
| 562 // @@protoc_insertion_point(parse_start:google.protobuf.FloatValue) | 657 // @@protoc_insertion_point(parse_start:google.protobuf.FloatValue) |
| 563 for (;;) { | 658 for (;;) { |
| 564 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 659 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 565 tag = p.first; | 660 tag = p.first; |
| 566 if (!p.second) goto handle_unusual; | 661 if (!p.second) goto handle_unusual; |
| 567 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 662 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 568 // float value = 1; | 663 // optional float value = 1; |
| 569 case 1: { | 664 case 1: { |
| 570 if (tag == 13u) { | 665 if (tag == 13) { |
| 571 | |
| 572 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 666 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 573 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLO
AT>( | 667 float, ::google::protobuf::internal::WireFormatLite::TYPE_FLO
AT>( |
| 574 input, &value_))); | 668 input, &value_))); |
| 669 |
| 575 } else { | 670 } else { |
| 576 goto handle_unusual; | 671 goto handle_unusual; |
| 577 } | 672 } |
| 673 if (input->ExpectAtEnd()) goto success; |
| 578 break; | 674 break; |
| 579 } | 675 } |
| 580 | 676 |
| 581 default: { | 677 default: { |
| 582 handle_unusual: | 678 handle_unusual: |
| 583 if (tag == 0 || | 679 if (tag == 0 || |
| 584 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 680 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 585 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 681 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 586 goto success; | 682 goto success; |
| 587 } | 683 } |
| 588 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 684 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 589 break; | 685 break; |
| 590 } | 686 } |
| 591 } | 687 } |
| 592 } | 688 } |
| 593 success: | 689 success: |
| 594 // @@protoc_insertion_point(parse_success:google.protobuf.FloatValue) | 690 // @@protoc_insertion_point(parse_success:google.protobuf.FloatValue) |
| 595 return true; | 691 return true; |
| 596 failure: | 692 failure: |
| 597 // @@protoc_insertion_point(parse_failure:google.protobuf.FloatValue) | 693 // @@protoc_insertion_point(parse_failure:google.protobuf.FloatValue) |
| 598 return false; | 694 return false; |
| 599 #undef DO_ | 695 #undef DO_ |
| 600 } | 696 } |
| 601 | 697 |
| 602 void FloatValue::SerializeWithCachedSizes( | 698 void FloatValue::SerializeWithCachedSizes( |
| 603 ::google::protobuf::io::CodedOutputStream* output) const { | 699 ::google::protobuf::io::CodedOutputStream* output) const { |
| 604 // @@protoc_insertion_point(serialize_start:google.protobuf.FloatValue) | 700 // @@protoc_insertion_point(serialize_start:google.protobuf.FloatValue) |
| 605 // float value = 1; | 701 // optional float value = 1; |
| 606 if (this->value() != 0) { | 702 if (this->value() != 0) { |
| 607 ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->value(), o
utput); | 703 ::google::protobuf::internal::WireFormatLite::WriteFloat(1, this->value(), o
utput); |
| 608 } | 704 } |
| 609 | 705 |
| 610 // @@protoc_insertion_point(serialize_end:google.protobuf.FloatValue) | 706 // @@protoc_insertion_point(serialize_end:google.protobuf.FloatValue) |
| 611 } | 707 } |
| 612 | 708 |
| 613 ::google::protobuf::uint8* FloatValue::InternalSerializeWithCachedSizesToArray( | 709 ::google::protobuf::uint8* FloatValue::SerializeWithCachedSizesToArray( |
| 614 bool deterministic, ::google::protobuf::uint8* target) const { | 710 ::google::protobuf::uint8* target) const { |
| 615 (void)deterministic; // Unused | |
| 616 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FloatValu
e) | 711 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.FloatValu
e) |
| 617 // float value = 1; | 712 // optional float value = 1; |
| 618 if (this->value() != 0) { | 713 if (this->value() != 0) { |
| 619 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1,
this->value(), target); | 714 target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(1,
this->value(), target); |
| 620 } | 715 } |
| 621 | 716 |
| 622 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FloatValue) | 717 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.FloatValue) |
| 623 return target; | 718 return target; |
| 624 } | 719 } |
| 625 | 720 |
| 626 size_t FloatValue::ByteSizeLong() const { | 721 int FloatValue::ByteSize() const { |
| 627 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FloatValue) | 722 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.FloatValue) |
| 628 size_t total_size = 0; | 723 int total_size = 0; |
| 629 | 724 |
| 630 // float value = 1; | 725 // optional float value = 1; |
| 631 if (this->value() != 0) { | 726 if (this->value() != 0) { |
| 632 total_size += 1 + 4; | 727 total_size += 1 + 4; |
| 633 } | 728 } |
| 634 | 729 |
| 635 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 636 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 730 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 637 _cached_size_ = cached_size; | 731 _cached_size_ = total_size; |
| 638 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 732 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 639 return total_size; | 733 return total_size; |
| 640 } | 734 } |
| 641 | 735 |
| 642 void FloatValue::MergeFrom(const ::google::protobuf::Message& from) { | 736 void FloatValue::MergeFrom(const ::google::protobuf::Message& from) { |
| 643 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FloatVa
lue) | 737 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.FloatVa
lue) |
| 644 GOOGLE_DCHECK_NE(&from, this); | 738 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 645 const FloatValue* source = | 739 const FloatValue* source = |
| 646 ::google::protobuf::internal::DynamicCastToGenerated<const FloatValue>( | 740 ::google::protobuf::internal::DynamicCastToGenerated<const FloatValue>( |
| 647 &from); | 741 &from); |
| 648 if (source == NULL) { | 742 if (source == NULL) { |
| 649 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
loatValue) | 743 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.F
loatValue) |
| 650 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 744 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 651 } else { | 745 } else { |
| 652 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FloatValue) | 746 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.FloatValue) |
| 653 MergeFrom(*source); | 747 MergeFrom(*source); |
| 654 } | 748 } |
| 655 } | 749 } |
| 656 | 750 |
| 657 void FloatValue::MergeFrom(const FloatValue& from) { | 751 void FloatValue::MergeFrom(const FloatValue& from) { |
| 658 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Floa
tValue) | 752 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Floa
tValue) |
| 659 GOOGLE_DCHECK_NE(&from, this); | 753 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 660 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 661 if (from.value() != 0) { | 754 if (from.value() != 0) { |
| 662 set_value(from.value()); | 755 set_value(from.value()); |
| 663 } | 756 } |
| 664 } | 757 } |
| 665 | 758 |
| 666 void FloatValue::CopyFrom(const ::google::protobuf::Message& from) { | 759 void FloatValue::CopyFrom(const ::google::protobuf::Message& from) { |
| 667 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FloatVal
ue) | 760 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.FloatVal
ue) |
| 668 if (&from == this) return; | 761 if (&from == this) return; |
| 669 Clear(); | 762 Clear(); |
| 670 MergeFrom(from); | 763 MergeFrom(from); |
| 671 } | 764 } |
| 672 | 765 |
| 673 void FloatValue::CopyFrom(const FloatValue& from) { | 766 void FloatValue::CopyFrom(const FloatValue& from) { |
| 674 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Float
Value) | 767 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Float
Value) |
| 675 if (&from == this) return; | 768 if (&from == this) return; |
| 676 Clear(); | 769 Clear(); |
| 677 MergeFrom(from); | 770 MergeFrom(from); |
| 678 } | 771 } |
| 679 | 772 |
| 680 bool FloatValue::IsInitialized() const { | 773 bool FloatValue::IsInitialized() const { |
| 774 |
| 681 return true; | 775 return true; |
| 682 } | 776 } |
| 683 | 777 |
| 684 void FloatValue::Swap(FloatValue* other) { | 778 void FloatValue::Swap(FloatValue* other) { |
| 685 if (other == this) return; | 779 if (other == this) return; |
| 686 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 780 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 687 InternalSwap(other); | 781 InternalSwap(other); |
| 688 } else { | 782 } else { |
| 689 FloatValue* temp = New(GetArenaNoVirtual()); | 783 FloatValue temp; |
| 690 temp->MergeFrom(*other); | 784 temp.MergeFrom(*this); |
| 691 other->CopyFrom(*this); | 785 CopyFrom(*other); |
| 692 InternalSwap(temp); | 786 other->CopyFrom(temp); |
| 693 if (GetArenaNoVirtual() == NULL) { | |
| 694 delete temp; | |
| 695 } | |
| 696 } | 787 } |
| 697 } | 788 } |
| 698 void FloatValue::UnsafeArenaSwap(FloatValue* other) { | 789 void FloatValue::UnsafeArenaSwap(FloatValue* other) { |
| 699 if (other == this) return; | 790 if (other == this) return; |
| 700 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 791 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 701 InternalSwap(other); | 792 InternalSwap(other); |
| 702 } | 793 } |
| 703 void FloatValue::InternalSwap(FloatValue* other) { | 794 void FloatValue::InternalSwap(FloatValue* other) { |
| 704 std::swap(value_, other->value_); | 795 std::swap(value_, other->value_); |
| 796 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 705 std::swap(_cached_size_, other->_cached_size_); | 797 std::swap(_cached_size_, other->_cached_size_); |
| 706 } | 798 } |
| 707 | 799 |
| 708 ::google::protobuf::Metadata FloatValue::GetMetadata() const { | 800 ::google::protobuf::Metadata FloatValue::GetMetadata() const { |
| 709 protobuf_AssignDescriptorsOnce(); | 801 protobuf_AssignDescriptorsOnce(); |
| 710 return file_level_metadata[1]; | 802 ::google::protobuf::Metadata metadata; |
| 803 metadata.descriptor = FloatValue_descriptor_; |
| 804 metadata.reflection = FloatValue_reflection_; |
| 805 return metadata; |
| 711 } | 806 } |
| 712 | 807 |
| 713 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 808 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 714 // FloatValue | 809 // FloatValue |
| 715 | 810 |
| 716 // float value = 1; | 811 // optional float value = 1; |
| 717 void FloatValue::clear_value() { | 812 void FloatValue::clear_value() { |
| 718 value_ = 0; | 813 value_ = 0; |
| 719 } | 814 } |
| 720 float FloatValue::value() const { | 815 float FloatValue::value() const { |
| 721 // @@protoc_insertion_point(field_get:google.protobuf.FloatValue.value) | 816 // @@protoc_insertion_point(field_get:google.protobuf.FloatValue.value) |
| 722 return value_; | 817 return value_; |
| 723 } | 818 } |
| 724 void FloatValue::set_value(float value) { | 819 void FloatValue::set_value(float value) { |
| 725 | 820 |
| 726 value_ = value; | 821 value_ = value; |
| 727 // @@protoc_insertion_point(field_set:google.protobuf.FloatValue.value) | 822 // @@protoc_insertion_point(field_set:google.protobuf.FloatValue.value) |
| 728 } | 823 } |
| 729 | 824 |
| 730 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 825 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 731 | 826 |
| 732 // =================================================================== | 827 // =================================================================== |
| 733 | 828 |
| 734 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 829 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 735 const int Int64Value::kValueFieldNumber; | 830 const int Int64Value::kValueFieldNumber; |
| 736 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 831 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 737 | 832 |
| 738 Int64Value::Int64Value() | 833 Int64Value::Int64Value() |
| 739 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 834 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 740 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 741 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 742 } | |
| 743 SharedCtor(); | 835 SharedCtor(); |
| 744 // @@protoc_insertion_point(constructor:google.protobuf.Int64Value) | 836 // @@protoc_insertion_point(constructor:google.protobuf.Int64Value) |
| 745 } | 837 } |
| 838 |
| 746 Int64Value::Int64Value(::google::protobuf::Arena* arena) | 839 Int64Value::Int64Value(::google::protobuf::Arena* arena) |
| 747 : ::google::protobuf::Message(), | 840 : ::google::protobuf::Message(), |
| 748 _internal_metadata_(arena) { | 841 _internal_metadata_(arena) { |
| 749 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 750 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 751 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 752 SharedCtor(); | 842 SharedCtor(); |
| 753 RegisterArenaDtor(arena); | 843 RegisterArenaDtor(arena); |
| 754 // @@protoc_insertion_point(arena_constructor:google.protobuf.Int64Value) | 844 // @@protoc_insertion_point(arena_constructor:google.protobuf.Int64Value) |
| 755 } | 845 } |
| 846 |
| 847 void Int64Value::InitAsDefaultInstance() { |
| 848 _is_default_instance_ = true; |
| 849 } |
| 850 |
| 756 Int64Value::Int64Value(const Int64Value& from) | 851 Int64Value::Int64Value(const Int64Value& from) |
| 757 : ::google::protobuf::Message(), | 852 : ::google::protobuf::Message(), |
| 758 _internal_metadata_(NULL), | 853 _internal_metadata_(NULL) { |
| 759 _cached_size_(0) { | 854 SharedCtor(); |
| 760 _internal_metadata_.MergeFrom(from._internal_metadata_); | 855 MergeFrom(from); |
| 761 value_ = from.value_; | |
| 762 // @@protoc_insertion_point(copy_constructor:google.protobuf.Int64Value) | 856 // @@protoc_insertion_point(copy_constructor:google.protobuf.Int64Value) |
| 763 } | 857 } |
| 764 | 858 |
| 765 void Int64Value::SharedCtor() { | 859 void Int64Value::SharedCtor() { |
| 860 _is_default_instance_ = false; |
| 861 _cached_size_ = 0; |
| 766 value_ = GOOGLE_LONGLONG(0); | 862 value_ = GOOGLE_LONGLONG(0); |
| 767 _cached_size_ = 0; | |
| 768 } | 863 } |
| 769 | 864 |
| 770 Int64Value::~Int64Value() { | 865 Int64Value::~Int64Value() { |
| 771 // @@protoc_insertion_point(destructor:google.protobuf.Int64Value) | 866 // @@protoc_insertion_point(destructor:google.protobuf.Int64Value) |
| 772 SharedDtor(); | 867 SharedDtor(); |
| 773 } | 868 } |
| 774 | 869 |
| 775 void Int64Value::SharedDtor() { | 870 void Int64Value::SharedDtor() { |
| 776 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 871 if (GetArenaNoVirtual() != NULL) { |
| 777 if (arena != NULL) { | |
| 778 return; | 872 return; |
| 779 } | 873 } |
| 780 | 874 |
| 875 if (this != default_instance_) { |
| 876 } |
| 781 } | 877 } |
| 782 | 878 |
| 783 void Int64Value::ArenaDtor(void* object) { | 879 void Int64Value::ArenaDtor(void* object) { |
| 784 Int64Value* _this = reinterpret_cast< Int64Value* >(object); | 880 Int64Value* _this = reinterpret_cast< Int64Value* >(object); |
| 785 (void)_this; | 881 (void)_this; |
| 786 } | 882 } |
| 787 void Int64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 883 void Int64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 788 } | 884 } |
| 789 void Int64Value::SetCachedSize(int size) const { | 885 void Int64Value::SetCachedSize(int size) const { |
| 790 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 886 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 791 _cached_size_ = size; | 887 _cached_size_ = size; |
| 792 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 888 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 793 } | 889 } |
| 794 const ::google::protobuf::Descriptor* Int64Value::descriptor() { | 890 const ::google::protobuf::Descriptor* Int64Value::descriptor() { |
| 795 protobuf_AssignDescriptorsOnce(); | 891 protobuf_AssignDescriptorsOnce(); |
| 796 return file_level_metadata[2].descriptor; | 892 return Int64Value_descriptor_; |
| 797 } | 893 } |
| 798 | 894 |
| 799 const Int64Value& Int64Value::default_instance() { | 895 const Int64Value& Int64Value::default_instance() { |
| 800 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 896 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 801 return *internal_default_instance(); | 897 return *default_instance_; |
| 802 } | 898 } |
| 803 | 899 |
| 900 Int64Value* Int64Value::default_instance_ = NULL; |
| 901 |
| 804 Int64Value* Int64Value::New(::google::protobuf::Arena* arena) const { | 902 Int64Value* Int64Value::New(::google::protobuf::Arena* arena) const { |
| 805 return ::google::protobuf::Arena::CreateMessage<Int64Value>(arena); | 903 return ::google::protobuf::Arena::CreateMessage<Int64Value>(arena); |
| 806 } | 904 } |
| 807 | 905 |
| 808 void Int64Value::Clear() { | 906 void Int64Value::Clear() { |
| 809 // @@protoc_insertion_point(message_clear_start:google.protobuf.Int64Value) | 907 // @@protoc_insertion_point(message_clear_start:google.protobuf.Int64Value) |
| 810 value_ = GOOGLE_LONGLONG(0); | 908 value_ = GOOGLE_LONGLONG(0); |
| 811 } | 909 } |
| 812 | 910 |
| 813 bool Int64Value::MergePartialFromCodedStream( | 911 bool Int64Value::MergePartialFromCodedStream( |
| 814 ::google::protobuf::io::CodedInputStream* input) { | 912 ::google::protobuf::io::CodedInputStream* input) { |
| 815 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 913 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 816 ::google::protobuf::uint32 tag; | 914 ::google::protobuf::uint32 tag; |
| 817 // @@protoc_insertion_point(parse_start:google.protobuf.Int64Value) | 915 // @@protoc_insertion_point(parse_start:google.protobuf.Int64Value) |
| 818 for (;;) { | 916 for (;;) { |
| 819 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 917 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 820 tag = p.first; | 918 tag = p.first; |
| 821 if (!p.second) goto handle_unusual; | 919 if (!p.second) goto handle_unusual; |
| 822 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 920 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 823 // int64 value = 1; | 921 // optional int64 value = 1; |
| 824 case 1: { | 922 case 1: { |
| 825 if (tag == 8u) { | 923 if (tag == 8) { |
| 826 | |
| 827 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 924 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 828 ::google::protobuf::int64, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT64>( | 925 ::google::protobuf::int64, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT64>( |
| 829 input, &value_))); | 926 input, &value_))); |
| 927 |
| 830 } else { | 928 } else { |
| 831 goto handle_unusual; | 929 goto handle_unusual; |
| 832 } | 930 } |
| 931 if (input->ExpectAtEnd()) goto success; |
| 833 break; | 932 break; |
| 834 } | 933 } |
| 835 | 934 |
| 836 default: { | 935 default: { |
| 837 handle_unusual: | 936 handle_unusual: |
| 838 if (tag == 0 || | 937 if (tag == 0 || |
| 839 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 938 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 840 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 939 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 841 goto success; | 940 goto success; |
| 842 } | 941 } |
| 843 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 942 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 844 break; | 943 break; |
| 845 } | 944 } |
| 846 } | 945 } |
| 847 } | 946 } |
| 848 success: | 947 success: |
| 849 // @@protoc_insertion_point(parse_success:google.protobuf.Int64Value) | 948 // @@protoc_insertion_point(parse_success:google.protobuf.Int64Value) |
| 850 return true; | 949 return true; |
| 851 failure: | 950 failure: |
| 852 // @@protoc_insertion_point(parse_failure:google.protobuf.Int64Value) | 951 // @@protoc_insertion_point(parse_failure:google.protobuf.Int64Value) |
| 853 return false; | 952 return false; |
| 854 #undef DO_ | 953 #undef DO_ |
| 855 } | 954 } |
| 856 | 955 |
| 857 void Int64Value::SerializeWithCachedSizes( | 956 void Int64Value::SerializeWithCachedSizes( |
| 858 ::google::protobuf::io::CodedOutputStream* output) const { | 957 ::google::protobuf::io::CodedOutputStream* output) const { |
| 859 // @@protoc_insertion_point(serialize_start:google.protobuf.Int64Value) | 958 // @@protoc_insertion_point(serialize_start:google.protobuf.Int64Value) |
| 860 // int64 value = 1; | 959 // optional int64 value = 1; |
| 861 if (this->value() != 0) { | 960 if (this->value() != 0) { |
| 862 ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->value(), o
utput); | 961 ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->value(), o
utput); |
| 863 } | 962 } |
| 864 | 963 |
| 865 // @@protoc_insertion_point(serialize_end:google.protobuf.Int64Value) | 964 // @@protoc_insertion_point(serialize_end:google.protobuf.Int64Value) |
| 866 } | 965 } |
| 867 | 966 |
| 868 ::google::protobuf::uint8* Int64Value::InternalSerializeWithCachedSizesToArray( | 967 ::google::protobuf::uint8* Int64Value::SerializeWithCachedSizesToArray( |
| 869 bool deterministic, ::google::protobuf::uint8* target) const { | 968 ::google::protobuf::uint8* target) const { |
| 870 (void)deterministic; // Unused | |
| 871 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int64Valu
e) | 969 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int64Valu
e) |
| 872 // int64 value = 1; | 970 // optional int64 value = 1; |
| 873 if (this->value() != 0) { | 971 if (this->value() != 0) { |
| 874 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1,
this->value(), target); | 972 target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1,
this->value(), target); |
| 875 } | 973 } |
| 876 | 974 |
| 877 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int64Value) | 975 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int64Value) |
| 878 return target; | 976 return target; |
| 879 } | 977 } |
| 880 | 978 |
| 881 size_t Int64Value::ByteSizeLong() const { | 979 int Int64Value::ByteSize() const { |
| 882 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int64Value) | 980 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int64Value) |
| 883 size_t total_size = 0; | 981 int total_size = 0; |
| 884 | 982 |
| 885 // int64 value = 1; | 983 // optional int64 value = 1; |
| 886 if (this->value() != 0) { | 984 if (this->value() != 0) { |
| 887 total_size += 1 + | 985 total_size += 1 + |
| 888 ::google::protobuf::internal::WireFormatLite::Int64Size( | 986 ::google::protobuf::internal::WireFormatLite::Int64Size( |
| 889 this->value()); | 987 this->value()); |
| 890 } | 988 } |
| 891 | 989 |
| 892 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 893 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 990 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 894 _cached_size_ = cached_size; | 991 _cached_size_ = total_size; |
| 895 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 992 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 896 return total_size; | 993 return total_size; |
| 897 } | 994 } |
| 898 | 995 |
| 899 void Int64Value::MergeFrom(const ::google::protobuf::Message& from) { | 996 void Int64Value::MergeFrom(const ::google::protobuf::Message& from) { |
| 900 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Int64Va
lue) | 997 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Int64Va
lue) |
| 901 GOOGLE_DCHECK_NE(&from, this); | 998 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 902 const Int64Value* source = | 999 const Int64Value* source = |
| 903 ::google::protobuf::internal::DynamicCastToGenerated<const Int64Value>( | 1000 ::google::protobuf::internal::DynamicCastToGenerated<const Int64Value>( |
| 904 &from); | 1001 &from); |
| 905 if (source == NULL) { | 1002 if (source == NULL) { |
| 906 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.I
nt64Value) | 1003 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.I
nt64Value) |
| 907 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1004 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 908 } else { | 1005 } else { |
| 909 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Int64Value) | 1006 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Int64Value) |
| 910 MergeFrom(*source); | 1007 MergeFrom(*source); |
| 911 } | 1008 } |
| 912 } | 1009 } |
| 913 | 1010 |
| 914 void Int64Value::MergeFrom(const Int64Value& from) { | 1011 void Int64Value::MergeFrom(const Int64Value& from) { |
| 915 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int6
4Value) | 1012 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int6
4Value) |
| 916 GOOGLE_DCHECK_NE(&from, this); | 1013 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 917 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 918 if (from.value() != 0) { | 1014 if (from.value() != 0) { |
| 919 set_value(from.value()); | 1015 set_value(from.value()); |
| 920 } | 1016 } |
| 921 } | 1017 } |
| 922 | 1018 |
| 923 void Int64Value::CopyFrom(const ::google::protobuf::Message& from) { | 1019 void Int64Value::CopyFrom(const ::google::protobuf::Message& from) { |
| 924 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Int64Val
ue) | 1020 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Int64Val
ue) |
| 925 if (&from == this) return; | 1021 if (&from == this) return; |
| 926 Clear(); | 1022 Clear(); |
| 927 MergeFrom(from); | 1023 MergeFrom(from); |
| 928 } | 1024 } |
| 929 | 1025 |
| 930 void Int64Value::CopyFrom(const Int64Value& from) { | 1026 void Int64Value::CopyFrom(const Int64Value& from) { |
| 931 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int64
Value) | 1027 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int64
Value) |
| 932 if (&from == this) return; | 1028 if (&from == this) return; |
| 933 Clear(); | 1029 Clear(); |
| 934 MergeFrom(from); | 1030 MergeFrom(from); |
| 935 } | 1031 } |
| 936 | 1032 |
| 937 bool Int64Value::IsInitialized() const { | 1033 bool Int64Value::IsInitialized() const { |
| 1034 |
| 938 return true; | 1035 return true; |
| 939 } | 1036 } |
| 940 | 1037 |
| 941 void Int64Value::Swap(Int64Value* other) { | 1038 void Int64Value::Swap(Int64Value* other) { |
| 942 if (other == this) return; | 1039 if (other == this) return; |
| 943 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 1040 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 944 InternalSwap(other); | 1041 InternalSwap(other); |
| 945 } else { | 1042 } else { |
| 946 Int64Value* temp = New(GetArenaNoVirtual()); | 1043 Int64Value temp; |
| 947 temp->MergeFrom(*other); | 1044 temp.MergeFrom(*this); |
| 948 other->CopyFrom(*this); | 1045 CopyFrom(*other); |
| 949 InternalSwap(temp); | 1046 other->CopyFrom(temp); |
| 950 if (GetArenaNoVirtual() == NULL) { | |
| 951 delete temp; | |
| 952 } | |
| 953 } | 1047 } |
| 954 } | 1048 } |
| 955 void Int64Value::UnsafeArenaSwap(Int64Value* other) { | 1049 void Int64Value::UnsafeArenaSwap(Int64Value* other) { |
| 956 if (other == this) return; | 1050 if (other == this) return; |
| 957 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 1051 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 958 InternalSwap(other); | 1052 InternalSwap(other); |
| 959 } | 1053 } |
| 960 void Int64Value::InternalSwap(Int64Value* other) { | 1054 void Int64Value::InternalSwap(Int64Value* other) { |
| 961 std::swap(value_, other->value_); | 1055 std::swap(value_, other->value_); |
| 1056 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 962 std::swap(_cached_size_, other->_cached_size_); | 1057 std::swap(_cached_size_, other->_cached_size_); |
| 963 } | 1058 } |
| 964 | 1059 |
| 965 ::google::protobuf::Metadata Int64Value::GetMetadata() const { | 1060 ::google::protobuf::Metadata Int64Value::GetMetadata() const { |
| 966 protobuf_AssignDescriptorsOnce(); | 1061 protobuf_AssignDescriptorsOnce(); |
| 967 return file_level_metadata[2]; | 1062 ::google::protobuf::Metadata metadata; |
| 1063 metadata.descriptor = Int64Value_descriptor_; |
| 1064 metadata.reflection = Int64Value_reflection_; |
| 1065 return metadata; |
| 968 } | 1066 } |
| 969 | 1067 |
| 970 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 1068 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 971 // Int64Value | 1069 // Int64Value |
| 972 | 1070 |
| 973 // int64 value = 1; | 1071 // optional int64 value = 1; |
| 974 void Int64Value::clear_value() { | 1072 void Int64Value::clear_value() { |
| 975 value_ = GOOGLE_LONGLONG(0); | 1073 value_ = GOOGLE_LONGLONG(0); |
| 976 } | 1074 } |
| 977 ::google::protobuf::int64 Int64Value::value() const { | 1075 ::google::protobuf::int64 Int64Value::value() const { |
| 978 // @@protoc_insertion_point(field_get:google.protobuf.Int64Value.value) | 1076 // @@protoc_insertion_point(field_get:google.protobuf.Int64Value.value) |
| 979 return value_; | 1077 return value_; |
| 980 } | 1078 } |
| 981 void Int64Value::set_value(::google::protobuf::int64 value) { | 1079 void Int64Value::set_value(::google::protobuf::int64 value) { |
| 982 | 1080 |
| 983 value_ = value; | 1081 value_ = value; |
| 984 // @@protoc_insertion_point(field_set:google.protobuf.Int64Value.value) | 1082 // @@protoc_insertion_point(field_set:google.protobuf.Int64Value.value) |
| 985 } | 1083 } |
| 986 | 1084 |
| 987 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 1085 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 988 | 1086 |
| 989 // =================================================================== | 1087 // =================================================================== |
| 990 | 1088 |
| 991 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 1089 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 992 const int UInt64Value::kValueFieldNumber; | 1090 const int UInt64Value::kValueFieldNumber; |
| 993 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 1091 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 994 | 1092 |
| 995 UInt64Value::UInt64Value() | 1093 UInt64Value::UInt64Value() |
| 996 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 1094 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 997 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 998 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 999 } | |
| 1000 SharedCtor(); | 1095 SharedCtor(); |
| 1001 // @@protoc_insertion_point(constructor:google.protobuf.UInt64Value) | 1096 // @@protoc_insertion_point(constructor:google.protobuf.UInt64Value) |
| 1002 } | 1097 } |
| 1098 |
| 1003 UInt64Value::UInt64Value(::google::protobuf::Arena* arena) | 1099 UInt64Value::UInt64Value(::google::protobuf::Arena* arena) |
| 1004 : ::google::protobuf::Message(), | 1100 : ::google::protobuf::Message(), |
| 1005 _internal_metadata_(arena) { | 1101 _internal_metadata_(arena) { |
| 1006 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1007 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 1008 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1009 SharedCtor(); | 1102 SharedCtor(); |
| 1010 RegisterArenaDtor(arena); | 1103 RegisterArenaDtor(arena); |
| 1011 // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt64Value) | 1104 // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt64Value) |
| 1012 } | 1105 } |
| 1106 |
| 1107 void UInt64Value::InitAsDefaultInstance() { |
| 1108 _is_default_instance_ = true; |
| 1109 } |
| 1110 |
| 1013 UInt64Value::UInt64Value(const UInt64Value& from) | 1111 UInt64Value::UInt64Value(const UInt64Value& from) |
| 1014 : ::google::protobuf::Message(), | 1112 : ::google::protobuf::Message(), |
| 1015 _internal_metadata_(NULL), | 1113 _internal_metadata_(NULL) { |
| 1016 _cached_size_(0) { | 1114 SharedCtor(); |
| 1017 _internal_metadata_.MergeFrom(from._internal_metadata_); | 1115 MergeFrom(from); |
| 1018 value_ = from.value_; | |
| 1019 // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt64Value) | 1116 // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt64Value) |
| 1020 } | 1117 } |
| 1021 | 1118 |
| 1022 void UInt64Value::SharedCtor() { | 1119 void UInt64Value::SharedCtor() { |
| 1120 _is_default_instance_ = false; |
| 1121 _cached_size_ = 0; |
| 1023 value_ = GOOGLE_ULONGLONG(0); | 1122 value_ = GOOGLE_ULONGLONG(0); |
| 1024 _cached_size_ = 0; | |
| 1025 } | 1123 } |
| 1026 | 1124 |
| 1027 UInt64Value::~UInt64Value() { | 1125 UInt64Value::~UInt64Value() { |
| 1028 // @@protoc_insertion_point(destructor:google.protobuf.UInt64Value) | 1126 // @@protoc_insertion_point(destructor:google.protobuf.UInt64Value) |
| 1029 SharedDtor(); | 1127 SharedDtor(); |
| 1030 } | 1128 } |
| 1031 | 1129 |
| 1032 void UInt64Value::SharedDtor() { | 1130 void UInt64Value::SharedDtor() { |
| 1033 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 1131 if (GetArenaNoVirtual() != NULL) { |
| 1034 if (arena != NULL) { | |
| 1035 return; | 1132 return; |
| 1036 } | 1133 } |
| 1037 | 1134 |
| 1135 if (this != default_instance_) { |
| 1136 } |
| 1038 } | 1137 } |
| 1039 | 1138 |
| 1040 void UInt64Value::ArenaDtor(void* object) { | 1139 void UInt64Value::ArenaDtor(void* object) { |
| 1041 UInt64Value* _this = reinterpret_cast< UInt64Value* >(object); | 1140 UInt64Value* _this = reinterpret_cast< UInt64Value* >(object); |
| 1042 (void)_this; | 1141 (void)_this; |
| 1043 } | 1142 } |
| 1044 void UInt64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 1143 void UInt64Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 1045 } | 1144 } |
| 1046 void UInt64Value::SetCachedSize(int size) const { | 1145 void UInt64Value::SetCachedSize(int size) const { |
| 1047 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1146 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1048 _cached_size_ = size; | 1147 _cached_size_ = size; |
| 1049 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1148 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1050 } | 1149 } |
| 1051 const ::google::protobuf::Descriptor* UInt64Value::descriptor() { | 1150 const ::google::protobuf::Descriptor* UInt64Value::descriptor() { |
| 1052 protobuf_AssignDescriptorsOnce(); | 1151 protobuf_AssignDescriptorsOnce(); |
| 1053 return file_level_metadata[3].descriptor; | 1152 return UInt64Value_descriptor_; |
| 1054 } | 1153 } |
| 1055 | 1154 |
| 1056 const UInt64Value& UInt64Value::default_instance() { | 1155 const UInt64Value& UInt64Value::default_instance() { |
| 1057 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 1156 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 1058 return *internal_default_instance(); | 1157 return *default_instance_; |
| 1059 } | 1158 } |
| 1060 | 1159 |
| 1160 UInt64Value* UInt64Value::default_instance_ = NULL; |
| 1161 |
| 1061 UInt64Value* UInt64Value::New(::google::protobuf::Arena* arena) const { | 1162 UInt64Value* UInt64Value::New(::google::protobuf::Arena* arena) const { |
| 1062 return ::google::protobuf::Arena::CreateMessage<UInt64Value>(arena); | 1163 return ::google::protobuf::Arena::CreateMessage<UInt64Value>(arena); |
| 1063 } | 1164 } |
| 1064 | 1165 |
| 1065 void UInt64Value::Clear() { | 1166 void UInt64Value::Clear() { |
| 1066 // @@protoc_insertion_point(message_clear_start:google.protobuf.UInt64Value) | 1167 // @@protoc_insertion_point(message_clear_start:google.protobuf.UInt64Value) |
| 1067 value_ = GOOGLE_ULONGLONG(0); | 1168 value_ = GOOGLE_ULONGLONG(0); |
| 1068 } | 1169 } |
| 1069 | 1170 |
| 1070 bool UInt64Value::MergePartialFromCodedStream( | 1171 bool UInt64Value::MergePartialFromCodedStream( |
| 1071 ::google::protobuf::io::CodedInputStream* input) { | 1172 ::google::protobuf::io::CodedInputStream* input) { |
| 1072 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 1173 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1073 ::google::protobuf::uint32 tag; | 1174 ::google::protobuf::uint32 tag; |
| 1074 // @@protoc_insertion_point(parse_start:google.protobuf.UInt64Value) | 1175 // @@protoc_insertion_point(parse_start:google.protobuf.UInt64Value) |
| 1075 for (;;) { | 1176 for (;;) { |
| 1076 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 1177 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 1077 tag = p.first; | 1178 tag = p.first; |
| 1078 if (!p.second) goto handle_unusual; | 1179 if (!p.second) goto handle_unusual; |
| 1079 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1180 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 1080 // uint64 value = 1; | 1181 // optional uint64 value = 1; |
| 1081 case 1: { | 1182 case 1: { |
| 1082 if (tag == 8u) { | 1183 if (tag == 8) { |
| 1083 | |
| 1084 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 1184 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1085 ::google::protobuf::uint64, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT64>( | 1185 ::google::protobuf::uint64, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT64>( |
| 1086 input, &value_))); | 1186 input, &value_))); |
| 1187 |
| 1087 } else { | 1188 } else { |
| 1088 goto handle_unusual; | 1189 goto handle_unusual; |
| 1089 } | 1190 } |
| 1191 if (input->ExpectAtEnd()) goto success; |
| 1090 break; | 1192 break; |
| 1091 } | 1193 } |
| 1092 | 1194 |
| 1093 default: { | 1195 default: { |
| 1094 handle_unusual: | 1196 handle_unusual: |
| 1095 if (tag == 0 || | 1197 if (tag == 0 || |
| 1096 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1198 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1097 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1199 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1098 goto success; | 1200 goto success; |
| 1099 } | 1201 } |
| 1100 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 1202 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 1101 break; | 1203 break; |
| 1102 } | 1204 } |
| 1103 } | 1205 } |
| 1104 } | 1206 } |
| 1105 success: | 1207 success: |
| 1106 // @@protoc_insertion_point(parse_success:google.protobuf.UInt64Value) | 1208 // @@protoc_insertion_point(parse_success:google.protobuf.UInt64Value) |
| 1107 return true; | 1209 return true; |
| 1108 failure: | 1210 failure: |
| 1109 // @@protoc_insertion_point(parse_failure:google.protobuf.UInt64Value) | 1211 // @@protoc_insertion_point(parse_failure:google.protobuf.UInt64Value) |
| 1110 return false; | 1212 return false; |
| 1111 #undef DO_ | 1213 #undef DO_ |
| 1112 } | 1214 } |
| 1113 | 1215 |
| 1114 void UInt64Value::SerializeWithCachedSizes( | 1216 void UInt64Value::SerializeWithCachedSizes( |
| 1115 ::google::protobuf::io::CodedOutputStream* output) const { | 1217 ::google::protobuf::io::CodedOutputStream* output) const { |
| 1116 // @@protoc_insertion_point(serialize_start:google.protobuf.UInt64Value) | 1218 // @@protoc_insertion_point(serialize_start:google.protobuf.UInt64Value) |
| 1117 // uint64 value = 1; | 1219 // optional uint64 value = 1; |
| 1118 if (this->value() != 0) { | 1220 if (this->value() != 0) { |
| 1119 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->value(),
output); | 1221 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->value(),
output); |
| 1120 } | 1222 } |
| 1121 | 1223 |
| 1122 // @@protoc_insertion_point(serialize_end:google.protobuf.UInt64Value) | 1224 // @@protoc_insertion_point(serialize_end:google.protobuf.UInt64Value) |
| 1123 } | 1225 } |
| 1124 | 1226 |
| 1125 ::google::protobuf::uint8* UInt64Value::InternalSerializeWithCachedSizesToArray( | 1227 ::google::protobuf::uint8* UInt64Value::SerializeWithCachedSizesToArray( |
| 1126 bool deterministic, ::google::protobuf::uint8* target) const { | 1228 ::google::protobuf::uint8* target) const { |
| 1127 (void)deterministic; // Unused | |
| 1128 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt64Val
ue) | 1229 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt64Val
ue) |
| 1129 // uint64 value = 1; | 1230 // optional uint64 value = 1; |
| 1130 if (this->value() != 0) { | 1231 if (this->value() != 0) { |
| 1131 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1,
this->value(), target); | 1232 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1,
this->value(), target); |
| 1132 } | 1233 } |
| 1133 | 1234 |
| 1134 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt64Value
) | 1235 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt64Value
) |
| 1135 return target; | 1236 return target; |
| 1136 } | 1237 } |
| 1137 | 1238 |
| 1138 size_t UInt64Value::ByteSizeLong() const { | 1239 int UInt64Value::ByteSize() const { |
| 1139 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt64Value) | 1240 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt64Value) |
| 1140 size_t total_size = 0; | 1241 int total_size = 0; |
| 1141 | 1242 |
| 1142 // uint64 value = 1; | 1243 // optional uint64 value = 1; |
| 1143 if (this->value() != 0) { | 1244 if (this->value() != 0) { |
| 1144 total_size += 1 + | 1245 total_size += 1 + |
| 1145 ::google::protobuf::internal::WireFormatLite::UInt64Size( | 1246 ::google::protobuf::internal::WireFormatLite::UInt64Size( |
| 1146 this->value()); | 1247 this->value()); |
| 1147 } | 1248 } |
| 1148 | 1249 |
| 1149 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 1150 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1250 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1151 _cached_size_ = cached_size; | 1251 _cached_size_ = total_size; |
| 1152 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1252 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1153 return total_size; | 1253 return total_size; |
| 1154 } | 1254 } |
| 1155 | 1255 |
| 1156 void UInt64Value::MergeFrom(const ::google::protobuf::Message& from) { | 1256 void UInt64Value::MergeFrom(const ::google::protobuf::Message& from) { |
| 1157 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UInt64V
alue) | 1257 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UInt64V
alue) |
| 1158 GOOGLE_DCHECK_NE(&from, this); | 1258 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1159 const UInt64Value* source = | 1259 const UInt64Value* source = |
| 1160 ::google::protobuf::internal::DynamicCastToGenerated<const UInt64Value>( | 1260 ::google::protobuf::internal::DynamicCastToGenerated<const UInt64Value>( |
| 1161 &from); | 1261 &from); |
| 1162 if (source == NULL) { | 1262 if (source == NULL) { |
| 1163 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U
Int64Value) | 1263 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U
Int64Value) |
| 1164 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1264 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1165 } else { | 1265 } else { |
| 1166 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.UInt64Value) | 1266 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.UInt64Value) |
| 1167 MergeFrom(*source); | 1267 MergeFrom(*source); |
| 1168 } | 1268 } |
| 1169 } | 1269 } |
| 1170 | 1270 |
| 1171 void UInt64Value::MergeFrom(const UInt64Value& from) { | 1271 void UInt64Value::MergeFrom(const UInt64Value& from) { |
| 1172 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt
64Value) | 1272 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt
64Value) |
| 1173 GOOGLE_DCHECK_NE(&from, this); | 1273 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1174 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1175 if (from.value() != 0) { | 1274 if (from.value() != 0) { |
| 1176 set_value(from.value()); | 1275 set_value(from.value()); |
| 1177 } | 1276 } |
| 1178 } | 1277 } |
| 1179 | 1278 |
| 1180 void UInt64Value::CopyFrom(const ::google::protobuf::Message& from) { | 1279 void UInt64Value::CopyFrom(const ::google::protobuf::Message& from) { |
| 1181 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UInt64Va
lue) | 1280 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UInt64Va
lue) |
| 1182 if (&from == this) return; | 1281 if (&from == this) return; |
| 1183 Clear(); | 1282 Clear(); |
| 1184 MergeFrom(from); | 1283 MergeFrom(from); |
| 1185 } | 1284 } |
| 1186 | 1285 |
| 1187 void UInt64Value::CopyFrom(const UInt64Value& from) { | 1286 void UInt64Value::CopyFrom(const UInt64Value& from) { |
| 1188 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt6
4Value) | 1287 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt6
4Value) |
| 1189 if (&from == this) return; | 1288 if (&from == this) return; |
| 1190 Clear(); | 1289 Clear(); |
| 1191 MergeFrom(from); | 1290 MergeFrom(from); |
| 1192 } | 1291 } |
| 1193 | 1292 |
| 1194 bool UInt64Value::IsInitialized() const { | 1293 bool UInt64Value::IsInitialized() const { |
| 1294 |
| 1195 return true; | 1295 return true; |
| 1196 } | 1296 } |
| 1197 | 1297 |
| 1198 void UInt64Value::Swap(UInt64Value* other) { | 1298 void UInt64Value::Swap(UInt64Value* other) { |
| 1199 if (other == this) return; | 1299 if (other == this) return; |
| 1200 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 1300 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 1201 InternalSwap(other); | 1301 InternalSwap(other); |
| 1202 } else { | 1302 } else { |
| 1203 UInt64Value* temp = New(GetArenaNoVirtual()); | 1303 UInt64Value temp; |
| 1204 temp->MergeFrom(*other); | 1304 temp.MergeFrom(*this); |
| 1205 other->CopyFrom(*this); | 1305 CopyFrom(*other); |
| 1206 InternalSwap(temp); | 1306 other->CopyFrom(temp); |
| 1207 if (GetArenaNoVirtual() == NULL) { | |
| 1208 delete temp; | |
| 1209 } | |
| 1210 } | 1307 } |
| 1211 } | 1308 } |
| 1212 void UInt64Value::UnsafeArenaSwap(UInt64Value* other) { | 1309 void UInt64Value::UnsafeArenaSwap(UInt64Value* other) { |
| 1213 if (other == this) return; | 1310 if (other == this) return; |
| 1214 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 1311 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 1215 InternalSwap(other); | 1312 InternalSwap(other); |
| 1216 } | 1313 } |
| 1217 void UInt64Value::InternalSwap(UInt64Value* other) { | 1314 void UInt64Value::InternalSwap(UInt64Value* other) { |
| 1218 std::swap(value_, other->value_); | 1315 std::swap(value_, other->value_); |
| 1316 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1219 std::swap(_cached_size_, other->_cached_size_); | 1317 std::swap(_cached_size_, other->_cached_size_); |
| 1220 } | 1318 } |
| 1221 | 1319 |
| 1222 ::google::protobuf::Metadata UInt64Value::GetMetadata() const { | 1320 ::google::protobuf::Metadata UInt64Value::GetMetadata() const { |
| 1223 protobuf_AssignDescriptorsOnce(); | 1321 protobuf_AssignDescriptorsOnce(); |
| 1224 return file_level_metadata[3]; | 1322 ::google::protobuf::Metadata metadata; |
| 1323 metadata.descriptor = UInt64Value_descriptor_; |
| 1324 metadata.reflection = UInt64Value_reflection_; |
| 1325 return metadata; |
| 1225 } | 1326 } |
| 1226 | 1327 |
| 1227 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 1328 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1228 // UInt64Value | 1329 // UInt64Value |
| 1229 | 1330 |
| 1230 // uint64 value = 1; | 1331 // optional uint64 value = 1; |
| 1231 void UInt64Value::clear_value() { | 1332 void UInt64Value::clear_value() { |
| 1232 value_ = GOOGLE_ULONGLONG(0); | 1333 value_ = GOOGLE_ULONGLONG(0); |
| 1233 } | 1334 } |
| 1234 ::google::protobuf::uint64 UInt64Value::value() const { | 1335 ::google::protobuf::uint64 UInt64Value::value() const { |
| 1235 // @@protoc_insertion_point(field_get:google.protobuf.UInt64Value.value) | 1336 // @@protoc_insertion_point(field_get:google.protobuf.UInt64Value.value) |
| 1236 return value_; | 1337 return value_; |
| 1237 } | 1338 } |
| 1238 void UInt64Value::set_value(::google::protobuf::uint64 value) { | 1339 void UInt64Value::set_value(::google::protobuf::uint64 value) { |
| 1239 | 1340 |
| 1240 value_ = value; | 1341 value_ = value; |
| 1241 // @@protoc_insertion_point(field_set:google.protobuf.UInt64Value.value) | 1342 // @@protoc_insertion_point(field_set:google.protobuf.UInt64Value.value) |
| 1242 } | 1343 } |
| 1243 | 1344 |
| 1244 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 1345 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1245 | 1346 |
| 1246 // =================================================================== | 1347 // =================================================================== |
| 1247 | 1348 |
| 1248 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 1349 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1249 const int Int32Value::kValueFieldNumber; | 1350 const int Int32Value::kValueFieldNumber; |
| 1250 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 1351 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1251 | 1352 |
| 1252 Int32Value::Int32Value() | 1353 Int32Value::Int32Value() |
| 1253 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 1354 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1254 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 1255 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 1256 } | |
| 1257 SharedCtor(); | 1355 SharedCtor(); |
| 1258 // @@protoc_insertion_point(constructor:google.protobuf.Int32Value) | 1356 // @@protoc_insertion_point(constructor:google.protobuf.Int32Value) |
| 1259 } | 1357 } |
| 1358 |
| 1260 Int32Value::Int32Value(::google::protobuf::Arena* arena) | 1359 Int32Value::Int32Value(::google::protobuf::Arena* arena) |
| 1261 : ::google::protobuf::Message(), | 1360 : ::google::protobuf::Message(), |
| 1262 _internal_metadata_(arena) { | 1361 _internal_metadata_(arena) { |
| 1263 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1264 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 1265 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1266 SharedCtor(); | 1362 SharedCtor(); |
| 1267 RegisterArenaDtor(arena); | 1363 RegisterArenaDtor(arena); |
| 1268 // @@protoc_insertion_point(arena_constructor:google.protobuf.Int32Value) | 1364 // @@protoc_insertion_point(arena_constructor:google.protobuf.Int32Value) |
| 1269 } | 1365 } |
| 1366 |
| 1367 void Int32Value::InitAsDefaultInstance() { |
| 1368 _is_default_instance_ = true; |
| 1369 } |
| 1370 |
| 1270 Int32Value::Int32Value(const Int32Value& from) | 1371 Int32Value::Int32Value(const Int32Value& from) |
| 1271 : ::google::protobuf::Message(), | 1372 : ::google::protobuf::Message(), |
| 1272 _internal_metadata_(NULL), | 1373 _internal_metadata_(NULL) { |
| 1273 _cached_size_(0) { | 1374 SharedCtor(); |
| 1274 _internal_metadata_.MergeFrom(from._internal_metadata_); | 1375 MergeFrom(from); |
| 1275 value_ = from.value_; | |
| 1276 // @@protoc_insertion_point(copy_constructor:google.protobuf.Int32Value) | 1376 // @@protoc_insertion_point(copy_constructor:google.protobuf.Int32Value) |
| 1277 } | 1377 } |
| 1278 | 1378 |
| 1279 void Int32Value::SharedCtor() { | 1379 void Int32Value::SharedCtor() { |
| 1380 _is_default_instance_ = false; |
| 1381 _cached_size_ = 0; |
| 1280 value_ = 0; | 1382 value_ = 0; |
| 1281 _cached_size_ = 0; | |
| 1282 } | 1383 } |
| 1283 | 1384 |
| 1284 Int32Value::~Int32Value() { | 1385 Int32Value::~Int32Value() { |
| 1285 // @@protoc_insertion_point(destructor:google.protobuf.Int32Value) | 1386 // @@protoc_insertion_point(destructor:google.protobuf.Int32Value) |
| 1286 SharedDtor(); | 1387 SharedDtor(); |
| 1287 } | 1388 } |
| 1288 | 1389 |
| 1289 void Int32Value::SharedDtor() { | 1390 void Int32Value::SharedDtor() { |
| 1290 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 1391 if (GetArenaNoVirtual() != NULL) { |
| 1291 if (arena != NULL) { | |
| 1292 return; | 1392 return; |
| 1293 } | 1393 } |
| 1294 | 1394 |
| 1395 if (this != default_instance_) { |
| 1396 } |
| 1295 } | 1397 } |
| 1296 | 1398 |
| 1297 void Int32Value::ArenaDtor(void* object) { | 1399 void Int32Value::ArenaDtor(void* object) { |
| 1298 Int32Value* _this = reinterpret_cast< Int32Value* >(object); | 1400 Int32Value* _this = reinterpret_cast< Int32Value* >(object); |
| 1299 (void)_this; | 1401 (void)_this; |
| 1300 } | 1402 } |
| 1301 void Int32Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 1403 void Int32Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 1302 } | 1404 } |
| 1303 void Int32Value::SetCachedSize(int size) const { | 1405 void Int32Value::SetCachedSize(int size) const { |
| 1304 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1406 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1305 _cached_size_ = size; | 1407 _cached_size_ = size; |
| 1306 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1408 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1307 } | 1409 } |
| 1308 const ::google::protobuf::Descriptor* Int32Value::descriptor() { | 1410 const ::google::protobuf::Descriptor* Int32Value::descriptor() { |
| 1309 protobuf_AssignDescriptorsOnce(); | 1411 protobuf_AssignDescriptorsOnce(); |
| 1310 return file_level_metadata[4].descriptor; | 1412 return Int32Value_descriptor_; |
| 1311 } | 1413 } |
| 1312 | 1414 |
| 1313 const Int32Value& Int32Value::default_instance() { | 1415 const Int32Value& Int32Value::default_instance() { |
| 1314 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 1416 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 1315 return *internal_default_instance(); | 1417 return *default_instance_; |
| 1316 } | 1418 } |
| 1317 | 1419 |
| 1420 Int32Value* Int32Value::default_instance_ = NULL; |
| 1421 |
| 1318 Int32Value* Int32Value::New(::google::protobuf::Arena* arena) const { | 1422 Int32Value* Int32Value::New(::google::protobuf::Arena* arena) const { |
| 1319 return ::google::protobuf::Arena::CreateMessage<Int32Value>(arena); | 1423 return ::google::protobuf::Arena::CreateMessage<Int32Value>(arena); |
| 1320 } | 1424 } |
| 1321 | 1425 |
| 1322 void Int32Value::Clear() { | 1426 void Int32Value::Clear() { |
| 1323 // @@protoc_insertion_point(message_clear_start:google.protobuf.Int32Value) | 1427 // @@protoc_insertion_point(message_clear_start:google.protobuf.Int32Value) |
| 1324 value_ = 0; | 1428 value_ = 0; |
| 1325 } | 1429 } |
| 1326 | 1430 |
| 1327 bool Int32Value::MergePartialFromCodedStream( | 1431 bool Int32Value::MergePartialFromCodedStream( |
| 1328 ::google::protobuf::io::CodedInputStream* input) { | 1432 ::google::protobuf::io::CodedInputStream* input) { |
| 1329 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 1433 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1330 ::google::protobuf::uint32 tag; | 1434 ::google::protobuf::uint32 tag; |
| 1331 // @@protoc_insertion_point(parse_start:google.protobuf.Int32Value) | 1435 // @@protoc_insertion_point(parse_start:google.protobuf.Int32Value) |
| 1332 for (;;) { | 1436 for (;;) { |
| 1333 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 1437 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 1334 tag = p.first; | 1438 tag = p.first; |
| 1335 if (!p.second) goto handle_unusual; | 1439 if (!p.second) goto handle_unusual; |
| 1336 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1440 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 1337 // int32 value = 1; | 1441 // optional int32 value = 1; |
| 1338 case 1: { | 1442 case 1: { |
| 1339 if (tag == 8u) { | 1443 if (tag == 8) { |
| 1340 | |
| 1341 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 1444 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1342 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( | 1445 ::google::protobuf::int32, ::google::protobuf::internal::Wire
FormatLite::TYPE_INT32>( |
| 1343 input, &value_))); | 1446 input, &value_))); |
| 1447 |
| 1344 } else { | 1448 } else { |
| 1345 goto handle_unusual; | 1449 goto handle_unusual; |
| 1346 } | 1450 } |
| 1451 if (input->ExpectAtEnd()) goto success; |
| 1347 break; | 1452 break; |
| 1348 } | 1453 } |
| 1349 | 1454 |
| 1350 default: { | 1455 default: { |
| 1351 handle_unusual: | 1456 handle_unusual: |
| 1352 if (tag == 0 || | 1457 if (tag == 0 || |
| 1353 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1458 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1354 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1459 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1355 goto success; | 1460 goto success; |
| 1356 } | 1461 } |
| 1357 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 1462 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 1358 break; | 1463 break; |
| 1359 } | 1464 } |
| 1360 } | 1465 } |
| 1361 } | 1466 } |
| 1362 success: | 1467 success: |
| 1363 // @@protoc_insertion_point(parse_success:google.protobuf.Int32Value) | 1468 // @@protoc_insertion_point(parse_success:google.protobuf.Int32Value) |
| 1364 return true; | 1469 return true; |
| 1365 failure: | 1470 failure: |
| 1366 // @@protoc_insertion_point(parse_failure:google.protobuf.Int32Value) | 1471 // @@protoc_insertion_point(parse_failure:google.protobuf.Int32Value) |
| 1367 return false; | 1472 return false; |
| 1368 #undef DO_ | 1473 #undef DO_ |
| 1369 } | 1474 } |
| 1370 | 1475 |
| 1371 void Int32Value::SerializeWithCachedSizes( | 1476 void Int32Value::SerializeWithCachedSizes( |
| 1372 ::google::protobuf::io::CodedOutputStream* output) const { | 1477 ::google::protobuf::io::CodedOutputStream* output) const { |
| 1373 // @@protoc_insertion_point(serialize_start:google.protobuf.Int32Value) | 1478 // @@protoc_insertion_point(serialize_start:google.protobuf.Int32Value) |
| 1374 // int32 value = 1; | 1479 // optional int32 value = 1; |
| 1375 if (this->value() != 0) { | 1480 if (this->value() != 0) { |
| 1376 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), o
utput); | 1481 ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->value(), o
utput); |
| 1377 } | 1482 } |
| 1378 | 1483 |
| 1379 // @@protoc_insertion_point(serialize_end:google.protobuf.Int32Value) | 1484 // @@protoc_insertion_point(serialize_end:google.protobuf.Int32Value) |
| 1380 } | 1485 } |
| 1381 | 1486 |
| 1382 ::google::protobuf::uint8* Int32Value::InternalSerializeWithCachedSizesToArray( | 1487 ::google::protobuf::uint8* Int32Value::SerializeWithCachedSizesToArray( |
| 1383 bool deterministic, ::google::protobuf::uint8* target) const { | 1488 ::google::protobuf::uint8* target) const { |
| 1384 (void)deterministic; // Unused | |
| 1385 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int32Valu
e) | 1489 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Int32Valu
e) |
| 1386 // int32 value = 1; | 1490 // optional int32 value = 1; |
| 1387 if (this->value() != 0) { | 1491 if (this->value() != 0) { |
| 1388 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->value(), target); | 1492 target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1,
this->value(), target); |
| 1389 } | 1493 } |
| 1390 | 1494 |
| 1391 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int32Value) | 1495 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Int32Value) |
| 1392 return target; | 1496 return target; |
| 1393 } | 1497 } |
| 1394 | 1498 |
| 1395 size_t Int32Value::ByteSizeLong() const { | 1499 int Int32Value::ByteSize() const { |
| 1396 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int32Value) | 1500 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Int32Value) |
| 1397 size_t total_size = 0; | 1501 int total_size = 0; |
| 1398 | 1502 |
| 1399 // int32 value = 1; | 1503 // optional int32 value = 1; |
| 1400 if (this->value() != 0) { | 1504 if (this->value() != 0) { |
| 1401 total_size += 1 + | 1505 total_size += 1 + |
| 1402 ::google::protobuf::internal::WireFormatLite::Int32Size( | 1506 ::google::protobuf::internal::WireFormatLite::Int32Size( |
| 1403 this->value()); | 1507 this->value()); |
| 1404 } | 1508 } |
| 1405 | 1509 |
| 1406 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 1407 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1510 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1408 _cached_size_ = cached_size; | 1511 _cached_size_ = total_size; |
| 1409 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1512 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1410 return total_size; | 1513 return total_size; |
| 1411 } | 1514 } |
| 1412 | 1515 |
| 1413 void Int32Value::MergeFrom(const ::google::protobuf::Message& from) { | 1516 void Int32Value::MergeFrom(const ::google::protobuf::Message& from) { |
| 1414 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Int32Va
lue) | 1517 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Int32Va
lue) |
| 1415 GOOGLE_DCHECK_NE(&from, this); | 1518 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1416 const Int32Value* source = | 1519 const Int32Value* source = |
| 1417 ::google::protobuf::internal::DynamicCastToGenerated<const Int32Value>( | 1520 ::google::protobuf::internal::DynamicCastToGenerated<const Int32Value>( |
| 1418 &from); | 1521 &from); |
| 1419 if (source == NULL) { | 1522 if (source == NULL) { |
| 1420 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.I
nt32Value) | 1523 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.I
nt32Value) |
| 1421 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1524 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1422 } else { | 1525 } else { |
| 1423 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Int32Value) | 1526 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Int32Value) |
| 1424 MergeFrom(*source); | 1527 MergeFrom(*source); |
| 1425 } | 1528 } |
| 1426 } | 1529 } |
| 1427 | 1530 |
| 1428 void Int32Value::MergeFrom(const Int32Value& from) { | 1531 void Int32Value::MergeFrom(const Int32Value& from) { |
| 1429 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int3
2Value) | 1532 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Int3
2Value) |
| 1430 GOOGLE_DCHECK_NE(&from, this); | 1533 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1431 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1432 if (from.value() != 0) { | 1534 if (from.value() != 0) { |
| 1433 set_value(from.value()); | 1535 set_value(from.value()); |
| 1434 } | 1536 } |
| 1435 } | 1537 } |
| 1436 | 1538 |
| 1437 void Int32Value::CopyFrom(const ::google::protobuf::Message& from) { | 1539 void Int32Value::CopyFrom(const ::google::protobuf::Message& from) { |
| 1438 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Int32Val
ue) | 1540 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Int32Val
ue) |
| 1439 if (&from == this) return; | 1541 if (&from == this) return; |
| 1440 Clear(); | 1542 Clear(); |
| 1441 MergeFrom(from); | 1543 MergeFrom(from); |
| 1442 } | 1544 } |
| 1443 | 1545 |
| 1444 void Int32Value::CopyFrom(const Int32Value& from) { | 1546 void Int32Value::CopyFrom(const Int32Value& from) { |
| 1445 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int32
Value) | 1547 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Int32
Value) |
| 1446 if (&from == this) return; | 1548 if (&from == this) return; |
| 1447 Clear(); | 1549 Clear(); |
| 1448 MergeFrom(from); | 1550 MergeFrom(from); |
| 1449 } | 1551 } |
| 1450 | 1552 |
| 1451 bool Int32Value::IsInitialized() const { | 1553 bool Int32Value::IsInitialized() const { |
| 1554 |
| 1452 return true; | 1555 return true; |
| 1453 } | 1556 } |
| 1454 | 1557 |
| 1455 void Int32Value::Swap(Int32Value* other) { | 1558 void Int32Value::Swap(Int32Value* other) { |
| 1456 if (other == this) return; | 1559 if (other == this) return; |
| 1457 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 1560 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 1458 InternalSwap(other); | 1561 InternalSwap(other); |
| 1459 } else { | 1562 } else { |
| 1460 Int32Value* temp = New(GetArenaNoVirtual()); | 1563 Int32Value temp; |
| 1461 temp->MergeFrom(*other); | 1564 temp.MergeFrom(*this); |
| 1462 other->CopyFrom(*this); | 1565 CopyFrom(*other); |
| 1463 InternalSwap(temp); | 1566 other->CopyFrom(temp); |
| 1464 if (GetArenaNoVirtual() == NULL) { | |
| 1465 delete temp; | |
| 1466 } | |
| 1467 } | 1567 } |
| 1468 } | 1568 } |
| 1469 void Int32Value::UnsafeArenaSwap(Int32Value* other) { | 1569 void Int32Value::UnsafeArenaSwap(Int32Value* other) { |
| 1470 if (other == this) return; | 1570 if (other == this) return; |
| 1471 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 1571 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 1472 InternalSwap(other); | 1572 InternalSwap(other); |
| 1473 } | 1573 } |
| 1474 void Int32Value::InternalSwap(Int32Value* other) { | 1574 void Int32Value::InternalSwap(Int32Value* other) { |
| 1475 std::swap(value_, other->value_); | 1575 std::swap(value_, other->value_); |
| 1576 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1476 std::swap(_cached_size_, other->_cached_size_); | 1577 std::swap(_cached_size_, other->_cached_size_); |
| 1477 } | 1578 } |
| 1478 | 1579 |
| 1479 ::google::protobuf::Metadata Int32Value::GetMetadata() const { | 1580 ::google::protobuf::Metadata Int32Value::GetMetadata() const { |
| 1480 protobuf_AssignDescriptorsOnce(); | 1581 protobuf_AssignDescriptorsOnce(); |
| 1481 return file_level_metadata[4]; | 1582 ::google::protobuf::Metadata metadata; |
| 1583 metadata.descriptor = Int32Value_descriptor_; |
| 1584 metadata.reflection = Int32Value_reflection_; |
| 1585 return metadata; |
| 1482 } | 1586 } |
| 1483 | 1587 |
| 1484 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 1588 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1485 // Int32Value | 1589 // Int32Value |
| 1486 | 1590 |
| 1487 // int32 value = 1; | 1591 // optional int32 value = 1; |
| 1488 void Int32Value::clear_value() { | 1592 void Int32Value::clear_value() { |
| 1489 value_ = 0; | 1593 value_ = 0; |
| 1490 } | 1594 } |
| 1491 ::google::protobuf::int32 Int32Value::value() const { | 1595 ::google::protobuf::int32 Int32Value::value() const { |
| 1492 // @@protoc_insertion_point(field_get:google.protobuf.Int32Value.value) | 1596 // @@protoc_insertion_point(field_get:google.protobuf.Int32Value.value) |
| 1493 return value_; | 1597 return value_; |
| 1494 } | 1598 } |
| 1495 void Int32Value::set_value(::google::protobuf::int32 value) { | 1599 void Int32Value::set_value(::google::protobuf::int32 value) { |
| 1496 | 1600 |
| 1497 value_ = value; | 1601 value_ = value; |
| 1498 // @@protoc_insertion_point(field_set:google.protobuf.Int32Value.value) | 1602 // @@protoc_insertion_point(field_set:google.protobuf.Int32Value.value) |
| 1499 } | 1603 } |
| 1500 | 1604 |
| 1501 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 1605 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1502 | 1606 |
| 1503 // =================================================================== | 1607 // =================================================================== |
| 1504 | 1608 |
| 1505 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 1609 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1506 const int UInt32Value::kValueFieldNumber; | 1610 const int UInt32Value::kValueFieldNumber; |
| 1507 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 1611 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1508 | 1612 |
| 1509 UInt32Value::UInt32Value() | 1613 UInt32Value::UInt32Value() |
| 1510 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 1614 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1511 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 1512 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 1513 } | |
| 1514 SharedCtor(); | 1615 SharedCtor(); |
| 1515 // @@protoc_insertion_point(constructor:google.protobuf.UInt32Value) | 1616 // @@protoc_insertion_point(constructor:google.protobuf.UInt32Value) |
| 1516 } | 1617 } |
| 1618 |
| 1517 UInt32Value::UInt32Value(::google::protobuf::Arena* arena) | 1619 UInt32Value::UInt32Value(::google::protobuf::Arena* arena) |
| 1518 : ::google::protobuf::Message(), | 1620 : ::google::protobuf::Message(), |
| 1519 _internal_metadata_(arena) { | 1621 _internal_metadata_(arena) { |
| 1520 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1521 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 1522 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1523 SharedCtor(); | 1622 SharedCtor(); |
| 1524 RegisterArenaDtor(arena); | 1623 RegisterArenaDtor(arena); |
| 1525 // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt32Value) | 1624 // @@protoc_insertion_point(arena_constructor:google.protobuf.UInt32Value) |
| 1526 } | 1625 } |
| 1626 |
| 1627 void UInt32Value::InitAsDefaultInstance() { |
| 1628 _is_default_instance_ = true; |
| 1629 } |
| 1630 |
| 1527 UInt32Value::UInt32Value(const UInt32Value& from) | 1631 UInt32Value::UInt32Value(const UInt32Value& from) |
| 1528 : ::google::protobuf::Message(), | 1632 : ::google::protobuf::Message(), |
| 1529 _internal_metadata_(NULL), | 1633 _internal_metadata_(NULL) { |
| 1530 _cached_size_(0) { | 1634 SharedCtor(); |
| 1531 _internal_metadata_.MergeFrom(from._internal_metadata_); | 1635 MergeFrom(from); |
| 1532 value_ = from.value_; | |
| 1533 // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt32Value) | 1636 // @@protoc_insertion_point(copy_constructor:google.protobuf.UInt32Value) |
| 1534 } | 1637 } |
| 1535 | 1638 |
| 1536 void UInt32Value::SharedCtor() { | 1639 void UInt32Value::SharedCtor() { |
| 1640 _is_default_instance_ = false; |
| 1641 _cached_size_ = 0; |
| 1537 value_ = 0u; | 1642 value_ = 0u; |
| 1538 _cached_size_ = 0; | |
| 1539 } | 1643 } |
| 1540 | 1644 |
| 1541 UInt32Value::~UInt32Value() { | 1645 UInt32Value::~UInt32Value() { |
| 1542 // @@protoc_insertion_point(destructor:google.protobuf.UInt32Value) | 1646 // @@protoc_insertion_point(destructor:google.protobuf.UInt32Value) |
| 1543 SharedDtor(); | 1647 SharedDtor(); |
| 1544 } | 1648 } |
| 1545 | 1649 |
| 1546 void UInt32Value::SharedDtor() { | 1650 void UInt32Value::SharedDtor() { |
| 1547 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 1651 if (GetArenaNoVirtual() != NULL) { |
| 1548 if (arena != NULL) { | |
| 1549 return; | 1652 return; |
| 1550 } | 1653 } |
| 1551 | 1654 |
| 1655 if (this != default_instance_) { |
| 1656 } |
| 1552 } | 1657 } |
| 1553 | 1658 |
| 1554 void UInt32Value::ArenaDtor(void* object) { | 1659 void UInt32Value::ArenaDtor(void* object) { |
| 1555 UInt32Value* _this = reinterpret_cast< UInt32Value* >(object); | 1660 UInt32Value* _this = reinterpret_cast< UInt32Value* >(object); |
| 1556 (void)_this; | 1661 (void)_this; |
| 1557 } | 1662 } |
| 1558 void UInt32Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 1663 void UInt32Value::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 1559 } | 1664 } |
| 1560 void UInt32Value::SetCachedSize(int size) const { | 1665 void UInt32Value::SetCachedSize(int size) const { |
| 1561 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1666 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1562 _cached_size_ = size; | 1667 _cached_size_ = size; |
| 1563 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1668 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1564 } | 1669 } |
| 1565 const ::google::protobuf::Descriptor* UInt32Value::descriptor() { | 1670 const ::google::protobuf::Descriptor* UInt32Value::descriptor() { |
| 1566 protobuf_AssignDescriptorsOnce(); | 1671 protobuf_AssignDescriptorsOnce(); |
| 1567 return file_level_metadata[5].descriptor; | 1672 return UInt32Value_descriptor_; |
| 1568 } | 1673 } |
| 1569 | 1674 |
| 1570 const UInt32Value& UInt32Value::default_instance() { | 1675 const UInt32Value& UInt32Value::default_instance() { |
| 1571 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 1676 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 1572 return *internal_default_instance(); | 1677 return *default_instance_; |
| 1573 } | 1678 } |
| 1574 | 1679 |
| 1680 UInt32Value* UInt32Value::default_instance_ = NULL; |
| 1681 |
| 1575 UInt32Value* UInt32Value::New(::google::protobuf::Arena* arena) const { | 1682 UInt32Value* UInt32Value::New(::google::protobuf::Arena* arena) const { |
| 1576 return ::google::protobuf::Arena::CreateMessage<UInt32Value>(arena); | 1683 return ::google::protobuf::Arena::CreateMessage<UInt32Value>(arena); |
| 1577 } | 1684 } |
| 1578 | 1685 |
| 1579 void UInt32Value::Clear() { | 1686 void UInt32Value::Clear() { |
| 1580 // @@protoc_insertion_point(message_clear_start:google.protobuf.UInt32Value) | 1687 // @@protoc_insertion_point(message_clear_start:google.protobuf.UInt32Value) |
| 1581 value_ = 0u; | 1688 value_ = 0u; |
| 1582 } | 1689 } |
| 1583 | 1690 |
| 1584 bool UInt32Value::MergePartialFromCodedStream( | 1691 bool UInt32Value::MergePartialFromCodedStream( |
| 1585 ::google::protobuf::io::CodedInputStream* input) { | 1692 ::google::protobuf::io::CodedInputStream* input) { |
| 1586 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 1693 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1587 ::google::protobuf::uint32 tag; | 1694 ::google::protobuf::uint32 tag; |
| 1588 // @@protoc_insertion_point(parse_start:google.protobuf.UInt32Value) | 1695 // @@protoc_insertion_point(parse_start:google.protobuf.UInt32Value) |
| 1589 for (;;) { | 1696 for (;;) { |
| 1590 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 1697 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 1591 tag = p.first; | 1698 tag = p.first; |
| 1592 if (!p.second) goto handle_unusual; | 1699 if (!p.second) goto handle_unusual; |
| 1593 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1700 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 1594 // uint32 value = 1; | 1701 // optional uint32 value = 1; |
| 1595 case 1: { | 1702 case 1: { |
| 1596 if (tag == 8u) { | 1703 if (tag == 8) { |
| 1597 | |
| 1598 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 1704 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1599 ::google::protobuf::uint32, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT32>( | 1705 ::google::protobuf::uint32, ::google::protobuf::internal::Wir
eFormatLite::TYPE_UINT32>( |
| 1600 input, &value_))); | 1706 input, &value_))); |
| 1707 |
| 1601 } else { | 1708 } else { |
| 1602 goto handle_unusual; | 1709 goto handle_unusual; |
| 1603 } | 1710 } |
| 1711 if (input->ExpectAtEnd()) goto success; |
| 1604 break; | 1712 break; |
| 1605 } | 1713 } |
| 1606 | 1714 |
| 1607 default: { | 1715 default: { |
| 1608 handle_unusual: | 1716 handle_unusual: |
| 1609 if (tag == 0 || | 1717 if (tag == 0 || |
| 1610 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1718 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1611 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1719 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1612 goto success; | 1720 goto success; |
| 1613 } | 1721 } |
| 1614 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 1722 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 1615 break; | 1723 break; |
| 1616 } | 1724 } |
| 1617 } | 1725 } |
| 1618 } | 1726 } |
| 1619 success: | 1727 success: |
| 1620 // @@protoc_insertion_point(parse_success:google.protobuf.UInt32Value) | 1728 // @@protoc_insertion_point(parse_success:google.protobuf.UInt32Value) |
| 1621 return true; | 1729 return true; |
| 1622 failure: | 1730 failure: |
| 1623 // @@protoc_insertion_point(parse_failure:google.protobuf.UInt32Value) | 1731 // @@protoc_insertion_point(parse_failure:google.protobuf.UInt32Value) |
| 1624 return false; | 1732 return false; |
| 1625 #undef DO_ | 1733 #undef DO_ |
| 1626 } | 1734 } |
| 1627 | 1735 |
| 1628 void UInt32Value::SerializeWithCachedSizes( | 1736 void UInt32Value::SerializeWithCachedSizes( |
| 1629 ::google::protobuf::io::CodedOutputStream* output) const { | 1737 ::google::protobuf::io::CodedOutputStream* output) const { |
| 1630 // @@protoc_insertion_point(serialize_start:google.protobuf.UInt32Value) | 1738 // @@protoc_insertion_point(serialize_start:google.protobuf.UInt32Value) |
| 1631 // uint32 value = 1; | 1739 // optional uint32 value = 1; |
| 1632 if (this->value() != 0) { | 1740 if (this->value() != 0) { |
| 1633 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->value(),
output); | 1741 ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->value(),
output); |
| 1634 } | 1742 } |
| 1635 | 1743 |
| 1636 // @@protoc_insertion_point(serialize_end:google.protobuf.UInt32Value) | 1744 // @@protoc_insertion_point(serialize_end:google.protobuf.UInt32Value) |
| 1637 } | 1745 } |
| 1638 | 1746 |
| 1639 ::google::protobuf::uint8* UInt32Value::InternalSerializeWithCachedSizesToArray( | 1747 ::google::protobuf::uint8* UInt32Value::SerializeWithCachedSizesToArray( |
| 1640 bool deterministic, ::google::protobuf::uint8* target) const { | 1748 ::google::protobuf::uint8* target) const { |
| 1641 (void)deterministic; // Unused | |
| 1642 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt32Val
ue) | 1749 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.UInt32Val
ue) |
| 1643 // uint32 value = 1; | 1750 // optional uint32 value = 1; |
| 1644 if (this->value() != 0) { | 1751 if (this->value() != 0) { |
| 1645 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1,
this->value(), target); | 1752 target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1,
this->value(), target); |
| 1646 } | 1753 } |
| 1647 | 1754 |
| 1648 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt32Value
) | 1755 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.UInt32Value
) |
| 1649 return target; | 1756 return target; |
| 1650 } | 1757 } |
| 1651 | 1758 |
| 1652 size_t UInt32Value::ByteSizeLong() const { | 1759 int UInt32Value::ByteSize() const { |
| 1653 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt32Value) | 1760 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.UInt32Value) |
| 1654 size_t total_size = 0; | 1761 int total_size = 0; |
| 1655 | 1762 |
| 1656 // uint32 value = 1; | 1763 // optional uint32 value = 1; |
| 1657 if (this->value() != 0) { | 1764 if (this->value() != 0) { |
| 1658 total_size += 1 + | 1765 total_size += 1 + |
| 1659 ::google::protobuf::internal::WireFormatLite::UInt32Size( | 1766 ::google::protobuf::internal::WireFormatLite::UInt32Size( |
| 1660 this->value()); | 1767 this->value()); |
| 1661 } | 1768 } |
| 1662 | 1769 |
| 1663 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 1664 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1770 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1665 _cached_size_ = cached_size; | 1771 _cached_size_ = total_size; |
| 1666 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1772 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1667 return total_size; | 1773 return total_size; |
| 1668 } | 1774 } |
| 1669 | 1775 |
| 1670 void UInt32Value::MergeFrom(const ::google::protobuf::Message& from) { | 1776 void UInt32Value::MergeFrom(const ::google::protobuf::Message& from) { |
| 1671 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UInt32V
alue) | 1777 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.UInt32V
alue) |
| 1672 GOOGLE_DCHECK_NE(&from, this); | 1778 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1673 const UInt32Value* source = | 1779 const UInt32Value* source = |
| 1674 ::google::protobuf::internal::DynamicCastToGenerated<const UInt32Value>( | 1780 ::google::protobuf::internal::DynamicCastToGenerated<const UInt32Value>( |
| 1675 &from); | 1781 &from); |
| 1676 if (source == NULL) { | 1782 if (source == NULL) { |
| 1677 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U
Int32Value) | 1783 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.U
Int32Value) |
| 1678 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 1784 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1679 } else { | 1785 } else { |
| 1680 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.UInt32Value) | 1786 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.UInt32Value) |
| 1681 MergeFrom(*source); | 1787 MergeFrom(*source); |
| 1682 } | 1788 } |
| 1683 } | 1789 } |
| 1684 | 1790 |
| 1685 void UInt32Value::MergeFrom(const UInt32Value& from) { | 1791 void UInt32Value::MergeFrom(const UInt32Value& from) { |
| 1686 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt
32Value) | 1792 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.UInt
32Value) |
| 1687 GOOGLE_DCHECK_NE(&from, this); | 1793 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1688 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1689 if (from.value() != 0) { | 1794 if (from.value() != 0) { |
| 1690 set_value(from.value()); | 1795 set_value(from.value()); |
| 1691 } | 1796 } |
| 1692 } | 1797 } |
| 1693 | 1798 |
| 1694 void UInt32Value::CopyFrom(const ::google::protobuf::Message& from) { | 1799 void UInt32Value::CopyFrom(const ::google::protobuf::Message& from) { |
| 1695 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UInt32Va
lue) | 1800 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.UInt32Va
lue) |
| 1696 if (&from == this) return; | 1801 if (&from == this) return; |
| 1697 Clear(); | 1802 Clear(); |
| 1698 MergeFrom(from); | 1803 MergeFrom(from); |
| 1699 } | 1804 } |
| 1700 | 1805 |
| 1701 void UInt32Value::CopyFrom(const UInt32Value& from) { | 1806 void UInt32Value::CopyFrom(const UInt32Value& from) { |
| 1702 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt3
2Value) | 1807 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.UInt3
2Value) |
| 1703 if (&from == this) return; | 1808 if (&from == this) return; |
| 1704 Clear(); | 1809 Clear(); |
| 1705 MergeFrom(from); | 1810 MergeFrom(from); |
| 1706 } | 1811 } |
| 1707 | 1812 |
| 1708 bool UInt32Value::IsInitialized() const { | 1813 bool UInt32Value::IsInitialized() const { |
| 1814 |
| 1709 return true; | 1815 return true; |
| 1710 } | 1816 } |
| 1711 | 1817 |
| 1712 void UInt32Value::Swap(UInt32Value* other) { | 1818 void UInt32Value::Swap(UInt32Value* other) { |
| 1713 if (other == this) return; | 1819 if (other == this) return; |
| 1714 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 1820 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 1715 InternalSwap(other); | 1821 InternalSwap(other); |
| 1716 } else { | 1822 } else { |
| 1717 UInt32Value* temp = New(GetArenaNoVirtual()); | 1823 UInt32Value temp; |
| 1718 temp->MergeFrom(*other); | 1824 temp.MergeFrom(*this); |
| 1719 other->CopyFrom(*this); | 1825 CopyFrom(*other); |
| 1720 InternalSwap(temp); | 1826 other->CopyFrom(temp); |
| 1721 if (GetArenaNoVirtual() == NULL) { | |
| 1722 delete temp; | |
| 1723 } | |
| 1724 } | 1827 } |
| 1725 } | 1828 } |
| 1726 void UInt32Value::UnsafeArenaSwap(UInt32Value* other) { | 1829 void UInt32Value::UnsafeArenaSwap(UInt32Value* other) { |
| 1727 if (other == this) return; | 1830 if (other == this) return; |
| 1728 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 1831 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 1729 InternalSwap(other); | 1832 InternalSwap(other); |
| 1730 } | 1833 } |
| 1731 void UInt32Value::InternalSwap(UInt32Value* other) { | 1834 void UInt32Value::InternalSwap(UInt32Value* other) { |
| 1732 std::swap(value_, other->value_); | 1835 std::swap(value_, other->value_); |
| 1836 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1733 std::swap(_cached_size_, other->_cached_size_); | 1837 std::swap(_cached_size_, other->_cached_size_); |
| 1734 } | 1838 } |
| 1735 | 1839 |
| 1736 ::google::protobuf::Metadata UInt32Value::GetMetadata() const { | 1840 ::google::protobuf::Metadata UInt32Value::GetMetadata() const { |
| 1737 protobuf_AssignDescriptorsOnce(); | 1841 protobuf_AssignDescriptorsOnce(); |
| 1738 return file_level_metadata[5]; | 1842 ::google::protobuf::Metadata metadata; |
| 1843 metadata.descriptor = UInt32Value_descriptor_; |
| 1844 metadata.reflection = UInt32Value_reflection_; |
| 1845 return metadata; |
| 1739 } | 1846 } |
| 1740 | 1847 |
| 1741 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 1848 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1742 // UInt32Value | 1849 // UInt32Value |
| 1743 | 1850 |
| 1744 // uint32 value = 1; | 1851 // optional uint32 value = 1; |
| 1745 void UInt32Value::clear_value() { | 1852 void UInt32Value::clear_value() { |
| 1746 value_ = 0u; | 1853 value_ = 0u; |
| 1747 } | 1854 } |
| 1748 ::google::protobuf::uint32 UInt32Value::value() const { | 1855 ::google::protobuf::uint32 UInt32Value::value() const { |
| 1749 // @@protoc_insertion_point(field_get:google.protobuf.UInt32Value.value) | 1856 // @@protoc_insertion_point(field_get:google.protobuf.UInt32Value.value) |
| 1750 return value_; | 1857 return value_; |
| 1751 } | 1858 } |
| 1752 void UInt32Value::set_value(::google::protobuf::uint32 value) { | 1859 void UInt32Value::set_value(::google::protobuf::uint32 value) { |
| 1753 | 1860 |
| 1754 value_ = value; | 1861 value_ = value; |
| 1755 // @@protoc_insertion_point(field_set:google.protobuf.UInt32Value.value) | 1862 // @@protoc_insertion_point(field_set:google.protobuf.UInt32Value.value) |
| 1756 } | 1863 } |
| 1757 | 1864 |
| 1758 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 1865 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1759 | 1866 |
| 1760 // =================================================================== | 1867 // =================================================================== |
| 1761 | 1868 |
| 1762 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 1869 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1763 const int BoolValue::kValueFieldNumber; | 1870 const int BoolValue::kValueFieldNumber; |
| 1764 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 1871 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 1765 | 1872 |
| 1766 BoolValue::BoolValue() | 1873 BoolValue::BoolValue() |
| 1767 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 1874 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 1768 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 1769 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 1770 } | |
| 1771 SharedCtor(); | 1875 SharedCtor(); |
| 1772 // @@protoc_insertion_point(constructor:google.protobuf.BoolValue) | 1876 // @@protoc_insertion_point(constructor:google.protobuf.BoolValue) |
| 1773 } | 1877 } |
| 1878 |
| 1774 BoolValue::BoolValue(::google::protobuf::Arena* arena) | 1879 BoolValue::BoolValue(::google::protobuf::Arena* arena) |
| 1775 : ::google::protobuf::Message(), | 1880 : ::google::protobuf::Message(), |
| 1776 _internal_metadata_(arena) { | 1881 _internal_metadata_(arena) { |
| 1777 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1778 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 1779 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 1780 SharedCtor(); | 1882 SharedCtor(); |
| 1781 RegisterArenaDtor(arena); | 1883 RegisterArenaDtor(arena); |
| 1782 // @@protoc_insertion_point(arena_constructor:google.protobuf.BoolValue) | 1884 // @@protoc_insertion_point(arena_constructor:google.protobuf.BoolValue) |
| 1783 } | 1885 } |
| 1886 |
| 1887 void BoolValue::InitAsDefaultInstance() { |
| 1888 _is_default_instance_ = true; |
| 1889 } |
| 1890 |
| 1784 BoolValue::BoolValue(const BoolValue& from) | 1891 BoolValue::BoolValue(const BoolValue& from) |
| 1785 : ::google::protobuf::Message(), | 1892 : ::google::protobuf::Message(), |
| 1786 _internal_metadata_(NULL), | 1893 _internal_metadata_(NULL) { |
| 1787 _cached_size_(0) { | 1894 SharedCtor(); |
| 1788 _internal_metadata_.MergeFrom(from._internal_metadata_); | 1895 MergeFrom(from); |
| 1789 value_ = from.value_; | |
| 1790 // @@protoc_insertion_point(copy_constructor:google.protobuf.BoolValue) | 1896 // @@protoc_insertion_point(copy_constructor:google.protobuf.BoolValue) |
| 1791 } | 1897 } |
| 1792 | 1898 |
| 1793 void BoolValue::SharedCtor() { | 1899 void BoolValue::SharedCtor() { |
| 1900 _is_default_instance_ = false; |
| 1901 _cached_size_ = 0; |
| 1794 value_ = false; | 1902 value_ = false; |
| 1795 _cached_size_ = 0; | |
| 1796 } | 1903 } |
| 1797 | 1904 |
| 1798 BoolValue::~BoolValue() { | 1905 BoolValue::~BoolValue() { |
| 1799 // @@protoc_insertion_point(destructor:google.protobuf.BoolValue) | 1906 // @@protoc_insertion_point(destructor:google.protobuf.BoolValue) |
| 1800 SharedDtor(); | 1907 SharedDtor(); |
| 1801 } | 1908 } |
| 1802 | 1909 |
| 1803 void BoolValue::SharedDtor() { | 1910 void BoolValue::SharedDtor() { |
| 1804 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 1911 if (GetArenaNoVirtual() != NULL) { |
| 1805 if (arena != NULL) { | |
| 1806 return; | 1912 return; |
| 1807 } | 1913 } |
| 1808 | 1914 |
| 1915 if (this != default_instance_) { |
| 1916 } |
| 1809 } | 1917 } |
| 1810 | 1918 |
| 1811 void BoolValue::ArenaDtor(void* object) { | 1919 void BoolValue::ArenaDtor(void* object) { |
| 1812 BoolValue* _this = reinterpret_cast< BoolValue* >(object); | 1920 BoolValue* _this = reinterpret_cast< BoolValue* >(object); |
| 1813 (void)_this; | 1921 (void)_this; |
| 1814 } | 1922 } |
| 1815 void BoolValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 1923 void BoolValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 1816 } | 1924 } |
| 1817 void BoolValue::SetCachedSize(int size) const { | 1925 void BoolValue::SetCachedSize(int size) const { |
| 1818 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 1926 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1819 _cached_size_ = size; | 1927 _cached_size_ = size; |
| 1820 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 1928 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1821 } | 1929 } |
| 1822 const ::google::protobuf::Descriptor* BoolValue::descriptor() { | 1930 const ::google::protobuf::Descriptor* BoolValue::descriptor() { |
| 1823 protobuf_AssignDescriptorsOnce(); | 1931 protobuf_AssignDescriptorsOnce(); |
| 1824 return file_level_metadata[6].descriptor; | 1932 return BoolValue_descriptor_; |
| 1825 } | 1933 } |
| 1826 | 1934 |
| 1827 const BoolValue& BoolValue::default_instance() { | 1935 const BoolValue& BoolValue::default_instance() { |
| 1828 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 1936 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 1829 return *internal_default_instance(); | 1937 return *default_instance_; |
| 1830 } | 1938 } |
| 1831 | 1939 |
| 1940 BoolValue* BoolValue::default_instance_ = NULL; |
| 1941 |
| 1832 BoolValue* BoolValue::New(::google::protobuf::Arena* arena) const { | 1942 BoolValue* BoolValue::New(::google::protobuf::Arena* arena) const { |
| 1833 return ::google::protobuf::Arena::CreateMessage<BoolValue>(arena); | 1943 return ::google::protobuf::Arena::CreateMessage<BoolValue>(arena); |
| 1834 } | 1944 } |
| 1835 | 1945 |
| 1836 void BoolValue::Clear() { | 1946 void BoolValue::Clear() { |
| 1837 // @@protoc_insertion_point(message_clear_start:google.protobuf.BoolValue) | 1947 // @@protoc_insertion_point(message_clear_start:google.protobuf.BoolValue) |
| 1838 value_ = false; | 1948 value_ = false; |
| 1839 } | 1949 } |
| 1840 | 1950 |
| 1841 bool BoolValue::MergePartialFromCodedStream( | 1951 bool BoolValue::MergePartialFromCodedStream( |
| 1842 ::google::protobuf::io::CodedInputStream* input) { | 1952 ::google::protobuf::io::CodedInputStream* input) { |
| 1843 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 1953 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 1844 ::google::protobuf::uint32 tag; | 1954 ::google::protobuf::uint32 tag; |
| 1845 // @@protoc_insertion_point(parse_start:google.protobuf.BoolValue) | 1955 // @@protoc_insertion_point(parse_start:google.protobuf.BoolValue) |
| 1846 for (;;) { | 1956 for (;;) { |
| 1847 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 1957 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 1848 tag = p.first; | 1958 tag = p.first; |
| 1849 if (!p.second) goto handle_unusual; | 1959 if (!p.second) goto handle_unusual; |
| 1850 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 1960 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 1851 // bool value = 1; | 1961 // optional bool value = 1; |
| 1852 case 1: { | 1962 case 1: { |
| 1853 if (tag == 8u) { | 1963 if (tag == 8) { |
| 1854 | |
| 1855 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< | 1964 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< |
| 1856 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( | 1965 bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL
>( |
| 1857 input, &value_))); | 1966 input, &value_))); |
| 1967 |
| 1858 } else { | 1968 } else { |
| 1859 goto handle_unusual; | 1969 goto handle_unusual; |
| 1860 } | 1970 } |
| 1971 if (input->ExpectAtEnd()) goto success; |
| 1861 break; | 1972 break; |
| 1862 } | 1973 } |
| 1863 | 1974 |
| 1864 default: { | 1975 default: { |
| 1865 handle_unusual: | 1976 handle_unusual: |
| 1866 if (tag == 0 || | 1977 if (tag == 0 || |
| 1867 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 1978 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 1868 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 1979 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 1869 goto success; | 1980 goto success; |
| 1870 } | 1981 } |
| 1871 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 1982 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 1872 break; | 1983 break; |
| 1873 } | 1984 } |
| 1874 } | 1985 } |
| 1875 } | 1986 } |
| 1876 success: | 1987 success: |
| 1877 // @@protoc_insertion_point(parse_success:google.protobuf.BoolValue) | 1988 // @@protoc_insertion_point(parse_success:google.protobuf.BoolValue) |
| 1878 return true; | 1989 return true; |
| 1879 failure: | 1990 failure: |
| 1880 // @@protoc_insertion_point(parse_failure:google.protobuf.BoolValue) | 1991 // @@protoc_insertion_point(parse_failure:google.protobuf.BoolValue) |
| 1881 return false; | 1992 return false; |
| 1882 #undef DO_ | 1993 #undef DO_ |
| 1883 } | 1994 } |
| 1884 | 1995 |
| 1885 void BoolValue::SerializeWithCachedSizes( | 1996 void BoolValue::SerializeWithCachedSizes( |
| 1886 ::google::protobuf::io::CodedOutputStream* output) const { | 1997 ::google::protobuf::io::CodedOutputStream* output) const { |
| 1887 // @@protoc_insertion_point(serialize_start:google.protobuf.BoolValue) | 1998 // @@protoc_insertion_point(serialize_start:google.protobuf.BoolValue) |
| 1888 // bool value = 1; | 1999 // optional bool value = 1; |
| 1889 if (this->value() != 0) { | 2000 if (this->value() != 0) { |
| 1890 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->value(), ou
tput); | 2001 ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->value(), ou
tput); |
| 1891 } | 2002 } |
| 1892 | 2003 |
| 1893 // @@protoc_insertion_point(serialize_end:google.protobuf.BoolValue) | 2004 // @@protoc_insertion_point(serialize_end:google.protobuf.BoolValue) |
| 1894 } | 2005 } |
| 1895 | 2006 |
| 1896 ::google::protobuf::uint8* BoolValue::InternalSerializeWithCachedSizesToArray( | 2007 ::google::protobuf::uint8* BoolValue::SerializeWithCachedSizesToArray( |
| 1897 bool deterministic, ::google::protobuf::uint8* target) const { | 2008 ::google::protobuf::uint8* target) const { |
| 1898 (void)deterministic; // Unused | |
| 1899 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BoolValue
) | 2009 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BoolValue
) |
| 1900 // bool value = 1; | 2010 // optional bool value = 1; |
| 1901 if (this->value() != 0) { | 2011 if (this->value() != 0) { |
| 1902 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->value(), target); | 2012 target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, t
his->value(), target); |
| 1903 } | 2013 } |
| 1904 | 2014 |
| 1905 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BoolValue) | 2015 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BoolValue) |
| 1906 return target; | 2016 return target; |
| 1907 } | 2017 } |
| 1908 | 2018 |
| 1909 size_t BoolValue::ByteSizeLong() const { | 2019 int BoolValue::ByteSize() const { |
| 1910 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BoolValue) | 2020 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BoolValue) |
| 1911 size_t total_size = 0; | 2021 int total_size = 0; |
| 1912 | 2022 |
| 1913 // bool value = 1; | 2023 // optional bool value = 1; |
| 1914 if (this->value() != 0) { | 2024 if (this->value() != 0) { |
| 1915 total_size += 1 + 1; | 2025 total_size += 1 + 1; |
| 1916 } | 2026 } |
| 1917 | 2027 |
| 1918 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 1919 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2028 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 1920 _cached_size_ = cached_size; | 2029 _cached_size_ = total_size; |
| 1921 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2030 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 1922 return total_size; | 2031 return total_size; |
| 1923 } | 2032 } |
| 1924 | 2033 |
| 1925 void BoolValue::MergeFrom(const ::google::protobuf::Message& from) { | 2034 void BoolValue::MergeFrom(const ::google::protobuf::Message& from) { |
| 1926 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.BoolVal
ue) | 2035 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.BoolVal
ue) |
| 1927 GOOGLE_DCHECK_NE(&from, this); | 2036 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1928 const BoolValue* source = | 2037 const BoolValue* source = |
| 1929 ::google::protobuf::internal::DynamicCastToGenerated<const BoolValue>( | 2038 ::google::protobuf::internal::DynamicCastToGenerated<const BoolValue>( |
| 1930 &from); | 2039 &from); |
| 1931 if (source == NULL) { | 2040 if (source == NULL) { |
| 1932 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.B
oolValue) | 2041 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.B
oolValue) |
| 1933 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 2042 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 1934 } else { | 2043 } else { |
| 1935 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.BoolValue) | 2044 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.BoolValue) |
| 1936 MergeFrom(*source); | 2045 MergeFrom(*source); |
| 1937 } | 2046 } |
| 1938 } | 2047 } |
| 1939 | 2048 |
| 1940 void BoolValue::MergeFrom(const BoolValue& from) { | 2049 void BoolValue::MergeFrom(const BoolValue& from) { |
| 1941 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Bool
Value) | 2050 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Bool
Value) |
| 1942 GOOGLE_DCHECK_NE(&from, this); | 2051 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 1943 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 1944 if (from.value() != 0) { | 2052 if (from.value() != 0) { |
| 1945 set_value(from.value()); | 2053 set_value(from.value()); |
| 1946 } | 2054 } |
| 1947 } | 2055 } |
| 1948 | 2056 |
| 1949 void BoolValue::CopyFrom(const ::google::protobuf::Message& from) { | 2057 void BoolValue::CopyFrom(const ::google::protobuf::Message& from) { |
| 1950 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.BoolValu
e) | 2058 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.BoolValu
e) |
| 1951 if (&from == this) return; | 2059 if (&from == this) return; |
| 1952 Clear(); | 2060 Clear(); |
| 1953 MergeFrom(from); | 2061 MergeFrom(from); |
| 1954 } | 2062 } |
| 1955 | 2063 |
| 1956 void BoolValue::CopyFrom(const BoolValue& from) { | 2064 void BoolValue::CopyFrom(const BoolValue& from) { |
| 1957 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.BoolV
alue) | 2065 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.BoolV
alue) |
| 1958 if (&from == this) return; | 2066 if (&from == this) return; |
| 1959 Clear(); | 2067 Clear(); |
| 1960 MergeFrom(from); | 2068 MergeFrom(from); |
| 1961 } | 2069 } |
| 1962 | 2070 |
| 1963 bool BoolValue::IsInitialized() const { | 2071 bool BoolValue::IsInitialized() const { |
| 2072 |
| 1964 return true; | 2073 return true; |
| 1965 } | 2074 } |
| 1966 | 2075 |
| 1967 void BoolValue::Swap(BoolValue* other) { | 2076 void BoolValue::Swap(BoolValue* other) { |
| 1968 if (other == this) return; | 2077 if (other == this) return; |
| 1969 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 2078 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 1970 InternalSwap(other); | 2079 InternalSwap(other); |
| 1971 } else { | 2080 } else { |
| 1972 BoolValue* temp = New(GetArenaNoVirtual()); | 2081 BoolValue temp; |
| 1973 temp->MergeFrom(*other); | 2082 temp.MergeFrom(*this); |
| 1974 other->CopyFrom(*this); | 2083 CopyFrom(*other); |
| 1975 InternalSwap(temp); | 2084 other->CopyFrom(temp); |
| 1976 if (GetArenaNoVirtual() == NULL) { | |
| 1977 delete temp; | |
| 1978 } | |
| 1979 } | 2085 } |
| 1980 } | 2086 } |
| 1981 void BoolValue::UnsafeArenaSwap(BoolValue* other) { | 2087 void BoolValue::UnsafeArenaSwap(BoolValue* other) { |
| 1982 if (other == this) return; | 2088 if (other == this) return; |
| 1983 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 2089 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 1984 InternalSwap(other); | 2090 InternalSwap(other); |
| 1985 } | 2091 } |
| 1986 void BoolValue::InternalSwap(BoolValue* other) { | 2092 void BoolValue::InternalSwap(BoolValue* other) { |
| 1987 std::swap(value_, other->value_); | 2093 std::swap(value_, other->value_); |
| 2094 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 1988 std::swap(_cached_size_, other->_cached_size_); | 2095 std::swap(_cached_size_, other->_cached_size_); |
| 1989 } | 2096 } |
| 1990 | 2097 |
| 1991 ::google::protobuf::Metadata BoolValue::GetMetadata() const { | 2098 ::google::protobuf::Metadata BoolValue::GetMetadata() const { |
| 1992 protobuf_AssignDescriptorsOnce(); | 2099 protobuf_AssignDescriptorsOnce(); |
| 1993 return file_level_metadata[6]; | 2100 ::google::protobuf::Metadata metadata; |
| 2101 metadata.descriptor = BoolValue_descriptor_; |
| 2102 metadata.reflection = BoolValue_reflection_; |
| 2103 return metadata; |
| 1994 } | 2104 } |
| 1995 | 2105 |
| 1996 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 2106 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 1997 // BoolValue | 2107 // BoolValue |
| 1998 | 2108 |
| 1999 // bool value = 1; | 2109 // optional bool value = 1; |
| 2000 void BoolValue::clear_value() { | 2110 void BoolValue::clear_value() { |
| 2001 value_ = false; | 2111 value_ = false; |
| 2002 } | 2112 } |
| 2003 bool BoolValue::value() const { | 2113 bool BoolValue::value() const { |
| 2004 // @@protoc_insertion_point(field_get:google.protobuf.BoolValue.value) | 2114 // @@protoc_insertion_point(field_get:google.protobuf.BoolValue.value) |
| 2005 return value_; | 2115 return value_; |
| 2006 } | 2116 } |
| 2007 void BoolValue::set_value(bool value) { | 2117 void BoolValue::set_value(bool value) { |
| 2008 | 2118 |
| 2009 value_ = value; | 2119 value_ = value; |
| 2010 // @@protoc_insertion_point(field_set:google.protobuf.BoolValue.value) | 2120 // @@protoc_insertion_point(field_set:google.protobuf.BoolValue.value) |
| 2011 } | 2121 } |
| 2012 | 2122 |
| 2013 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 2123 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2014 | 2124 |
| 2015 // =================================================================== | 2125 // =================================================================== |
| 2016 | 2126 |
| 2017 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 2127 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2018 const int StringValue::kValueFieldNumber; | 2128 const int StringValue::kValueFieldNumber; |
| 2019 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 2129 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2020 | 2130 |
| 2021 StringValue::StringValue() | 2131 StringValue::StringValue() |
| 2022 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 2132 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2023 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 2024 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 2025 } | |
| 2026 SharedCtor(); | 2133 SharedCtor(); |
| 2027 // @@protoc_insertion_point(constructor:google.protobuf.StringValue) | 2134 // @@protoc_insertion_point(constructor:google.protobuf.StringValue) |
| 2028 } | 2135 } |
| 2136 |
| 2029 StringValue::StringValue(::google::protobuf::Arena* arena) | 2137 StringValue::StringValue(::google::protobuf::Arena* arena) |
| 2030 : ::google::protobuf::Message(), | 2138 : ::google::protobuf::Message(), |
| 2031 _internal_metadata_(arena) { | 2139 _internal_metadata_(arena) { |
| 2032 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 2033 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 2034 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 2035 SharedCtor(); | 2140 SharedCtor(); |
| 2036 RegisterArenaDtor(arena); | 2141 RegisterArenaDtor(arena); |
| 2037 // @@protoc_insertion_point(arena_constructor:google.protobuf.StringValue) | 2142 // @@protoc_insertion_point(arena_constructor:google.protobuf.StringValue) |
| 2038 } | 2143 } |
| 2144 |
| 2145 void StringValue::InitAsDefaultInstance() { |
| 2146 _is_default_instance_ = true; |
| 2147 } |
| 2148 |
| 2039 StringValue::StringValue(const StringValue& from) | 2149 StringValue::StringValue(const StringValue& from) |
| 2040 : ::google::protobuf::Message(), | 2150 : ::google::protobuf::Message(), |
| 2041 _internal_metadata_(NULL), | 2151 _internal_metadata_(NULL) { |
| 2042 _cached_size_(0) { | 2152 SharedCtor(); |
| 2043 _internal_metadata_.MergeFrom(from._internal_metadata_); | 2153 MergeFrom(from); |
| 2044 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); | |
| 2045 if (from.value().size() > 0) { | |
| 2046 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), fro
m.value(), | |
| 2047 GetArenaNoVirtual()); | |
| 2048 } | |
| 2049 // @@protoc_insertion_point(copy_constructor:google.protobuf.StringValue) | 2154 // @@protoc_insertion_point(copy_constructor:google.protobuf.StringValue) |
| 2050 } | 2155 } |
| 2051 | 2156 |
| 2052 void StringValue::SharedCtor() { | 2157 void StringValue::SharedCtor() { |
| 2158 _is_default_instance_ = false; |
| 2159 ::google::protobuf::internal::GetEmptyString(); |
| 2160 _cached_size_ = 0; |
| 2053 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); | 2161 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 2054 _cached_size_ = 0; | |
| 2055 } | 2162 } |
| 2056 | 2163 |
| 2057 StringValue::~StringValue() { | 2164 StringValue::~StringValue() { |
| 2058 // @@protoc_insertion_point(destructor:google.protobuf.StringValue) | 2165 // @@protoc_insertion_point(destructor:google.protobuf.StringValue) |
| 2059 SharedDtor(); | 2166 SharedDtor(); |
| 2060 } | 2167 } |
| 2061 | 2168 |
| 2062 void StringValue::SharedDtor() { | 2169 void StringValue::SharedDtor() { |
| 2063 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 2170 if (GetArenaNoVirtual() != NULL) { |
| 2064 if (arena != NULL) { | |
| 2065 return; | 2171 return; |
| 2066 } | 2172 } |
| 2067 | 2173 |
| 2068 value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), a
rena); | 2174 value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), G
etArenaNoVirtual()); |
| 2175 if (this != default_instance_) { |
| 2176 } |
| 2069 } | 2177 } |
| 2070 | 2178 |
| 2071 void StringValue::ArenaDtor(void* object) { | 2179 void StringValue::ArenaDtor(void* object) { |
| 2072 StringValue* _this = reinterpret_cast< StringValue* >(object); | 2180 StringValue* _this = reinterpret_cast< StringValue* >(object); |
| 2073 (void)_this; | 2181 (void)_this; |
| 2074 } | 2182 } |
| 2075 void StringValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 2183 void StringValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 2076 } | 2184 } |
| 2077 void StringValue::SetCachedSize(int size) const { | 2185 void StringValue::SetCachedSize(int size) const { |
| 2078 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2186 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2079 _cached_size_ = size; | 2187 _cached_size_ = size; |
| 2080 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2188 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2081 } | 2189 } |
| 2082 const ::google::protobuf::Descriptor* StringValue::descriptor() { | 2190 const ::google::protobuf::Descriptor* StringValue::descriptor() { |
| 2083 protobuf_AssignDescriptorsOnce(); | 2191 protobuf_AssignDescriptorsOnce(); |
| 2084 return file_level_metadata[7].descriptor; | 2192 return StringValue_descriptor_; |
| 2085 } | 2193 } |
| 2086 | 2194 |
| 2087 const StringValue& StringValue::default_instance() { | 2195 const StringValue& StringValue::default_instance() { |
| 2088 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 2196 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 2089 return *internal_default_instance(); | 2197 return *default_instance_; |
| 2090 } | 2198 } |
| 2091 | 2199 |
| 2200 StringValue* StringValue::default_instance_ = NULL; |
| 2201 |
| 2092 StringValue* StringValue::New(::google::protobuf::Arena* arena) const { | 2202 StringValue* StringValue::New(::google::protobuf::Arena* arena) const { |
| 2093 return ::google::protobuf::Arena::CreateMessage<StringValue>(arena); | 2203 return ::google::protobuf::Arena::CreateMessage<StringValue>(arena); |
| 2094 } | 2204 } |
| 2095 | 2205 |
| 2096 void StringValue::Clear() { | 2206 void StringValue::Clear() { |
| 2097 // @@protoc_insertion_point(message_clear_start:google.protobuf.StringValue) | 2207 // @@protoc_insertion_point(message_clear_start:google.protobuf.StringValue) |
| 2098 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), GetArenaNoVirtual()); | 2208 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), GetArenaNoVirtual()); |
| 2099 } | 2209 } |
| 2100 | 2210 |
| 2101 bool StringValue::MergePartialFromCodedStream( | 2211 bool StringValue::MergePartialFromCodedStream( |
| 2102 ::google::protobuf::io::CodedInputStream* input) { | 2212 ::google::protobuf::io::CodedInputStream* input) { |
| 2103 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 2213 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2104 ::google::protobuf::uint32 tag; | 2214 ::google::protobuf::uint32 tag; |
| 2105 // @@protoc_insertion_point(parse_start:google.protobuf.StringValue) | 2215 // @@protoc_insertion_point(parse_start:google.protobuf.StringValue) |
| 2106 for (;;) { | 2216 for (;;) { |
| 2107 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 2217 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 2108 tag = p.first; | 2218 tag = p.first; |
| 2109 if (!p.second) goto handle_unusual; | 2219 if (!p.second) goto handle_unusual; |
| 2110 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 2220 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 2111 // string value = 1; | 2221 // optional string value = 1; |
| 2112 case 1: { | 2222 case 1: { |
| 2113 if (tag == 10u) { | 2223 if (tag == 10) { |
| 2114 DO_(::google::protobuf::internal::WireFormatLite::ReadString( | 2224 DO_(::google::protobuf::internal::WireFormatLite::ReadString( |
| 2115 input, this->mutable_value())); | 2225 input, this->mutable_value())); |
| 2116 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 2226 DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2117 this->value().data(), this->value().length(), | 2227 this->value().data(), this->value().length(), |
| 2118 ::google::protobuf::internal::WireFormatLite::PARSE, | 2228 ::google::protobuf::internal::WireFormatLite::PARSE, |
| 2119 "google.protobuf.StringValue.value")); | 2229 "google.protobuf.StringValue.value")); |
| 2120 } else { | 2230 } else { |
| 2121 goto handle_unusual; | 2231 goto handle_unusual; |
| 2122 } | 2232 } |
| 2233 if (input->ExpectAtEnd()) goto success; |
| 2123 break; | 2234 break; |
| 2124 } | 2235 } |
| 2125 | 2236 |
| 2126 default: { | 2237 default: { |
| 2127 handle_unusual: | 2238 handle_unusual: |
| 2128 if (tag == 0 || | 2239 if (tag == 0 || |
| 2129 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2240 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 2130 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 2241 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 2131 goto success; | 2242 goto success; |
| 2132 } | 2243 } |
| 2133 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 2244 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 2134 break; | 2245 break; |
| 2135 } | 2246 } |
| 2136 } | 2247 } |
| 2137 } | 2248 } |
| 2138 success: | 2249 success: |
| 2139 // @@protoc_insertion_point(parse_success:google.protobuf.StringValue) | 2250 // @@protoc_insertion_point(parse_success:google.protobuf.StringValue) |
| 2140 return true; | 2251 return true; |
| 2141 failure: | 2252 failure: |
| 2142 // @@protoc_insertion_point(parse_failure:google.protobuf.StringValue) | 2253 // @@protoc_insertion_point(parse_failure:google.protobuf.StringValue) |
| 2143 return false; | 2254 return false; |
| 2144 #undef DO_ | 2255 #undef DO_ |
| 2145 } | 2256 } |
| 2146 | 2257 |
| 2147 void StringValue::SerializeWithCachedSizes( | 2258 void StringValue::SerializeWithCachedSizes( |
| 2148 ::google::protobuf::io::CodedOutputStream* output) const { | 2259 ::google::protobuf::io::CodedOutputStream* output) const { |
| 2149 // @@protoc_insertion_point(serialize_start:google.protobuf.StringValue) | 2260 // @@protoc_insertion_point(serialize_start:google.protobuf.StringValue) |
| 2150 // string value = 1; | 2261 // optional string value = 1; |
| 2151 if (this->value().size() > 0) { | 2262 if (this->value().size() > 0) { |
| 2152 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 2263 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2153 this->value().data(), this->value().length(), | 2264 this->value().data(), this->value().length(), |
| 2154 ::google::protobuf::internal::WireFormatLite::SERIALIZE, | 2265 ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2155 "google.protobuf.StringValue.value"); | 2266 "google.protobuf.StringValue.value"); |
| 2156 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( | 2267 ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( |
| 2157 1, this->value(), output); | 2268 1, this->value(), output); |
| 2158 } | 2269 } |
| 2159 | 2270 |
| 2160 // @@protoc_insertion_point(serialize_end:google.protobuf.StringValue) | 2271 // @@protoc_insertion_point(serialize_end:google.protobuf.StringValue) |
| 2161 } | 2272 } |
| 2162 | 2273 |
| 2163 ::google::protobuf::uint8* StringValue::InternalSerializeWithCachedSizesToArray( | 2274 ::google::protobuf::uint8* StringValue::SerializeWithCachedSizesToArray( |
| 2164 bool deterministic, ::google::protobuf::uint8* target) const { | 2275 ::google::protobuf::uint8* target) const { |
| 2165 (void)deterministic; // Unused | |
| 2166 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.StringVal
ue) | 2276 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.StringVal
ue) |
| 2167 // string value = 1; | 2277 // optional string value = 1; |
| 2168 if (this->value().size() > 0) { | 2278 if (this->value().size() > 0) { |
| 2169 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( | 2279 ::google::protobuf::internal::WireFormatLite::VerifyUtf8String( |
| 2170 this->value().data(), this->value().length(), | 2280 this->value().data(), this->value().length(), |
| 2171 ::google::protobuf::internal::WireFormatLite::SERIALIZE, | 2281 ::google::protobuf::internal::WireFormatLite::SERIALIZE, |
| 2172 "google.protobuf.StringValue.value"); | 2282 "google.protobuf.StringValue.value"); |
| 2173 target = | 2283 target = |
| 2174 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( | 2284 ::google::protobuf::internal::WireFormatLite::WriteStringToArray( |
| 2175 1, this->value(), target); | 2285 1, this->value(), target); |
| 2176 } | 2286 } |
| 2177 | 2287 |
| 2178 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.StringValue
) | 2288 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.StringValue
) |
| 2179 return target; | 2289 return target; |
| 2180 } | 2290 } |
| 2181 | 2291 |
| 2182 size_t StringValue::ByteSizeLong() const { | 2292 int StringValue::ByteSize() const { |
| 2183 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.StringValue) | 2293 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.StringValue) |
| 2184 size_t total_size = 0; | 2294 int total_size = 0; |
| 2185 | 2295 |
| 2186 // string value = 1; | 2296 // optional string value = 1; |
| 2187 if (this->value().size() > 0) { | 2297 if (this->value().size() > 0) { |
| 2188 total_size += 1 + | 2298 total_size += 1 + |
| 2189 ::google::protobuf::internal::WireFormatLite::StringSize( | 2299 ::google::protobuf::internal::WireFormatLite::StringSize( |
| 2190 this->value()); | 2300 this->value()); |
| 2191 } | 2301 } |
| 2192 | 2302 |
| 2193 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 2194 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2303 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2195 _cached_size_ = cached_size; | 2304 _cached_size_ = total_size; |
| 2196 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2305 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2197 return total_size; | 2306 return total_size; |
| 2198 } | 2307 } |
| 2199 | 2308 |
| 2200 void StringValue::MergeFrom(const ::google::protobuf::Message& from) { | 2309 void StringValue::MergeFrom(const ::google::protobuf::Message& from) { |
| 2201 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.StringV
alue) | 2310 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.StringV
alue) |
| 2202 GOOGLE_DCHECK_NE(&from, this); | 2311 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2203 const StringValue* source = | 2312 const StringValue* source = |
| 2204 ::google::protobuf::internal::DynamicCastToGenerated<const StringValue>( | 2313 ::google::protobuf::internal::DynamicCastToGenerated<const StringValue>( |
| 2205 &from); | 2314 &from); |
| 2206 if (source == NULL) { | 2315 if (source == NULL) { |
| 2207 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
tringValue) | 2316 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.S
tringValue) |
| 2208 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 2317 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2209 } else { | 2318 } else { |
| 2210 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.StringValue) | 2319 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.StringValue) |
| 2211 MergeFrom(*source); | 2320 MergeFrom(*source); |
| 2212 } | 2321 } |
| 2213 } | 2322 } |
| 2214 | 2323 |
| 2215 void StringValue::MergeFrom(const StringValue& from) { | 2324 void StringValue::MergeFrom(const StringValue& from) { |
| 2216 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Stri
ngValue) | 2325 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Stri
ngValue) |
| 2217 GOOGLE_DCHECK_NE(&from, this); | 2326 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2218 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 2219 if (from.value().size() > 0) { | 2327 if (from.value().size() > 0) { |
| 2220 set_value(from.value()); | 2328 set_value(from.value()); |
| 2221 } | 2329 } |
| 2222 } | 2330 } |
| 2223 | 2331 |
| 2224 void StringValue::CopyFrom(const ::google::protobuf::Message& from) { | 2332 void StringValue::CopyFrom(const ::google::protobuf::Message& from) { |
| 2225 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.StringVa
lue) | 2333 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.StringVa
lue) |
| 2226 if (&from == this) return; | 2334 if (&from == this) return; |
| 2227 Clear(); | 2335 Clear(); |
| 2228 MergeFrom(from); | 2336 MergeFrom(from); |
| 2229 } | 2337 } |
| 2230 | 2338 |
| 2231 void StringValue::CopyFrom(const StringValue& from) { | 2339 void StringValue::CopyFrom(const StringValue& from) { |
| 2232 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Strin
gValue) | 2340 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Strin
gValue) |
| 2233 if (&from == this) return; | 2341 if (&from == this) return; |
| 2234 Clear(); | 2342 Clear(); |
| 2235 MergeFrom(from); | 2343 MergeFrom(from); |
| 2236 } | 2344 } |
| 2237 | 2345 |
| 2238 bool StringValue::IsInitialized() const { | 2346 bool StringValue::IsInitialized() const { |
| 2347 |
| 2239 return true; | 2348 return true; |
| 2240 } | 2349 } |
| 2241 | 2350 |
| 2242 void StringValue::Swap(StringValue* other) { | 2351 void StringValue::Swap(StringValue* other) { |
| 2243 if (other == this) return; | 2352 if (other == this) return; |
| 2244 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 2353 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 2245 InternalSwap(other); | 2354 InternalSwap(other); |
| 2246 } else { | 2355 } else { |
| 2247 StringValue* temp = New(GetArenaNoVirtual()); | 2356 StringValue temp; |
| 2248 temp->MergeFrom(*other); | 2357 temp.MergeFrom(*this); |
| 2249 other->CopyFrom(*this); | 2358 CopyFrom(*other); |
| 2250 InternalSwap(temp); | 2359 other->CopyFrom(temp); |
| 2251 if (GetArenaNoVirtual() == NULL) { | |
| 2252 delete temp; | |
| 2253 } | |
| 2254 } | 2360 } |
| 2255 } | 2361 } |
| 2256 void StringValue::UnsafeArenaSwap(StringValue* other) { | 2362 void StringValue::UnsafeArenaSwap(StringValue* other) { |
| 2257 if (other == this) return; | 2363 if (other == this) return; |
| 2258 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 2364 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 2259 InternalSwap(other); | 2365 InternalSwap(other); |
| 2260 } | 2366 } |
| 2261 void StringValue::InternalSwap(StringValue* other) { | 2367 void StringValue::InternalSwap(StringValue* other) { |
| 2262 value_.Swap(&other->value_); | 2368 value_.Swap(&other->value_); |
| 2369 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2263 std::swap(_cached_size_, other->_cached_size_); | 2370 std::swap(_cached_size_, other->_cached_size_); |
| 2264 } | 2371 } |
| 2265 | 2372 |
| 2266 ::google::protobuf::Metadata StringValue::GetMetadata() const { | 2373 ::google::protobuf::Metadata StringValue::GetMetadata() const { |
| 2267 protobuf_AssignDescriptorsOnce(); | 2374 protobuf_AssignDescriptorsOnce(); |
| 2268 return file_level_metadata[7]; | 2375 ::google::protobuf::Metadata metadata; |
| 2376 metadata.descriptor = StringValue_descriptor_; |
| 2377 metadata.reflection = StringValue_reflection_; |
| 2378 return metadata; |
| 2269 } | 2379 } |
| 2270 | 2380 |
| 2271 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 2381 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2272 // StringValue | 2382 // StringValue |
| 2273 | 2383 |
| 2274 // string value = 1; | 2384 // optional string value = 1; |
| 2275 void StringValue::clear_value() { | 2385 void StringValue::clear_value() { |
| 2276 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), GetArenaNoVirtual()); | 2386 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), GetArenaNoVirtual()); |
| 2277 } | 2387 } |
| 2278 const ::std::string& StringValue::value() const { | 2388 const ::std::string& StringValue::value() const { |
| 2279 // @@protoc_insertion_point(field_get:google.protobuf.StringValue.value) | 2389 // @@protoc_insertion_point(field_get:google.protobuf.StringValue.value) |
| 2280 return value_.Get(); | 2390 return value_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
); |
| 2281 } | 2391 } |
| 2282 void StringValue::set_value(const ::std::string& value) { | 2392 void StringValue::set_value(const ::std::string& value) { |
| 2283 | 2393 |
| 2284 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value
, GetArenaNoVirtual()); | 2394 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value
, GetArenaNoVirtual()); |
| 2285 // @@protoc_insertion_point(field_set:google.protobuf.StringValue.value) | 2395 // @@protoc_insertion_point(field_set:google.protobuf.StringValue.value) |
| 2286 } | 2396 } |
| 2287 void StringValue::set_value(const char* value) { | 2397 void StringValue::set_value(const char* value) { |
| 2288 | 2398 |
| 2289 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std
::string(value), | 2399 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std
::string(value), |
| 2290 GetArenaNoVirtual()); | 2400 GetArenaNoVirtual()); |
| 2291 // @@protoc_insertion_point(field_set_char:google.protobuf.StringValue.value) | 2401 // @@protoc_insertion_point(field_set_char:google.protobuf.StringValue.value) |
| 2292 } | 2402 } |
| 2293 void StringValue::set_value(const char* value, | 2403 void StringValue::set_value(const char* value, |
| 2294 size_t size) { | 2404 size_t size) { |
| 2295 | 2405 |
| 2296 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std
::string( | 2406 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std
::string( |
| 2297 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); | 2407 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 2298 // @@protoc_insertion_point(field_set_pointer:google.protobuf.StringValue.valu
e) | 2408 // @@protoc_insertion_point(field_set_pointer:google.protobuf.StringValue.valu
e) |
| 2299 } | 2409 } |
| 2300 ::std::string* StringValue::mutable_value() { | 2410 ::std::string* StringValue::mutable_value() { |
| 2301 | 2411 |
| 2302 // @@protoc_insertion_point(field_mutable:google.protobuf.StringValue.value) | 2412 // @@protoc_insertion_point(field_mutable:google.protobuf.StringValue.value) |
| 2303 return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), GetArenaNoVirtual()); | 2413 return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), GetArenaNoVirtual()); |
| 2304 } | 2414 } |
| 2305 ::std::string* StringValue::release_value() { | 2415 ::std::string* StringValue::release_value() { |
| 2306 // @@protoc_insertion_point(field_release:google.protobuf.StringValue.value) | 2416 // @@protoc_insertion_point(field_release:google.protobuf.StringValue.value) |
| 2307 | 2417 |
| 2308 return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), GetArenaNoVirtual()); | 2418 return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), GetArenaNoVirtual()); |
| 2309 } | 2419 } |
| 2310 ::std::string* StringValue::unsafe_arena_release_value() { | 2420 ::std::string* StringValue::unsafe_arena_release_value() { |
| 2311 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.StringV
alue.value) | 2421 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.StringV
alue.value) |
| 2312 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); | 2422 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 2313 | 2423 |
| 2314 return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), | 2424 return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), |
| 2315 GetArenaNoVirtual()); | 2425 GetArenaNoVirtual()); |
| 2316 } | 2426 } |
| 2317 void StringValue::set_allocated_value(::std::string* value) { | 2427 void StringValue::set_allocated_value(::std::string* value) { |
| 2318 if (value != NULL) { | 2428 if (value != NULL) { |
| 2319 | 2429 |
| 2320 } else { | 2430 } else { |
| 2321 | 2431 |
| 2322 } | 2432 } |
| 2323 value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value, | 2433 value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value, |
| 2324 GetArenaNoVirtual()); | 2434 GetArenaNoVirtual()); |
| 2325 // @@protoc_insertion_point(field_set_allocated:google.protobuf.StringValue.va
lue) | 2435 // @@protoc_insertion_point(field_set_allocated:google.protobuf.StringValue.va
lue) |
| 2326 } | 2436 } |
| 2327 void StringValue::unsafe_arena_set_allocated_value( | 2437 void StringValue::unsafe_arena_set_allocated_value( |
| 2328 ::std::string* value) { | 2438 ::std::string* value) { |
| 2329 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); | 2439 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 2330 if (value != NULL) { | 2440 if (value != NULL) { |
| 2331 | 2441 |
| 2332 } else { | 2442 } else { |
| 2333 | 2443 |
| 2334 } | 2444 } |
| 2335 value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), | 2445 value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), |
| 2336 value, GetArenaNoVirtual()); | 2446 value, GetArenaNoVirtual()); |
| 2337 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.S
tringValue.value) | 2447 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.S
tringValue.value) |
| 2338 } | 2448 } |
| 2339 | 2449 |
| 2340 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 2450 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2341 | 2451 |
| 2342 // =================================================================== | 2452 // =================================================================== |
| 2343 | 2453 |
| 2344 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 2454 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2345 const int BytesValue::kValueFieldNumber; | 2455 const int BytesValue::kValueFieldNumber; |
| 2346 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 2456 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 2347 | 2457 |
| 2348 BytesValue::BytesValue() | 2458 BytesValue::BytesValue() |
| 2349 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 2459 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 2350 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 2351 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 2352 } | |
| 2353 SharedCtor(); | 2460 SharedCtor(); |
| 2354 // @@protoc_insertion_point(constructor:google.protobuf.BytesValue) | 2461 // @@protoc_insertion_point(constructor:google.protobuf.BytesValue) |
| 2355 } | 2462 } |
| 2463 |
| 2356 BytesValue::BytesValue(::google::protobuf::Arena* arena) | 2464 BytesValue::BytesValue(::google::protobuf::Arena* arena) |
| 2357 : ::google::protobuf::Message(), | 2465 : ::google::protobuf::Message(), |
| 2358 _internal_metadata_(arena) { | 2466 _internal_metadata_(arena) { |
| 2359 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 2360 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | |
| 2361 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 2362 SharedCtor(); | 2467 SharedCtor(); |
| 2363 RegisterArenaDtor(arena); | 2468 RegisterArenaDtor(arena); |
| 2364 // @@protoc_insertion_point(arena_constructor:google.protobuf.BytesValue) | 2469 // @@protoc_insertion_point(arena_constructor:google.protobuf.BytesValue) |
| 2365 } | 2470 } |
| 2471 |
| 2472 void BytesValue::InitAsDefaultInstance() { |
| 2473 _is_default_instance_ = true; |
| 2474 } |
| 2475 |
| 2366 BytesValue::BytesValue(const BytesValue& from) | 2476 BytesValue::BytesValue(const BytesValue& from) |
| 2367 : ::google::protobuf::Message(), | 2477 : ::google::protobuf::Message(), |
| 2368 _internal_metadata_(NULL), | 2478 _internal_metadata_(NULL) { |
| 2369 _cached_size_(0) { | 2479 SharedCtor(); |
| 2370 _internal_metadata_.MergeFrom(from._internal_metadata_); | 2480 MergeFrom(from); |
| 2371 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); | |
| 2372 if (from.value().size() > 0) { | |
| 2373 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), fro
m.value(), | |
| 2374 GetArenaNoVirtual()); | |
| 2375 } | |
| 2376 // @@protoc_insertion_point(copy_constructor:google.protobuf.BytesValue) | 2481 // @@protoc_insertion_point(copy_constructor:google.protobuf.BytesValue) |
| 2377 } | 2482 } |
| 2378 | 2483 |
| 2379 void BytesValue::SharedCtor() { | 2484 void BytesValue::SharedCtor() { |
| 2485 _is_default_instance_ = false; |
| 2486 ::google::protobuf::internal::GetEmptyString(); |
| 2487 _cached_size_ = 0; |
| 2380 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); | 2488 value_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyIn
ited()); |
| 2381 _cached_size_ = 0; | |
| 2382 } | 2489 } |
| 2383 | 2490 |
| 2384 BytesValue::~BytesValue() { | 2491 BytesValue::~BytesValue() { |
| 2385 // @@protoc_insertion_point(destructor:google.protobuf.BytesValue) | 2492 // @@protoc_insertion_point(destructor:google.protobuf.BytesValue) |
| 2386 SharedDtor(); | 2493 SharedDtor(); |
| 2387 } | 2494 } |
| 2388 | 2495 |
| 2389 void BytesValue::SharedDtor() { | 2496 void BytesValue::SharedDtor() { |
| 2390 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 2497 if (GetArenaNoVirtual() != NULL) { |
| 2391 if (arena != NULL) { | |
| 2392 return; | 2498 return; |
| 2393 } | 2499 } |
| 2394 | 2500 |
| 2395 value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), a
rena); | 2501 value_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), G
etArenaNoVirtual()); |
| 2502 if (this != default_instance_) { |
| 2503 } |
| 2396 } | 2504 } |
| 2397 | 2505 |
| 2398 void BytesValue::ArenaDtor(void* object) { | 2506 void BytesValue::ArenaDtor(void* object) { |
| 2399 BytesValue* _this = reinterpret_cast< BytesValue* >(object); | 2507 BytesValue* _this = reinterpret_cast< BytesValue* >(object); |
| 2400 (void)_this; | 2508 (void)_this; |
| 2401 } | 2509 } |
| 2402 void BytesValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 2510 void BytesValue::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 2403 } | 2511 } |
| 2404 void BytesValue::SetCachedSize(int size) const { | 2512 void BytesValue::SetCachedSize(int size) const { |
| 2405 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2513 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2406 _cached_size_ = size; | 2514 _cached_size_ = size; |
| 2407 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2515 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2408 } | 2516 } |
| 2409 const ::google::protobuf::Descriptor* BytesValue::descriptor() { | 2517 const ::google::protobuf::Descriptor* BytesValue::descriptor() { |
| 2410 protobuf_AssignDescriptorsOnce(); | 2518 protobuf_AssignDescriptorsOnce(); |
| 2411 return file_level_metadata[8].descriptor; | 2519 return BytesValue_descriptor_; |
| 2412 } | 2520 } |
| 2413 | 2521 |
| 2414 const BytesValue& BytesValue::default_instance() { | 2522 const BytesValue& BytesValue::default_instance() { |
| 2415 protobuf_InitDefaults_google_2fprotobuf_2fwrappers_2eproto(); | 2523 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fwrappers_2
eproto(); |
| 2416 return *internal_default_instance(); | 2524 return *default_instance_; |
| 2417 } | 2525 } |
| 2418 | 2526 |
| 2527 BytesValue* BytesValue::default_instance_ = NULL; |
| 2528 |
| 2419 BytesValue* BytesValue::New(::google::protobuf::Arena* arena) const { | 2529 BytesValue* BytesValue::New(::google::protobuf::Arena* arena) const { |
| 2420 return ::google::protobuf::Arena::CreateMessage<BytesValue>(arena); | 2530 return ::google::protobuf::Arena::CreateMessage<BytesValue>(arena); |
| 2421 } | 2531 } |
| 2422 | 2532 |
| 2423 void BytesValue::Clear() { | 2533 void BytesValue::Clear() { |
| 2424 // @@protoc_insertion_point(message_clear_start:google.protobuf.BytesValue) | 2534 // @@protoc_insertion_point(message_clear_start:google.protobuf.BytesValue) |
| 2425 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), GetArenaNoVirtual()); | 2535 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), GetArenaNoVirtual()); |
| 2426 } | 2536 } |
| 2427 | 2537 |
| 2428 bool BytesValue::MergePartialFromCodedStream( | 2538 bool BytesValue::MergePartialFromCodedStream( |
| 2429 ::google::protobuf::io::CodedInputStream* input) { | 2539 ::google::protobuf::io::CodedInputStream* input) { |
| 2430 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 2540 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 2431 ::google::protobuf::uint32 tag; | 2541 ::google::protobuf::uint32 tag; |
| 2432 // @@protoc_insertion_point(parse_start:google.protobuf.BytesValue) | 2542 // @@protoc_insertion_point(parse_start:google.protobuf.BytesValue) |
| 2433 for (;;) { | 2543 for (;;) { |
| 2434 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 2544 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 2435 tag = p.first; | 2545 tag = p.first; |
| 2436 if (!p.second) goto handle_unusual; | 2546 if (!p.second) goto handle_unusual; |
| 2437 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { | 2547 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)
) { |
| 2438 // bytes value = 1; | 2548 // optional bytes value = 1; |
| 2439 case 1: { | 2549 case 1: { |
| 2440 if (tag == 10u) { | 2550 if (tag == 10) { |
| 2441 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( | 2551 DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( |
| 2442 input, this->mutable_value())); | 2552 input, this->mutable_value())); |
| 2443 } else { | 2553 } else { |
| 2444 goto handle_unusual; | 2554 goto handle_unusual; |
| 2445 } | 2555 } |
| 2556 if (input->ExpectAtEnd()) goto success; |
| 2446 break; | 2557 break; |
| 2447 } | 2558 } |
| 2448 | 2559 |
| 2449 default: { | 2560 default: { |
| 2450 handle_unusual: | 2561 handle_unusual: |
| 2451 if (tag == 0 || | 2562 if (tag == 0 || |
| 2452 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 2563 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 2453 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 2564 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 2454 goto success; | 2565 goto success; |
| 2455 } | 2566 } |
| 2456 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; | 2567 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag))
; |
| 2457 break; | 2568 break; |
| 2458 } | 2569 } |
| 2459 } | 2570 } |
| 2460 } | 2571 } |
| 2461 success: | 2572 success: |
| 2462 // @@protoc_insertion_point(parse_success:google.protobuf.BytesValue) | 2573 // @@protoc_insertion_point(parse_success:google.protobuf.BytesValue) |
| 2463 return true; | 2574 return true; |
| 2464 failure: | 2575 failure: |
| 2465 // @@protoc_insertion_point(parse_failure:google.protobuf.BytesValue) | 2576 // @@protoc_insertion_point(parse_failure:google.protobuf.BytesValue) |
| 2466 return false; | 2577 return false; |
| 2467 #undef DO_ | 2578 #undef DO_ |
| 2468 } | 2579 } |
| 2469 | 2580 |
| 2470 void BytesValue::SerializeWithCachedSizes( | 2581 void BytesValue::SerializeWithCachedSizes( |
| 2471 ::google::protobuf::io::CodedOutputStream* output) const { | 2582 ::google::protobuf::io::CodedOutputStream* output) const { |
| 2472 // @@protoc_insertion_point(serialize_start:google.protobuf.BytesValue) | 2583 // @@protoc_insertion_point(serialize_start:google.protobuf.BytesValue) |
| 2473 // bytes value = 1; | 2584 // optional bytes value = 1; |
| 2474 if (this->value().size() > 0) { | 2585 if (this->value().size() > 0) { |
| 2475 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( | 2586 ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased( |
| 2476 1, this->value(), output); | 2587 1, this->value(), output); |
| 2477 } | 2588 } |
| 2478 | 2589 |
| 2479 // @@protoc_insertion_point(serialize_end:google.protobuf.BytesValue) | 2590 // @@protoc_insertion_point(serialize_end:google.protobuf.BytesValue) |
| 2480 } | 2591 } |
| 2481 | 2592 |
| 2482 ::google::protobuf::uint8* BytesValue::InternalSerializeWithCachedSizesToArray( | 2593 ::google::protobuf::uint8* BytesValue::SerializeWithCachedSizesToArray( |
| 2483 bool deterministic, ::google::protobuf::uint8* target) const { | 2594 ::google::protobuf::uint8* target) const { |
| 2484 (void)deterministic; // Unused | |
| 2485 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BytesValu
e) | 2595 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.BytesValu
e) |
| 2486 // bytes value = 1; | 2596 // optional bytes value = 1; |
| 2487 if (this->value().size() > 0) { | 2597 if (this->value().size() > 0) { |
| 2488 target = | 2598 target = |
| 2489 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( | 2599 ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( |
| 2490 1, this->value(), target); | 2600 1, this->value(), target); |
| 2491 } | 2601 } |
| 2492 | 2602 |
| 2493 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BytesValue) | 2603 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.BytesValue) |
| 2494 return target; | 2604 return target; |
| 2495 } | 2605 } |
| 2496 | 2606 |
| 2497 size_t BytesValue::ByteSizeLong() const { | 2607 int BytesValue::ByteSize() const { |
| 2498 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BytesValue) | 2608 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.BytesValue) |
| 2499 size_t total_size = 0; | 2609 int total_size = 0; |
| 2500 | 2610 |
| 2501 // bytes value = 1; | 2611 // optional bytes value = 1; |
| 2502 if (this->value().size() > 0) { | 2612 if (this->value().size() > 0) { |
| 2503 total_size += 1 + | 2613 total_size += 1 + |
| 2504 ::google::protobuf::internal::WireFormatLite::BytesSize( | 2614 ::google::protobuf::internal::WireFormatLite::BytesSize( |
| 2505 this->value()); | 2615 this->value()); |
| 2506 } | 2616 } |
| 2507 | 2617 |
| 2508 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 2509 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 2618 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 2510 _cached_size_ = cached_size; | 2619 _cached_size_ = total_size; |
| 2511 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 2620 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 2512 return total_size; | 2621 return total_size; |
| 2513 } | 2622 } |
| 2514 | 2623 |
| 2515 void BytesValue::MergeFrom(const ::google::protobuf::Message& from) { | 2624 void BytesValue::MergeFrom(const ::google::protobuf::Message& from) { |
| 2516 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.BytesVa
lue) | 2625 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.BytesVa
lue) |
| 2517 GOOGLE_DCHECK_NE(&from, this); | 2626 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2518 const BytesValue* source = | 2627 const BytesValue* source = |
| 2519 ::google::protobuf::internal::DynamicCastToGenerated<const BytesValue>( | 2628 ::google::protobuf::internal::DynamicCastToGenerated<const BytesValue>( |
| 2520 &from); | 2629 &from); |
| 2521 if (source == NULL) { | 2630 if (source == NULL) { |
| 2522 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.B
ytesValue) | 2631 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.B
ytesValue) |
| 2523 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 2632 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 2524 } else { | 2633 } else { |
| 2525 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.BytesValue) | 2634 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.BytesValue) |
| 2526 MergeFrom(*source); | 2635 MergeFrom(*source); |
| 2527 } | 2636 } |
| 2528 } | 2637 } |
| 2529 | 2638 |
| 2530 void BytesValue::MergeFrom(const BytesValue& from) { | 2639 void BytesValue::MergeFrom(const BytesValue& from) { |
| 2531 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Byte
sValue) | 2640 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Byte
sValue) |
| 2532 GOOGLE_DCHECK_NE(&from, this); | 2641 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 2533 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 2534 if (from.value().size() > 0) { | 2642 if (from.value().size() > 0) { |
| 2535 set_value(from.value()); | 2643 set_value(from.value()); |
| 2536 } | 2644 } |
| 2537 } | 2645 } |
| 2538 | 2646 |
| 2539 void BytesValue::CopyFrom(const ::google::protobuf::Message& from) { | 2647 void BytesValue::CopyFrom(const ::google::protobuf::Message& from) { |
| 2540 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.BytesVal
ue) | 2648 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.BytesVal
ue) |
| 2541 if (&from == this) return; | 2649 if (&from == this) return; |
| 2542 Clear(); | 2650 Clear(); |
| 2543 MergeFrom(from); | 2651 MergeFrom(from); |
| 2544 } | 2652 } |
| 2545 | 2653 |
| 2546 void BytesValue::CopyFrom(const BytesValue& from) { | 2654 void BytesValue::CopyFrom(const BytesValue& from) { |
| 2547 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Bytes
Value) | 2655 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Bytes
Value) |
| 2548 if (&from == this) return; | 2656 if (&from == this) return; |
| 2549 Clear(); | 2657 Clear(); |
| 2550 MergeFrom(from); | 2658 MergeFrom(from); |
| 2551 } | 2659 } |
| 2552 | 2660 |
| 2553 bool BytesValue::IsInitialized() const { | 2661 bool BytesValue::IsInitialized() const { |
| 2662 |
| 2554 return true; | 2663 return true; |
| 2555 } | 2664 } |
| 2556 | 2665 |
| 2557 void BytesValue::Swap(BytesValue* other) { | 2666 void BytesValue::Swap(BytesValue* other) { |
| 2558 if (other == this) return; | 2667 if (other == this) return; |
| 2559 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 2668 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 2560 InternalSwap(other); | 2669 InternalSwap(other); |
| 2561 } else { | 2670 } else { |
| 2562 BytesValue* temp = New(GetArenaNoVirtual()); | 2671 BytesValue temp; |
| 2563 temp->MergeFrom(*other); | 2672 temp.MergeFrom(*this); |
| 2564 other->CopyFrom(*this); | 2673 CopyFrom(*other); |
| 2565 InternalSwap(temp); | 2674 other->CopyFrom(temp); |
| 2566 if (GetArenaNoVirtual() == NULL) { | |
| 2567 delete temp; | |
| 2568 } | |
| 2569 } | 2675 } |
| 2570 } | 2676 } |
| 2571 void BytesValue::UnsafeArenaSwap(BytesValue* other) { | 2677 void BytesValue::UnsafeArenaSwap(BytesValue* other) { |
| 2572 if (other == this) return; | 2678 if (other == this) return; |
| 2573 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 2679 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 2574 InternalSwap(other); | 2680 InternalSwap(other); |
| 2575 } | 2681 } |
| 2576 void BytesValue::InternalSwap(BytesValue* other) { | 2682 void BytesValue::InternalSwap(BytesValue* other) { |
| 2577 value_.Swap(&other->value_); | 2683 value_.Swap(&other->value_); |
| 2684 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 2578 std::swap(_cached_size_, other->_cached_size_); | 2685 std::swap(_cached_size_, other->_cached_size_); |
| 2579 } | 2686 } |
| 2580 | 2687 |
| 2581 ::google::protobuf::Metadata BytesValue::GetMetadata() const { | 2688 ::google::protobuf::Metadata BytesValue::GetMetadata() const { |
| 2582 protobuf_AssignDescriptorsOnce(); | 2689 protobuf_AssignDescriptorsOnce(); |
| 2583 return file_level_metadata[8]; | 2690 ::google::protobuf::Metadata metadata; |
| 2691 metadata.descriptor = BytesValue_descriptor_; |
| 2692 metadata.reflection = BytesValue_reflection_; |
| 2693 return metadata; |
| 2584 } | 2694 } |
| 2585 | 2695 |
| 2586 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 2696 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2587 // BytesValue | 2697 // BytesValue |
| 2588 | 2698 |
| 2589 // bytes value = 1; | 2699 // optional bytes value = 1; |
| 2590 void BytesValue::clear_value() { | 2700 void BytesValue::clear_value() { |
| 2591 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), GetArenaNoVirtual()); | 2701 value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), GetArenaNoVirtual()); |
| 2592 } | 2702 } |
| 2593 const ::std::string& BytesValue::value() const { | 2703 const ::std::string& BytesValue::value() const { |
| 2594 // @@protoc_insertion_point(field_get:google.protobuf.BytesValue.value) | 2704 // @@protoc_insertion_point(field_get:google.protobuf.BytesValue.value) |
| 2595 return value_.Get(); | 2705 return value_.Get(&::google::protobuf::internal::GetEmptyStringAlreadyInited()
); |
| 2596 } | 2706 } |
| 2597 void BytesValue::set_value(const ::std::string& value) { | 2707 void BytesValue::set_value(const ::std::string& value) { |
| 2598 | 2708 |
| 2599 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value
, GetArenaNoVirtual()); | 2709 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value
, GetArenaNoVirtual()); |
| 2600 // @@protoc_insertion_point(field_set:google.protobuf.BytesValue.value) | 2710 // @@protoc_insertion_point(field_set:google.protobuf.BytesValue.value) |
| 2601 } | 2711 } |
| 2602 void BytesValue::set_value(const char* value) { | 2712 void BytesValue::set_value(const char* value) { |
| 2603 | 2713 |
| 2604 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std
::string(value), | 2714 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std
::string(value), |
| 2605 GetArenaNoVirtual()); | 2715 GetArenaNoVirtual()); |
| 2606 // @@protoc_insertion_point(field_set_char:google.protobuf.BytesValue.value) | 2716 // @@protoc_insertion_point(field_set_char:google.protobuf.BytesValue.value) |
| 2607 } | 2717 } |
| 2608 void BytesValue::set_value(const void* value, | 2718 void BytesValue::set_value(const void* value, |
| 2609 size_t size) { | 2719 size_t size) { |
| 2610 | 2720 |
| 2611 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std
::string( | 2721 value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std
::string( |
| 2612 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); | 2722 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
| 2613 // @@protoc_insertion_point(field_set_pointer:google.protobuf.BytesValue.value
) | 2723 // @@protoc_insertion_point(field_set_pointer:google.protobuf.BytesValue.value
) |
| 2614 } | 2724 } |
| 2615 ::std::string* BytesValue::mutable_value() { | 2725 ::std::string* BytesValue::mutable_value() { |
| 2616 | 2726 |
| 2617 // @@protoc_insertion_point(field_mutable:google.protobuf.BytesValue.value) | 2727 // @@protoc_insertion_point(field_mutable:google.protobuf.BytesValue.value) |
| 2618 return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), GetArenaNoVirtual()); | 2728 return value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), GetArenaNoVirtual()); |
| 2619 } | 2729 } |
| 2620 ::std::string* BytesValue::release_value() { | 2730 ::std::string* BytesValue::release_value() { |
| 2621 // @@protoc_insertion_point(field_release:google.protobuf.BytesValue.value) | 2731 // @@protoc_insertion_point(field_release:google.protobuf.BytesValue.value) |
| 2622 | 2732 |
| 2623 return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), GetArenaNoVirtual()); | 2733 return value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInit
ed(), GetArenaNoVirtual()); |
| 2624 } | 2734 } |
| 2625 ::std::string* BytesValue::unsafe_arena_release_value() { | 2735 ::std::string* BytesValue::unsafe_arena_release_value() { |
| 2626 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.BytesVa
lue.value) | 2736 // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.BytesVa
lue.value) |
| 2627 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); | 2737 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 2628 | 2738 |
| 2629 return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), | 2739 return value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyString
AlreadyInited(), |
| 2630 GetArenaNoVirtual()); | 2740 GetArenaNoVirtual()); |
| 2631 } | 2741 } |
| 2632 void BytesValue::set_allocated_value(::std::string* value) { | 2742 void BytesValue::set_allocated_value(::std::string* value) { |
| 2633 if (value != NULL) { | 2743 if (value != NULL) { |
| 2634 | 2744 |
| 2635 } else { | 2745 } else { |
| 2636 | 2746 |
| 2637 } | 2747 } |
| 2638 value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value, | 2748 value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited
(), value, |
| 2639 GetArenaNoVirtual()); | 2749 GetArenaNoVirtual()); |
| 2640 // @@protoc_insertion_point(field_set_allocated:google.protobuf.BytesValue.val
ue) | 2750 // @@protoc_insertion_point(field_set_allocated:google.protobuf.BytesValue.val
ue) |
| 2641 } | 2751 } |
| 2642 void BytesValue::unsafe_arena_set_allocated_value( | 2752 void BytesValue::unsafe_arena_set_allocated_value( |
| 2643 ::std::string* value) { | 2753 ::std::string* value) { |
| 2644 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); | 2754 GOOGLE_DCHECK(GetArenaNoVirtual() != NULL); |
| 2645 if (value != NULL) { | 2755 if (value != NULL) { |
| 2646 | 2756 |
| 2647 } else { | 2757 } else { |
| 2648 | 2758 |
| 2649 } | 2759 } |
| 2650 value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), | 2760 value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAl
readyInited(), |
| 2651 value, GetArenaNoVirtual()); | 2761 value, GetArenaNoVirtual()); |
| 2652 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.B
ytesValue.value) | 2762 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.B
ytesValue.value) |
| 2653 } | 2763 } |
| 2654 | 2764 |
| 2655 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 2765 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 2656 | 2766 |
| 2657 // @@protoc_insertion_point(namespace_scope) | 2767 // @@protoc_insertion_point(namespace_scope) |
| 2658 | 2768 |
| 2659 } // namespace protobuf | 2769 } // namespace protobuf |
| 2660 } // namespace google | 2770 } // namespace google |
| 2661 | 2771 |
| 2662 // @@protoc_insertion_point(global_scope) | 2772 // @@protoc_insertion_point(global_scope) |
| OLD | NEW |