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