432 lines
13 KiB
C++
432 lines
13 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: auth.proto
|
|
|
|
#ifndef PROTOBUF_auth_2eproto__INCLUDED
|
|
#define PROTOBUF_auth_2eproto__INCLUDED
|
|
|
|
#include <string>
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
|
|
#if GOOGLE_PROTOBUF_VERSION < 2005000
|
|
#error This file was generated by a newer version of protoc which is
|
|
#error incompatible with your Protocol Buffer headers. Please update
|
|
#error your headers.
|
|
#endif
|
|
#if 2005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
|
|
#error This file was generated by an older version of protoc which is
|
|
#error incompatible with your Protocol Buffer headers. Please
|
|
#error regenerate this file with a newer version of protoc.
|
|
#endif
|
|
|
|
#include <google/protobuf/generated_message_util.h>
|
|
#include <google/protobuf/message.h>
|
|
#include <google/protobuf/repeated_field.h>
|
|
#include <google/protobuf/extension_set.h>
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
#include "common.pb.h"
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
namespace Remote {
|
|
|
|
// Internal implementation detail -- do not call these.
|
|
void protobuf_AddDesc_auth_2eproto();
|
|
void protobuf_AssignDesc_auth_2eproto();
|
|
void protobuf_ShutdownFile_auth_2eproto();
|
|
|
|
class AuthRequest;
|
|
class AuthResponse;
|
|
|
|
// ===================================================================
|
|
|
|
class AuthRequest : public ::google::protobuf::Message {
|
|
public:
|
|
AuthRequest();
|
|
virtual ~AuthRequest();
|
|
|
|
AuthRequest(const AuthRequest& from);
|
|
|
|
inline AuthRequest& operator=(const AuthRequest& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
|
|
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
|
|
return _unknown_fields_;
|
|
}
|
|
|
|
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
|
|
return &_unknown_fields_;
|
|
}
|
|
|
|
static const ::google::protobuf::Descriptor* descriptor();
|
|
static const AuthRequest& default_instance();
|
|
|
|
void Swap(AuthRequest* other);
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
AuthRequest* New() const;
|
|
void CopyFrom(const ::google::protobuf::Message& from);
|
|
void MergeFrom(const ::google::protobuf::Message& from);
|
|
void CopyFrom(const AuthRequest& from);
|
|
void MergeFrom(const AuthRequest& from);
|
|
void Clear();
|
|
bool IsInitialized() const;
|
|
|
|
int ByteSize() const;
|
|
bool MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input);
|
|
void SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const;
|
|
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
|
|
int GetCachedSize() const { return _cached_size_; }
|
|
private:
|
|
void SharedCtor();
|
|
void SharedDtor();
|
|
void SetCachedSize(int size) const;
|
|
public:
|
|
|
|
::google::protobuf::Metadata GetMetadata() const;
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
// required string user_name = 1;
|
|
inline bool has_user_name() const;
|
|
inline void clear_user_name();
|
|
static const int kUserNameFieldNumber = 1;
|
|
inline const ::std::string& user_name() const;
|
|
inline void set_user_name(const ::std::string& value);
|
|
inline void set_user_name(const char* value);
|
|
inline void set_user_name(const char* value, size_t size);
|
|
inline ::std::string* mutable_user_name();
|
|
inline ::std::string* release_user_name();
|
|
inline void set_allocated_user_name(::std::string* user_name);
|
|
|
|
// required string user_password = 2;
|
|
inline bool has_user_password() const;
|
|
inline void clear_user_password();
|
|
static const int kUserPasswordFieldNumber = 2;
|
|
inline const ::std::string& user_password() const;
|
|
inline void set_user_password(const ::std::string& value);
|
|
inline void set_user_password(const char* value);
|
|
inline void set_user_password(const char* value, size_t size);
|
|
inline ::std::string* mutable_user_password();
|
|
inline ::std::string* release_user_password();
|
|
inline void set_allocated_user_password(::std::string* user_password);
|
|
|
|
// @@protoc_insertion_point(class_scope:Remote.AuthRequest)
|
|
private:
|
|
inline void set_has_user_name();
|
|
inline void clear_has_user_name();
|
|
inline void set_has_user_password();
|
|
inline void clear_has_user_password();
|
|
|
|
::google::protobuf::UnknownFieldSet _unknown_fields_;
|
|
|
|
::std::string* user_name_;
|
|
::std::string* user_password_;
|
|
|
|
mutable int _cached_size_;
|
|
::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
|
|
|
|
friend void protobuf_AddDesc_auth_2eproto();
|
|
friend void protobuf_AssignDesc_auth_2eproto();
|
|
friend void protobuf_ShutdownFile_auth_2eproto();
|
|
|
|
void InitAsDefaultInstance();
|
|
static AuthRequest* default_instance_;
|
|
};
|
|
// -------------------------------------------------------------------
|
|
|
|
class AuthResponse : public ::google::protobuf::Message {
|
|
public:
|
|
AuthResponse();
|
|
virtual ~AuthResponse();
|
|
|
|
AuthResponse(const AuthResponse& from);
|
|
|
|
inline AuthResponse& operator=(const AuthResponse& from) {
|
|
CopyFrom(from);
|
|
return *this;
|
|
}
|
|
|
|
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
|
|
return _unknown_fields_;
|
|
}
|
|
|
|
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
|
|
return &_unknown_fields_;
|
|
}
|
|
|
|
static const ::google::protobuf::Descriptor* descriptor();
|
|
static const AuthResponse& default_instance();
|
|
|
|
void Swap(AuthResponse* other);
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
AuthResponse* New() const;
|
|
void CopyFrom(const ::google::protobuf::Message& from);
|
|
void MergeFrom(const ::google::protobuf::Message& from);
|
|
void CopyFrom(const AuthResponse& from);
|
|
void MergeFrom(const AuthResponse& from);
|
|
void Clear();
|
|
bool IsInitialized() const;
|
|
|
|
int ByteSize() const;
|
|
bool MergePartialFromCodedStream(
|
|
::google::protobuf::io::CodedInputStream* input);
|
|
void SerializeWithCachedSizes(
|
|
::google::protobuf::io::CodedOutputStream* output) const;
|
|
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
|
|
int GetCachedSize() const { return _cached_size_; }
|
|
private:
|
|
void SharedCtor();
|
|
void SharedDtor();
|
|
void SetCachedSize(int size) const;
|
|
public:
|
|
|
|
::google::protobuf::Metadata GetMetadata() const;
|
|
|
|
// nested types ----------------------------------------------------
|
|
|
|
// accessors -------------------------------------------------------
|
|
|
|
// required .Remote.Error error = 1;
|
|
inline bool has_error() const;
|
|
inline void clear_error();
|
|
static const int kErrorFieldNumber = 1;
|
|
inline const ::Remote::Error& error() const;
|
|
inline ::Remote::Error* mutable_error();
|
|
inline ::Remote::Error* release_error();
|
|
inline void set_allocated_error(::Remote::Error* error);
|
|
|
|
// @@protoc_insertion_point(class_scope:Remote.AuthResponse)
|
|
private:
|
|
inline void set_has_error();
|
|
inline void clear_has_error();
|
|
|
|
::google::protobuf::UnknownFieldSet _unknown_fields_;
|
|
|
|
::Remote::Error* error_;
|
|
|
|
mutable int _cached_size_;
|
|
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
|
|
|
|
friend void protobuf_AddDesc_auth_2eproto();
|
|
friend void protobuf_AssignDesc_auth_2eproto();
|
|
friend void protobuf_ShutdownFile_auth_2eproto();
|
|
|
|
void InitAsDefaultInstance();
|
|
static AuthResponse* default_instance_;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
// AuthRequest
|
|
|
|
// required string user_name = 1;
|
|
inline bool AuthRequest::has_user_name() const {
|
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
|
}
|
|
inline void AuthRequest::set_has_user_name() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
}
|
|
inline void AuthRequest::clear_has_user_name() {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline void AuthRequest::clear_user_name() {
|
|
if (user_name_ != &::google::protobuf::internal::kEmptyString) {
|
|
user_name_->clear();
|
|
}
|
|
clear_has_user_name();
|
|
}
|
|
inline const ::std::string& AuthRequest::user_name() const {
|
|
return *user_name_;
|
|
}
|
|
inline void AuthRequest::set_user_name(const ::std::string& value) {
|
|
set_has_user_name();
|
|
if (user_name_ == &::google::protobuf::internal::kEmptyString) {
|
|
user_name_ = new ::std::string;
|
|
}
|
|
user_name_->assign(value);
|
|
}
|
|
inline void AuthRequest::set_user_name(const char* value) {
|
|
set_has_user_name();
|
|
if (user_name_ == &::google::protobuf::internal::kEmptyString) {
|
|
user_name_ = new ::std::string;
|
|
}
|
|
user_name_->assign(value);
|
|
}
|
|
inline void AuthRequest::set_user_name(const char* value, size_t size) {
|
|
set_has_user_name();
|
|
if (user_name_ == &::google::protobuf::internal::kEmptyString) {
|
|
user_name_ = new ::std::string;
|
|
}
|
|
user_name_->assign(reinterpret_cast<const char*>(value), size);
|
|
}
|
|
inline ::std::string* AuthRequest::mutable_user_name() {
|
|
set_has_user_name();
|
|
if (user_name_ == &::google::protobuf::internal::kEmptyString) {
|
|
user_name_ = new ::std::string;
|
|
}
|
|
return user_name_;
|
|
}
|
|
inline ::std::string* AuthRequest::release_user_name() {
|
|
clear_has_user_name();
|
|
if (user_name_ == &::google::protobuf::internal::kEmptyString) {
|
|
return NULL;
|
|
} else {
|
|
::std::string* temp = user_name_;
|
|
user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
return temp;
|
|
}
|
|
}
|
|
inline void AuthRequest::set_allocated_user_name(::std::string* user_name) {
|
|
if (user_name_ != &::google::protobuf::internal::kEmptyString) {
|
|
delete user_name_;
|
|
}
|
|
if (user_name) {
|
|
set_has_user_name();
|
|
user_name_ = user_name;
|
|
} else {
|
|
clear_has_user_name();
|
|
user_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
}
|
|
}
|
|
|
|
// required string user_password = 2;
|
|
inline bool AuthRequest::has_user_password() const {
|
|
return (_has_bits_[0] & 0x00000002u) != 0;
|
|
}
|
|
inline void AuthRequest::set_has_user_password() {
|
|
_has_bits_[0] |= 0x00000002u;
|
|
}
|
|
inline void AuthRequest::clear_has_user_password() {
|
|
_has_bits_[0] &= ~0x00000002u;
|
|
}
|
|
inline void AuthRequest::clear_user_password() {
|
|
if (user_password_ != &::google::protobuf::internal::kEmptyString) {
|
|
user_password_->clear();
|
|
}
|
|
clear_has_user_password();
|
|
}
|
|
inline const ::std::string& AuthRequest::user_password() const {
|
|
return *user_password_;
|
|
}
|
|
inline void AuthRequest::set_user_password(const ::std::string& value) {
|
|
set_has_user_password();
|
|
if (user_password_ == &::google::protobuf::internal::kEmptyString) {
|
|
user_password_ = new ::std::string;
|
|
}
|
|
user_password_->assign(value);
|
|
}
|
|
inline void AuthRequest::set_user_password(const char* value) {
|
|
set_has_user_password();
|
|
if (user_password_ == &::google::protobuf::internal::kEmptyString) {
|
|
user_password_ = new ::std::string;
|
|
}
|
|
user_password_->assign(value);
|
|
}
|
|
inline void AuthRequest::set_user_password(const char* value, size_t size) {
|
|
set_has_user_password();
|
|
if (user_password_ == &::google::protobuf::internal::kEmptyString) {
|
|
user_password_ = new ::std::string;
|
|
}
|
|
user_password_->assign(reinterpret_cast<const char*>(value), size);
|
|
}
|
|
inline ::std::string* AuthRequest::mutable_user_password() {
|
|
set_has_user_password();
|
|
if (user_password_ == &::google::protobuf::internal::kEmptyString) {
|
|
user_password_ = new ::std::string;
|
|
}
|
|
return user_password_;
|
|
}
|
|
inline ::std::string* AuthRequest::release_user_password() {
|
|
clear_has_user_password();
|
|
if (user_password_ == &::google::protobuf::internal::kEmptyString) {
|
|
return NULL;
|
|
} else {
|
|
::std::string* temp = user_password_;
|
|
user_password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
return temp;
|
|
}
|
|
}
|
|
inline void AuthRequest::set_allocated_user_password(::std::string* user_password) {
|
|
if (user_password_ != &::google::protobuf::internal::kEmptyString) {
|
|
delete user_password_;
|
|
}
|
|
if (user_password) {
|
|
set_has_user_password();
|
|
user_password_ = user_password;
|
|
} else {
|
|
clear_has_user_password();
|
|
user_password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
|
}
|
|
}
|
|
|
|
// -------------------------------------------------------------------
|
|
|
|
// AuthResponse
|
|
|
|
// required .Remote.Error error = 1;
|
|
inline bool AuthResponse::has_error() const {
|
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
|
}
|
|
inline void AuthResponse::set_has_error() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
}
|
|
inline void AuthResponse::clear_has_error() {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline void AuthResponse::clear_error() {
|
|
if (error_ != NULL) error_->::Remote::Error::Clear();
|
|
clear_has_error();
|
|
}
|
|
inline const ::Remote::Error& AuthResponse::error() const {
|
|
return error_ != NULL ? *error_ : *default_instance_->error_;
|
|
}
|
|
inline ::Remote::Error* AuthResponse::mutable_error() {
|
|
set_has_error();
|
|
if (error_ == NULL) error_ = new ::Remote::Error;
|
|
return error_;
|
|
}
|
|
inline ::Remote::Error* AuthResponse::release_error() {
|
|
clear_has_error();
|
|
::Remote::Error* temp = error_;
|
|
error_ = NULL;
|
|
return temp;
|
|
}
|
|
inline void AuthResponse::set_allocated_error(::Remote::Error* error) {
|
|
delete error_;
|
|
error_ = error;
|
|
if (error) {
|
|
set_has_error();
|
|
} else {
|
|
clear_has_error();
|
|
}
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace Remote
|
|
|
|
#ifndef SWIG
|
|
namespace google {
|
|
namespace protobuf {
|
|
|
|
|
|
} // namespace google
|
|
} // namespace protobuf
|
|
#endif // SWIG
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#endif // PROTOBUF_auth_2eproto__INCLUDED
|