1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: google/protobuf/empty.proto 3 4 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION 5 #include <google/protobuf/empty.pb.h> 6 7 #include <algorithm> 8 9 #include <google/protobuf/stubs/common.h> 10 #include <google/protobuf/stubs/port.h> 11 #include <google/protobuf/stubs/once.h> 12 #include <google/protobuf/io/coded_stream.h> 13 #include <google/protobuf/wire_format_lite_inl.h> 14 #include <google/protobuf/descriptor.h> 15 #include <google/protobuf/generated_message_reflection.h> 16 #include <google/protobuf/reflection_ops.h> 17 #include <google/protobuf/wire_format.h> 18 // @@protoc_insertion_point(includes) 19 20 namespace google { 21 namespace protobuf { 22 23 namespace { 24 25 const ::google::protobuf::Descriptor* Empty_descriptor_ = NULL; 26 const ::google::protobuf::internal::GeneratedMessageReflection* 27 Empty_reflection_ = NULL; 28 29 } // namespace 30 31 32 void protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto() { 33 protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); 34 const ::google::protobuf::FileDescriptor* file = 35 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( 36 "google/protobuf/empty.proto"); 37 GOOGLE_CHECK(file != NULL); 38 Empty_descriptor_ = file->message_type(0); 39 static const int Empty_offsets_[1] = { 40 }; 41 Empty_reflection_ = 42 ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( 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_)); 52 } 53 54 namespace { 55 56 GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); 57 inline void protobuf_AssignDescriptorsOnce() { 58 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, 59 &protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto); 60 } 61 62 void protobuf_RegisterTypes(const ::std::string&) { 63 protobuf_AssignDescriptorsOnce(); 64 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( 65 Empty_descriptor_, &Empty::default_instance()); 66 } 67 68 } // namespace 69 70 void protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto() { 71 delete Empty::default_instance_; 72 delete Empty_reflection_; 73 } 74 75 void protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto() { 76 static bool already_here = false; 77 if (already_here) return; 78 already_here = true; 79 GOOGLE_PROTOBUF_VERIFY_VERSION; 80 81 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( 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.Proto" 86 "buf.WellKnownTypesb\006proto3", 186); 87 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( 88 "google/protobuf/empty.proto", &protobuf_RegisterTypes); 89 Empty::default_instance_ = new Empty(); 90 Empty::default_instance_->InitAsDefaultInstance(); 91 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto); 92 } 93 94 // Force AddDescriptors() to be called at static initialization time. 95 struct StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto { 96 StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto() { 97 protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); 98 } 99 } static_descriptor_initializer_google_2fprotobuf_2fempty_2eproto_; 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 111 // =================================================================== 112 113 #if !defined(_MSC_VER) || _MSC_VER >= 1900 114 #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 115 116 Empty::Empty() 117 : ::google::protobuf::Message(), _internal_metadata_(NULL) { 118 SharedCtor(); 119 // @@protoc_insertion_point(constructor:google.protobuf.Empty) 120 } 121 122 Empty::Empty(::google::protobuf::Arena* arena) 123 : ::google::protobuf::Message(), 124 _internal_metadata_(arena) { 125 SharedCtor(); 126 RegisterArenaDtor(arena); 127 // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty) 128 } 129 130 void Empty::InitAsDefaultInstance() { 131 _is_default_instance_ = true; 132 } 133 134 Empty::Empty(const Empty& from) 135 : ::google::protobuf::Message(), 136 _internal_metadata_(NULL) { 137 SharedCtor(); 138 MergeFrom(from); 139 // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty) 140 } 141 142 void Empty::SharedCtor() { 143 _is_default_instance_ = false; 144 _cached_size_ = 0; 145 } 146 147 Empty::~Empty() { 148 // @@protoc_insertion_point(destructor:google.protobuf.Empty) 149 SharedDtor(); 150 } 151 152 void Empty::SharedDtor() { 153 if (GetArenaNoVirtual() != NULL) { 154 return; 155 } 156 157 if (this != default_instance_) { 158 } 159 } 160 161 void Empty::ArenaDtor(void* object) { 162 Empty* _this = reinterpret_cast< Empty* >(object); 163 (void)_this; 164 } 165 void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) { 166 } 167 void Empty::SetCachedSize(int size) const { 168 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 169 _cached_size_ = size; 170 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 171 } 172 const ::google::protobuf::Descriptor* Empty::descriptor() { 173 protobuf_AssignDescriptorsOnce(); 174 return Empty_descriptor_; 175 } 176 177 const Empty& Empty::default_instance() { 178 if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); 179 return *default_instance_; 180 } 181 182 Empty* Empty::default_instance_ = NULL; 183 184 Empty* Empty::New(::google::protobuf::Arena* arena) const { 185 return ::google::protobuf::Arena::CreateMessage<Empty>(arena); 186 } 187 188 void Empty::Clear() { 189 // @@protoc_insertion_point(message_clear_start:google.protobuf.Empty) 190 } 191 192 bool Empty::MergePartialFromCodedStream( 193 ::google::protobuf::io::CodedInputStream* input) { 194 #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure 195 ::google::protobuf::uint32 tag; 196 // @@protoc_insertion_point(parse_start:google.protobuf.Empty) 197 for (;;) { 198 ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); 199 tag = p.first; 200 if (!p.second) goto handle_unusual; 201 handle_unusual: 202 if (tag == 0 || 203 ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == 204 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { 205 goto success; 206 } 207 DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); 208 } 209 success: 210 // @@protoc_insertion_point(parse_success:google.protobuf.Empty) 211 return true; 212 failure: 213 // @@protoc_insertion_point(parse_failure:google.protobuf.Empty) 214 return false; 215 #undef DO_ 216 } 217 218 void Empty::SerializeWithCachedSizes( 219 ::google::protobuf::io::CodedOutputStream* output) const { 220 // @@protoc_insertion_point(serialize_start:google.protobuf.Empty) 221 // @@protoc_insertion_point(serialize_end:google.protobuf.Empty) 222 } 223 224 ::google::protobuf::uint8* Empty::SerializeWithCachedSizesToArray( 225 ::google::protobuf::uint8* target) const { 226 // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty) 227 // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty) 228 return target; 229 } 230 231 int Empty::ByteSize() const { 232 // @@protoc_insertion_point(message_byte_size_start:google.protobuf.Empty) 233 int total_size = 0; 234 235 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); 236 _cached_size_ = total_size; 237 GOOGLE_SAFE_CONCURRENT_WRITES_END(); 238 return total_size; 239 } 240 241 void Empty::MergeFrom(const ::google::protobuf::Message& from) { 242 // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.Empty) 243 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 244 const Empty* source = 245 ::google::protobuf::internal::DynamicCastToGenerated<const Empty>( 246 &from); 247 if (source == NULL) { 248 // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.Empty) 249 ::google::protobuf::internal::ReflectionOps::Merge(from, this); 250 } else { 251 // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.Empty) 252 MergeFrom(*source); 253 } 254 } 255 256 void Empty::MergeFrom(const Empty& from) { 257 // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.Empty) 258 if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); 259 } 260 261 void Empty::CopyFrom(const ::google::protobuf::Message& from) { 262 // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.Empty) 263 if (&from == this) return; 264 Clear(); 265 MergeFrom(from); 266 } 267 268 void Empty::CopyFrom(const Empty& from) { 269 // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.Empty) 270 if (&from == this) return; 271 Clear(); 272 MergeFrom(from); 273 } 274 275 bool Empty::IsInitialized() const { 276 277 return true; 278 } 279 280 void Empty::Swap(Empty* other) { 281 if (other == this) return; 282 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { 283 InternalSwap(other); 284 } else { 285 Empty temp; 286 temp.MergeFrom(*this); 287 CopyFrom(*other); 288 other->CopyFrom(temp); 289 } 290 } 291 void Empty::UnsafeArenaSwap(Empty* other) { 292 if (other == this) return; 293 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); 294 InternalSwap(other); 295 } 296 void Empty::InternalSwap(Empty* other) { 297 _internal_metadata_.Swap(&other->_internal_metadata_); 298 std::swap(_cached_size_, other->_cached_size_); 299 } 300 301 ::google::protobuf::Metadata Empty::GetMetadata() const { 302 protobuf_AssignDescriptorsOnce(); 303 ::google::protobuf::Metadata metadata; 304 metadata.descriptor = Empty_descriptor_; 305 metadata.reflection = Empty_reflection_; 306 return metadata; 307 } 308 309 #if PROTOBUF_INLINE_NOT_IN_HEADERS 310 // Empty 311 312 #endif // PROTOBUF_INLINE_NOT_IN_HEADERS 313 314 // @@protoc_insertion_point(namespace_scope) 315 316 } // namespace protobuf 317 } // namespace google 318 319 // @@protoc_insertion_point(global_scope) 320