// Generated by the protocol buffer compiler. DO NOT EDIT! // source: client.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "client.pb.h" #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace client { namespace { const ::google::protobuf::Descriptor* ClientInfo_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* ClientInfo_reflection_ = NULL; } // namespace void protobuf_AssignDesc_client_2eproto() { protobuf_AddDesc_client_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "client.proto"); GOOGLE_CHECK(file != NULL); ClientInfo_descriptor_ = file->message_type(0); static const int ClientInfo_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientInfo, name_), }; ClientInfo_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( ClientInfo_descriptor_, ClientInfo::default_instance_, ClientInfo_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientInfo, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientInfo, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(ClientInfo)); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); inline void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_client_2eproto); } void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( ClientInfo_descriptor_, &ClientInfo::default_instance()); } } // namespace void protobuf_ShutdownFile_client_2eproto() { delete ClientInfo::default_instance_; delete ClientInfo_reflection_; } void protobuf_AddDesc_client_2eproto() { static bool already_here = false; if (already_here) return; already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\014client.proto\022\006client\"\034\n\nClientInfo\022\016\n\004" "name\030\001 \001(\t:\000", 52); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "client.proto", &protobuf_RegisterTypes); ClientInfo::default_instance_ = new ClientInfo(); ClientInfo::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_client_2eproto); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_client_2eproto { StaticDescriptorInitializer_client_2eproto() { protobuf_AddDesc_client_2eproto(); } } static_descriptor_initializer_client_2eproto_; // =================================================================== #ifndef _MSC_VER const int ClientInfo::kNameFieldNumber; #endif // !_MSC_VER ClientInfo::ClientInfo() : ::google::protobuf::Message() { SharedCtor(); // @@protoc_insertion_point(constructor:client.ClientInfo) } void ClientInfo::InitAsDefaultInstance() { } ClientInfo::ClientInfo(const ClientInfo& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:client.ClientInfo) } void ClientInfo::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; name_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } ClientInfo::~ClientInfo() { // @@protoc_insertion_point(destructor:client.ClientInfo) SharedDtor(); } void ClientInfo::SharedDtor() { if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete name_; } if (this != default_instance_) { } } void ClientInfo::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* ClientInfo::descriptor() { protobuf_AssignDescriptorsOnce(); return ClientInfo_descriptor_; } const ClientInfo& ClientInfo::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_client_2eproto(); return *default_instance_; } ClientInfo* ClientInfo::default_instance_ = NULL; ClientInfo* ClientInfo::New() const { return new ClientInfo; } void ClientInfo::Clear() { if (has_name()) { if (name_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { name_->clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool ClientInfo::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:client.ClientInfo) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string name = 1 [default = ""]; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_name())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::PARSE, "name"); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:client.ClientInfo) return true; failure: // @@protoc_insertion_point(parse_failure:client.ClientInfo) return false; #undef DO_ } void ClientInfo::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:client.ClientInfo) // optional string name = 1 [default = ""]; if (has_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "name"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->name(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:client.ClientInfo) } ::google::protobuf::uint8* ClientInfo::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:client.ClientInfo) // optional string name = 1 [default = ""]; if (has_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->name().data(), this->name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "name"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->name(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:client.ClientInfo) return target; } int ClientInfo::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional string name = 1 [default = ""]; if (has_name()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->name()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void ClientInfo::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const ClientInfo* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void ClientInfo::MergeFrom(const ClientInfo& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_name()) { set_name(from.name()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void ClientInfo::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void ClientInfo::CopyFrom(const ClientInfo& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool ClientInfo::IsInitialized() const { return true; } void ClientInfo::Swap(ClientInfo* other) { if (other != this) { std::swap(name_, other->name_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata ClientInfo::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = ClientInfo_descriptor_; metadata.reflection = ClientInfo_reflection_; return metadata; } // @@protoc_insertion_point(namespace_scope) } // namespace client // @@protoc_insertion_point(global_scope)