// Generated by the protocol buffer compiler. DO NOT EDIT! // source: auth.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "auth.pb.h" #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace Remote { namespace { const ::google::protobuf::Descriptor* AuthRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* AuthRequest_reflection_ = NULL; const ::google::protobuf::Descriptor* AuthResponse_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* AuthResponse_reflection_ = NULL; } // namespace void protobuf_AssignDesc_auth_2eproto() { protobuf_AddDesc_auth_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "auth.proto"); GOOGLE_CHECK(file != NULL); AuthRequest_descriptor_ = file->message_type(0); static const int AuthRequest_offsets_[2] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest, user_name_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest, user_password_), }; AuthRequest_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( AuthRequest_descriptor_, AuthRequest::default_instance_, AuthRequest_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AuthRequest)); AuthResponse_descriptor_ = file->message_type(1); static const int AuthResponse_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse, error_), }; AuthResponse_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( AuthResponse_descriptor_, AuthResponse::default_instance_, AuthResponse_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(AuthResponse)); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); inline void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_auth_2eproto); } void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( AuthRequest_descriptor_, &AuthRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( AuthResponse_descriptor_, &AuthResponse::default_instance()); } } // namespace void protobuf_ShutdownFile_auth_2eproto() { delete AuthRequest::default_instance_; delete AuthRequest_reflection_; delete AuthResponse::default_instance_; delete AuthResponse_reflection_; } void protobuf_AddDesc_auth_2eproto() { static bool already_here = false; if (already_here) return; already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; ::Remote::protobuf_AddDesc_common_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\nauth.proto\022\006Remote\032\014common.proto\"7\n\013Au" "thRequest\022\021\n\tuser_name\030\001 \002(\t\022\025\n\ruser_pas" "sword\030\002 \002(\t\",\n\014AuthResponse\022\034\n\005error\030\001 \002" "(\0132\r.Remote.Error", 137); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "auth.proto", &protobuf_RegisterTypes); AuthRequest::default_instance_ = new AuthRequest(); AuthResponse::default_instance_ = new AuthResponse(); AuthRequest::default_instance_->InitAsDefaultInstance(); AuthResponse::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_auth_2eproto); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_auth_2eproto { StaticDescriptorInitializer_auth_2eproto() { protobuf_AddDesc_auth_2eproto(); } } static_descriptor_initializer_auth_2eproto_; // =================================================================== #ifndef _MSC_VER const int AuthRequest::kUserNameFieldNumber; const int AuthRequest::kUserPasswordFieldNumber; #endif // !_MSC_VER AuthRequest::AuthRequest() : ::google::protobuf::Message() { SharedCtor(); } void AuthRequest::InitAsDefaultInstance() { } AuthRequest::AuthRequest(const AuthRequest& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void AuthRequest::SharedCtor() { _cached_size_ = 0; user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); user_password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } AuthRequest::~AuthRequest() { SharedDtor(); } void AuthRequest::SharedDtor() { if (user_name_ != &::google::protobuf::internal::kEmptyString) { delete user_name_; } if (user_password_ != &::google::protobuf::internal::kEmptyString) { delete user_password_; } if (this != default_instance_) { } } void AuthRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* AuthRequest::descriptor() { protobuf_AssignDescriptorsOnce(); return AuthRequest_descriptor_; } const AuthRequest& AuthRequest::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_auth_2eproto(); return *default_instance_; } AuthRequest* AuthRequest::default_instance_ = NULL; AuthRequest* AuthRequest::New() const { return new AuthRequest; } void AuthRequest::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_user_name()) { if (user_name_ != &::google::protobuf::internal::kEmptyString) { user_name_->clear(); } } if (has_user_password()) { if (user_password_ != &::google::protobuf::internal::kEmptyString) { user_password_->clear(); } } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool AuthRequest::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required string user_name = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_user_name())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->user_name().data(), this->user_name().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectTag(18)) goto parse_user_password; break; } // required string user_password = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { parse_user_password: DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_user_password())); ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->user_password().data(), this->user_password().length(), ::google::protobuf::internal::WireFormat::PARSE); } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void AuthRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required string user_name = 1; if (has_user_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->user_name().data(), this->user_name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 1, this->user_name(), output); } // required string user_password = 2; if (has_user_password()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->user_password().data(), this->user_password().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); ::google::protobuf::internal::WireFormatLite::WriteString( 2, this->user_password(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* AuthRequest::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required string user_name = 1; if (has_user_name()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->user_name().data(), this->user_name().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->user_name(), target); } // required string user_password = 2; if (has_user_password()) { ::google::protobuf::internal::WireFormat::VerifyUTF8String( this->user_password().data(), this->user_password().length(), ::google::protobuf::internal::WireFormat::SERIALIZE); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 2, this->user_password(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int AuthRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required string user_name = 1; if (has_user_name()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->user_name()); } // required string user_password = 2; if (has_user_password()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->user_password()); } } 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 AuthRequest::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const AuthRequest* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void AuthRequest::MergeFrom(const AuthRequest& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_user_name()) { set_user_name(from.user_name()); } if (from.has_user_password()) { set_user_password(from.user_password()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void AuthRequest::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void AuthRequest::CopyFrom(const AuthRequest& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool AuthRequest::IsInitialized() const { if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; return true; } void AuthRequest::Swap(AuthRequest* other) { if (other != this) { std::swap(user_name_, other->user_name_); std::swap(user_password_, other->user_password_); 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 AuthRequest::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = AuthRequest_descriptor_; metadata.reflection = AuthRequest_reflection_; return metadata; } // =================================================================== #ifndef _MSC_VER const int AuthResponse::kErrorFieldNumber; #endif // !_MSC_VER AuthResponse::AuthResponse() : ::google::protobuf::Message() { SharedCtor(); } void AuthResponse::InitAsDefaultInstance() { error_ = const_cast< ::Remote::Error*>(&::Remote::Error::default_instance()); } AuthResponse::AuthResponse(const AuthResponse& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } void AuthResponse::SharedCtor() { _cached_size_ = 0; error_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } AuthResponse::~AuthResponse() { SharedDtor(); } void AuthResponse::SharedDtor() { if (this != default_instance_) { delete error_; } } void AuthResponse::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* AuthResponse::descriptor() { protobuf_AssignDescriptorsOnce(); return AuthResponse_descriptor_; } const AuthResponse& AuthResponse::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_auth_2eproto(); return *default_instance_; } AuthResponse* AuthResponse::default_instance_ = NULL; AuthResponse* AuthResponse::New() const { return new AuthResponse; } void AuthResponse::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_error()) { if (error_ != NULL) error_->::Remote::Error::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool AuthResponse::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // required .Remote.Error error = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( input, mutable_error())); } else { goto handle_uninterpreted; } if (input->ExpectAtEnd()) return true; break; } default: { handle_uninterpreted: if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { return true; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } return true; #undef DO_ } void AuthResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required .Remote.Error error = 1; if (has_error()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->error(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } } ::google::protobuf::uint8* AuthResponse::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required .Remote.Error error = 1; if (has_error()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 1, this->error(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } return target; } int AuthResponse::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // required .Remote.Error error = 1; if (has_error()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->error()); } } 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 AuthResponse::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const AuthResponse* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void AuthResponse::MergeFrom(const AuthResponse& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_error()) { mutable_error()->::Remote::Error::MergeFrom(from.error()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void AuthResponse::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void AuthResponse::CopyFrom(const AuthResponse& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool AuthResponse::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; if (has_error()) { if (!this->error().IsInitialized()) return false; } return true; } void AuthResponse::Swap(AuthResponse* other) { if (other != this) { std::swap(error_, other->error_); 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 AuthResponse::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = AuthResponse_descriptor_; metadata.reflection = AuthResponse_reflection_; return metadata; } // @@protoc_insertion_point(namespace_scope) } // namespace Remote // @@protoc_insertion_point(global_scope)