| 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/empty.proto | 2 // source: google/protobuf/empty.proto |
| 3 | 3 |
| 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION | 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
| 5 #include <google/protobuf/empty.pb.h> | 5 #include <google/protobuf/empty.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 EmptyDefaultTypeInternal : public ::google::protobuf::internal::Explicitly
Constructed<Empty> {}; | |
| 23 EmptyDefaultTypeInternal _Empty_default_instance_; | |
| 24 | 22 |
| 25 namespace { | 23 namespace { |
| 26 | 24 |
| 27 ::google::protobuf::Metadata file_level_metadata[1]; | 25 const ::google::protobuf::Descriptor* Empty_descriptor_ = NULL; |
| 26 const ::google::protobuf::internal::GeneratedMessageReflection* |
| 27 Empty_reflection_ = NULL; |
| 28 | 28 |
| 29 } // namespace | 29 } // namespace |
| 30 | 30 |
| 31 | 31 |
| 32 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fempty_2ep
roto() GOOGLE_ATTRIBUTE_COLD; | 32 void protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto() { |
| 33 const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2fempty_2ep
roto() { | 33 protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); |
| 34 static const ::google::protobuf::uint32 offsets[] = { | 34 const ::google::protobuf::FileDescriptor* file = |
| 35 ~0u, // no _has_bits_ | 35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( |
| 36 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Empty, _internal_metadata_), | 36 "google/protobuf/empty.proto"); |
| 37 ~0u, // no _extensions_ | 37 GOOGLE_CHECK(file != NULL); |
| 38 ~0u, // no _oneof_case_ | 38 Empty_descriptor_ = file->message_type(0); |
| 39 static const int Empty_offsets_[1] = { |
| 39 }; | 40 }; |
| 40 return offsets; | 41 Empty_reflection_ = |
| 42 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessag
eReflection( |
| 43 Empty_descriptor_, |
| 44 Empty::default_instance_, |
| 45 Empty_offsets_, |
| 46 -1, |
| 47 -1, |
| 48 -1, |
| 49 sizeof(Empty), |
| 50 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Empty, _internal_metadata_)
, |
| 51 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Empty, _is_default_instance
_)); |
| 41 } | 52 } |
| 42 | 53 |
| 43 static const ::google::protobuf::internal::MigrationSchema schemas[] = { | |
| 44 { 0, -1, sizeof(Empty)}, | |
| 45 }; | |
| 46 | |
| 47 static const ::google::protobuf::internal::DefaultInstanceData file_default_inst
ances[] = { | |
| 48 {reinterpret_cast<const ::google::protobuf::Message*>(&_Empty_default_instance
_), NULL}, | |
| 49 }; | |
| 50 | |
| 51 namespace { | 54 namespace { |
| 52 | 55 |
| 53 void protobuf_AssignDescriptors() { | 56 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
| 54 protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); | 57 inline void protobuf_AssignDescriptorsOnce() { |
| 55 ::google::protobuf::MessageFactory* factory = NULL; | 58 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
| 56 AssignDescriptors( | 59 &protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto); |
| 57 "google/protobuf/empty.proto", schemas, file_default_instances, protobuf_O
ffsets_google_2fprotobuf_2fempty_2eproto(), factory, | |
| 58 file_level_metadata, NULL, NULL); | |
| 59 } | 60 } |
| 60 | 61 |
| 61 void protobuf_AssignDescriptorsOnce() { | |
| 62 static GOOGLE_PROTOBUF_DECLARE_ONCE(once); | |
| 63 ::google::protobuf::GoogleOnceInit(&once, &protobuf_AssignDescriptors); | |
| 64 } | |
| 65 | |
| 66 void protobuf_RegisterTypes(const ::std::string&) GOOGLE_ATTRIBUTE_COLD; | |
| 67 void protobuf_RegisterTypes(const ::std::string&) { | 62 void protobuf_RegisterTypes(const ::std::string&) { |
| 68 protobuf_AssignDescriptorsOnce(); | 63 protobuf_AssignDescriptorsOnce(); |
| 69 ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1); | 64 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 65 Empty_descriptor_, &Empty::default_instance()); |
| 70 } | 66 } |
| 71 | 67 |
| 72 } // namespace | 68 } // namespace |
| 73 | 69 |
| 74 void protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto() { | 70 void protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto() { |
| 75 _Empty_default_instance_.Shutdown(); | 71 delete Empty::default_instance_; |
| 76 delete file_level_metadata[0].reflection; | 72 delete Empty_reflection_; |
| 77 } | 73 } |
| 78 | 74 |
| 79 void protobuf_InitDefaults_google_2fprotobuf_2fempty_2eproto_impl() { | 75 void protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto() { |
| 76 static bool already_here = false; |
| 77 if (already_here) return; |
| 78 already_here = true; |
| 80 GOOGLE_PROTOBUF_VERIFY_VERSION; | 79 GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 81 | 80 |
| 82 ::google::protobuf::internal::InitProtobufDefaults(); | |
| 83 _Empty_default_instance_.DefaultConstruct(); | |
| 84 } | |
| 85 | |
| 86 void protobuf_InitDefaults_google_2fprotobuf_2fempty_2eproto() { | |
| 87 static GOOGLE_PROTOBUF_DECLARE_ONCE(once); | |
| 88 ::google::protobuf::GoogleOnceInit(&once, &protobuf_InitDefaults_google_2fprot
obuf_2fempty_2eproto_impl); | |
| 89 } | |
| 90 void protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto_impl() { | |
| 91 protobuf_InitDefaults_google_2fprotobuf_2fempty_2eproto(); | |
| 92 static const char descriptor[] = { | |
| 93 "\n\033google/protobuf/empty.proto\022\017google.pr" | |
| 94 "otobuf\"\007\n\005EmptyBv\n\023com.google.protobufB\n" | |
| 95 "EmptyProtoP\001Z\'github.com/golang/protobuf" | |
| 96 "/ptypes/empty\370\001\001\242\002\003GPB\252\002\036Google.Protobuf" | |
| 97 ".WellKnownTypesb\006proto3" | |
| 98 }; | |
| 99 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( | 81 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| 100 descriptor, 183); | 82 "\n\033google/protobuf/empty.proto\022\017google.pr" |
| 83 "otobuf\"\007\n\005EmptyBy\n\023com.google.protobufB\n" |
| 84 "EmptyProtoP\001Z\'github.com/golang/protobuf" |
| 85 "/ptypes/empty\240\001\001\370\001\001\242\002\003GPB\252\002\036Google.Prot
o" |
| 86 "buf.WellKnownTypesb\006proto3", 186); |
| 101 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( | 87 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 102 "google/protobuf/empty.proto", &protobuf_RegisterTypes); | 88 "google/protobuf/empty.proto", &protobuf_RegisterTypes); |
| 89 Empty::default_instance_ = new Empty(); |
| 90 Empty::default_instance_->InitAsDefaultInstance(); |
| 103 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fempty_2eproto); | 91 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fproto
buf_2fempty_2eproto); |
| 104 } | 92 } |
| 105 | 93 |
| 106 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto_
once_); | |
| 107 void protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto() { | |
| 108 ::google::protobuf::GoogleOnceInit(&protobuf_AddDesc_google_2fprotobuf_2fempty
_2eproto_once_, | |
| 109 &protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto_impl); | |
| 110 } | |
| 111 // Force AddDescriptors() to be called at static initialization time. | 94 // Force AddDescriptors() to be called at static initialization time. |
| 112 struct StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto { | 95 struct StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto { |
| 113 StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto() { | 96 StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto() { |
| 114 protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); | 97 protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); |
| 115 } | 98 } |
| 116 } static_descriptor_initializer_google_2fprotobuf_2fempty_2eproto_; | 99 } static_descriptor_initializer_google_2fprotobuf_2fempty_2eproto_; |
| 117 | 100 |
| 101 namespace { |
| 102 |
| 103 static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
| 104 static void MergeFromFail(int line) { |
| 105 GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
| 106 } |
| 107 |
| 108 } // namespace |
| 109 |
| 110 |
| 118 // =================================================================== | 111 // =================================================================== |
| 119 | 112 |
| 120 #if !defined(_MSC_VER) || _MSC_VER >= 1900 | 113 #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 121 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 | 114 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 122 | 115 |
| 123 Empty::Empty() | 116 Empty::Empty() |
| 124 : ::google::protobuf::Message(), _internal_metadata_(NULL) { | 117 : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 125 if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) { | |
| 126 protobuf_InitDefaults_google_2fprotobuf_2fempty_2eproto(); | |
| 127 } | |
| 128 SharedCtor(); | 118 SharedCtor(); |
| 129 // @@protoc_insertion_point(constructor:google.protobuf.Empty) | 119 // @@protoc_insertion_point(constructor:google.protobuf.Empty) |
| 130 } | 120 } |
| 121 |
| 131 Empty::Empty(::google::protobuf::Arena* arena) | 122 Empty::Empty(::google::protobuf::Arena* arena) |
| 132 : ::google::protobuf::Message(), | 123 : ::google::protobuf::Message(), |
| 133 _internal_metadata_(arena) { | 124 _internal_metadata_(arena) { |
| 134 #ifdef GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 135 protobuf_InitDefaults_google_2fprotobuf_2fempty_2eproto(); | |
| 136 #endif // GOOGLE_PROTOBUF_NO_STATIC_INITIALIZER | |
| 137 SharedCtor(); | 125 SharedCtor(); |
| 138 RegisterArenaDtor(arena); | 126 RegisterArenaDtor(arena); |
| 139 // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty) | 127 // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty) |
| 140 } | 128 } |
| 129 |
| 130 void Empty::InitAsDefaultInstance() { |
| 131 _is_default_instance_ = true; |
| 132 } |
| 133 |
| 141 Empty::Empty(const Empty& from) | 134 Empty::Empty(const Empty& from) |
| 142 : ::google::protobuf::Message(), | 135 : ::google::protobuf::Message(), |
| 143 _internal_metadata_(NULL), | 136 _internal_metadata_(NULL) { |
| 144 _cached_size_(0) { | 137 SharedCtor(); |
| 145 _internal_metadata_.MergeFrom(from._internal_metadata_); | 138 MergeFrom(from); |
| 146 // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty) | 139 // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty) |
| 147 } | 140 } |
| 148 | 141 |
| 149 void Empty::SharedCtor() { | 142 void Empty::SharedCtor() { |
| 143 _is_default_instance_ = false; |
| 150 _cached_size_ = 0; | 144 _cached_size_ = 0; |
| 151 } | 145 } |
| 152 | 146 |
| 153 Empty::~Empty() { | 147 Empty::~Empty() { |
| 154 // @@protoc_insertion_point(destructor:google.protobuf.Empty) | 148 // @@protoc_insertion_point(destructor:google.protobuf.Empty) |
| 155 SharedDtor(); | 149 SharedDtor(); |
| 156 } | 150 } |
| 157 | 151 |
| 158 void Empty::SharedDtor() { | 152 void Empty::SharedDtor() { |
| 159 ::google::protobuf::Arena* arena = GetArenaNoVirtual(); | 153 if (GetArenaNoVirtual() != NULL) { |
| 160 if (arena != NULL) { | |
| 161 return; | 154 return; |
| 162 } | 155 } |
| 163 | 156 |
| 157 if (this != default_instance_) { |
| 158 } |
| 164 } | 159 } |
| 165 | 160 |
| 166 void Empty::ArenaDtor(void* object) { | 161 void Empty::ArenaDtor(void* object) { |
| 167 Empty* _this = reinterpret_cast< Empty* >(object); | 162 Empty* _this = reinterpret_cast< Empty* >(object); |
| 168 (void)_this; | 163 (void)_this; |
| 169 } | 164 } |
| 170 void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) { | 165 void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 171 } | 166 } |
| 172 void Empty::SetCachedSize(int size) const { | 167 void Empty::SetCachedSize(int size) const { |
| 173 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 168 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 174 _cached_size_ = size; | 169 _cached_size_ = size; |
| 175 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 170 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 176 } | 171 } |
| 177 const ::google::protobuf::Descriptor* Empty::descriptor() { | 172 const ::google::protobuf::Descriptor* Empty::descriptor() { |
| 178 protobuf_AssignDescriptorsOnce(); | 173 protobuf_AssignDescriptorsOnce(); |
| 179 return file_level_metadata[0].descriptor; | 174 return Empty_descriptor_; |
| 180 } | 175 } |
| 181 | 176 |
| 182 const Empty& Empty::default_instance() { | 177 const Empty& Empty::default_instance() { |
| 183 protobuf_InitDefaults_google_2fprotobuf_2fempty_2eproto(); | 178 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fempty_2epr
oto(); |
| 184 return *internal_default_instance(); | 179 return *default_instance_; |
| 185 } | 180 } |
| 186 | 181 |
| 182 Empty* Empty::default_instance_ = NULL; |
| 183 |
| 187 Empty* Empty::New(::google::protobuf::Arena* arena) const { | 184 Empty* Empty::New(::google::protobuf::Arena* arena) const { |
| 188 return ::google::protobuf::Arena::CreateMessage<Empty>(arena); | 185 return ::google::protobuf::Arena::CreateMessage<Empty>(arena); |
| 189 } | 186 } |
| 190 | 187 |
| 191 void Empty::Clear() { | 188 void Empty::Clear() { |
| 192 // @@protoc_insertion_point(message_clear_start:google.protobuf.Empty) | 189 // @@protoc_insertion_point(message_clear_start:google.protobuf.Empty) |
| 193 } | 190 } |
| 194 | 191 |
| 195 bool Empty::MergePartialFromCodedStream( | 192 bool Empty::MergePartialFromCodedStream( |
| 196 ::google::protobuf::io::CodedInputStream* input) { | 193 ::google::protobuf::io::CodedInputStream* input) { |
| 197 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure | 194 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure |
| 198 ::google::protobuf::uint32 tag; | 195 ::google::protobuf::uint32 tag; |
| 199 // @@protoc_insertion_point(parse_start:google.protobuf.Empty) | 196 // @@protoc_insertion_point(parse_start:google.protobuf.Empty) |
| 200 for (;;) { | 197 for (;;) { |
| 201 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffN
oLastTag(127u); | 198 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(
127); |
| 202 tag = p.first; | 199 tag = p.first; |
| 203 if (!p.second) goto handle_unusual; | 200 if (!p.second) goto handle_unusual; |
| 204 handle_unusual: | 201 handle_unusual: |
| 205 if (tag == 0 || | 202 if (tag == 0 || |
| 206 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == | 203 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 207 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { | 204 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 208 goto success; | 205 goto success; |
| 209 } | 206 } |
| 210 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); | 207 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); |
| 211 } | 208 } |
| 212 success: | 209 success: |
| 213 // @@protoc_insertion_point(parse_success:google.protobuf.Empty) | 210 // @@protoc_insertion_point(parse_success:google.protobuf.Empty) |
| 214 return true; | 211 return true; |
| 215 failure: | 212 failure: |
| 216 // @@protoc_insertion_point(parse_failure:google.protobuf.Empty) | 213 // @@protoc_insertion_point(parse_failure:google.protobuf.Empty) |
| 217 return false; | 214 return false; |
| 218 #undef DO_ | 215 #undef DO_ |
| 219 } | 216 } |
| 220 | 217 |
| 221 void Empty::SerializeWithCachedSizes( | 218 void Empty::SerializeWithCachedSizes( |
| 222 ::google::protobuf::io::CodedOutputStream* output) const { | 219 ::google::protobuf::io::CodedOutputStream* output) const { |
| 223 // @@protoc_insertion_point(serialize_start:google.protobuf.Empty) | 220 // @@protoc_insertion_point(serialize_start:google.protobuf.Empty) |
| 224 // @@protoc_insertion_point(serialize_end:google.protobuf.Empty) | 221 // @@protoc_insertion_point(serialize_end:google.protobuf.Empty) |
| 225 } | 222 } |
| 226 | 223 |
| 227 ::google::protobuf::uint8* Empty::InternalSerializeWithCachedSizesToArray( | 224 ::google::protobuf::uint8* Empty::SerializeWithCachedSizesToArray( |
| 228 bool deterministic, ::google::protobuf::uint8* target) const { | 225 ::google::protobuf::uint8* target) const { |
| 229 (void)deterministic; // Unused | |
| 230 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty) | 226 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty) |
| 231 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty) | 227 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty) |
| 232 return target; | 228 return target; |
| 233 } | 229 } |
| 234 | 230 |
| 235 size_t Empty::ByteSizeLong() const { | 231 int Empty::ByteSize() const { |
| 236 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Empty) | 232 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Empty) |
| 237 size_t total_size = 0; | 233 int total_size = 0; |
| 238 | 234 |
| 239 int cached_size = ::google::protobuf::internal::ToCachedSize(total_size); | |
| 240 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); | 235 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 241 _cached_size_ = cached_size; | 236 _cached_size_ = total_size; |
| 242 GOOGLE_SAFE_CONCURRENT_WRITES_END(); | 237 GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 243 return total_size; | 238 return total_size; |
| 244 } | 239 } |
| 245 | 240 |
| 246 void Empty::MergeFrom(const ::google::protobuf::Message& from) { | 241 void Empty::MergeFrom(const ::google::protobuf::Message& from) { |
| 247 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Empty) | 242 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Empty) |
| 248 GOOGLE_DCHECK_NE(&from, this); | 243 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 249 const Empty* source = | 244 const Empty* source = |
| 250 ::google::protobuf::internal::DynamicCastToGenerated<const Empty>( | 245 ::google::protobuf::internal::DynamicCastToGenerated<const Empty>( |
| 251 &from); | 246 &from); |
| 252 if (source == NULL) { | 247 if (source == NULL) { |
| 253 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
mpty) | 248 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.E
mpty) |
| 254 ::google::protobuf::internal::ReflectionOps::Merge(from, this); | 249 ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 255 } else { | 250 } else { |
| 256 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Empty) | 251 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobu
f.Empty) |
| 257 MergeFrom(*source); | 252 MergeFrom(*source); |
| 258 } | 253 } |
| 259 } | 254 } |
| 260 | 255 |
| 261 void Empty::MergeFrom(const Empty& from) { | 256 void Empty::MergeFrom(const Empty& from) { |
| 262 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Empt
y) | 257 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Empt
y) |
| 263 GOOGLE_DCHECK_NE(&from, this); | 258 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 264 _internal_metadata_.MergeFrom(from._internal_metadata_); | |
| 265 } | 259 } |
| 266 | 260 |
| 267 void Empty::CopyFrom(const ::google::protobuf::Message& from) { | 261 void Empty::CopyFrom(const ::google::protobuf::Message& from) { |
| 268 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Empty) | 262 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Empty) |
| 269 if (&from == this) return; | 263 if (&from == this) return; |
| 270 Clear(); | 264 Clear(); |
| 271 MergeFrom(from); | 265 MergeFrom(from); |
| 272 } | 266 } |
| 273 | 267 |
| 274 void Empty::CopyFrom(const Empty& from) { | 268 void Empty::CopyFrom(const Empty& from) { |
| 275 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Empty
) | 269 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Empty
) |
| 276 if (&from == this) return; | 270 if (&from == this) return; |
| 277 Clear(); | 271 Clear(); |
| 278 MergeFrom(from); | 272 MergeFrom(from); |
| 279 } | 273 } |
| 280 | 274 |
| 281 bool Empty::IsInitialized() const { | 275 bool Empty::IsInitialized() const { |
| 276 |
| 282 return true; | 277 return true; |
| 283 } | 278 } |
| 284 | 279 |
| 285 void Empty::Swap(Empty* other) { | 280 void Empty::Swap(Empty* other) { |
| 286 if (other == this) return; | 281 if (other == this) return; |
| 287 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { | 282 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 288 InternalSwap(other); | 283 InternalSwap(other); |
| 289 } else { | 284 } else { |
| 290 Empty* temp = New(GetArenaNoVirtual()); | 285 Empty temp; |
| 291 temp->MergeFrom(*other); | 286 temp.MergeFrom(*this); |
| 292 other->CopyFrom(*this); | 287 CopyFrom(*other); |
| 293 InternalSwap(temp); | 288 other->CopyFrom(temp); |
| 294 if (GetArenaNoVirtual() == NULL) { | |
| 295 delete temp; | |
| 296 } | |
| 297 } | 289 } |
| 298 } | 290 } |
| 299 void Empty::UnsafeArenaSwap(Empty* other) { | 291 void Empty::UnsafeArenaSwap(Empty* other) { |
| 300 if (other == this) return; | 292 if (other == this) return; |
| 301 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); | 293 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 302 InternalSwap(other); | 294 InternalSwap(other); |
| 303 } | 295 } |
| 304 void Empty::InternalSwap(Empty* other) { | 296 void Empty::InternalSwap(Empty* other) { |
| 297 _internal_metadata_.Swap(&other->_internal_metadata_); |
| 305 std::swap(_cached_size_, other->_cached_size_); | 298 std::swap(_cached_size_, other->_cached_size_); |
| 306 } | 299 } |
| 307 | 300 |
| 308 ::google::protobuf::Metadata Empty::GetMetadata() const { | 301 ::google::protobuf::Metadata Empty::GetMetadata() const { |
| 309 protobuf_AssignDescriptorsOnce(); | 302 protobuf_AssignDescriptorsOnce(); |
| 310 return file_level_metadata[0]; | 303 ::google::protobuf::Metadata metadata; |
| 304 metadata.descriptor = Empty_descriptor_; |
| 305 metadata.reflection = Empty_reflection_; |
| 306 return metadata; |
| 311 } | 307 } |
| 312 | 308 |
| 313 #if PROTOBUF_INLINE_NOT_IN_HEADERS | 309 #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 314 // Empty | 310 // Empty |
| 315 | 311 |
| 316 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS | 312 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 317 | 313 |
| 318 // @@protoc_insertion_point(namespace_scope) | 314 // @@protoc_insertion_point(namespace_scope) |
| 319 | 315 |
| 320 } // namespace protobuf | 316 } // namespace protobuf |
| 321 } // namespace google | 317 } // namespace google |
| 322 | 318 |
| 323 // @@protoc_insertion_point(global_scope) | 319 // @@protoc_insertion_point(global_scope) |
| OLD | NEW |