Remove generated cpp files from proto files

This commit is contained in:
emeric
2014-09-29 21:17:13 +02:00
parent 4f23d5ebae
commit 207c258cf6
18 changed files with 65 additions and 20665 deletions
File diff suppressed because it is too large Load Diff
-910
View File
@@ -1,910 +0,0 @@
// 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/generated_enum_reflection.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 AuthRequest_Password;
class AuthResponse;
class AuthResponse_PasswordResult;
enum AuthRequest_Type {
AuthRequest_Type_TypePassword = 1
};
bool AuthRequest_Type_IsValid(int value);
const AuthRequest_Type AuthRequest_Type_Type_MIN = AuthRequest_Type_TypePassword;
const AuthRequest_Type AuthRequest_Type_Type_MAX = AuthRequest_Type_TypePassword;
const int AuthRequest_Type_Type_ARRAYSIZE = AuthRequest_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* AuthRequest_Type_descriptor();
inline const ::std::string& AuthRequest_Type_Name(AuthRequest_Type value) {
return ::google::protobuf::internal::NameOfEnum(
AuthRequest_Type_descriptor(), value);
}
inline bool AuthRequest_Type_Parse(
const ::std::string& name, AuthRequest_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<AuthRequest_Type>(
AuthRequest_Type_descriptor(), name, value);
}
enum AuthResponse_PasswordResult_Type {
AuthResponse_PasswordResult_Type_TypePasswordInvalid = 1,
AuthResponse_PasswordResult_Type_TypeLoginThrottling = 2,
AuthResponse_PasswordResult_Type_TypePasswordValid = 3
};
bool AuthResponse_PasswordResult_Type_IsValid(int value);
const AuthResponse_PasswordResult_Type AuthResponse_PasswordResult_Type_Type_MIN = AuthResponse_PasswordResult_Type_TypePasswordInvalid;
const AuthResponse_PasswordResult_Type AuthResponse_PasswordResult_Type_Type_MAX = AuthResponse_PasswordResult_Type_TypePasswordValid;
const int AuthResponse_PasswordResult_Type_Type_ARRAYSIZE = AuthResponse_PasswordResult_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* AuthResponse_PasswordResult_Type_descriptor();
inline const ::std::string& AuthResponse_PasswordResult_Type_Name(AuthResponse_PasswordResult_Type value) {
return ::google::protobuf::internal::NameOfEnum(
AuthResponse_PasswordResult_Type_descriptor(), value);
}
inline bool AuthResponse_PasswordResult_Type_Parse(
const ::std::string& name, AuthResponse_PasswordResult_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<AuthResponse_PasswordResult_Type>(
AuthResponse_PasswordResult_Type_descriptor(), name, value);
}
enum AuthResponse_Type {
AuthResponse_Type_TypePasswordResult = 1
};
bool AuthResponse_Type_IsValid(int value);
const AuthResponse_Type AuthResponse_Type_Type_MIN = AuthResponse_Type_TypePasswordResult;
const AuthResponse_Type AuthResponse_Type_Type_MAX = AuthResponse_Type_TypePasswordResult;
const int AuthResponse_Type_Type_ARRAYSIZE = AuthResponse_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* AuthResponse_Type_descriptor();
inline const ::std::string& AuthResponse_Type_Name(AuthResponse_Type value) {
return ::google::protobuf::internal::NameOfEnum(
AuthResponse_Type_descriptor(), value);
}
inline bool AuthResponse_Type_Parse(
const ::std::string& name, AuthResponse_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<AuthResponse_Type>(
AuthResponse_Type_descriptor(), name, value);
}
// ===================================================================
class AuthRequest_Password : public ::google::protobuf::Message {
public:
AuthRequest_Password();
virtual ~AuthRequest_Password();
AuthRequest_Password(const AuthRequest_Password& from);
inline AuthRequest_Password& operator=(const AuthRequest_Password& 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_Password& default_instance();
void Swap(AuthRequest_Password* other);
// implements Message ----------------------------------------------
AuthRequest_Password* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const AuthRequest_Password& from);
void MergeFrom(const AuthRequest_Password& 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_login = 1;
inline bool has_user_login() const;
inline void clear_user_login();
static const int kUserLoginFieldNumber = 1;
inline const ::std::string& user_login() const;
inline void set_user_login(const ::std::string& value);
inline void set_user_login(const char* value);
inline void set_user_login(const char* value, size_t size);
inline ::std::string* mutable_user_login();
inline ::std::string* release_user_login();
inline void set_allocated_user_login(::std::string* user_login);
// 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.Password)
private:
inline void set_has_user_login();
inline void clear_has_user_login();
inline void set_has_user_password();
inline void clear_has_user_password();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::std::string* user_login_;
::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_Password* default_instance_;
};
// -------------------------------------------------------------------
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 ----------------------------------------------------
typedef AuthRequest_Password Password;
typedef AuthRequest_Type Type;
static const Type TypePassword = AuthRequest_Type_TypePassword;
static inline bool Type_IsValid(int value) {
return AuthRequest_Type_IsValid(value);
}
static const Type Type_MIN =
AuthRequest_Type_Type_MIN;
static const Type Type_MAX =
AuthRequest_Type_Type_MAX;
static const int Type_ARRAYSIZE =
AuthRequest_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return AuthRequest_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return AuthRequest_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return AuthRequest_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .Remote.AuthRequest.Type type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::Remote::AuthRequest_Type type() const;
inline void set_type(::Remote::AuthRequest_Type value);
// optional .Remote.AuthRequest.Password password = 2;
inline bool has_password() const;
inline void clear_password();
static const int kPasswordFieldNumber = 2;
inline const ::Remote::AuthRequest_Password& password() const;
inline ::Remote::AuthRequest_Password* mutable_password();
inline ::Remote::AuthRequest_Password* release_password();
inline void set_allocated_password(::Remote::AuthRequest_Password* password);
// @@protoc_insertion_point(class_scope:Remote.AuthRequest)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_password();
inline void clear_has_password();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::Remote::AuthRequest_Password* password_;
int type_;
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_PasswordResult : public ::google::protobuf::Message {
public:
AuthResponse_PasswordResult();
virtual ~AuthResponse_PasswordResult();
AuthResponse_PasswordResult(const AuthResponse_PasswordResult& from);
inline AuthResponse_PasswordResult& operator=(const AuthResponse_PasswordResult& 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_PasswordResult& default_instance();
void Swap(AuthResponse_PasswordResult* other);
// implements Message ----------------------------------------------
AuthResponse_PasswordResult* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const AuthResponse_PasswordResult& from);
void MergeFrom(const AuthResponse_PasswordResult& 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 ----------------------------------------------------
typedef AuthResponse_PasswordResult_Type Type;
static const Type TypePasswordInvalid = AuthResponse_PasswordResult_Type_TypePasswordInvalid;
static const Type TypeLoginThrottling = AuthResponse_PasswordResult_Type_TypeLoginThrottling;
static const Type TypePasswordValid = AuthResponse_PasswordResult_Type_TypePasswordValid;
static inline bool Type_IsValid(int value) {
return AuthResponse_PasswordResult_Type_IsValid(value);
}
static const Type Type_MIN =
AuthResponse_PasswordResult_Type_Type_MIN;
static const Type Type_MAX =
AuthResponse_PasswordResult_Type_Type_MAX;
static const int Type_ARRAYSIZE =
AuthResponse_PasswordResult_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return AuthResponse_PasswordResult_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return AuthResponse_PasswordResult_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return AuthResponse_PasswordResult_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .Remote.AuthResponse.PasswordResult.Type type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::Remote::AuthResponse_PasswordResult_Type type() const;
inline void set_type(::Remote::AuthResponse_PasswordResult_Type value);
// optional uint32 delay = 2;
inline bool has_delay() const;
inline void clear_delay();
static const int kDelayFieldNumber = 2;
inline ::google::protobuf::uint32 delay() const;
inline void set_delay(::google::protobuf::uint32 value);
// @@protoc_insertion_point(class_scope:Remote.AuthResponse.PasswordResult)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_delay();
inline void clear_has_delay();
::google::protobuf::UnknownFieldSet _unknown_fields_;
int type_;
::google::protobuf::uint32 delay_;
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 AuthResponse_PasswordResult* 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 ----------------------------------------------------
typedef AuthResponse_PasswordResult PasswordResult;
typedef AuthResponse_Type Type;
static const Type TypePasswordResult = AuthResponse_Type_TypePasswordResult;
static inline bool Type_IsValid(int value) {
return AuthResponse_Type_IsValid(value);
}
static const Type Type_MIN =
AuthResponse_Type_Type_MIN;
static const Type Type_MAX =
AuthResponse_Type_Type_MAX;
static const int Type_ARRAYSIZE =
AuthResponse_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return AuthResponse_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return AuthResponse_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return AuthResponse_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .Remote.AuthResponse.Type type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::Remote::AuthResponse_Type type() const;
inline void set_type(::Remote::AuthResponse_Type value);
// optional .Remote.AuthResponse.PasswordResult password_result = 2;
inline bool has_password_result() const;
inline void clear_password_result();
static const int kPasswordResultFieldNumber = 2;
inline const ::Remote::AuthResponse_PasswordResult& password_result() const;
inline ::Remote::AuthResponse_PasswordResult* mutable_password_result();
inline ::Remote::AuthResponse_PasswordResult* release_password_result();
inline void set_allocated_password_result(::Remote::AuthResponse_PasswordResult* password_result);
// @@protoc_insertion_point(class_scope:Remote.AuthResponse)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_password_result();
inline void clear_has_password_result();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::Remote::AuthResponse_PasswordResult* password_result_;
int type_;
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 AuthResponse* default_instance_;
};
// ===================================================================
// ===================================================================
// AuthRequest_Password
// required string user_login = 1;
inline bool AuthRequest_Password::has_user_login() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void AuthRequest_Password::set_has_user_login() {
_has_bits_[0] |= 0x00000001u;
}
inline void AuthRequest_Password::clear_has_user_login() {
_has_bits_[0] &= ~0x00000001u;
}
inline void AuthRequest_Password::clear_user_login() {
if (user_login_ != &::google::protobuf::internal::kEmptyString) {
user_login_->clear();
}
clear_has_user_login();
}
inline const ::std::string& AuthRequest_Password::user_login() const {
return *user_login_;
}
inline void AuthRequest_Password::set_user_login(const ::std::string& value) {
set_has_user_login();
if (user_login_ == &::google::protobuf::internal::kEmptyString) {
user_login_ = new ::std::string;
}
user_login_->assign(value);
}
inline void AuthRequest_Password::set_user_login(const char* value) {
set_has_user_login();
if (user_login_ == &::google::protobuf::internal::kEmptyString) {
user_login_ = new ::std::string;
}
user_login_->assign(value);
}
inline void AuthRequest_Password::set_user_login(const char* value, size_t size) {
set_has_user_login();
if (user_login_ == &::google::protobuf::internal::kEmptyString) {
user_login_ = new ::std::string;
}
user_login_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* AuthRequest_Password::mutable_user_login() {
set_has_user_login();
if (user_login_ == &::google::protobuf::internal::kEmptyString) {
user_login_ = new ::std::string;
}
return user_login_;
}
inline ::std::string* AuthRequest_Password::release_user_login() {
clear_has_user_login();
if (user_login_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = user_login_;
user_login_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
inline void AuthRequest_Password::set_allocated_user_login(::std::string* user_login) {
if (user_login_ != &::google::protobuf::internal::kEmptyString) {
delete user_login_;
}
if (user_login) {
set_has_user_login();
user_login_ = user_login;
} else {
clear_has_user_login();
user_login_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
}
// required string user_password = 2;
inline bool AuthRequest_Password::has_user_password() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void AuthRequest_Password::set_has_user_password() {
_has_bits_[0] |= 0x00000002u;
}
inline void AuthRequest_Password::clear_has_user_password() {
_has_bits_[0] &= ~0x00000002u;
}
inline void AuthRequest_Password::clear_user_password() {
if (user_password_ != &::google::protobuf::internal::kEmptyString) {
user_password_->clear();
}
clear_has_user_password();
}
inline const ::std::string& AuthRequest_Password::user_password() const {
return *user_password_;
}
inline void AuthRequest_Password::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_Password::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_Password::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_Password::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_Password::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_Password::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);
}
}
// -------------------------------------------------------------------
// AuthRequest
// required .Remote.AuthRequest.Type type = 1;
inline bool AuthRequest::has_type() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void AuthRequest::set_has_type() {
_has_bits_[0] |= 0x00000001u;
}
inline void AuthRequest::clear_has_type() {
_has_bits_[0] &= ~0x00000001u;
}
inline void AuthRequest::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::Remote::AuthRequest_Type AuthRequest::type() const {
return static_cast< ::Remote::AuthRequest_Type >(type_);
}
inline void AuthRequest::set_type(::Remote::AuthRequest_Type value) {
assert(::Remote::AuthRequest_Type_IsValid(value));
set_has_type();
type_ = value;
}
// optional .Remote.AuthRequest.Password password = 2;
inline bool AuthRequest::has_password() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void AuthRequest::set_has_password() {
_has_bits_[0] |= 0x00000002u;
}
inline void AuthRequest::clear_has_password() {
_has_bits_[0] &= ~0x00000002u;
}
inline void AuthRequest::clear_password() {
if (password_ != NULL) password_->::Remote::AuthRequest_Password::Clear();
clear_has_password();
}
inline const ::Remote::AuthRequest_Password& AuthRequest::password() const {
return password_ != NULL ? *password_ : *default_instance_->password_;
}
inline ::Remote::AuthRequest_Password* AuthRequest::mutable_password() {
set_has_password();
if (password_ == NULL) password_ = new ::Remote::AuthRequest_Password;
return password_;
}
inline ::Remote::AuthRequest_Password* AuthRequest::release_password() {
clear_has_password();
::Remote::AuthRequest_Password* temp = password_;
password_ = NULL;
return temp;
}
inline void AuthRequest::set_allocated_password(::Remote::AuthRequest_Password* password) {
delete password_;
password_ = password;
if (password) {
set_has_password();
} else {
clear_has_password();
}
}
// -------------------------------------------------------------------
// AuthResponse_PasswordResult
// required .Remote.AuthResponse.PasswordResult.Type type = 1;
inline bool AuthResponse_PasswordResult::has_type() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void AuthResponse_PasswordResult::set_has_type() {
_has_bits_[0] |= 0x00000001u;
}
inline void AuthResponse_PasswordResult::clear_has_type() {
_has_bits_[0] &= ~0x00000001u;
}
inline void AuthResponse_PasswordResult::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::Remote::AuthResponse_PasswordResult_Type AuthResponse_PasswordResult::type() const {
return static_cast< ::Remote::AuthResponse_PasswordResult_Type >(type_);
}
inline void AuthResponse_PasswordResult::set_type(::Remote::AuthResponse_PasswordResult_Type value) {
assert(::Remote::AuthResponse_PasswordResult_Type_IsValid(value));
set_has_type();
type_ = value;
}
// optional uint32 delay = 2;
inline bool AuthResponse_PasswordResult::has_delay() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void AuthResponse_PasswordResult::set_has_delay() {
_has_bits_[0] |= 0x00000002u;
}
inline void AuthResponse_PasswordResult::clear_has_delay() {
_has_bits_[0] &= ~0x00000002u;
}
inline void AuthResponse_PasswordResult::clear_delay() {
delay_ = 0u;
clear_has_delay();
}
inline ::google::protobuf::uint32 AuthResponse_PasswordResult::delay() const {
return delay_;
}
inline void AuthResponse_PasswordResult::set_delay(::google::protobuf::uint32 value) {
set_has_delay();
delay_ = value;
}
// -------------------------------------------------------------------
// AuthResponse
// required .Remote.AuthResponse.Type type = 1;
inline bool AuthResponse::has_type() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void AuthResponse::set_has_type() {
_has_bits_[0] |= 0x00000001u;
}
inline void AuthResponse::clear_has_type() {
_has_bits_[0] &= ~0x00000001u;
}
inline void AuthResponse::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::Remote::AuthResponse_Type AuthResponse::type() const {
return static_cast< ::Remote::AuthResponse_Type >(type_);
}
inline void AuthResponse::set_type(::Remote::AuthResponse_Type value) {
assert(::Remote::AuthResponse_Type_IsValid(value));
set_has_type();
type_ = value;
}
// optional .Remote.AuthResponse.PasswordResult password_result = 2;
inline bool AuthResponse::has_password_result() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void AuthResponse::set_has_password_result() {
_has_bits_[0] |= 0x00000002u;
}
inline void AuthResponse::clear_has_password_result() {
_has_bits_[0] &= ~0x00000002u;
}
inline void AuthResponse::clear_password_result() {
if (password_result_ != NULL) password_result_->::Remote::AuthResponse_PasswordResult::Clear();
clear_has_password_result();
}
inline const ::Remote::AuthResponse_PasswordResult& AuthResponse::password_result() const {
return password_result_ != NULL ? *password_result_ : *default_instance_->password_result_;
}
inline ::Remote::AuthResponse_PasswordResult* AuthResponse::mutable_password_result() {
set_has_password_result();
if (password_result_ == NULL) password_result_ = new ::Remote::AuthResponse_PasswordResult;
return password_result_;
}
inline ::Remote::AuthResponse_PasswordResult* AuthResponse::release_password_result() {
clear_has_password_result();
::Remote::AuthResponse_PasswordResult* temp = password_result_;
password_result_ = NULL;
return temp;
}
inline void AuthResponse::set_allocated_password_result(::Remote::AuthResponse_PasswordResult* password_result) {
delete password_result_;
password_result_ = password_result;
if (password_result) {
set_has_password_result();
} else {
clear_has_password_result();
}
}
// @@protoc_insertion_point(namespace_scope)
} // namespace Remote
#ifndef SWIG
namespace google {
namespace protobuf {
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::Remote::AuthRequest_Type>() {
return ::Remote::AuthRequest_Type_descriptor();
}
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::Remote::AuthResponse_PasswordResult_Type>() {
return ::Remote::AuthResponse_PasswordResult_Type_descriptor();
}
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::Remote::AuthResponse_Type>() {
return ::Remote::AuthResponse_Type_descriptor();
}
} // namespace google
} // namespace protobuf
#endif // SWIG
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_auth_2eproto__INCLUDED
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-366
View File
@@ -1,366 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "common.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
namespace Remote {
namespace {
const ::google::protobuf::Descriptor* Error_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Error_reflection_ = NULL;
} // namespace
void protobuf_AssignDesc_common_2eproto() {
protobuf_AddDesc_common_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"common.proto");
GOOGLE_CHECK(file != NULL);
Error_descriptor_ = file->message_type(0);
static const int Error_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Error, error_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Error, message_),
};
Error_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Error_descriptor_,
Error::default_instance_,
Error_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Error, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Error, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Error));
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_common_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Error_descriptor_, &Error::default_instance());
}
} // namespace
void protobuf_ShutdownFile_common_2eproto() {
delete Error::default_instance_;
delete Error_reflection_;
}
void protobuf_AddDesc_common_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\014common.proto\022\006Remote\"\'\n\005Error\022\r\n\005error"
"\030\001 \002(\010\022\017\n\007message\030\002 \001(\t", 63);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"common.proto", &protobuf_RegisterTypes);
Error::default_instance_ = new Error();
Error::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_common_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_common_2eproto {
StaticDescriptorInitializer_common_2eproto() {
protobuf_AddDesc_common_2eproto();
}
} static_descriptor_initializer_common_2eproto_;
// ===================================================================
#ifndef _MSC_VER
const int Error::kErrorFieldNumber;
const int Error::kMessageFieldNumber;
#endif // !_MSC_VER
Error::Error()
: ::google::protobuf::Message() {
SharedCtor();
}
void Error::InitAsDefaultInstance() {
}
Error::Error(const Error& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Error::SharedCtor() {
_cached_size_ = 0;
error_ = false;
message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Error::~Error() {
SharedDtor();
}
void Error::SharedDtor() {
if (message_ != &::google::protobuf::internal::kEmptyString) {
delete message_;
}
if (this != default_instance_) {
}
}
void Error::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Error::descriptor() {
protobuf_AssignDescriptorsOnce();
return Error_descriptor_;
}
const Error& Error::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_common_2eproto();
return *default_instance_;
}
Error* Error::default_instance_ = NULL;
Error* Error::New() const {
return new Error;
}
void Error::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
error_ = false;
if (has_message()) {
if (message_ != &::google::protobuf::internal::kEmptyString) {
message_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Error::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 bool error = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &error_)));
set_has_error();
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_message;
break;
}
// optional string message = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_message:
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_message()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->message().data(), this->message().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 Error::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required bool error = 1;
if (has_error()) {
::google::protobuf::internal::WireFormatLite::WriteBool(1, this->error(), output);
}
// optional string message = 2;
if (has_message()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->message().data(), this->message().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
2, this->message(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Error::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required bool error = 1;
if (has_error()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->error(), target);
}
// optional string message = 2;
if (has_message()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->message().data(), this->message().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2, this->message(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Error::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required bool error = 1;
if (has_error()) {
total_size += 1 + 1;
}
// optional string message = 2;
if (has_message()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->message());
}
}
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 Error::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Error* source =
::google::protobuf::internal::dynamic_cast_if_available<const Error*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Error::MergeFrom(const Error& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_error()) {
set_error(from.error());
}
if (from.has_message()) {
set_message(from.message());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Error::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Error::CopyFrom(const Error& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Error::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void Error::Swap(Error* other) {
if (other != this) {
std::swap(error_, other->error_);
std::swap(message_, other->message_);
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 Error::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Error_descriptor_;
metadata.reflection = Error_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace Remote
// @@protoc_insertion_point(global_scope)
-250
View File
@@ -1,250 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common.proto
#ifndef PROTOBUF_common_2eproto__INCLUDED
#define PROTOBUF_common_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>
// @@protoc_insertion_point(includes)
namespace Remote {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_common_2eproto();
void protobuf_AssignDesc_common_2eproto();
void protobuf_ShutdownFile_common_2eproto();
class Error;
// ===================================================================
class Error : public ::google::protobuf::Message {
public:
Error();
virtual ~Error();
Error(const Error& from);
inline Error& operator=(const Error& 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 Error& default_instance();
void Swap(Error* other);
// implements Message ----------------------------------------------
Error* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const Error& from);
void MergeFrom(const Error& 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 bool error = 1;
inline bool has_error() const;
inline void clear_error();
static const int kErrorFieldNumber = 1;
inline bool error() const;
inline void set_error(bool value);
// optional string message = 2;
inline bool has_message() const;
inline void clear_message();
static const int kMessageFieldNumber = 2;
inline const ::std::string& message() const;
inline void set_message(const ::std::string& value);
inline void set_message(const char* value);
inline void set_message(const char* value, size_t size);
inline ::std::string* mutable_message();
inline ::std::string* release_message();
inline void set_allocated_message(::std::string* message);
// @@protoc_insertion_point(class_scope:Remote.Error)
private:
inline void set_has_error();
inline void clear_has_error();
inline void set_has_message();
inline void clear_has_message();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::std::string* message_;
bool error_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
friend void protobuf_AddDesc_common_2eproto();
friend void protobuf_AssignDesc_common_2eproto();
friend void protobuf_ShutdownFile_common_2eproto();
void InitAsDefaultInstance();
static Error* default_instance_;
};
// ===================================================================
// ===================================================================
// Error
// required bool error = 1;
inline bool Error::has_error() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void Error::set_has_error() {
_has_bits_[0] |= 0x00000001u;
}
inline void Error::clear_has_error() {
_has_bits_[0] &= ~0x00000001u;
}
inline void Error::clear_error() {
error_ = false;
clear_has_error();
}
inline bool Error::error() const {
return error_;
}
inline void Error::set_error(bool value) {
set_has_error();
error_ = value;
}
// optional string message = 2;
inline bool Error::has_message() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void Error::set_has_message() {
_has_bits_[0] |= 0x00000002u;
}
inline void Error::clear_has_message() {
_has_bits_[0] &= ~0x00000002u;
}
inline void Error::clear_message() {
if (message_ != &::google::protobuf::internal::kEmptyString) {
message_->clear();
}
clear_has_message();
}
inline const ::std::string& Error::message() const {
return *message_;
}
inline void Error::set_message(const ::std::string& value) {
set_has_message();
if (message_ == &::google::protobuf::internal::kEmptyString) {
message_ = new ::std::string;
}
message_->assign(value);
}
inline void Error::set_message(const char* value) {
set_has_message();
if (message_ == &::google::protobuf::internal::kEmptyString) {
message_ = new ::std::string;
}
message_->assign(value);
}
inline void Error::set_message(const char* value, size_t size) {
set_has_message();
if (message_ == &::google::protobuf::internal::kEmptyString) {
message_ = new ::std::string;
}
message_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* Error::mutable_message() {
set_has_message();
if (message_ == &::google::protobuf::internal::kEmptyString) {
message_ = new ::std::string;
}
return message_;
}
inline ::std::string* Error::release_message() {
clear_has_message();
if (message_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = message_;
message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
inline void Error::set_allocated_message(::std::string* message) {
if (message_ != &::google::protobuf::internal::kEmptyString) {
delete message_;
}
if (message) {
set_has_message();
message_ = message;
} else {
clear_has_message();
message_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
}
}
// @@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_common_2eproto__INCLUDED
File diff suppressed because it is too large Load Diff
File diff suppressed because it is too large Load Diff
-918
View File
@@ -1,918 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: messages.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "messages.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/once.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
namespace Remote {
namespace {
const ::google::protobuf::Descriptor* ClientMessage_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ClientMessage_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* ClientMessage_Type_descriptor_ = NULL;
const ::google::protobuf::Descriptor* ServerMessage_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
ServerMessage_reflection_ = NULL;
const ::google::protobuf::EnumDescriptor* ServerMessage_Type_descriptor_ = NULL;
} // namespace
void protobuf_AssignDesc_messages_2eproto() {
protobuf_AddDesc_messages_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"messages.proto");
GOOGLE_CHECK(file != NULL);
ClientMessage_descriptor_ = file->message_type(0);
static const int ClientMessage_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientMessage, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientMessage, auth_request_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientMessage, audio_collection_request_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientMessage, media_request_),
};
ClientMessage_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ClientMessage_descriptor_,
ClientMessage::default_instance_,
ClientMessage_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientMessage, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientMessage, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ClientMessage));
ClientMessage_Type_descriptor_ = ClientMessage_descriptor_->enum_type(0);
ServerMessage_descriptor_ = file->message_type(1);
static const int ServerMessage_offsets_[4] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMessage, type_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMessage, auth_response_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMessage, audio_collection_response_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMessage, media_response_),
};
ServerMessage_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
ServerMessage_descriptor_,
ServerMessage::default_instance_,
ServerMessage_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMessage, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMessage, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(ServerMessage));
ServerMessage_Type_descriptor_ = ServerMessage_descriptor_->enum_type(0);
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_messages_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ClientMessage_descriptor_, &ClientMessage::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
ServerMessage_descriptor_, &ServerMessage::default_instance());
}
} // namespace
void protobuf_ShutdownFile_messages_2eproto() {
delete ClientMessage::default_instance_;
delete ClientMessage_reflection_;
delete ServerMessage::default_instance_;
delete ServerMessage_reflection_;
}
void protobuf_AddDesc_messages_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::Remote::protobuf_AddDesc_common_2eproto();
::Remote::protobuf_AddDesc_auth_2eproto();
::Remote::protobuf_AddDesc_collection_2eproto();
::Remote::protobuf_AddDesc_media_2eproto();
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\016messages.proto\022\006Remote\032\014common.proto\032\n"
"auth.proto\032\020collection.proto\032\013media.prot"
"o\"\232\002\n\rClientMessage\022(\n\004type\030\001 \002(\0162\032.Remo"
"te.ClientMessage.Type\022)\n\014auth_request\030\002 "
"\001(\0132\023.Remote.AuthRequest\022@\n\030audio_collec"
"tion_request\030\003 \001(\0132\036.Remote.AudioCollect"
"ionRequest\022+\n\rmedia_request\030\004 \001(\0132\024.Remo"
"te.MediaRequest\"E\n\004Type\022\017\n\013AuthRequest\020\001"
"\022\032\n\026AudioCollectionRequest\020\002\022\020\n\014MediaReq"
"uest\020\003\"\243\002\n\rServerMessage\022(\n\004type\030\001 \002(\0162\032"
".Remote.ServerMessage.Type\022+\n\rauth_respo"
"nse\030\002 \001(\0132\024.Remote.AuthResponse\022B\n\031audio"
"_collection_response\030\003 \001(\0132\037.Remote.Audi"
"oCollectionResponse\022-\n\016media_response\030\004 "
"\001(\0132\025.Remote.MediaResponse\"H\n\004Type\022\020\n\014Au"
"thResponse\020\001\022\033\n\027AudioCollectionResponse\020"
"\002\022\021\n\rMediaResponse\020\003", 660);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"messages.proto", &protobuf_RegisterTypes);
ClientMessage::default_instance_ = new ClientMessage();
ServerMessage::default_instance_ = new ServerMessage();
ClientMessage::default_instance_->InitAsDefaultInstance();
ServerMessage::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_messages_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_messages_2eproto {
StaticDescriptorInitializer_messages_2eproto() {
protobuf_AddDesc_messages_2eproto();
}
} static_descriptor_initializer_messages_2eproto_;
// ===================================================================
const ::google::protobuf::EnumDescriptor* ClientMessage_Type_descriptor() {
protobuf_AssignDescriptorsOnce();
return ClientMessage_Type_descriptor_;
}
bool ClientMessage_Type_IsValid(int value) {
switch(value) {
case 1:
case 2:
case 3:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const ClientMessage_Type ClientMessage::AuthRequest;
const ClientMessage_Type ClientMessage::AudioCollectionRequest;
const ClientMessage_Type ClientMessage::MediaRequest;
const ClientMessage_Type ClientMessage::Type_MIN;
const ClientMessage_Type ClientMessage::Type_MAX;
const int ClientMessage::Type_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
const int ClientMessage::kTypeFieldNumber;
const int ClientMessage::kAuthRequestFieldNumber;
const int ClientMessage::kAudioCollectionRequestFieldNumber;
const int ClientMessage::kMediaRequestFieldNumber;
#endif // !_MSC_VER
ClientMessage::ClientMessage()
: ::google::protobuf::Message() {
SharedCtor();
}
void ClientMessage::InitAsDefaultInstance() {
auth_request_ = const_cast< ::Remote::AuthRequest*>(&::Remote::AuthRequest::default_instance());
audio_collection_request_ = const_cast< ::Remote::AudioCollectionRequest*>(&::Remote::AudioCollectionRequest::default_instance());
media_request_ = const_cast< ::Remote::MediaRequest*>(&::Remote::MediaRequest::default_instance());
}
ClientMessage::ClientMessage(const ClientMessage& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ClientMessage::SharedCtor() {
_cached_size_ = 0;
type_ = 1;
auth_request_ = NULL;
audio_collection_request_ = NULL;
media_request_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ClientMessage::~ClientMessage() {
SharedDtor();
}
void ClientMessage::SharedDtor() {
if (this != default_instance_) {
delete auth_request_;
delete audio_collection_request_;
delete media_request_;
}
}
void ClientMessage::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ClientMessage::descriptor() {
protobuf_AssignDescriptorsOnce();
return ClientMessage_descriptor_;
}
const ClientMessage& ClientMessage::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_messages_2eproto();
return *default_instance_;
}
ClientMessage* ClientMessage::default_instance_ = NULL;
ClientMessage* ClientMessage::New() const {
return new ClientMessage;
}
void ClientMessage::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
type_ = 1;
if (has_auth_request()) {
if (auth_request_ != NULL) auth_request_->::Remote::AuthRequest::Clear();
}
if (has_audio_collection_request()) {
if (audio_collection_request_ != NULL) audio_collection_request_->::Remote::AudioCollectionRequest::Clear();
}
if (has_media_request()) {
if (media_request_ != NULL) media_request_->::Remote::MediaRequest::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ClientMessage::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.ClientMessage.Type type = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Remote::ClientMessage_Type_IsValid(value)) {
set_type(static_cast< ::Remote::ClientMessage_Type >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_auth_request;
break;
}
// optional .Remote.AuthRequest auth_request = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_auth_request:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_auth_request()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_audio_collection_request;
break;
}
// optional .Remote.AudioCollectionRequest audio_collection_request = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_audio_collection_request:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_audio_collection_request()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_media_request;
break;
}
// optional .Remote.MediaRequest media_request = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_media_request:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_media_request()));
} 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 ClientMessage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .Remote.ClientMessage.Type type = 1;
if (has_type()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->type(), output);
}
// optional .Remote.AuthRequest auth_request = 2;
if (has_auth_request()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->auth_request(), output);
}
// optional .Remote.AudioCollectionRequest audio_collection_request = 3;
if (has_audio_collection_request()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->audio_collection_request(), output);
}
// optional .Remote.MediaRequest media_request = 4;
if (has_media_request()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->media_request(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ClientMessage::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .Remote.ClientMessage.Type type = 1;
if (has_type()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->type(), target);
}
// optional .Remote.AuthRequest auth_request = 2;
if (has_auth_request()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->auth_request(), target);
}
// optional .Remote.AudioCollectionRequest audio_collection_request = 3;
if (has_audio_collection_request()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->audio_collection_request(), target);
}
// optional .Remote.MediaRequest media_request = 4;
if (has_media_request()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->media_request(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ClientMessage::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .Remote.ClientMessage.Type type = 1;
if (has_type()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
}
// optional .Remote.AuthRequest auth_request = 2;
if (has_auth_request()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->auth_request());
}
// optional .Remote.AudioCollectionRequest audio_collection_request = 3;
if (has_audio_collection_request()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->audio_collection_request());
}
// optional .Remote.MediaRequest media_request = 4;
if (has_media_request()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->media_request());
}
}
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 ClientMessage::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ClientMessage* source =
::google::protobuf::internal::dynamic_cast_if_available<const ClientMessage*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ClientMessage::MergeFrom(const ClientMessage& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_type()) {
set_type(from.type());
}
if (from.has_auth_request()) {
mutable_auth_request()->::Remote::AuthRequest::MergeFrom(from.auth_request());
}
if (from.has_audio_collection_request()) {
mutable_audio_collection_request()->::Remote::AudioCollectionRequest::MergeFrom(from.audio_collection_request());
}
if (from.has_media_request()) {
mutable_media_request()->::Remote::MediaRequest::MergeFrom(from.media_request());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ClientMessage::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ClientMessage::CopyFrom(const ClientMessage& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ClientMessage::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_auth_request()) {
if (!this->auth_request().IsInitialized()) return false;
}
if (has_audio_collection_request()) {
if (!this->audio_collection_request().IsInitialized()) return false;
}
if (has_media_request()) {
if (!this->media_request().IsInitialized()) return false;
}
return true;
}
void ClientMessage::Swap(ClientMessage* other) {
if (other != this) {
std::swap(type_, other->type_);
std::swap(auth_request_, other->auth_request_);
std::swap(audio_collection_request_, other->audio_collection_request_);
std::swap(media_request_, other->media_request_);
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 ClientMessage::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ClientMessage_descriptor_;
metadata.reflection = ClientMessage_reflection_;
return metadata;
}
// ===================================================================
const ::google::protobuf::EnumDescriptor* ServerMessage_Type_descriptor() {
protobuf_AssignDescriptorsOnce();
return ServerMessage_Type_descriptor_;
}
bool ServerMessage_Type_IsValid(int value) {
switch(value) {
case 1:
case 2:
case 3:
return true;
default:
return false;
}
}
#ifndef _MSC_VER
const ServerMessage_Type ServerMessage::AuthResponse;
const ServerMessage_Type ServerMessage::AudioCollectionResponse;
const ServerMessage_Type ServerMessage::MediaResponse;
const ServerMessage_Type ServerMessage::Type_MIN;
const ServerMessage_Type ServerMessage::Type_MAX;
const int ServerMessage::Type_ARRAYSIZE;
#endif // _MSC_VER
#ifndef _MSC_VER
const int ServerMessage::kTypeFieldNumber;
const int ServerMessage::kAuthResponseFieldNumber;
const int ServerMessage::kAudioCollectionResponseFieldNumber;
const int ServerMessage::kMediaResponseFieldNumber;
#endif // !_MSC_VER
ServerMessage::ServerMessage()
: ::google::protobuf::Message() {
SharedCtor();
}
void ServerMessage::InitAsDefaultInstance() {
auth_response_ = const_cast< ::Remote::AuthResponse*>(&::Remote::AuthResponse::default_instance());
audio_collection_response_ = const_cast< ::Remote::AudioCollectionResponse*>(&::Remote::AudioCollectionResponse::default_instance());
media_response_ = const_cast< ::Remote::MediaResponse*>(&::Remote::MediaResponse::default_instance());
}
ServerMessage::ServerMessage(const ServerMessage& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void ServerMessage::SharedCtor() {
_cached_size_ = 0;
type_ = 1;
auth_response_ = NULL;
audio_collection_response_ = NULL;
media_response_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
ServerMessage::~ServerMessage() {
SharedDtor();
}
void ServerMessage::SharedDtor() {
if (this != default_instance_) {
delete auth_response_;
delete audio_collection_response_;
delete media_response_;
}
}
void ServerMessage::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* ServerMessage::descriptor() {
protobuf_AssignDescriptorsOnce();
return ServerMessage_descriptor_;
}
const ServerMessage& ServerMessage::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_messages_2eproto();
return *default_instance_;
}
ServerMessage* ServerMessage::default_instance_ = NULL;
ServerMessage* ServerMessage::New() const {
return new ServerMessage;
}
void ServerMessage::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
type_ = 1;
if (has_auth_response()) {
if (auth_response_ != NULL) auth_response_->::Remote::AuthResponse::Clear();
}
if (has_audio_collection_response()) {
if (audio_collection_response_ != NULL) audio_collection_response_->::Remote::AudioCollectionResponse::Clear();
}
if (has_media_response()) {
if (media_response_ != NULL) media_response_->::Remote::MediaResponse::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool ServerMessage::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.ServerMessage.Type type = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
int value;
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
input, &value)));
if (::Remote::ServerMessage_Type_IsValid(value)) {
set_type(static_cast< ::Remote::ServerMessage_Type >(value));
} else {
mutable_unknown_fields()->AddVarint(1, value);
}
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_auth_response;
break;
}
// optional .Remote.AuthResponse auth_response = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_auth_response:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_auth_response()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(26)) goto parse_audio_collection_response;
break;
}
// optional .Remote.AudioCollectionResponse audio_collection_response = 3;
case 3: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_audio_collection_response:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_audio_collection_response()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(34)) goto parse_media_response;
break;
}
// optional .Remote.MediaResponse media_response = 4;
case 4: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_media_response:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_media_response()));
} 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 ServerMessage::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required .Remote.ServerMessage.Type type = 1;
if (has_type()) {
::google::protobuf::internal::WireFormatLite::WriteEnum(
1, this->type(), output);
}
// optional .Remote.AuthResponse auth_response = 2;
if (has_auth_response()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->auth_response(), output);
}
// optional .Remote.AudioCollectionResponse audio_collection_response = 3;
if (has_audio_collection_response()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
3, this->audio_collection_response(), output);
}
// optional .Remote.MediaResponse media_response = 4;
if (has_media_response()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
4, this->media_response(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* ServerMessage::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required .Remote.ServerMessage.Type type = 1;
if (has_type()) {
target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray(
1, this->type(), target);
}
// optional .Remote.AuthResponse auth_response = 2;
if (has_auth_response()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->auth_response(), target);
}
// optional .Remote.AudioCollectionResponse audio_collection_response = 3;
if (has_audio_collection_response()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
3, this->audio_collection_response(), target);
}
// optional .Remote.MediaResponse media_response = 4;
if (has_media_response()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
4, this->media_response(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int ServerMessage::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required .Remote.ServerMessage.Type type = 1;
if (has_type()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::EnumSize(this->type());
}
// optional .Remote.AuthResponse auth_response = 2;
if (has_auth_response()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->auth_response());
}
// optional .Remote.AudioCollectionResponse audio_collection_response = 3;
if (has_audio_collection_response()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->audio_collection_response());
}
// optional .Remote.MediaResponse media_response = 4;
if (has_media_response()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->media_response());
}
}
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 ServerMessage::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const ServerMessage* source =
::google::protobuf::internal::dynamic_cast_if_available<const ServerMessage*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void ServerMessage::MergeFrom(const ServerMessage& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_type()) {
set_type(from.type());
}
if (from.has_auth_response()) {
mutable_auth_response()->::Remote::AuthResponse::MergeFrom(from.auth_response());
}
if (from.has_audio_collection_response()) {
mutable_audio_collection_response()->::Remote::AudioCollectionResponse::MergeFrom(from.audio_collection_response());
}
if (from.has_media_response()) {
mutable_media_response()->::Remote::MediaResponse::MergeFrom(from.media_response());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void ServerMessage::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void ServerMessage::CopyFrom(const ServerMessage& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool ServerMessage::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
if (has_auth_response()) {
if (!this->auth_response().IsInitialized()) return false;
}
if (has_audio_collection_response()) {
if (!this->audio_collection_response().IsInitialized()) return false;
}
if (has_media_response()) {
if (!this->media_response().IsInitialized()) return false;
}
return true;
}
void ServerMessage::Swap(ServerMessage* other) {
if (other != this) {
std::swap(type_, other->type_);
std::swap(auth_response_, other->auth_response_);
std::swap(audio_collection_response_, other->audio_collection_response_);
std::swap(media_response_, other->media_response_);
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 ServerMessage::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = ServerMessage_descriptor_;
metadata.reflection = ServerMessage_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace Remote
// @@protoc_insertion_point(global_scope)
-679
View File
@@ -1,679 +0,0 @@
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: messages.proto
#ifndef PROTOBUF_messages_2eproto__INCLUDED
#define PROTOBUF_messages_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/generated_enum_reflection.h>
#include <google/protobuf/unknown_field_set.h>
#include "common.pb.h"
#include "auth.pb.h"
#include "collection.pb.h"
#include "media.pb.h"
// @@protoc_insertion_point(includes)
namespace Remote {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_messages_2eproto();
void protobuf_AssignDesc_messages_2eproto();
void protobuf_ShutdownFile_messages_2eproto();
class ClientMessage;
class ServerMessage;
enum ClientMessage_Type {
ClientMessage_Type_AuthRequest = 1,
ClientMessage_Type_AudioCollectionRequest = 2,
ClientMessage_Type_MediaRequest = 3
};
bool ClientMessage_Type_IsValid(int value);
const ClientMessage_Type ClientMessage_Type_Type_MIN = ClientMessage_Type_AuthRequest;
const ClientMessage_Type ClientMessage_Type_Type_MAX = ClientMessage_Type_MediaRequest;
const int ClientMessage_Type_Type_ARRAYSIZE = ClientMessage_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* ClientMessage_Type_descriptor();
inline const ::std::string& ClientMessage_Type_Name(ClientMessage_Type value) {
return ::google::protobuf::internal::NameOfEnum(
ClientMessage_Type_descriptor(), value);
}
inline bool ClientMessage_Type_Parse(
const ::std::string& name, ClientMessage_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<ClientMessage_Type>(
ClientMessage_Type_descriptor(), name, value);
}
enum ServerMessage_Type {
ServerMessage_Type_AuthResponse = 1,
ServerMessage_Type_AudioCollectionResponse = 2,
ServerMessage_Type_MediaResponse = 3
};
bool ServerMessage_Type_IsValid(int value);
const ServerMessage_Type ServerMessage_Type_Type_MIN = ServerMessage_Type_AuthResponse;
const ServerMessage_Type ServerMessage_Type_Type_MAX = ServerMessage_Type_MediaResponse;
const int ServerMessage_Type_Type_ARRAYSIZE = ServerMessage_Type_Type_MAX + 1;
const ::google::protobuf::EnumDescriptor* ServerMessage_Type_descriptor();
inline const ::std::string& ServerMessage_Type_Name(ServerMessage_Type value) {
return ::google::protobuf::internal::NameOfEnum(
ServerMessage_Type_descriptor(), value);
}
inline bool ServerMessage_Type_Parse(
const ::std::string& name, ServerMessage_Type* value) {
return ::google::protobuf::internal::ParseNamedEnum<ServerMessage_Type>(
ServerMessage_Type_descriptor(), name, value);
}
// ===================================================================
class ClientMessage : public ::google::protobuf::Message {
public:
ClientMessage();
virtual ~ClientMessage();
ClientMessage(const ClientMessage& from);
inline ClientMessage& operator=(const ClientMessage& 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 ClientMessage& default_instance();
void Swap(ClientMessage* other);
// implements Message ----------------------------------------------
ClientMessage* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const ClientMessage& from);
void MergeFrom(const ClientMessage& 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 ----------------------------------------------------
typedef ClientMessage_Type Type;
static const Type AuthRequest = ClientMessage_Type_AuthRequest;
static const Type AudioCollectionRequest = ClientMessage_Type_AudioCollectionRequest;
static const Type MediaRequest = ClientMessage_Type_MediaRequest;
static inline bool Type_IsValid(int value) {
return ClientMessage_Type_IsValid(value);
}
static const Type Type_MIN =
ClientMessage_Type_Type_MIN;
static const Type Type_MAX =
ClientMessage_Type_Type_MAX;
static const int Type_ARRAYSIZE =
ClientMessage_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return ClientMessage_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return ClientMessage_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return ClientMessage_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .Remote.ClientMessage.Type type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::Remote::ClientMessage_Type type() const;
inline void set_type(::Remote::ClientMessage_Type value);
// optional .Remote.AuthRequest auth_request = 2;
inline bool has_auth_request() const;
inline void clear_auth_request();
static const int kAuthRequestFieldNumber = 2;
inline const ::Remote::AuthRequest& auth_request() const;
inline ::Remote::AuthRequest* mutable_auth_request();
inline ::Remote::AuthRequest* release_auth_request();
inline void set_allocated_auth_request(::Remote::AuthRequest* auth_request);
// optional .Remote.AudioCollectionRequest audio_collection_request = 3;
inline bool has_audio_collection_request() const;
inline void clear_audio_collection_request();
static const int kAudioCollectionRequestFieldNumber = 3;
inline const ::Remote::AudioCollectionRequest& audio_collection_request() const;
inline ::Remote::AudioCollectionRequest* mutable_audio_collection_request();
inline ::Remote::AudioCollectionRequest* release_audio_collection_request();
inline void set_allocated_audio_collection_request(::Remote::AudioCollectionRequest* audio_collection_request);
// optional .Remote.MediaRequest media_request = 4;
inline bool has_media_request() const;
inline void clear_media_request();
static const int kMediaRequestFieldNumber = 4;
inline const ::Remote::MediaRequest& media_request() const;
inline ::Remote::MediaRequest* mutable_media_request();
inline ::Remote::MediaRequest* release_media_request();
inline void set_allocated_media_request(::Remote::MediaRequest* media_request);
// @@protoc_insertion_point(class_scope:Remote.ClientMessage)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_auth_request();
inline void clear_has_auth_request();
inline void set_has_audio_collection_request();
inline void clear_has_audio_collection_request();
inline void set_has_media_request();
inline void clear_has_media_request();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::Remote::AuthRequest* auth_request_;
::Remote::AudioCollectionRequest* audio_collection_request_;
::Remote::MediaRequest* media_request_;
int type_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
friend void protobuf_AddDesc_messages_2eproto();
friend void protobuf_AssignDesc_messages_2eproto();
friend void protobuf_ShutdownFile_messages_2eproto();
void InitAsDefaultInstance();
static ClientMessage* default_instance_;
};
// -------------------------------------------------------------------
class ServerMessage : public ::google::protobuf::Message {
public:
ServerMessage();
virtual ~ServerMessage();
ServerMessage(const ServerMessage& from);
inline ServerMessage& operator=(const ServerMessage& 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 ServerMessage& default_instance();
void Swap(ServerMessage* other);
// implements Message ----------------------------------------------
ServerMessage* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const ServerMessage& from);
void MergeFrom(const ServerMessage& 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 ----------------------------------------------------
typedef ServerMessage_Type Type;
static const Type AuthResponse = ServerMessage_Type_AuthResponse;
static const Type AudioCollectionResponse = ServerMessage_Type_AudioCollectionResponse;
static const Type MediaResponse = ServerMessage_Type_MediaResponse;
static inline bool Type_IsValid(int value) {
return ServerMessage_Type_IsValid(value);
}
static const Type Type_MIN =
ServerMessage_Type_Type_MIN;
static const Type Type_MAX =
ServerMessage_Type_Type_MAX;
static const int Type_ARRAYSIZE =
ServerMessage_Type_Type_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
Type_descriptor() {
return ServerMessage_Type_descriptor();
}
static inline const ::std::string& Type_Name(Type value) {
return ServerMessage_Type_Name(value);
}
static inline bool Type_Parse(const ::std::string& name,
Type* value) {
return ServerMessage_Type_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .Remote.ServerMessage.Type type = 1;
inline bool has_type() const;
inline void clear_type();
static const int kTypeFieldNumber = 1;
inline ::Remote::ServerMessage_Type type() const;
inline void set_type(::Remote::ServerMessage_Type value);
// optional .Remote.AuthResponse auth_response = 2;
inline bool has_auth_response() const;
inline void clear_auth_response();
static const int kAuthResponseFieldNumber = 2;
inline const ::Remote::AuthResponse& auth_response() const;
inline ::Remote::AuthResponse* mutable_auth_response();
inline ::Remote::AuthResponse* release_auth_response();
inline void set_allocated_auth_response(::Remote::AuthResponse* auth_response);
// optional .Remote.AudioCollectionResponse audio_collection_response = 3;
inline bool has_audio_collection_response() const;
inline void clear_audio_collection_response();
static const int kAudioCollectionResponseFieldNumber = 3;
inline const ::Remote::AudioCollectionResponse& audio_collection_response() const;
inline ::Remote::AudioCollectionResponse* mutable_audio_collection_response();
inline ::Remote::AudioCollectionResponse* release_audio_collection_response();
inline void set_allocated_audio_collection_response(::Remote::AudioCollectionResponse* audio_collection_response);
// optional .Remote.MediaResponse media_response = 4;
inline bool has_media_response() const;
inline void clear_media_response();
static const int kMediaResponseFieldNumber = 4;
inline const ::Remote::MediaResponse& media_response() const;
inline ::Remote::MediaResponse* mutable_media_response();
inline ::Remote::MediaResponse* release_media_response();
inline void set_allocated_media_response(::Remote::MediaResponse* media_response);
// @@protoc_insertion_point(class_scope:Remote.ServerMessage)
private:
inline void set_has_type();
inline void clear_has_type();
inline void set_has_auth_response();
inline void clear_has_auth_response();
inline void set_has_audio_collection_response();
inline void clear_has_audio_collection_response();
inline void set_has_media_response();
inline void clear_has_media_response();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::Remote::AuthResponse* auth_response_;
::Remote::AudioCollectionResponse* audio_collection_response_;
::Remote::MediaResponse* media_response_;
int type_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
friend void protobuf_AddDesc_messages_2eproto();
friend void protobuf_AssignDesc_messages_2eproto();
friend void protobuf_ShutdownFile_messages_2eproto();
void InitAsDefaultInstance();
static ServerMessage* default_instance_;
};
// ===================================================================
// ===================================================================
// ClientMessage
// required .Remote.ClientMessage.Type type = 1;
inline bool ClientMessage::has_type() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ClientMessage::set_has_type() {
_has_bits_[0] |= 0x00000001u;
}
inline void ClientMessage::clear_has_type() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ClientMessage::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::Remote::ClientMessage_Type ClientMessage::type() const {
return static_cast< ::Remote::ClientMessage_Type >(type_);
}
inline void ClientMessage::set_type(::Remote::ClientMessage_Type value) {
assert(::Remote::ClientMessage_Type_IsValid(value));
set_has_type();
type_ = value;
}
// optional .Remote.AuthRequest auth_request = 2;
inline bool ClientMessage::has_auth_request() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void ClientMessage::set_has_auth_request() {
_has_bits_[0] |= 0x00000002u;
}
inline void ClientMessage::clear_has_auth_request() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ClientMessage::clear_auth_request() {
if (auth_request_ != NULL) auth_request_->::Remote::AuthRequest::Clear();
clear_has_auth_request();
}
inline const ::Remote::AuthRequest& ClientMessage::auth_request() const {
return auth_request_ != NULL ? *auth_request_ : *default_instance_->auth_request_;
}
inline ::Remote::AuthRequest* ClientMessage::mutable_auth_request() {
set_has_auth_request();
if (auth_request_ == NULL) auth_request_ = new ::Remote::AuthRequest;
return auth_request_;
}
inline ::Remote::AuthRequest* ClientMessage::release_auth_request() {
clear_has_auth_request();
::Remote::AuthRequest* temp = auth_request_;
auth_request_ = NULL;
return temp;
}
inline void ClientMessage::set_allocated_auth_request(::Remote::AuthRequest* auth_request) {
delete auth_request_;
auth_request_ = auth_request;
if (auth_request) {
set_has_auth_request();
} else {
clear_has_auth_request();
}
}
// optional .Remote.AudioCollectionRequest audio_collection_request = 3;
inline bool ClientMessage::has_audio_collection_request() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void ClientMessage::set_has_audio_collection_request() {
_has_bits_[0] |= 0x00000004u;
}
inline void ClientMessage::clear_has_audio_collection_request() {
_has_bits_[0] &= ~0x00000004u;
}
inline void ClientMessage::clear_audio_collection_request() {
if (audio_collection_request_ != NULL) audio_collection_request_->::Remote::AudioCollectionRequest::Clear();
clear_has_audio_collection_request();
}
inline const ::Remote::AudioCollectionRequest& ClientMessage::audio_collection_request() const {
return audio_collection_request_ != NULL ? *audio_collection_request_ : *default_instance_->audio_collection_request_;
}
inline ::Remote::AudioCollectionRequest* ClientMessage::mutable_audio_collection_request() {
set_has_audio_collection_request();
if (audio_collection_request_ == NULL) audio_collection_request_ = new ::Remote::AudioCollectionRequest;
return audio_collection_request_;
}
inline ::Remote::AudioCollectionRequest* ClientMessage::release_audio_collection_request() {
clear_has_audio_collection_request();
::Remote::AudioCollectionRequest* temp = audio_collection_request_;
audio_collection_request_ = NULL;
return temp;
}
inline void ClientMessage::set_allocated_audio_collection_request(::Remote::AudioCollectionRequest* audio_collection_request) {
delete audio_collection_request_;
audio_collection_request_ = audio_collection_request;
if (audio_collection_request) {
set_has_audio_collection_request();
} else {
clear_has_audio_collection_request();
}
}
// optional .Remote.MediaRequest media_request = 4;
inline bool ClientMessage::has_media_request() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void ClientMessage::set_has_media_request() {
_has_bits_[0] |= 0x00000008u;
}
inline void ClientMessage::clear_has_media_request() {
_has_bits_[0] &= ~0x00000008u;
}
inline void ClientMessage::clear_media_request() {
if (media_request_ != NULL) media_request_->::Remote::MediaRequest::Clear();
clear_has_media_request();
}
inline const ::Remote::MediaRequest& ClientMessage::media_request() const {
return media_request_ != NULL ? *media_request_ : *default_instance_->media_request_;
}
inline ::Remote::MediaRequest* ClientMessage::mutable_media_request() {
set_has_media_request();
if (media_request_ == NULL) media_request_ = new ::Remote::MediaRequest;
return media_request_;
}
inline ::Remote::MediaRequest* ClientMessage::release_media_request() {
clear_has_media_request();
::Remote::MediaRequest* temp = media_request_;
media_request_ = NULL;
return temp;
}
inline void ClientMessage::set_allocated_media_request(::Remote::MediaRequest* media_request) {
delete media_request_;
media_request_ = media_request;
if (media_request) {
set_has_media_request();
} else {
clear_has_media_request();
}
}
// -------------------------------------------------------------------
// ServerMessage
// required .Remote.ServerMessage.Type type = 1;
inline bool ServerMessage::has_type() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void ServerMessage::set_has_type() {
_has_bits_[0] |= 0x00000001u;
}
inline void ServerMessage::clear_has_type() {
_has_bits_[0] &= ~0x00000001u;
}
inline void ServerMessage::clear_type() {
type_ = 1;
clear_has_type();
}
inline ::Remote::ServerMessage_Type ServerMessage::type() const {
return static_cast< ::Remote::ServerMessage_Type >(type_);
}
inline void ServerMessage::set_type(::Remote::ServerMessage_Type value) {
assert(::Remote::ServerMessage_Type_IsValid(value));
set_has_type();
type_ = value;
}
// optional .Remote.AuthResponse auth_response = 2;
inline bool ServerMessage::has_auth_response() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void ServerMessage::set_has_auth_response() {
_has_bits_[0] |= 0x00000002u;
}
inline void ServerMessage::clear_has_auth_response() {
_has_bits_[0] &= ~0x00000002u;
}
inline void ServerMessage::clear_auth_response() {
if (auth_response_ != NULL) auth_response_->::Remote::AuthResponse::Clear();
clear_has_auth_response();
}
inline const ::Remote::AuthResponse& ServerMessage::auth_response() const {
return auth_response_ != NULL ? *auth_response_ : *default_instance_->auth_response_;
}
inline ::Remote::AuthResponse* ServerMessage::mutable_auth_response() {
set_has_auth_response();
if (auth_response_ == NULL) auth_response_ = new ::Remote::AuthResponse;
return auth_response_;
}
inline ::Remote::AuthResponse* ServerMessage::release_auth_response() {
clear_has_auth_response();
::Remote::AuthResponse* temp = auth_response_;
auth_response_ = NULL;
return temp;
}
inline void ServerMessage::set_allocated_auth_response(::Remote::AuthResponse* auth_response) {
delete auth_response_;
auth_response_ = auth_response;
if (auth_response) {
set_has_auth_response();
} else {
clear_has_auth_response();
}
}
// optional .Remote.AudioCollectionResponse audio_collection_response = 3;
inline bool ServerMessage::has_audio_collection_response() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void ServerMessage::set_has_audio_collection_response() {
_has_bits_[0] |= 0x00000004u;
}
inline void ServerMessage::clear_has_audio_collection_response() {
_has_bits_[0] &= ~0x00000004u;
}
inline void ServerMessage::clear_audio_collection_response() {
if (audio_collection_response_ != NULL) audio_collection_response_->::Remote::AudioCollectionResponse::Clear();
clear_has_audio_collection_response();
}
inline const ::Remote::AudioCollectionResponse& ServerMessage::audio_collection_response() const {
return audio_collection_response_ != NULL ? *audio_collection_response_ : *default_instance_->audio_collection_response_;
}
inline ::Remote::AudioCollectionResponse* ServerMessage::mutable_audio_collection_response() {
set_has_audio_collection_response();
if (audio_collection_response_ == NULL) audio_collection_response_ = new ::Remote::AudioCollectionResponse;
return audio_collection_response_;
}
inline ::Remote::AudioCollectionResponse* ServerMessage::release_audio_collection_response() {
clear_has_audio_collection_response();
::Remote::AudioCollectionResponse* temp = audio_collection_response_;
audio_collection_response_ = NULL;
return temp;
}
inline void ServerMessage::set_allocated_audio_collection_response(::Remote::AudioCollectionResponse* audio_collection_response) {
delete audio_collection_response_;
audio_collection_response_ = audio_collection_response;
if (audio_collection_response) {
set_has_audio_collection_response();
} else {
clear_has_audio_collection_response();
}
}
// optional .Remote.MediaResponse media_response = 4;
inline bool ServerMessage::has_media_response() const {
return (_has_bits_[0] & 0x00000008u) != 0;
}
inline void ServerMessage::set_has_media_response() {
_has_bits_[0] |= 0x00000008u;
}
inline void ServerMessage::clear_has_media_response() {
_has_bits_[0] &= ~0x00000008u;
}
inline void ServerMessage::clear_media_response() {
if (media_response_ != NULL) media_response_->::Remote::MediaResponse::Clear();
clear_has_media_response();
}
inline const ::Remote::MediaResponse& ServerMessage::media_response() const {
return media_response_ != NULL ? *media_response_ : *default_instance_->media_response_;
}
inline ::Remote::MediaResponse* ServerMessage::mutable_media_response() {
set_has_media_response();
if (media_response_ == NULL) media_response_ = new ::Remote::MediaResponse;
return media_response_;
}
inline ::Remote::MediaResponse* ServerMessage::release_media_response() {
clear_has_media_response();
::Remote::MediaResponse* temp = media_response_;
media_response_ = NULL;
return temp;
}
inline void ServerMessage::set_allocated_media_response(::Remote::MediaResponse* media_response) {
delete media_response_;
media_response_ = media_response;
if (media_response) {
set_has_media_response();
} else {
clear_has_media_response();
}
}
// @@protoc_insertion_point(namespace_scope)
} // namespace Remote
#ifndef SWIG
namespace google {
namespace protobuf {
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::Remote::ClientMessage_Type>() {
return ::Remote::ClientMessage_Type_descriptor();
}
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::Remote::ServerMessage_Type>() {
return ::Remote::ServerMessage_Type_descriptor();
}
} // namespace google
} // namespace protobuf
#endif // SWIG
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_messages_2eproto__INCLUDED
@@ -20,10 +20,10 @@
#ifndef REMOTE_AUDIO_COLLECTION_REQUEST_HANDLER
#define REMOTE_AUDIO_COLLECTION_REQUEST_HANDLER
#include "messages/messages.pb.h"
#include "database/DatabaseHandler.hpp"
#include "messages.pb.h"
namespace Remote {
namespace Server {
+2 -2
View File
@@ -20,10 +20,10 @@
#ifndef REMOTE_AUTH_REQUEST_HANDLER
#define REMOTE_AUTH_REQUEST_HANDLER
#include "messages/messages.pb.h"
#include "database/DatabaseHandler.hpp"
#include "messages.pb.h"
namespace Remote {
namespace Server {
+1 -1
View File
@@ -26,7 +26,7 @@
#include "logger/Logger.hpp"
#include "messages/messages.pb.h"
#include "messages.pb.h"
#include "RequestHandler.hpp"
+2 -2
View File
@@ -23,11 +23,11 @@
#include <map>
#include <memory>
#include "messages/media.pb.h"
#include "database/DatabaseHandler.hpp"
#include "transcode/AvConvTranscoder.hpp"
#include "media.pb.h"
namespace Remote {
namespace Server {
+1 -1
View File
@@ -22,7 +22,7 @@
#include <boost/filesystem.hpp>
#include "messages/messages.pb.h"
#include "messages.pb.h"
#include "database/DatabaseHandler.hpp"