diff --git a/Makefile.am b/Makefile.am index a3d751bd..be4e2a68 100644 --- a/Makefile.am +++ b/Makefile.am @@ -30,11 +30,6 @@ lms_SOURCES = \ $(top_srcdir)/logger/Logger.cpp \ $(top_srcdir)/metadata/AvFormat.cpp \ $(top_srcdir)/metadata/Utils.cpp \ - $(top_srcdir)/remote/messages/auth.pb.cc \ - $(top_srcdir)/remote/messages/collection.pb.cc \ - $(top_srcdir)/remote/messages/common.pb.cc \ - $(top_srcdir)/remote/messages/media.pb.cc \ - $(top_srcdir)/remote/messages/messages.pb.cc \ $(top_srcdir)/remote/server/Connection.cpp \ $(top_srcdir)/remote/server/ConnectionManager.cpp \ $(top_srcdir)/remote/server/AudioCollectionRequestHandler.cpp \ @@ -76,6 +71,45 @@ lms_SOURCES = \ $(top_srcdir)/ui/settings/SettingsUserFormView.cpp \ $(top_srcdir)/ui/settings/SettingsUsers.cpp +nodist_lms_SOURCES = \ + $(builddir)/auth.pb.cc \ + $(builddir)/auth.pb.h \ + $(builddir)/collection.pb.cc \ + $(builddir)/collection.pb.h \ + $(builddir)/common.pb.cc \ + $(builddir)/common.pb.h \ + $(builddir)/media.pb.cc \ + $(builddir)/media.pb.h \ + $(builddir)/messages.pb.cc \ + $(builddir)/messages.pb.h + +BUILT_SOURCES = \ + $(builddir)/auth.pb.cc \ + $(builddir)/auth.pb.h \ + $(builddir)/collection.pb.cc \ + $(builddir)/collection.pb.h \ + $(builddir)/common.pb.cc \ + $(builddir)/common.pb.h \ + $(builddir)/media.pb.cc \ + $(builddir)/media.pb.h \ + $(builddir)/messages.pb.cc \ + $(builddir)/messages.pb.h + +MOSTLYCLEANFILES = \ + $(builddir)/auth.pb.cc \ + $(builddir)/auth.pb.h \ + $(builddir)/collection.pb.cc \ + $(builddir)/collection.pb.h \ + $(builddir)/common.pb.cc \ + $(builddir)/common.pb.h \ + $(builddir)/media.pb.cc \ + $(builddir)/media.pb.h \ + $(builddir)/messages.pb.cc \ + $(builddir)/messages.pb.h + + +%.pb.cc %.pb.h: $(top_srcdir)/remote/proto/%.proto + $(PROTOC) --proto_path=$(srcdir)/remote/proto/ --cpp_out=$(builddir)/ $^ lms_CXXFLAGS=-DBOOST_LOG_DYN_LINK -std=c++11 -Wall -I$(top_srcdir)/boost/ -I$(top_srcdir)/ui -I$(top_srcdir)/remote diff --git a/TODO b/TODO index 1a050c37..3d2f5d0c 100644 --- a/TODO +++ b/TODO @@ -75,4 +75,5 @@ - Make protoc generate the proto files and remove them from the vcs. [Logs] +- capture transcoder log output to get more information - Use a logging facility diff --git a/configure.ac b/configure.ac index 568f4627..83ec5c01 100644 --- a/configure.ac +++ b/configure.ac @@ -8,6 +8,23 @@ AC_LANG_CPLUSPLUS # Checks for programs AC_PROG_CXX +# ProtoBuf compiler. +# First, specify with --with-protoc=/path/of/protoc. +# Or, specify with env variable PROTOC. +# If neither of the above, find it in the path. +#AC_MSG_CHECKING([for ProtoBuf compiler protoc]) +AC_ARG_WITH([protoc], + [AS_HELP_STRING([--with-protoc=/path/of/protoc], + [Location of the protocol buffers compiler protoc. Defaults to looking on path.])], + [PROTOC="$withval"], + [ AS_IF([test "x${PROTOC}" == "x"], + [AC_PATH_PROG([PROTOC], [protoc], [no])])] + ) + +#AC_MSG_RESULT([${PROTOC}]) +AS_IF([test "${PROTOC}" == "no"], [AC_MSG_ERROR([ProtoBuf compiler "protoc" not found.])]) + + AC_CHECK_HEADERS([Wt/WApplication jpeglib.h], [], [AC_MSG_ERROR([Header not found or unusable !])]) diff --git a/remote/messages/auth.pb.cc b/remote/messages/auth.pb.cc deleted file mode 100644 index ea17e103..00000000 --- a/remote/messages/auth.pb.cc +++ /dev/null @@ -1,1321 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: auth.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "auth.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace Remote { - -namespace { - -const ::google::protobuf::Descriptor* AuthRequest_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AuthRequest_reflection_ = NULL; -const ::google::protobuf::Descriptor* AuthRequest_Password_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AuthRequest_Password_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* AuthRequest_Type_descriptor_ = NULL; -const ::google::protobuf::Descriptor* AuthResponse_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AuthResponse_reflection_ = NULL; -const ::google::protobuf::Descriptor* AuthResponse_PasswordResult_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AuthResponse_PasswordResult_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* AuthResponse_PasswordResult_Type_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* AuthResponse_Type_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_auth_2eproto() { - protobuf_AddDesc_auth_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "auth.proto"); - GOOGLE_CHECK(file != NULL); - AuthRequest_descriptor_ = file->message_type(0); - static const int AuthRequest_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest, password_), - }; - AuthRequest_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AuthRequest_descriptor_, - AuthRequest::default_instance_, - AuthRequest_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AuthRequest)); - AuthRequest_Password_descriptor_ = AuthRequest_descriptor_->nested_type(0); - static const int AuthRequest_Password_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest_Password, user_login_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest_Password, user_password_), - }; - AuthRequest_Password_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AuthRequest_Password_descriptor_, - AuthRequest_Password::default_instance_, - AuthRequest_Password_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest_Password, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthRequest_Password, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AuthRequest_Password)); - AuthRequest_Type_descriptor_ = AuthRequest_descriptor_->enum_type(0); - AuthResponse_descriptor_ = file->message_type(1); - static const int AuthResponse_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse, password_result_), - }; - AuthResponse_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AuthResponse_descriptor_, - AuthResponse::default_instance_, - AuthResponse_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AuthResponse)); - AuthResponse_PasswordResult_descriptor_ = AuthResponse_descriptor_->nested_type(0); - static const int AuthResponse_PasswordResult_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse_PasswordResult, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse_PasswordResult, delay_), - }; - AuthResponse_PasswordResult_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AuthResponse_PasswordResult_descriptor_, - AuthResponse_PasswordResult::default_instance_, - AuthResponse_PasswordResult_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse_PasswordResult, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AuthResponse_PasswordResult, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AuthResponse_PasswordResult)); - AuthResponse_PasswordResult_Type_descriptor_ = AuthResponse_PasswordResult_descriptor_->enum_type(0); - AuthResponse_Type_descriptor_ = AuthResponse_descriptor_->enum_type(0); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_auth_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AuthRequest_descriptor_, &AuthRequest::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AuthRequest_Password_descriptor_, &AuthRequest_Password::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AuthResponse_descriptor_, &AuthResponse::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AuthResponse_PasswordResult_descriptor_, &AuthResponse_PasswordResult::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_auth_2eproto() { - delete AuthRequest::default_instance_; - delete AuthRequest_reflection_; - delete AuthRequest_Password::default_instance_; - delete AuthRequest_Password_reflection_; - delete AuthResponse::default_instance_; - delete AuthResponse_reflection_; - delete AuthResponse_PasswordResult::default_instance_; - delete AuthResponse_PasswordResult_reflection_; -} - -void protobuf_AddDesc_auth_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::Remote::protobuf_AddDesc_common_2eproto(); - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\nauth.proto\022\006Remote\032\014common.proto\"\266\001\n\013A" - "uthRequest\022&\n\004type\030\001 \002(\0162\030.Remote.AuthRe" - "quest.Type\022.\n\010password\030\002 \001(\0132\034.Remote.Au" - "thRequest.Password\0325\n\010Password\022\022\n\nuser_l" - "ogin\030\001 \002(\t\022\025\n\ruser_password\030\002 \002(\t\"\030\n\004Typ" - "e\022\020\n\014TypePassword\020\001\"\300\002\n\014AuthResponse\022\'\n\004" - "type\030\001 \002(\0162\031.Remote.AuthResponse.Type\022<\n" - "\017password_result\030\002 \001(\0132#.Remote.AuthResp" - "onse.PasswordResult\032\250\001\n\016PasswordResult\0226" - "\n\004type\030\001 \002(\0162(.Remote.AuthResponse.Passw" - "ordResult.Type\022\r\n\005delay\030\002 \001(\r\"O\n\004Type\022\027\n" - "\023TypePasswordInvalid\020\001\022\027\n\023TypeLoginThrot" - "tling\020\002\022\025\n\021TypePasswordValid\020\003\"\036\n\004Type\022\026" - "\n\022TypePasswordResult\020\001", 542); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "auth.proto", &protobuf_RegisterTypes); - AuthRequest::default_instance_ = new AuthRequest(); - AuthRequest_Password::default_instance_ = new AuthRequest_Password(); - AuthResponse::default_instance_ = new AuthResponse(); - AuthResponse_PasswordResult::default_instance_ = new AuthResponse_PasswordResult(); - AuthRequest::default_instance_->InitAsDefaultInstance(); - AuthRequest_Password::default_instance_->InitAsDefaultInstance(); - AuthResponse::default_instance_->InitAsDefaultInstance(); - AuthResponse_PasswordResult::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_auth_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_auth_2eproto { - StaticDescriptorInitializer_auth_2eproto() { - protobuf_AddDesc_auth_2eproto(); - } -} static_descriptor_initializer_auth_2eproto_; - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* AuthRequest_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return AuthRequest_Type_descriptor_; -} -bool AuthRequest_Type_IsValid(int value) { - switch(value) { - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const AuthRequest_Type AuthRequest::TypePassword; -const AuthRequest_Type AuthRequest::Type_MIN; -const AuthRequest_Type AuthRequest::Type_MAX; -const int AuthRequest::Type_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AuthRequest_Password::kUserLoginFieldNumber; -const int AuthRequest_Password::kUserPasswordFieldNumber; -#endif // !_MSC_VER - -AuthRequest_Password::AuthRequest_Password() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AuthRequest_Password::InitAsDefaultInstance() { -} - -AuthRequest_Password::AuthRequest_Password(const AuthRequest_Password& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AuthRequest_Password::SharedCtor() { - _cached_size_ = 0; - user_login_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - user_password_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthRequest_Password::~AuthRequest_Password() { - SharedDtor(); -} - -void AuthRequest_Password::SharedDtor() { - if (user_login_ != &::google::protobuf::internal::kEmptyString) { - delete user_login_; - } - if (user_password_ != &::google::protobuf::internal::kEmptyString) { - delete user_password_; - } - if (this != default_instance_) { - } -} - -void AuthRequest_Password::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AuthRequest_Password::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AuthRequest_Password_descriptor_; -} - -const AuthRequest_Password& AuthRequest_Password::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_auth_2eproto(); - return *default_instance_; -} - -AuthRequest_Password* AuthRequest_Password::default_instance_ = NULL; - -AuthRequest_Password* AuthRequest_Password::New() const { - return new AuthRequest_Password; -} - -void AuthRequest_Password::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_user_login()) { - if (user_login_ != &::google::protobuf::internal::kEmptyString) { - user_login_->clear(); - } - } - if (has_user_password()) { - if (user_password_ != &::google::protobuf::internal::kEmptyString) { - user_password_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AuthRequest_Password::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string user_login = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_user_login())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->user_login().data(), this->user_login().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_user_password; - break; - } - - // required string user_password = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_user_password: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_user_password())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->user_password().data(), this->user_password().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void AuthRequest_Password::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string user_login = 1; - if (has_user_login()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->user_login().data(), this->user_login().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->user_login(), output); - } - - // required string user_password = 2; - if (has_user_password()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->user_password().data(), this->user_password().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->user_password(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AuthRequest_Password::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required string user_login = 1; - if (has_user_login()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->user_login().data(), this->user_login().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->user_login(), target); - } - - // required string user_password = 2; - if (has_user_password()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->user_password().data(), this->user_password().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->user_password(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AuthRequest_Password::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string user_login = 1; - if (has_user_login()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->user_login()); - } - - // required string user_password = 2; - if (has_user_password()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->user_password()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AuthRequest_Password::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AuthRequest_Password* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AuthRequest_Password::MergeFrom(const AuthRequest_Password& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_user_login()) { - set_user_login(from.user_login()); - } - if (from.has_user_password()) { - set_user_password(from.user_password()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AuthRequest_Password::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AuthRequest_Password::CopyFrom(const AuthRequest_Password& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthRequest_Password::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AuthRequest_Password::Swap(AuthRequest_Password* other) { - if (other != this) { - std::swap(user_login_, other->user_login_); - std::swap(user_password_, other->user_password_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AuthRequest_Password::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AuthRequest_Password_descriptor_; - metadata.reflection = AuthRequest_Password_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AuthRequest::kTypeFieldNumber; -const int AuthRequest::kPasswordFieldNumber; -#endif // !_MSC_VER - -AuthRequest::AuthRequest() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AuthRequest::InitAsDefaultInstance() { - password_ = const_cast< ::Remote::AuthRequest_Password*>(&::Remote::AuthRequest_Password::default_instance()); -} - -AuthRequest::AuthRequest(const AuthRequest& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AuthRequest::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - password_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthRequest::~AuthRequest() { - SharedDtor(); -} - -void AuthRequest::SharedDtor() { - if (this != default_instance_) { - delete password_; - } -} - -void AuthRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AuthRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AuthRequest_descriptor_; -} - -const AuthRequest& AuthRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_auth_2eproto(); - return *default_instance_; -} - -AuthRequest* AuthRequest::default_instance_ = NULL; - -AuthRequest* AuthRequest::New() const { - return new AuthRequest; -} - -void AuthRequest::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - if (has_password()) { - if (password_ != NULL) password_->::Remote::AuthRequest_Password::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AuthRequest::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .Remote.AuthRequest.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::AuthRequest_Type_IsValid(value)) { - set_type(static_cast< ::Remote::AuthRequest_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_password; - break; - } - - // optional .Remote.AuthRequest.Password password = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_password: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_password())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void AuthRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AuthRequest.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional .Remote.AuthRequest.Password password = 2; - if (has_password()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->password(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AuthRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AuthRequest.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional .Remote.AuthRequest.Password password = 2; - if (has_password()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->password(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AuthRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AuthRequest.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .Remote.AuthRequest.Password password = 2; - if (has_password()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->password()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AuthRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AuthRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AuthRequest::MergeFrom(const AuthRequest& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_password()) { - mutable_password()->::Remote::AuthRequest_Password::MergeFrom(from.password()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AuthRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AuthRequest::CopyFrom(const AuthRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_password()) { - if (!this->password().IsInitialized()) return false; - } - return true; -} - -void AuthRequest::Swap(AuthRequest* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(password_, other->password_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AuthRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AuthRequest_descriptor_; - metadata.reflection = AuthRequest_reflection_; - return metadata; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* AuthResponse_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return AuthResponse_Type_descriptor_; -} -bool AuthResponse_Type_IsValid(int value) { - switch(value) { - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const AuthResponse_Type AuthResponse::TypePasswordResult; -const AuthResponse_Type AuthResponse::Type_MIN; -const AuthResponse_Type AuthResponse::Type_MAX; -const int AuthResponse::Type_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* AuthResponse_PasswordResult_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return AuthResponse_PasswordResult_Type_descriptor_; -} -bool AuthResponse_PasswordResult_Type_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const AuthResponse_PasswordResult_Type AuthResponse_PasswordResult::TypePasswordInvalid; -const AuthResponse_PasswordResult_Type AuthResponse_PasswordResult::TypeLoginThrottling; -const AuthResponse_PasswordResult_Type AuthResponse_PasswordResult::TypePasswordValid; -const AuthResponse_PasswordResult_Type AuthResponse_PasswordResult::Type_MIN; -const AuthResponse_PasswordResult_Type AuthResponse_PasswordResult::Type_MAX; -const int AuthResponse_PasswordResult::Type_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AuthResponse_PasswordResult::kTypeFieldNumber; -const int AuthResponse_PasswordResult::kDelayFieldNumber; -#endif // !_MSC_VER - -AuthResponse_PasswordResult::AuthResponse_PasswordResult() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AuthResponse_PasswordResult::InitAsDefaultInstance() { -} - -AuthResponse_PasswordResult::AuthResponse_PasswordResult(const AuthResponse_PasswordResult& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AuthResponse_PasswordResult::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - delay_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthResponse_PasswordResult::~AuthResponse_PasswordResult() { - SharedDtor(); -} - -void AuthResponse_PasswordResult::SharedDtor() { - if (this != default_instance_) { - } -} - -void AuthResponse_PasswordResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AuthResponse_PasswordResult::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AuthResponse_PasswordResult_descriptor_; -} - -const AuthResponse_PasswordResult& AuthResponse_PasswordResult::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_auth_2eproto(); - return *default_instance_; -} - -AuthResponse_PasswordResult* AuthResponse_PasswordResult::default_instance_ = NULL; - -AuthResponse_PasswordResult* AuthResponse_PasswordResult::New() const { - return new AuthResponse_PasswordResult; -} - -void AuthResponse_PasswordResult::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - delay_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AuthResponse_PasswordResult::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.AuthResponse.PasswordResult.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::AuthResponse_PasswordResult_Type_IsValid(value)) { - set_type(static_cast< ::Remote::AuthResponse_PasswordResult_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_delay; - break; - } - - // optional uint32 delay = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_delay: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &delay_))); - set_has_delay(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void AuthResponse_PasswordResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AuthResponse.PasswordResult.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional uint32 delay = 2; - if (has_delay()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->delay(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AuthResponse_PasswordResult::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AuthResponse.PasswordResult.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional uint32 delay = 2; - if (has_delay()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->delay(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AuthResponse_PasswordResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AuthResponse.PasswordResult.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional uint32 delay = 2; - if (has_delay()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->delay()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AuthResponse_PasswordResult::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AuthResponse_PasswordResult* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AuthResponse_PasswordResult::MergeFrom(const AuthResponse_PasswordResult& 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_delay()) { - set_delay(from.delay()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AuthResponse_PasswordResult::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AuthResponse_PasswordResult::CopyFrom(const AuthResponse_PasswordResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthResponse_PasswordResult::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void AuthResponse_PasswordResult::Swap(AuthResponse_PasswordResult* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(delay_, other->delay_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AuthResponse_PasswordResult::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AuthResponse_PasswordResult_descriptor_; - metadata.reflection = AuthResponse_PasswordResult_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AuthResponse::kTypeFieldNumber; -const int AuthResponse::kPasswordResultFieldNumber; -#endif // !_MSC_VER - -AuthResponse::AuthResponse() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AuthResponse::InitAsDefaultInstance() { - password_result_ = const_cast< ::Remote::AuthResponse_PasswordResult*>(&::Remote::AuthResponse_PasswordResult::default_instance()); -} - -AuthResponse::AuthResponse(const AuthResponse& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AuthResponse::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - password_result_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AuthResponse::~AuthResponse() { - SharedDtor(); -} - -void AuthResponse::SharedDtor() { - if (this != default_instance_) { - delete password_result_; - } -} - -void AuthResponse::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AuthResponse::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AuthResponse_descriptor_; -} - -const AuthResponse& AuthResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_auth_2eproto(); - return *default_instance_; -} - -AuthResponse* AuthResponse::default_instance_ = NULL; - -AuthResponse* AuthResponse::New() const { - return new AuthResponse; -} - -void AuthResponse::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - if (has_password_result()) { - if (password_result_ != NULL) password_result_->::Remote::AuthResponse_PasswordResult::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AuthResponse::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .Remote.AuthResponse.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::AuthResponse_Type_IsValid(value)) { - set_type(static_cast< ::Remote::AuthResponse_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_password_result; - break; - } - - // optional .Remote.AuthResponse.PasswordResult password_result = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_password_result: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_password_result())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectAtEnd()) return true; - break; - } - - default: { - handle_uninterpreted: - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { - return true; - } - DO_(::google::protobuf::internal::WireFormat::SkipField( - input, tag, mutable_unknown_fields())); - break; - } - } - } - return true; -#undef DO_ -} - -void AuthResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AuthResponse.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional .Remote.AuthResponse.PasswordResult password_result = 2; - if (has_password_result()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->password_result(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AuthResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AuthResponse.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional .Remote.AuthResponse.PasswordResult password_result = 2; - if (has_password_result()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->password_result(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AuthResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AuthResponse.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .Remote.AuthResponse.PasswordResult password_result = 2; - if (has_password_result()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->password_result()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AuthResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AuthResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AuthResponse::MergeFrom(const AuthResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_password_result()) { - mutable_password_result()->::Remote::AuthResponse_PasswordResult::MergeFrom(from.password_result()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AuthResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AuthResponse::CopyFrom(const AuthResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AuthResponse::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_password_result()) { - if (!this->password_result().IsInitialized()) return false; - } - return true; -} - -void AuthResponse::Swap(AuthResponse* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(password_result_, other->password_result_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AuthResponse::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AuthResponse_descriptor_; - metadata.reflection = AuthResponse_reflection_; - return metadata; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Remote - -// @@protoc_insertion_point(global_scope) diff --git a/remote/messages/auth.pb.h b/remote/messages/auth.pb.h deleted file mode 100644 index 17e84e86..00000000 --- a/remote/messages/auth.pb.h +++ /dev/null @@ -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 - -#include - -#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 -#include -#include -#include -#include -#include -#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_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_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_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(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(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 diff --git a/remote/messages/collection.pb.cc b/remote/messages/collection.pb.cc deleted file mode 100644 index 26e01116..00000000 --- a/remote/messages/collection.pb.cc +++ /dev/null @@ -1,6268 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: collection.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "collection.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace Remote { - -namespace { - -const ::google::protobuf::Descriptor* AudioCollectionRequest_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionRequest_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionRequest_BatchParameter_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionRequest_BatchParameter_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetRevision_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionRequest_GetRevision_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetGenreList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionRequest_GetGenreList_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetArtistList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionRequest_GetArtistList_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetReleaseList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionRequest_GetReleaseList_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetTrackList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionRequest_GetTrackList_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetCoverArt_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionRequest_GetCoverArt_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_GetCoverArt_Type_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_Type_descriptor_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_Revision_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_Revision_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_GenreList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_GenreList_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_ArtistList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_ArtistList_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_ReleaseList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_ReleaseList_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_TrackList_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_TrackList_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_CoverArt_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_CoverArt_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_Genre_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_Genre_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_Artist_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_Artist_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_Release_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_Release_reflection_ = NULL; -const ::google::protobuf::Descriptor* AudioCollectionResponse_Track_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - AudioCollectionResponse_Track_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* AudioCollectionResponse_Type_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_collection_2eproto() { - protobuf_AddDesc_collection_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "collection.proto"); - GOOGLE_CHECK(file != NULL); - AudioCollectionRequest_descriptor_ = file->message_type(0); - static const int AudioCollectionRequest_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, get_revision_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, get_genres_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, get_artists_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, get_releases_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, get_tracks_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, get_cover_art_), - }; - AudioCollectionRequest_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionRequest_descriptor_, - AudioCollectionRequest::default_instance_, - AudioCollectionRequest_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionRequest)); - AudioCollectionRequest_BatchParameter_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(0); - static const int AudioCollectionRequest_BatchParameter_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_BatchParameter, offset_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_BatchParameter, size_), - }; - AudioCollectionRequest_BatchParameter_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionRequest_BatchParameter_descriptor_, - AudioCollectionRequest_BatchParameter::default_instance_, - AudioCollectionRequest_BatchParameter_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_BatchParameter, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_BatchParameter, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionRequest_BatchParameter)); - AudioCollectionRequest_GetRevision_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(1); - static const int AudioCollectionRequest_GetRevision_offsets_[1] = { - }; - AudioCollectionRequest_GetRevision_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionRequest_GetRevision_descriptor_, - AudioCollectionRequest_GetRevision::default_instance_, - AudioCollectionRequest_GetRevision_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetRevision, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetRevision, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionRequest_GetRevision)); - AudioCollectionRequest_GetGenreList_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(2); - static const int AudioCollectionRequest_GetGenreList_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetGenreList, batch_parameter_), - }; - AudioCollectionRequest_GetGenreList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionRequest_GetGenreList_descriptor_, - AudioCollectionRequest_GetGenreList::default_instance_, - AudioCollectionRequest_GetGenreList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetGenreList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetGenreList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionRequest_GetGenreList)); - AudioCollectionRequest_GetArtistList_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(3); - static const int AudioCollectionRequest_GetArtistList_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetArtistList, batch_parameter_), - }; - AudioCollectionRequest_GetArtistList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionRequest_GetArtistList_descriptor_, - AudioCollectionRequest_GetArtistList::default_instance_, - AudioCollectionRequest_GetArtistList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetArtistList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetArtistList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionRequest_GetArtistList)); - AudioCollectionRequest_GetReleaseList_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(4); - static const int AudioCollectionRequest_GetReleaseList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, batch_parameter_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, artist_id_), - }; - AudioCollectionRequest_GetReleaseList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionRequest_GetReleaseList_descriptor_, - AudioCollectionRequest_GetReleaseList::default_instance_, - AudioCollectionRequest_GetReleaseList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionRequest_GetReleaseList)); - AudioCollectionRequest_GetTrackList_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(5); - static const int AudioCollectionRequest_GetTrackList_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, batch_parameter_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, artist_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, release_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, genre_id_), - }; - AudioCollectionRequest_GetTrackList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionRequest_GetTrackList_descriptor_, - AudioCollectionRequest_GetTrackList::default_instance_, - AudioCollectionRequest_GetTrackList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionRequest_GetTrackList)); - AudioCollectionRequest_GetCoverArt_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(6); - static const int AudioCollectionRequest_GetCoverArt_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetCoverArt, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetCoverArt, release_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetCoverArt, track_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetCoverArt, size_), - }; - AudioCollectionRequest_GetCoverArt_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionRequest_GetCoverArt_descriptor_, - AudioCollectionRequest_GetCoverArt::default_instance_, - AudioCollectionRequest_GetCoverArt_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetCoverArt, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetCoverArt, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionRequest_GetCoverArt)); - AudioCollectionRequest_GetCoverArt_Type_descriptor_ = AudioCollectionRequest_GetCoverArt_descriptor_->enum_type(0); - AudioCollectionRequest_Type_descriptor_ = AudioCollectionRequest_descriptor_->enum_type(0); - AudioCollectionResponse_descriptor_ = file->message_type(1); - static const int AudioCollectionResponse_offsets_[7] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, revision_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, genre_list_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, artist_list_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, release_list_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, track_list_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, cover_art_), - }; - AudioCollectionResponse_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_descriptor_, - AudioCollectionResponse::default_instance_, - AudioCollectionResponse_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse)); - AudioCollectionResponse_Revision_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(0); - static const int AudioCollectionResponse_Revision_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Revision, rev_), - }; - AudioCollectionResponse_Revision_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_Revision_descriptor_, - AudioCollectionResponse_Revision::default_instance_, - AudioCollectionResponse_Revision_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Revision, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Revision, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_Revision)); - AudioCollectionResponse_GenreList_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(1); - static const int AudioCollectionResponse_GenreList_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_GenreList, genres_), - }; - AudioCollectionResponse_GenreList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_GenreList_descriptor_, - AudioCollectionResponse_GenreList::default_instance_, - AudioCollectionResponse_GenreList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_GenreList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_GenreList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_GenreList)); - AudioCollectionResponse_ArtistList_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(2); - static const int AudioCollectionResponse_ArtistList_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ArtistList, artists_), - }; - AudioCollectionResponse_ArtistList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_ArtistList_descriptor_, - AudioCollectionResponse_ArtistList::default_instance_, - AudioCollectionResponse_ArtistList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ArtistList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ArtistList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_ArtistList)); - AudioCollectionResponse_ReleaseList_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(3); - static const int AudioCollectionResponse_ReleaseList_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ReleaseList, releases_), - }; - AudioCollectionResponse_ReleaseList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_ReleaseList_descriptor_, - AudioCollectionResponse_ReleaseList::default_instance_, - AudioCollectionResponse_ReleaseList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ReleaseList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ReleaseList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_ReleaseList)); - AudioCollectionResponse_TrackList_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(4); - static const int AudioCollectionResponse_TrackList_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_TrackList, tracks_), - }; - AudioCollectionResponse_TrackList_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_TrackList_descriptor_, - AudioCollectionResponse_TrackList::default_instance_, - AudioCollectionResponse_TrackList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_TrackList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_TrackList, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_TrackList)); - AudioCollectionResponse_CoverArt_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(5); - static const int AudioCollectionResponse_CoverArt_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_CoverArt, mime_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_CoverArt, data_), - }; - AudioCollectionResponse_CoverArt_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_CoverArt_descriptor_, - AudioCollectionResponse_CoverArt::default_instance_, - AudioCollectionResponse_CoverArt_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_CoverArt, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_CoverArt, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_CoverArt)); - AudioCollectionResponse_Genre_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(6); - static const int AudioCollectionResponse_Genre_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Genre, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Genre, name_), - }; - AudioCollectionResponse_Genre_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_Genre_descriptor_, - AudioCollectionResponse_Genre::default_instance_, - AudioCollectionResponse_Genre_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Genre, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Genre, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_Genre)); - AudioCollectionResponse_Artist_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(7); - static const int AudioCollectionResponse_Artist_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Artist, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Artist, name_), - }; - AudioCollectionResponse_Artist_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_Artist_descriptor_, - AudioCollectionResponse_Artist::default_instance_, - AudioCollectionResponse_Artist_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Artist, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Artist, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_Artist)); - AudioCollectionResponse_Release_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(8); - static const int AudioCollectionResponse_Release_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Release, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Release, name_), - }; - AudioCollectionResponse_Release_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_Release_descriptor_, - AudioCollectionResponse_Release::default_instance_, - AudioCollectionResponse_Release_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Release, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Release, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_Release)); - AudioCollectionResponse_Track_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(9); - static const int AudioCollectionResponse_Track_offsets_[10] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, artist_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, release_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, genre_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, disc_number_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, track_number_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, duration_secs_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, release_date_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, original_release_date_), - }; - AudioCollectionResponse_Track_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - AudioCollectionResponse_Track_descriptor_, - AudioCollectionResponse_Track::default_instance_, - AudioCollectionResponse_Track_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(AudioCollectionResponse_Track)); - AudioCollectionResponse_Type_descriptor_ = AudioCollectionResponse_descriptor_->enum_type(0); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_collection_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionRequest_descriptor_, &AudioCollectionRequest::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionRequest_BatchParameter_descriptor_, &AudioCollectionRequest_BatchParameter::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionRequest_GetRevision_descriptor_, &AudioCollectionRequest_GetRevision::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionRequest_GetGenreList_descriptor_, &AudioCollectionRequest_GetGenreList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionRequest_GetArtistList_descriptor_, &AudioCollectionRequest_GetArtistList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionRequest_GetReleaseList_descriptor_, &AudioCollectionRequest_GetReleaseList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionRequest_GetTrackList_descriptor_, &AudioCollectionRequest_GetTrackList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionRequest_GetCoverArt_descriptor_, &AudioCollectionRequest_GetCoverArt::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_descriptor_, &AudioCollectionResponse::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_Revision_descriptor_, &AudioCollectionResponse_Revision::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_GenreList_descriptor_, &AudioCollectionResponse_GenreList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_ArtistList_descriptor_, &AudioCollectionResponse_ArtistList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_ReleaseList_descriptor_, &AudioCollectionResponse_ReleaseList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_TrackList_descriptor_, &AudioCollectionResponse_TrackList::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_CoverArt_descriptor_, &AudioCollectionResponse_CoverArt::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_Genre_descriptor_, &AudioCollectionResponse_Genre::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_Artist_descriptor_, &AudioCollectionResponse_Artist::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_Release_descriptor_, &AudioCollectionResponse_Release::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - AudioCollectionResponse_Track_descriptor_, &AudioCollectionResponse_Track::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_collection_2eproto() { - delete AudioCollectionRequest::default_instance_; - delete AudioCollectionRequest_reflection_; - delete AudioCollectionRequest_BatchParameter::default_instance_; - delete AudioCollectionRequest_BatchParameter_reflection_; - delete AudioCollectionRequest_GetRevision::default_instance_; - delete AudioCollectionRequest_GetRevision_reflection_; - delete AudioCollectionRequest_GetGenreList::default_instance_; - delete AudioCollectionRequest_GetGenreList_reflection_; - delete AudioCollectionRequest_GetArtistList::default_instance_; - delete AudioCollectionRequest_GetArtistList_reflection_; - delete AudioCollectionRequest_GetReleaseList::default_instance_; - delete AudioCollectionRequest_GetReleaseList_reflection_; - delete AudioCollectionRequest_GetTrackList::default_instance_; - delete AudioCollectionRequest_GetTrackList_reflection_; - delete AudioCollectionRequest_GetCoverArt::default_instance_; - delete AudioCollectionRequest_GetCoverArt_reflection_; - delete AudioCollectionResponse::default_instance_; - delete AudioCollectionResponse_reflection_; - delete AudioCollectionResponse_Revision::default_instance_; - delete AudioCollectionResponse_Revision_reflection_; - delete AudioCollectionResponse_GenreList::default_instance_; - delete AudioCollectionResponse_GenreList_reflection_; - delete AudioCollectionResponse_ArtistList::default_instance_; - delete AudioCollectionResponse_ArtistList_reflection_; - delete AudioCollectionResponse_ReleaseList::default_instance_; - delete AudioCollectionResponse_ReleaseList_reflection_; - delete AudioCollectionResponse_TrackList::default_instance_; - delete AudioCollectionResponse_TrackList_reflection_; - delete AudioCollectionResponse_CoverArt::default_instance_; - delete AudioCollectionResponse_CoverArt_reflection_; - delete AudioCollectionResponse_Genre::default_instance_; - delete AudioCollectionResponse_Genre_reflection_; - delete AudioCollectionResponse_Artist::default_instance_; - delete AudioCollectionResponse_Artist_reflection_; - delete AudioCollectionResponse_Release::default_instance_; - delete AudioCollectionResponse_Release_reflection_; - delete AudioCollectionResponse_Track::default_instance_; - delete AudioCollectionResponse_Track_reflection_; -} - -void protobuf_AddDesc_collection_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::Remote::protobuf_AddDesc_common_2eproto(); - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\020collection.proto\022\006Remote\032\014common.proto" - "\"\230\n\n\026AudioCollectionRequest\0221\n\004type\030\001 \002(" - "\0162#.Remote.AudioCollectionRequest.Type\022@" - "\n\014get_revision\030\002 \001(\0132*.Remote.AudioColle" - "ctionRequest.GetRevision\022\?\n\nget_genres\030\003" - " \001(\0132+.Remote.AudioCollectionRequest.Get" - "GenreList\022A\n\013get_artists\030\004 \001(\0132,.Remote." - "AudioCollectionRequest.GetArtistList\022C\n\014" - "get_releases\030\005 \001(\0132-.Remote.AudioCollect" - "ionRequest.GetReleaseList\022\?\n\nget_tracks\030" - "\006 \001(\0132+.Remote.AudioCollectionRequest.Ge" - "tTrackList\022A\n\rget_cover_art\030\007 \001(\0132*.Remo" - "te.AudioCollectionRequest.GetCoverArt\032.\n" - "\016BatchParameter\022\016\n\006offset\030\001 \002(\r\022\014\n\004size\030" - "\002 \002(\r\032\r\n\013GetRevision\032V\n\014GetGenreList\022F\n\017" - "batch_parameter\030\001 \002(\0132-.Remote.AudioColl" - "ectionRequest.BatchParameter\032W\n\rGetArtis" - "tList\022F\n\017batch_parameter\030\001 \002(\0132-.Remote." - "AudioCollectionRequest.BatchParameter\032k\n" - "\016GetReleaseList\022F\n\017batch_parameter\030\001 \002(\013" - "2-.Remote.AudioCollectionRequest.BatchPa" - "rameter\022\021\n\tartist_id\030\002 \003(\004\032\217\001\n\014GetTrackL" - "ist\022F\n\017batch_parameter\030\001 \002(\0132-.Remote.Au" - "dioCollectionRequest.BatchParameter\022\021\n\ta" - "rtist_id\030\002 \003(\004\022\022\n\nrelease_id\030\003 \003(\004\022\020\n\010ge" - "nre_id\030\004 \003(\004\032\276\001\n\013GetCoverArt\022=\n\004type\030\001 \002" - "(\0162/.Remote.AudioCollectionRequest.GetCo" - "verArt.Type\022\022\n\nrelease_id\030\002 \001(\004\022\020\n\010track" - "_id\030\003 \001(\004\022\014\n\004size\030\004 \002(\r\"<\n\004Type\022\032\n\026TypeG" - "etCoverArtRelease\020\001\022\030\n\024TypeGetCoverArtTr" - "ack\020\002\"\213\001\n\004Type\022\023\n\017TypeGetRevision\020\001\022\024\n\020T" - "ypeGetGenreList\020\002\022\025\n\021TypeGetArtistList\020\003" - "\022\026\n\022TypeGetReleaseList\020\004\022\024\n\020TypeGetTrack" - "List\020\005\022\023\n\017TypeGetCoverArt\020\006\"\342\t\n\027AudioCol" - "lectionResponse\0222\n\004type\030\001 \002(\0162$.Remote.A" - "udioCollectionResponse.Type\022:\n\010revision\030" - "\002 \001(\0132(.Remote.AudioCollectionResponse.R" - "evision\022=\n\ngenre_list\030\003 \001(\0132).Remote.Aud" - "ioCollectionResponse.GenreList\022\?\n\013artist" - "_list\030\004 \001(\0132*.Remote.AudioCollectionResp" - "onse.ArtistList\022A\n\014release_list\030\005 \001(\0132+." - "Remote.AudioCollectionResponse.ReleaseLi" - "st\022=\n\ntrack_list\030\006 \001(\0132).Remote.AudioCol" - "lectionResponse.TrackList\022;\n\tcover_art\030\007" - " \003(\0132(.Remote.AudioCollectionResponse.Co" - "verArt\032\027\n\010Revision\022\013\n\003rev\030\001 \002(\t\032B\n\tGenre" - "List\0225\n\006genres\030\002 \003(\0132%.Remote.AudioColle" - "ctionResponse.Genre\032E\n\nArtistList\0227\n\007art" - "ists\030\002 \003(\0132&.Remote.AudioCollectionRespo" - "nse.Artist\032H\n\013ReleaseList\0229\n\010releases\030\002 " - "\003(\0132\'.Remote.AudioCollectionResponse.Rel" - "ease\032B\n\tTrackList\0225\n\006tracks\030\002 \003(\0132%.Remo" - "te.AudioCollectionResponse.Track\032+\n\010Cove" - "rArt\022\021\n\tmime_type\030\001 \001(\t\022\014\n\004data\030\002 \002(\014\032!\n" - "\005Genre\022\n\n\002id\030\001 \002(\004\022\014\n\004name\030\002 \002(\t\032\"\n\006Arti" - "st\022\n\n\002id\030\001 \002(\004\022\014\n\004name\030\002 \002(\t\032#\n\007Release\022" - "\n\n\002id\030\001 \002(\004\022\014\n\004name\030\002 \002(\t\032\321\001\n\005Track\022\n\n\002i" - "d\030\001 \002(\004\022\021\n\tartist_id\030\002 \002(\004\022\022\n\nrelease_id" - "\030\003 \002(\004\022\020\n\010genre_id\030\004 \003(\004\022\023\n\013disc_number\030" - "\005 \001(\r\022\024\n\014track_number\030\006 \001(\r\022\014\n\004name\030\007 \002(" - "\t\022\025\n\rduration_secs\030\010 \002(\r\022\024\n\014release_date" - "\030\t \001(\t\022\035\n\025original_release_date\030\n \001(\t\"y\n" - "\004Type\022\020\n\014TypeRevision\020\001\022\021\n\rTypeGenreList" - "\020\002\022\022\n\016TypeArtistList\020\003\022\023\n\017TypeReleaseLis" - "t\020\004\022\021\n\rTypeTrackList\020\005\022\020\n\014TypeCoverArt\020\006", 2600); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "collection.proto", &protobuf_RegisterTypes); - AudioCollectionRequest::default_instance_ = new AudioCollectionRequest(); - AudioCollectionRequest_BatchParameter::default_instance_ = new AudioCollectionRequest_BatchParameter(); - AudioCollectionRequest_GetRevision::default_instance_ = new AudioCollectionRequest_GetRevision(); - AudioCollectionRequest_GetGenreList::default_instance_ = new AudioCollectionRequest_GetGenreList(); - AudioCollectionRequest_GetArtistList::default_instance_ = new AudioCollectionRequest_GetArtistList(); - AudioCollectionRequest_GetReleaseList::default_instance_ = new AudioCollectionRequest_GetReleaseList(); - AudioCollectionRequest_GetTrackList::default_instance_ = new AudioCollectionRequest_GetTrackList(); - AudioCollectionRequest_GetCoverArt::default_instance_ = new AudioCollectionRequest_GetCoverArt(); - AudioCollectionResponse::default_instance_ = new AudioCollectionResponse(); - AudioCollectionResponse_Revision::default_instance_ = new AudioCollectionResponse_Revision(); - AudioCollectionResponse_GenreList::default_instance_ = new AudioCollectionResponse_GenreList(); - AudioCollectionResponse_ArtistList::default_instance_ = new AudioCollectionResponse_ArtistList(); - AudioCollectionResponse_ReleaseList::default_instance_ = new AudioCollectionResponse_ReleaseList(); - AudioCollectionResponse_TrackList::default_instance_ = new AudioCollectionResponse_TrackList(); - AudioCollectionResponse_CoverArt::default_instance_ = new AudioCollectionResponse_CoverArt(); - AudioCollectionResponse_Genre::default_instance_ = new AudioCollectionResponse_Genre(); - AudioCollectionResponse_Artist::default_instance_ = new AudioCollectionResponse_Artist(); - AudioCollectionResponse_Release::default_instance_ = new AudioCollectionResponse_Release(); - AudioCollectionResponse_Track::default_instance_ = new AudioCollectionResponse_Track(); - AudioCollectionRequest::default_instance_->InitAsDefaultInstance(); - AudioCollectionRequest_BatchParameter::default_instance_->InitAsDefaultInstance(); - AudioCollectionRequest_GetRevision::default_instance_->InitAsDefaultInstance(); - AudioCollectionRequest_GetGenreList::default_instance_->InitAsDefaultInstance(); - AudioCollectionRequest_GetArtistList::default_instance_->InitAsDefaultInstance(); - AudioCollectionRequest_GetReleaseList::default_instance_->InitAsDefaultInstance(); - AudioCollectionRequest_GetTrackList::default_instance_->InitAsDefaultInstance(); - AudioCollectionRequest_GetCoverArt::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_Revision::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_GenreList::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_ArtistList::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_ReleaseList::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_TrackList::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_CoverArt::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_Genre::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_Artist::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_Release::default_instance_->InitAsDefaultInstance(); - AudioCollectionResponse_Track::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_collection_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_collection_2eproto { - StaticDescriptorInitializer_collection_2eproto() { - protobuf_AddDesc_collection_2eproto(); - } -} static_descriptor_initializer_collection_2eproto_; - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_Type_descriptor_; -} -bool AudioCollectionRequest_Type_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetRevision; -const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetGenreList; -const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetArtistList; -const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetReleaseList; -const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetTrackList; -const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetCoverArt; -const AudioCollectionRequest_Type AudioCollectionRequest::Type_MIN; -const AudioCollectionRequest_Type AudioCollectionRequest::Type_MAX; -const int AudioCollectionRequest::Type_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AudioCollectionRequest_BatchParameter::kOffsetFieldNumber; -const int AudioCollectionRequest_BatchParameter::kSizeFieldNumber; -#endif // !_MSC_VER - -AudioCollectionRequest_BatchParameter::AudioCollectionRequest_BatchParameter() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionRequest_BatchParameter::InitAsDefaultInstance() { -} - -AudioCollectionRequest_BatchParameter::AudioCollectionRequest_BatchParameter(const AudioCollectionRequest_BatchParameter& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionRequest_BatchParameter::SharedCtor() { - _cached_size_ = 0; - offset_ = 0u; - size_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionRequest_BatchParameter::~AudioCollectionRequest_BatchParameter() { - SharedDtor(); -} - -void AudioCollectionRequest_BatchParameter::SharedDtor() { - if (this != default_instance_) { - } -} - -void AudioCollectionRequest_BatchParameter::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionRequest_BatchParameter::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_BatchParameter_descriptor_; -} - -const AudioCollectionRequest_BatchParameter& AudioCollectionRequest_BatchParameter::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionRequest_BatchParameter* AudioCollectionRequest_BatchParameter::default_instance_ = NULL; - -AudioCollectionRequest_BatchParameter* AudioCollectionRequest_BatchParameter::New() const { - return new AudioCollectionRequest_BatchParameter; -} - -void AudioCollectionRequest_BatchParameter::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - offset_ = 0u; - size_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionRequest_BatchParameter::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 uint32 offset = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &offset_))); - set_has_offset(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_size; - break; - } - - // required uint32 size = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &size_))); - set_has_size(); - } 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 AudioCollectionRequest_BatchParameter::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 offset = 1; - if (has_offset()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->offset(), output); - } - - // required uint32 size = 2; - if (has_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->size(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionRequest_BatchParameter::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required uint32 offset = 1; - if (has_offset()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->offset(), target); - } - - // required uint32 size = 2; - if (has_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->size(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionRequest_BatchParameter::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 offset = 1; - if (has_offset()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->offset()); - } - - // required uint32 size = 2; - if (has_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->size()); - } - - } - 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 AudioCollectionRequest_BatchParameter::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionRequest_BatchParameter* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionRequest_BatchParameter::MergeFrom(const AudioCollectionRequest_BatchParameter& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_offset()) { - set_offset(from.offset()); - } - if (from.has_size()) { - set_size(from.size()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionRequest_BatchParameter::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionRequest_BatchParameter::CopyFrom(const AudioCollectionRequest_BatchParameter& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionRequest_BatchParameter::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AudioCollectionRequest_BatchParameter::Swap(AudioCollectionRequest_BatchParameter* other) { - if (other != this) { - std::swap(offset_, other->offset_); - std::swap(size_, other->size_); - 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 AudioCollectionRequest_BatchParameter::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionRequest_BatchParameter_descriptor_; - metadata.reflection = AudioCollectionRequest_BatchParameter_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -#endif // !_MSC_VER - -AudioCollectionRequest_GetRevision::AudioCollectionRequest_GetRevision() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionRequest_GetRevision::InitAsDefaultInstance() { -} - -AudioCollectionRequest_GetRevision::AudioCollectionRequest_GetRevision(const AudioCollectionRequest_GetRevision& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetRevision::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionRequest_GetRevision::~AudioCollectionRequest_GetRevision() { - SharedDtor(); -} - -void AudioCollectionRequest_GetRevision::SharedDtor() { - if (this != default_instance_) { - } -} - -void AudioCollectionRequest_GetRevision::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetRevision::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_GetRevision_descriptor_; -} - -const AudioCollectionRequest_GetRevision& AudioCollectionRequest_GetRevision::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionRequest_GetRevision* AudioCollectionRequest_GetRevision::default_instance_ = NULL; - -AudioCollectionRequest_GetRevision* AudioCollectionRequest_GetRevision::New() const { - return new AudioCollectionRequest_GetRevision; -} - -void AudioCollectionRequest_GetRevision::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionRequest_GetRevision::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - 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())); - } - return true; -#undef DO_ -} - -void AudioCollectionRequest_GetRevision::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionRequest_GetRevision::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionRequest_GetRevision::ByteSize() const { - int total_size = 0; - - 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 AudioCollectionRequest_GetRevision::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionRequest_GetRevision* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionRequest_GetRevision::MergeFrom(const AudioCollectionRequest_GetRevision& from) { - GOOGLE_CHECK_NE(&from, this); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionRequest_GetRevision::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetRevision::CopyFrom(const AudioCollectionRequest_GetRevision& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionRequest_GetRevision::IsInitialized() const { - - return true; -} - -void AudioCollectionRequest_GetRevision::Swap(AudioCollectionRequest_GetRevision* other) { - if (other != this) { - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AudioCollectionRequest_GetRevision::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionRequest_GetRevision_descriptor_; - metadata.reflection = AudioCollectionRequest_GetRevision_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionRequest_GetGenreList::kBatchParameterFieldNumber; -#endif // !_MSC_VER - -AudioCollectionRequest_GetGenreList::AudioCollectionRequest_GetGenreList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionRequest_GetGenreList::InitAsDefaultInstance() { - batch_parameter_ = const_cast< ::Remote::AudioCollectionRequest_BatchParameter*>(&::Remote::AudioCollectionRequest_BatchParameter::default_instance()); -} - -AudioCollectionRequest_GetGenreList::AudioCollectionRequest_GetGenreList(const AudioCollectionRequest_GetGenreList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetGenreList::SharedCtor() { - _cached_size_ = 0; - batch_parameter_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionRequest_GetGenreList::~AudioCollectionRequest_GetGenreList() { - SharedDtor(); -} - -void AudioCollectionRequest_GetGenreList::SharedDtor() { - if (this != default_instance_) { - delete batch_parameter_; - } -} - -void AudioCollectionRequest_GetGenreList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetGenreList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_GetGenreList_descriptor_; -} - -const AudioCollectionRequest_GetGenreList& AudioCollectionRequest_GetGenreList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionRequest_GetGenreList* AudioCollectionRequest_GetGenreList::default_instance_ = NULL; - -AudioCollectionRequest_GetGenreList* AudioCollectionRequest_GetGenreList::New() const { - return new AudioCollectionRequest_GetGenreList; -} - -void AudioCollectionRequest_GetGenreList::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_batch_parameter()) { - if (batch_parameter_ != NULL) batch_parameter_->::Remote::AudioCollectionRequest_BatchParameter::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionRequest_GetGenreList::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.AudioCollectionRequest.BatchParameter batch_parameter = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_batch_parameter())); - } 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 AudioCollectionRequest_GetGenreList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->batch_parameter(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionRequest_GetGenreList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->batch_parameter(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionRequest_GetGenreList::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->batch_parameter()); - } - - } - 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 AudioCollectionRequest_GetGenreList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionRequest_GetGenreList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionRequest_GetGenreList::MergeFrom(const AudioCollectionRequest_GetGenreList& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_batch_parameter()) { - mutable_batch_parameter()->::Remote::AudioCollectionRequest_BatchParameter::MergeFrom(from.batch_parameter()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionRequest_GetGenreList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetGenreList::CopyFrom(const AudioCollectionRequest_GetGenreList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionRequest_GetGenreList::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_batch_parameter()) { - if (!this->batch_parameter().IsInitialized()) return false; - } - return true; -} - -void AudioCollectionRequest_GetGenreList::Swap(AudioCollectionRequest_GetGenreList* other) { - if (other != this) { - std::swap(batch_parameter_, other->batch_parameter_); - 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 AudioCollectionRequest_GetGenreList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionRequest_GetGenreList_descriptor_; - metadata.reflection = AudioCollectionRequest_GetGenreList_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionRequest_GetArtistList::kBatchParameterFieldNumber; -#endif // !_MSC_VER - -AudioCollectionRequest_GetArtistList::AudioCollectionRequest_GetArtistList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionRequest_GetArtistList::InitAsDefaultInstance() { - batch_parameter_ = const_cast< ::Remote::AudioCollectionRequest_BatchParameter*>(&::Remote::AudioCollectionRequest_BatchParameter::default_instance()); -} - -AudioCollectionRequest_GetArtistList::AudioCollectionRequest_GetArtistList(const AudioCollectionRequest_GetArtistList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetArtistList::SharedCtor() { - _cached_size_ = 0; - batch_parameter_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionRequest_GetArtistList::~AudioCollectionRequest_GetArtistList() { - SharedDtor(); -} - -void AudioCollectionRequest_GetArtistList::SharedDtor() { - if (this != default_instance_) { - delete batch_parameter_; - } -} - -void AudioCollectionRequest_GetArtistList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetArtistList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_GetArtistList_descriptor_; -} - -const AudioCollectionRequest_GetArtistList& AudioCollectionRequest_GetArtistList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionRequest_GetArtistList* AudioCollectionRequest_GetArtistList::default_instance_ = NULL; - -AudioCollectionRequest_GetArtistList* AudioCollectionRequest_GetArtistList::New() const { - return new AudioCollectionRequest_GetArtistList; -} - -void AudioCollectionRequest_GetArtistList::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_batch_parameter()) { - if (batch_parameter_ != NULL) batch_parameter_->::Remote::AudioCollectionRequest_BatchParameter::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionRequest_GetArtistList::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.AudioCollectionRequest.BatchParameter batch_parameter = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_batch_parameter())); - } 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 AudioCollectionRequest_GetArtistList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->batch_parameter(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionRequest_GetArtistList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->batch_parameter(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionRequest_GetArtistList::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->batch_parameter()); - } - - } - 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 AudioCollectionRequest_GetArtistList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionRequest_GetArtistList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionRequest_GetArtistList::MergeFrom(const AudioCollectionRequest_GetArtistList& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_batch_parameter()) { - mutable_batch_parameter()->::Remote::AudioCollectionRequest_BatchParameter::MergeFrom(from.batch_parameter()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionRequest_GetArtistList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetArtistList::CopyFrom(const AudioCollectionRequest_GetArtistList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionRequest_GetArtistList::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_batch_parameter()) { - if (!this->batch_parameter().IsInitialized()) return false; - } - return true; -} - -void AudioCollectionRequest_GetArtistList::Swap(AudioCollectionRequest_GetArtistList* other) { - if (other != this) { - std::swap(batch_parameter_, other->batch_parameter_); - 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 AudioCollectionRequest_GetArtistList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionRequest_GetArtistList_descriptor_; - metadata.reflection = AudioCollectionRequest_GetArtistList_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionRequest_GetReleaseList::kBatchParameterFieldNumber; -const int AudioCollectionRequest_GetReleaseList::kArtistIdFieldNumber; -#endif // !_MSC_VER - -AudioCollectionRequest_GetReleaseList::AudioCollectionRequest_GetReleaseList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionRequest_GetReleaseList::InitAsDefaultInstance() { - batch_parameter_ = const_cast< ::Remote::AudioCollectionRequest_BatchParameter*>(&::Remote::AudioCollectionRequest_BatchParameter::default_instance()); -} - -AudioCollectionRequest_GetReleaseList::AudioCollectionRequest_GetReleaseList(const AudioCollectionRequest_GetReleaseList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetReleaseList::SharedCtor() { - _cached_size_ = 0; - batch_parameter_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionRequest_GetReleaseList::~AudioCollectionRequest_GetReleaseList() { - SharedDtor(); -} - -void AudioCollectionRequest_GetReleaseList::SharedDtor() { - if (this != default_instance_) { - delete batch_parameter_; - } -} - -void AudioCollectionRequest_GetReleaseList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetReleaseList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_GetReleaseList_descriptor_; -} - -const AudioCollectionRequest_GetReleaseList& AudioCollectionRequest_GetReleaseList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionRequest_GetReleaseList* AudioCollectionRequest_GetReleaseList::default_instance_ = NULL; - -AudioCollectionRequest_GetReleaseList* AudioCollectionRequest_GetReleaseList::New() const { - return new AudioCollectionRequest_GetReleaseList; -} - -void AudioCollectionRequest_GetReleaseList::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_batch_parameter()) { - if (batch_parameter_ != NULL) batch_parameter_->::Remote::AudioCollectionRequest_BatchParameter::Clear(); - } - } - artist_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionRequest_GetReleaseList::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.AudioCollectionRequest.BatchParameter batch_parameter = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_batch_parameter())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_artist_id; - break; - } - - // repeated uint64 artist_id = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_artist_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 16, input, this->mutable_artist_id()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_artist_id()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_artist_id; - 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 AudioCollectionRequest_GetReleaseList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->batch_parameter(), output); - } - - // repeated uint64 artist_id = 2; - for (int i = 0; i < this->artist_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64( - 2, this->artist_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionRequest_GetReleaseList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->batch_parameter(), target); - } - - // repeated uint64 artist_id = 2; - for (int i = 0; i < this->artist_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64ToArray(2, this->artist_id(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionRequest_GetReleaseList::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->batch_parameter()); - } - - } - // repeated uint64 artist_id = 2; - { - int data_size = 0; - for (int i = 0; i < this->artist_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->artist_id(i)); - } - total_size += 1 * this->artist_id_size() + data_size; - } - - 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 AudioCollectionRequest_GetReleaseList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionRequest_GetReleaseList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionRequest_GetReleaseList::MergeFrom(const AudioCollectionRequest_GetReleaseList& from) { - GOOGLE_CHECK_NE(&from, this); - artist_id_.MergeFrom(from.artist_id_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_batch_parameter()) { - mutable_batch_parameter()->::Remote::AudioCollectionRequest_BatchParameter::MergeFrom(from.batch_parameter()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionRequest_GetReleaseList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetReleaseList::CopyFrom(const AudioCollectionRequest_GetReleaseList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionRequest_GetReleaseList::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_batch_parameter()) { - if (!this->batch_parameter().IsInitialized()) return false; - } - return true; -} - -void AudioCollectionRequest_GetReleaseList::Swap(AudioCollectionRequest_GetReleaseList* other) { - if (other != this) { - std::swap(batch_parameter_, other->batch_parameter_); - artist_id_.Swap(&other->artist_id_); - 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 AudioCollectionRequest_GetReleaseList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionRequest_GetReleaseList_descriptor_; - metadata.reflection = AudioCollectionRequest_GetReleaseList_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionRequest_GetTrackList::kBatchParameterFieldNumber; -const int AudioCollectionRequest_GetTrackList::kArtistIdFieldNumber; -const int AudioCollectionRequest_GetTrackList::kReleaseIdFieldNumber; -const int AudioCollectionRequest_GetTrackList::kGenreIdFieldNumber; -#endif // !_MSC_VER - -AudioCollectionRequest_GetTrackList::AudioCollectionRequest_GetTrackList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionRequest_GetTrackList::InitAsDefaultInstance() { - batch_parameter_ = const_cast< ::Remote::AudioCollectionRequest_BatchParameter*>(&::Remote::AudioCollectionRequest_BatchParameter::default_instance()); -} - -AudioCollectionRequest_GetTrackList::AudioCollectionRequest_GetTrackList(const AudioCollectionRequest_GetTrackList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetTrackList::SharedCtor() { - _cached_size_ = 0; - batch_parameter_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionRequest_GetTrackList::~AudioCollectionRequest_GetTrackList() { - SharedDtor(); -} - -void AudioCollectionRequest_GetTrackList::SharedDtor() { - if (this != default_instance_) { - delete batch_parameter_; - } -} - -void AudioCollectionRequest_GetTrackList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetTrackList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_GetTrackList_descriptor_; -} - -const AudioCollectionRequest_GetTrackList& AudioCollectionRequest_GetTrackList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionRequest_GetTrackList* AudioCollectionRequest_GetTrackList::default_instance_ = NULL; - -AudioCollectionRequest_GetTrackList* AudioCollectionRequest_GetTrackList::New() const { - return new AudioCollectionRequest_GetTrackList; -} - -void AudioCollectionRequest_GetTrackList::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_batch_parameter()) { - if (batch_parameter_ != NULL) batch_parameter_->::Remote::AudioCollectionRequest_BatchParameter::Clear(); - } - } - artist_id_.Clear(); - release_id_.Clear(); - genre_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionRequest_GetTrackList::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.AudioCollectionRequest.BatchParameter batch_parameter = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_batch_parameter())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_artist_id; - break; - } - - // repeated uint64 artist_id = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_artist_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 16, input, this->mutable_artist_id()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_artist_id()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_artist_id; - if (input->ExpectTag(24)) goto parse_release_id; - break; - } - - // repeated uint64 release_id = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_release_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 24, input, this->mutable_release_id()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_release_id()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_release_id; - if (input->ExpectTag(32)) goto parse_genre_id; - break; - } - - // repeated uint64 genre_id = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_genre_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 32, input, this->mutable_genre_id()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_genre_id()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_genre_id; - 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 AudioCollectionRequest_GetTrackList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->batch_parameter(), output); - } - - // repeated uint64 artist_id = 2; - for (int i = 0; i < this->artist_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64( - 2, this->artist_id(i), output); - } - - // repeated uint64 release_id = 3; - for (int i = 0; i < this->release_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64( - 3, this->release_id(i), output); - } - - // repeated uint64 genre_id = 4; - for (int i = 0; i < this->genre_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64( - 4, this->genre_id(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionRequest_GetTrackList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->batch_parameter(), target); - } - - // repeated uint64 artist_id = 2; - for (int i = 0; i < this->artist_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64ToArray(2, this->artist_id(i), target); - } - - // repeated uint64 release_id = 3; - for (int i = 0; i < this->release_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64ToArray(3, this->release_id(i), target); - } - - // repeated uint64 genre_id = 4; - for (int i = 0; i < this->genre_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64ToArray(4, this->genre_id(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionRequest_GetTrackList::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - if (has_batch_parameter()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->batch_parameter()); - } - - } - // repeated uint64 artist_id = 2; - { - int data_size = 0; - for (int i = 0; i < this->artist_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->artist_id(i)); - } - total_size += 1 * this->artist_id_size() + data_size; - } - - // repeated uint64 release_id = 3; - { - int data_size = 0; - for (int i = 0; i < this->release_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->release_id(i)); - } - total_size += 1 * this->release_id_size() + data_size; - } - - // repeated uint64 genre_id = 4; - { - int data_size = 0; - for (int i = 0; i < this->genre_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->genre_id(i)); - } - total_size += 1 * this->genre_id_size() + data_size; - } - - 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 AudioCollectionRequest_GetTrackList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionRequest_GetTrackList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionRequest_GetTrackList::MergeFrom(const AudioCollectionRequest_GetTrackList& from) { - GOOGLE_CHECK_NE(&from, this); - artist_id_.MergeFrom(from.artist_id_); - release_id_.MergeFrom(from.release_id_); - genre_id_.MergeFrom(from.genre_id_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_batch_parameter()) { - mutable_batch_parameter()->::Remote::AudioCollectionRequest_BatchParameter::MergeFrom(from.batch_parameter()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionRequest_GetTrackList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetTrackList::CopyFrom(const AudioCollectionRequest_GetTrackList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionRequest_GetTrackList::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_batch_parameter()) { - if (!this->batch_parameter().IsInitialized()) return false; - } - return true; -} - -void AudioCollectionRequest_GetTrackList::Swap(AudioCollectionRequest_GetTrackList* other) { - if (other != this) { - std::swap(batch_parameter_, other->batch_parameter_); - artist_id_.Swap(&other->artist_id_); - release_id_.Swap(&other->release_id_); - genre_id_.Swap(&other->genre_id_); - 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 AudioCollectionRequest_GetTrackList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionRequest_GetTrackList_descriptor_; - metadata.reflection = AudioCollectionRequest_GetTrackList_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_GetCoverArt_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_GetCoverArt_Type_descriptor_; -} -bool AudioCollectionRequest_GetCoverArt_Type_IsValid(int value) { - switch(value) { - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const AudioCollectionRequest_GetCoverArt_Type AudioCollectionRequest_GetCoverArt::TypeGetCoverArtRelease; -const AudioCollectionRequest_GetCoverArt_Type AudioCollectionRequest_GetCoverArt::TypeGetCoverArtTrack; -const AudioCollectionRequest_GetCoverArt_Type AudioCollectionRequest_GetCoverArt::Type_MIN; -const AudioCollectionRequest_GetCoverArt_Type AudioCollectionRequest_GetCoverArt::Type_MAX; -const int AudioCollectionRequest_GetCoverArt::Type_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AudioCollectionRequest_GetCoverArt::kTypeFieldNumber; -const int AudioCollectionRequest_GetCoverArt::kReleaseIdFieldNumber; -const int AudioCollectionRequest_GetCoverArt::kTrackIdFieldNumber; -const int AudioCollectionRequest_GetCoverArt::kSizeFieldNumber; -#endif // !_MSC_VER - -AudioCollectionRequest_GetCoverArt::AudioCollectionRequest_GetCoverArt() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionRequest_GetCoverArt::InitAsDefaultInstance() { -} - -AudioCollectionRequest_GetCoverArt::AudioCollectionRequest_GetCoverArt(const AudioCollectionRequest_GetCoverArt& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetCoverArt::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - release_id_ = GOOGLE_ULONGLONG(0); - track_id_ = GOOGLE_ULONGLONG(0); - size_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionRequest_GetCoverArt::~AudioCollectionRequest_GetCoverArt() { - SharedDtor(); -} - -void AudioCollectionRequest_GetCoverArt::SharedDtor() { - if (this != default_instance_) { - } -} - -void AudioCollectionRequest_GetCoverArt::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionRequest_GetCoverArt::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_GetCoverArt_descriptor_; -} - -const AudioCollectionRequest_GetCoverArt& AudioCollectionRequest_GetCoverArt::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionRequest_GetCoverArt* AudioCollectionRequest_GetCoverArt::default_instance_ = NULL; - -AudioCollectionRequest_GetCoverArt* AudioCollectionRequest_GetCoverArt::New() const { - return new AudioCollectionRequest_GetCoverArt; -} - -void AudioCollectionRequest_GetCoverArt::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - release_id_ = GOOGLE_ULONGLONG(0); - track_id_ = GOOGLE_ULONGLONG(0); - size_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionRequest_GetCoverArt::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.AudioCollectionRequest.GetCoverArt.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::AudioCollectionRequest_GetCoverArt_Type_IsValid(value)) { - set_type(static_cast< ::Remote::AudioCollectionRequest_GetCoverArt_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_release_id; - break; - } - - // optional uint64 release_id = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_release_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &release_id_))); - set_has_release_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_track_id; - break; - } - - // optional uint64 track_id = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_track_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &track_id_))); - set_has_track_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_size; - break; - } - - // required uint32 size = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &size_))); - set_has_size(); - } 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 AudioCollectionRequest_GetCoverArt::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AudioCollectionRequest.GetCoverArt.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional uint64 release_id = 2; - if (has_release_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->release_id(), output); - } - - // optional uint64 track_id = 3; - if (has_track_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->track_id(), output); - } - - // required uint32 size = 4; - if (has_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->size(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionRequest_GetCoverArt::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AudioCollectionRequest.GetCoverArt.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional uint64 release_id = 2; - if (has_release_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->release_id(), target); - } - - // optional uint64 track_id = 3; - if (has_track_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->track_id(), target); - } - - // required uint32 size = 4; - if (has_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->size(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionRequest_GetCoverArt::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AudioCollectionRequest.GetCoverArt.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional uint64 release_id = 2; - if (has_release_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->release_id()); - } - - // optional uint64 track_id = 3; - if (has_track_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->track_id()); - } - - // required uint32 size = 4; - if (has_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->size()); - } - - } - 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 AudioCollectionRequest_GetCoverArt::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionRequest_GetCoverArt* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionRequest_GetCoverArt::MergeFrom(const AudioCollectionRequest_GetCoverArt& 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_release_id()) { - set_release_id(from.release_id()); - } - if (from.has_track_id()) { - set_track_id(from.track_id()); - } - if (from.has_size()) { - set_size(from.size()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionRequest_GetCoverArt::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionRequest_GetCoverArt::CopyFrom(const AudioCollectionRequest_GetCoverArt& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionRequest_GetCoverArt::IsInitialized() const { - if ((_has_bits_[0] & 0x00000009) != 0x00000009) return false; - - return true; -} - -void AudioCollectionRequest_GetCoverArt::Swap(AudioCollectionRequest_GetCoverArt* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(release_id_, other->release_id_); - std::swap(track_id_, other->track_id_); - std::swap(size_, other->size_); - 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 AudioCollectionRequest_GetCoverArt::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionRequest_GetCoverArt_descriptor_; - metadata.reflection = AudioCollectionRequest_GetCoverArt_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionRequest::kTypeFieldNumber; -const int AudioCollectionRequest::kGetRevisionFieldNumber; -const int AudioCollectionRequest::kGetGenresFieldNumber; -const int AudioCollectionRequest::kGetArtistsFieldNumber; -const int AudioCollectionRequest::kGetReleasesFieldNumber; -const int AudioCollectionRequest::kGetTracksFieldNumber; -const int AudioCollectionRequest::kGetCoverArtFieldNumber; -#endif // !_MSC_VER - -AudioCollectionRequest::AudioCollectionRequest() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionRequest::InitAsDefaultInstance() { - get_revision_ = const_cast< ::Remote::AudioCollectionRequest_GetRevision*>(&::Remote::AudioCollectionRequest_GetRevision::default_instance()); - get_genres_ = const_cast< ::Remote::AudioCollectionRequest_GetGenreList*>(&::Remote::AudioCollectionRequest_GetGenreList::default_instance()); - get_artists_ = const_cast< ::Remote::AudioCollectionRequest_GetArtistList*>(&::Remote::AudioCollectionRequest_GetArtistList::default_instance()); - get_releases_ = const_cast< ::Remote::AudioCollectionRequest_GetReleaseList*>(&::Remote::AudioCollectionRequest_GetReleaseList::default_instance()); - get_tracks_ = const_cast< ::Remote::AudioCollectionRequest_GetTrackList*>(&::Remote::AudioCollectionRequest_GetTrackList::default_instance()); - get_cover_art_ = const_cast< ::Remote::AudioCollectionRequest_GetCoverArt*>(&::Remote::AudioCollectionRequest_GetCoverArt::default_instance()); -} - -AudioCollectionRequest::AudioCollectionRequest(const AudioCollectionRequest& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionRequest::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - get_revision_ = NULL; - get_genres_ = NULL; - get_artists_ = NULL; - get_releases_ = NULL; - get_tracks_ = NULL; - get_cover_art_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionRequest::~AudioCollectionRequest() { - SharedDtor(); -} - -void AudioCollectionRequest::SharedDtor() { - if (this != default_instance_) { - delete get_revision_; - delete get_genres_; - delete get_artists_; - delete get_releases_; - delete get_tracks_; - delete get_cover_art_; - } -} - -void AudioCollectionRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionRequest_descriptor_; -} - -const AudioCollectionRequest& AudioCollectionRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionRequest* AudioCollectionRequest::default_instance_ = NULL; - -AudioCollectionRequest* AudioCollectionRequest::New() const { - return new AudioCollectionRequest; -} - -void AudioCollectionRequest::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - if (has_get_revision()) { - if (get_revision_ != NULL) get_revision_->::Remote::AudioCollectionRequest_GetRevision::Clear(); - } - if (has_get_genres()) { - if (get_genres_ != NULL) get_genres_->::Remote::AudioCollectionRequest_GetGenreList::Clear(); - } - if (has_get_artists()) { - if (get_artists_ != NULL) get_artists_->::Remote::AudioCollectionRequest_GetArtistList::Clear(); - } - if (has_get_releases()) { - if (get_releases_ != NULL) get_releases_->::Remote::AudioCollectionRequest_GetReleaseList::Clear(); - } - if (has_get_tracks()) { - if (get_tracks_ != NULL) get_tracks_->::Remote::AudioCollectionRequest_GetTrackList::Clear(); - } - if (has_get_cover_art()) { - if (get_cover_art_ != NULL) get_cover_art_->::Remote::AudioCollectionRequest_GetCoverArt::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionRequest::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.AudioCollectionRequest.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::AudioCollectionRequest_Type_IsValid(value)) { - set_type(static_cast< ::Remote::AudioCollectionRequest_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_get_revision; - break; - } - - // optional .Remote.AudioCollectionRequest.GetRevision get_revision = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_get_revision: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_get_revision())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_get_genres; - break; - } - - // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_get_genres: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_get_genres())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_get_artists; - break; - } - - // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_get_artists: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_get_artists())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_get_releases; - break; - } - - // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_get_releases: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_get_releases())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_get_tracks; - break; - } - - // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_get_tracks: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_get_tracks())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_get_cover_art; - break; - } - - // optional .Remote.AudioCollectionRequest.GetCoverArt get_cover_art = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_get_cover_art: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_get_cover_art())); - } 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 AudioCollectionRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AudioCollectionRequest.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional .Remote.AudioCollectionRequest.GetRevision get_revision = 2; - if (has_get_revision()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->get_revision(), output); - } - - // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 3; - if (has_get_genres()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->get_genres(), output); - } - - // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 4; - if (has_get_artists()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->get_artists(), output); - } - - // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 5; - if (has_get_releases()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->get_releases(), output); - } - - // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 6; - if (has_get_tracks()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->get_tracks(), output); - } - - // optional .Remote.AudioCollectionRequest.GetCoverArt get_cover_art = 7; - if (has_get_cover_art()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->get_cover_art(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AudioCollectionRequest.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional .Remote.AudioCollectionRequest.GetRevision get_revision = 2; - if (has_get_revision()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->get_revision(), target); - } - - // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 3; - if (has_get_genres()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->get_genres(), target); - } - - // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 4; - if (has_get_artists()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->get_artists(), target); - } - - // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 5; - if (has_get_releases()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->get_releases(), target); - } - - // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 6; - if (has_get_tracks()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->get_tracks(), target); - } - - // optional .Remote.AudioCollectionRequest.GetCoverArt get_cover_art = 7; - if (has_get_cover_art()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->get_cover_art(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AudioCollectionRequest.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .Remote.AudioCollectionRequest.GetRevision get_revision = 2; - if (has_get_revision()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->get_revision()); - } - - // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 3; - if (has_get_genres()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->get_genres()); - } - - // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 4; - if (has_get_artists()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->get_artists()); - } - - // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 5; - if (has_get_releases()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->get_releases()); - } - - // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 6; - if (has_get_tracks()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->get_tracks()); - } - - // optional .Remote.AudioCollectionRequest.GetCoverArt get_cover_art = 7; - if (has_get_cover_art()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->get_cover_art()); - } - - } - 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 AudioCollectionRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionRequest::MergeFrom(const AudioCollectionRequest& 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_get_revision()) { - mutable_get_revision()->::Remote::AudioCollectionRequest_GetRevision::MergeFrom(from.get_revision()); - } - if (from.has_get_genres()) { - mutable_get_genres()->::Remote::AudioCollectionRequest_GetGenreList::MergeFrom(from.get_genres()); - } - if (from.has_get_artists()) { - mutable_get_artists()->::Remote::AudioCollectionRequest_GetArtistList::MergeFrom(from.get_artists()); - } - if (from.has_get_releases()) { - mutable_get_releases()->::Remote::AudioCollectionRequest_GetReleaseList::MergeFrom(from.get_releases()); - } - if (from.has_get_tracks()) { - mutable_get_tracks()->::Remote::AudioCollectionRequest_GetTrackList::MergeFrom(from.get_tracks()); - } - if (from.has_get_cover_art()) { - mutable_get_cover_art()->::Remote::AudioCollectionRequest_GetCoverArt::MergeFrom(from.get_cover_art()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionRequest::CopyFrom(const AudioCollectionRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_get_genres()) { - if (!this->get_genres().IsInitialized()) return false; - } - if (has_get_artists()) { - if (!this->get_artists().IsInitialized()) return false; - } - if (has_get_releases()) { - if (!this->get_releases().IsInitialized()) return false; - } - if (has_get_tracks()) { - if (!this->get_tracks().IsInitialized()) return false; - } - if (has_get_cover_art()) { - if (!this->get_cover_art().IsInitialized()) return false; - } - return true; -} - -void AudioCollectionRequest::Swap(AudioCollectionRequest* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(get_revision_, other->get_revision_); - std::swap(get_genres_, other->get_genres_); - std::swap(get_artists_, other->get_artists_); - std::swap(get_releases_, other->get_releases_); - std::swap(get_tracks_, other->get_tracks_); - std::swap(get_cover_art_, other->get_cover_art_); - 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 AudioCollectionRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionRequest_descriptor_; - metadata.reflection = AudioCollectionRequest_reflection_; - return metadata; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* AudioCollectionResponse_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_Type_descriptor_; -} -bool AudioCollectionResponse_Type_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const AudioCollectionResponse_Type AudioCollectionResponse::TypeRevision; -const AudioCollectionResponse_Type AudioCollectionResponse::TypeGenreList; -const AudioCollectionResponse_Type AudioCollectionResponse::TypeArtistList; -const AudioCollectionResponse_Type AudioCollectionResponse::TypeReleaseList; -const AudioCollectionResponse_Type AudioCollectionResponse::TypeTrackList; -const AudioCollectionResponse_Type AudioCollectionResponse::TypeCoverArt; -const AudioCollectionResponse_Type AudioCollectionResponse::Type_MIN; -const AudioCollectionResponse_Type AudioCollectionResponse::Type_MAX; -const int AudioCollectionResponse::Type_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int AudioCollectionResponse_Revision::kRevFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_Revision::AudioCollectionResponse_Revision() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_Revision::InitAsDefaultInstance() { -} - -AudioCollectionResponse_Revision::AudioCollectionResponse_Revision(const AudioCollectionResponse_Revision& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_Revision::SharedCtor() { - _cached_size_ = 0; - rev_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_Revision::~AudioCollectionResponse_Revision() { - SharedDtor(); -} - -void AudioCollectionResponse_Revision::SharedDtor() { - if (rev_ != &::google::protobuf::internal::kEmptyString) { - delete rev_; - } - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_Revision::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_Revision::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_Revision_descriptor_; -} - -const AudioCollectionResponse_Revision& AudioCollectionResponse_Revision::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_Revision* AudioCollectionResponse_Revision::default_instance_ = NULL; - -AudioCollectionResponse_Revision* AudioCollectionResponse_Revision::New() const { - return new AudioCollectionResponse_Revision; -} - -void AudioCollectionResponse_Revision::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_rev()) { - if (rev_ != &::google::protobuf::internal::kEmptyString) { - rev_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_Revision::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required string rev = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_rev())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->rev().data(), this->rev().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 AudioCollectionResponse_Revision::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required string rev = 1; - if (has_rev()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->rev().data(), this->rev().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->rev(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_Revision::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required string rev = 1; - if (has_rev()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->rev().data(), this->rev().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->rev(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_Revision::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required string rev = 1; - if (has_rev()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->rev()); - } - - } - 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 AudioCollectionResponse_Revision::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_Revision* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_Revision::MergeFrom(const AudioCollectionResponse_Revision& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_rev()) { - set_rev(from.rev()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_Revision::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_Revision::CopyFrom(const AudioCollectionResponse_Revision& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_Revision::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void AudioCollectionResponse_Revision::Swap(AudioCollectionResponse_Revision* other) { - if (other != this) { - std::swap(rev_, other->rev_); - 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 AudioCollectionResponse_Revision::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_Revision_descriptor_; - metadata.reflection = AudioCollectionResponse_Revision_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_GenreList::kGenresFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_GenreList::AudioCollectionResponse_GenreList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_GenreList::InitAsDefaultInstance() { -} - -AudioCollectionResponse_GenreList::AudioCollectionResponse_GenreList(const AudioCollectionResponse_GenreList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_GenreList::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_GenreList::~AudioCollectionResponse_GenreList() { - SharedDtor(); -} - -void AudioCollectionResponse_GenreList::SharedDtor() { - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_GenreList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_GenreList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_GenreList_descriptor_; -} - -const AudioCollectionResponse_GenreList& AudioCollectionResponse_GenreList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_GenreList* AudioCollectionResponse_GenreList::default_instance_ = NULL; - -AudioCollectionResponse_GenreList* AudioCollectionResponse_GenreList::New() const { - return new AudioCollectionResponse_GenreList; -} - -void AudioCollectionResponse_GenreList::Clear() { - genres_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_GenreList::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)) { - // repeated .Remote.AudioCollectionResponse.Genre genres = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_genres: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_genres())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_genres; - 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 AudioCollectionResponse_GenreList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated .Remote.AudioCollectionResponse.Genre genres = 2; - for (int i = 0; i < this->genres_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->genres(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_GenreList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // repeated .Remote.AudioCollectionResponse.Genre genres = 2; - for (int i = 0; i < this->genres_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->genres(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_GenreList::ByteSize() const { - int total_size = 0; - - // repeated .Remote.AudioCollectionResponse.Genre genres = 2; - total_size += 1 * this->genres_size(); - for (int i = 0; i < this->genres_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->genres(i)); - } - - 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 AudioCollectionResponse_GenreList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_GenreList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_GenreList::MergeFrom(const AudioCollectionResponse_GenreList& from) { - GOOGLE_CHECK_NE(&from, this); - genres_.MergeFrom(from.genres_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_GenreList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_GenreList::CopyFrom(const AudioCollectionResponse_GenreList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_GenreList::IsInitialized() const { - - for (int i = 0; i < genres_size(); i++) { - if (!this->genres(i).IsInitialized()) return false; - } - return true; -} - -void AudioCollectionResponse_GenreList::Swap(AudioCollectionResponse_GenreList* other) { - if (other != this) { - genres_.Swap(&other->genres_); - 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 AudioCollectionResponse_GenreList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_GenreList_descriptor_; - metadata.reflection = AudioCollectionResponse_GenreList_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_ArtistList::kArtistsFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_ArtistList::AudioCollectionResponse_ArtistList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_ArtistList::InitAsDefaultInstance() { -} - -AudioCollectionResponse_ArtistList::AudioCollectionResponse_ArtistList(const AudioCollectionResponse_ArtistList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_ArtistList::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_ArtistList::~AudioCollectionResponse_ArtistList() { - SharedDtor(); -} - -void AudioCollectionResponse_ArtistList::SharedDtor() { - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_ArtistList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_ArtistList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_ArtistList_descriptor_; -} - -const AudioCollectionResponse_ArtistList& AudioCollectionResponse_ArtistList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_ArtistList* AudioCollectionResponse_ArtistList::default_instance_ = NULL; - -AudioCollectionResponse_ArtistList* AudioCollectionResponse_ArtistList::New() const { - return new AudioCollectionResponse_ArtistList; -} - -void AudioCollectionResponse_ArtistList::Clear() { - artists_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_ArtistList::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)) { - // repeated .Remote.AudioCollectionResponse.Artist artists = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_artists: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_artists())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_artists; - 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 AudioCollectionResponse_ArtistList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated .Remote.AudioCollectionResponse.Artist artists = 2; - for (int i = 0; i < this->artists_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->artists(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_ArtistList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // repeated .Remote.AudioCollectionResponse.Artist artists = 2; - for (int i = 0; i < this->artists_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->artists(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_ArtistList::ByteSize() const { - int total_size = 0; - - // repeated .Remote.AudioCollectionResponse.Artist artists = 2; - total_size += 1 * this->artists_size(); - for (int i = 0; i < this->artists_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->artists(i)); - } - - 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 AudioCollectionResponse_ArtistList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_ArtistList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_ArtistList::MergeFrom(const AudioCollectionResponse_ArtistList& from) { - GOOGLE_CHECK_NE(&from, this); - artists_.MergeFrom(from.artists_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_ArtistList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_ArtistList::CopyFrom(const AudioCollectionResponse_ArtistList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_ArtistList::IsInitialized() const { - - for (int i = 0; i < artists_size(); i++) { - if (!this->artists(i).IsInitialized()) return false; - } - return true; -} - -void AudioCollectionResponse_ArtistList::Swap(AudioCollectionResponse_ArtistList* other) { - if (other != this) { - artists_.Swap(&other->artists_); - 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 AudioCollectionResponse_ArtistList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_ArtistList_descriptor_; - metadata.reflection = AudioCollectionResponse_ArtistList_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_ReleaseList::kReleasesFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_ReleaseList::AudioCollectionResponse_ReleaseList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_ReleaseList::InitAsDefaultInstance() { -} - -AudioCollectionResponse_ReleaseList::AudioCollectionResponse_ReleaseList(const AudioCollectionResponse_ReleaseList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_ReleaseList::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_ReleaseList::~AudioCollectionResponse_ReleaseList() { - SharedDtor(); -} - -void AudioCollectionResponse_ReleaseList::SharedDtor() { - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_ReleaseList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_ReleaseList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_ReleaseList_descriptor_; -} - -const AudioCollectionResponse_ReleaseList& AudioCollectionResponse_ReleaseList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_ReleaseList* AudioCollectionResponse_ReleaseList::default_instance_ = NULL; - -AudioCollectionResponse_ReleaseList* AudioCollectionResponse_ReleaseList::New() const { - return new AudioCollectionResponse_ReleaseList; -} - -void AudioCollectionResponse_ReleaseList::Clear() { - releases_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_ReleaseList::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)) { - // repeated .Remote.AudioCollectionResponse.Release releases = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_releases: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_releases())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_releases; - 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 AudioCollectionResponse_ReleaseList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated .Remote.AudioCollectionResponse.Release releases = 2; - for (int i = 0; i < this->releases_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->releases(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_ReleaseList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // repeated .Remote.AudioCollectionResponse.Release releases = 2; - for (int i = 0; i < this->releases_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->releases(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_ReleaseList::ByteSize() const { - int total_size = 0; - - // repeated .Remote.AudioCollectionResponse.Release releases = 2; - total_size += 1 * this->releases_size(); - for (int i = 0; i < this->releases_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->releases(i)); - } - - 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 AudioCollectionResponse_ReleaseList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_ReleaseList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_ReleaseList::MergeFrom(const AudioCollectionResponse_ReleaseList& from) { - GOOGLE_CHECK_NE(&from, this); - releases_.MergeFrom(from.releases_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_ReleaseList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_ReleaseList::CopyFrom(const AudioCollectionResponse_ReleaseList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_ReleaseList::IsInitialized() const { - - for (int i = 0; i < releases_size(); i++) { - if (!this->releases(i).IsInitialized()) return false; - } - return true; -} - -void AudioCollectionResponse_ReleaseList::Swap(AudioCollectionResponse_ReleaseList* other) { - if (other != this) { - releases_.Swap(&other->releases_); - 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 AudioCollectionResponse_ReleaseList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_ReleaseList_descriptor_; - metadata.reflection = AudioCollectionResponse_ReleaseList_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_TrackList::kTracksFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_TrackList::AudioCollectionResponse_TrackList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_TrackList::InitAsDefaultInstance() { -} - -AudioCollectionResponse_TrackList::AudioCollectionResponse_TrackList(const AudioCollectionResponse_TrackList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_TrackList::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_TrackList::~AudioCollectionResponse_TrackList() { - SharedDtor(); -} - -void AudioCollectionResponse_TrackList::SharedDtor() { - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_TrackList::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_TrackList::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_TrackList_descriptor_; -} - -const AudioCollectionResponse_TrackList& AudioCollectionResponse_TrackList::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_TrackList* AudioCollectionResponse_TrackList::default_instance_ = NULL; - -AudioCollectionResponse_TrackList* AudioCollectionResponse_TrackList::New() const { - return new AudioCollectionResponse_TrackList; -} - -void AudioCollectionResponse_TrackList::Clear() { - tracks_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_TrackList::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)) { - // repeated .Remote.AudioCollectionResponse.Track tracks = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_tracks: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_tracks())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_tracks; - 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 AudioCollectionResponse_TrackList::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // repeated .Remote.AudioCollectionResponse.Track tracks = 2; - for (int i = 0; i < this->tracks_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->tracks(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_TrackList::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // repeated .Remote.AudioCollectionResponse.Track tracks = 2; - for (int i = 0; i < this->tracks_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->tracks(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_TrackList::ByteSize() const { - int total_size = 0; - - // repeated .Remote.AudioCollectionResponse.Track tracks = 2; - total_size += 1 * this->tracks_size(); - for (int i = 0; i < this->tracks_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->tracks(i)); - } - - 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 AudioCollectionResponse_TrackList::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_TrackList* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_TrackList::MergeFrom(const AudioCollectionResponse_TrackList& from) { - GOOGLE_CHECK_NE(&from, this); - tracks_.MergeFrom(from.tracks_); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_TrackList::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_TrackList::CopyFrom(const AudioCollectionResponse_TrackList& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_TrackList::IsInitialized() const { - - for (int i = 0; i < tracks_size(); i++) { - if (!this->tracks(i).IsInitialized()) return false; - } - return true; -} - -void AudioCollectionResponse_TrackList::Swap(AudioCollectionResponse_TrackList* other) { - if (other != this) { - tracks_.Swap(&other->tracks_); - 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 AudioCollectionResponse_TrackList::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_TrackList_descriptor_; - metadata.reflection = AudioCollectionResponse_TrackList_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_CoverArt::kMimeTypeFieldNumber; -const int AudioCollectionResponse_CoverArt::kDataFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_CoverArt::AudioCollectionResponse_CoverArt() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_CoverArt::InitAsDefaultInstance() { -} - -AudioCollectionResponse_CoverArt::AudioCollectionResponse_CoverArt(const AudioCollectionResponse_CoverArt& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_CoverArt::SharedCtor() { - _cached_size_ = 0; - mime_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_CoverArt::~AudioCollectionResponse_CoverArt() { - SharedDtor(); -} - -void AudioCollectionResponse_CoverArt::SharedDtor() { - if (mime_type_ != &::google::protobuf::internal::kEmptyString) { - delete mime_type_; - } - if (data_ != &::google::protobuf::internal::kEmptyString) { - delete data_; - } - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_CoverArt::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_CoverArt::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_CoverArt_descriptor_; -} - -const AudioCollectionResponse_CoverArt& AudioCollectionResponse_CoverArt::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_CoverArt* AudioCollectionResponse_CoverArt::default_instance_ = NULL; - -AudioCollectionResponse_CoverArt* AudioCollectionResponse_CoverArt::New() const { - return new AudioCollectionResponse_CoverArt; -} - -void AudioCollectionResponse_CoverArt::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_mime_type()) { - if (mime_type_ != &::google::protobuf::internal::kEmptyString) { - mime_type_->clear(); - } - } - if (has_data()) { - if (data_ != &::google::protobuf::internal::kEmptyString) { - data_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_CoverArt::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)) { - // optional string mime_type = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_mime_type())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->mime_type().data(), this->mime_type().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_data; - break; - } - - // required bytes data = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_data: - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_data())); - } 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 AudioCollectionResponse_CoverArt::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional string mime_type = 1; - if (has_mime_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->mime_type().data(), this->mime_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 1, this->mime_type(), output); - } - - // required bytes data = 2; - if (has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 2, this->data(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_CoverArt::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional string mime_type = 1; - if (has_mime_type()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->mime_type().data(), this->mime_type().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 1, this->mime_type(), target); - } - - // required bytes data = 2; - if (has_data()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->data(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_CoverArt::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional string mime_type = 1; - if (has_mime_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->mime_type()); - } - - // required bytes data = 2; - if (has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->data()); - } - - } - 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 AudioCollectionResponse_CoverArt::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_CoverArt* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_CoverArt::MergeFrom(const AudioCollectionResponse_CoverArt& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_mime_type()) { - set_mime_type(from.mime_type()); - } - if (from.has_data()) { - set_data(from.data()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_CoverArt::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_CoverArt::CopyFrom(const AudioCollectionResponse_CoverArt& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_CoverArt::IsInitialized() const { - if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false; - - return true; -} - -void AudioCollectionResponse_CoverArt::Swap(AudioCollectionResponse_CoverArt* other) { - if (other != this) { - std::swap(mime_type_, other->mime_type_); - std::swap(data_, other->data_); - 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 AudioCollectionResponse_CoverArt::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_CoverArt_descriptor_; - metadata.reflection = AudioCollectionResponse_CoverArt_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_Genre::kIdFieldNumber; -const int AudioCollectionResponse_Genre::kNameFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_Genre::AudioCollectionResponse_Genre() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_Genre::InitAsDefaultInstance() { -} - -AudioCollectionResponse_Genre::AudioCollectionResponse_Genre(const AudioCollectionResponse_Genre& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_Genre::SharedCtor() { - _cached_size_ = 0; - id_ = GOOGLE_ULONGLONG(0); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_Genre::~AudioCollectionResponse_Genre() { - SharedDtor(); -} - -void AudioCollectionResponse_Genre::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_Genre::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_Genre::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_Genre_descriptor_; -} - -const AudioCollectionResponse_Genre& AudioCollectionResponse_Genre::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_Genre* AudioCollectionResponse_Genre::default_instance_ = NULL; - -AudioCollectionResponse_Genre* AudioCollectionResponse_Genre::New() const { - return new AudioCollectionResponse_Genre; -} - -void AudioCollectionResponse_Genre::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - id_ = GOOGLE_ULONGLONG(0); - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_Genre::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 uint64 id = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - set_has_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // required string name = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().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 AudioCollectionResponse_Genre::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output); - } - - // required string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_Genre::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required uint64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); - } - - // required string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_Genre::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint64 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // required string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AudioCollectionResponse_Genre::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_Genre* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_Genre::MergeFrom(const AudioCollectionResponse_Genre& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_name()) { - set_name(from.name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_Genre::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_Genre::CopyFrom(const AudioCollectionResponse_Genre& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_Genre::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AudioCollectionResponse_Genre::Swap(AudioCollectionResponse_Genre* other) { - if (other != this) { - std::swap(id_, other->id_); - std::swap(name_, other->name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AudioCollectionResponse_Genre::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_Genre_descriptor_; - metadata.reflection = AudioCollectionResponse_Genre_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_Artist::kIdFieldNumber; -const int AudioCollectionResponse_Artist::kNameFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_Artist::AudioCollectionResponse_Artist() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_Artist::InitAsDefaultInstance() { -} - -AudioCollectionResponse_Artist::AudioCollectionResponse_Artist(const AudioCollectionResponse_Artist& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_Artist::SharedCtor() { - _cached_size_ = 0; - id_ = GOOGLE_ULONGLONG(0); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_Artist::~AudioCollectionResponse_Artist() { - SharedDtor(); -} - -void AudioCollectionResponse_Artist::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_Artist::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_Artist::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_Artist_descriptor_; -} - -const AudioCollectionResponse_Artist& AudioCollectionResponse_Artist::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_Artist* AudioCollectionResponse_Artist::default_instance_ = NULL; - -AudioCollectionResponse_Artist* AudioCollectionResponse_Artist::New() const { - return new AudioCollectionResponse_Artist; -} - -void AudioCollectionResponse_Artist::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - id_ = GOOGLE_ULONGLONG(0); - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_Artist::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 uint64 id = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - set_has_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // required string name = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().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 AudioCollectionResponse_Artist::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output); - } - - // required string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_Artist::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required uint64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); - } - - // required string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_Artist::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint64 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // required string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AudioCollectionResponse_Artist::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_Artist* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_Artist::MergeFrom(const AudioCollectionResponse_Artist& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_name()) { - set_name(from.name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_Artist::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_Artist::CopyFrom(const AudioCollectionResponse_Artist& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_Artist::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AudioCollectionResponse_Artist::Swap(AudioCollectionResponse_Artist* other) { - if (other != this) { - std::swap(id_, other->id_); - std::swap(name_, other->name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AudioCollectionResponse_Artist::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_Artist_descriptor_; - metadata.reflection = AudioCollectionResponse_Artist_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_Release::kIdFieldNumber; -const int AudioCollectionResponse_Release::kNameFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_Release::AudioCollectionResponse_Release() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_Release::InitAsDefaultInstance() { -} - -AudioCollectionResponse_Release::AudioCollectionResponse_Release(const AudioCollectionResponse_Release& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_Release::SharedCtor() { - _cached_size_ = 0; - id_ = GOOGLE_ULONGLONG(0); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_Release::~AudioCollectionResponse_Release() { - SharedDtor(); -} - -void AudioCollectionResponse_Release::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_Release::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_Release::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_Release_descriptor_; -} - -const AudioCollectionResponse_Release& AudioCollectionResponse_Release::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_Release* AudioCollectionResponse_Release::default_instance_ = NULL; - -AudioCollectionResponse_Release* AudioCollectionResponse_Release::New() const { - return new AudioCollectionResponse_Release; -} - -void AudioCollectionResponse_Release::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - id_ = GOOGLE_ULONGLONG(0); - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_Release::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 uint64 id = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - set_has_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_name; - break; - } - - // required string name = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().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 AudioCollectionResponse_Release::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output); - } - - // required string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 2, this->name(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_Release::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required uint64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); - } - - // required string name = 2; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 2, this->name(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_Release::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint64 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // required string name = 2; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - } - if (!unknown_fields().empty()) { - total_size += - ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( - unknown_fields()); - } - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = total_size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); - return total_size; -} - -void AudioCollectionResponse_Release::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_Release* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_Release::MergeFrom(const AudioCollectionResponse_Release& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_name()) { - set_name(from.name()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_Release::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_Release::CopyFrom(const AudioCollectionResponse_Release& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_Release::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void AudioCollectionResponse_Release::Swap(AudioCollectionResponse_Release* other) { - if (other != this) { - std::swap(id_, other->id_); - std::swap(name_, other->name_); - std::swap(_has_bits_[0], other->_has_bits_[0]); - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata AudioCollectionResponse_Release::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_Release_descriptor_; - metadata.reflection = AudioCollectionResponse_Release_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse_Track::kIdFieldNumber; -const int AudioCollectionResponse_Track::kArtistIdFieldNumber; -const int AudioCollectionResponse_Track::kReleaseIdFieldNumber; -const int AudioCollectionResponse_Track::kGenreIdFieldNumber; -const int AudioCollectionResponse_Track::kDiscNumberFieldNumber; -const int AudioCollectionResponse_Track::kTrackNumberFieldNumber; -const int AudioCollectionResponse_Track::kNameFieldNumber; -const int AudioCollectionResponse_Track::kDurationSecsFieldNumber; -const int AudioCollectionResponse_Track::kReleaseDateFieldNumber; -const int AudioCollectionResponse_Track::kOriginalReleaseDateFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse_Track::AudioCollectionResponse_Track() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse_Track::InitAsDefaultInstance() { -} - -AudioCollectionResponse_Track::AudioCollectionResponse_Track(const AudioCollectionResponse_Track& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse_Track::SharedCtor() { - _cached_size_ = 0; - id_ = GOOGLE_ULONGLONG(0); - artist_id_ = GOOGLE_ULONGLONG(0); - release_id_ = GOOGLE_ULONGLONG(0); - disc_number_ = 0u; - track_number_ = 0u; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - duration_secs_ = 0u; - release_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - original_release_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse_Track::~AudioCollectionResponse_Track() { - SharedDtor(); -} - -void AudioCollectionResponse_Track::SharedDtor() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (release_date_ != &::google::protobuf::internal::kEmptyString) { - delete release_date_; - } - if (original_release_date_ != &::google::protobuf::internal::kEmptyString) { - delete original_release_date_; - } - if (this != default_instance_) { - } -} - -void AudioCollectionResponse_Track::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse_Track::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_Track_descriptor_; -} - -const AudioCollectionResponse_Track& AudioCollectionResponse_Track::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse_Track* AudioCollectionResponse_Track::default_instance_ = NULL; - -AudioCollectionResponse_Track* AudioCollectionResponse_Track::New() const { - return new AudioCollectionResponse_Track; -} - -void AudioCollectionResponse_Track::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - id_ = GOOGLE_ULONGLONG(0); - artist_id_ = GOOGLE_ULONGLONG(0); - release_id_ = GOOGLE_ULONGLONG(0); - disc_number_ = 0u; - track_number_ = 0u; - if (has_name()) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - } - duration_secs_ = 0u; - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (has_release_date()) { - if (release_date_ != &::google::protobuf::internal::kEmptyString) { - release_date_->clear(); - } - } - if (has_original_release_date()) { - if (original_release_date_ != &::google::protobuf::internal::kEmptyString) { - original_release_date_->clear(); - } - } - } - genre_id_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse_Track::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 uint64 id = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &id_))); - set_has_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_artist_id; - break; - } - - // required uint64 artist_id = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_artist_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &artist_id_))); - set_has_artist_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_release_id; - break; - } - - // required uint64 release_id = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_release_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, &release_id_))); - set_has_release_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_genre_id; - break; - } - - // repeated uint64 genre_id = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_genre_id: - DO_((::google::protobuf::internal::WireFormatLite::ReadRepeatedPrimitive< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - 1, 32, input, this->mutable_genre_id()))); - } else if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) - == ::google::protobuf::internal::WireFormatLite:: - WIRETYPE_LENGTH_DELIMITED) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPackedPrimitiveNoInline< - ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>( - input, this->mutable_genre_id()))); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_genre_id; - if (input->ExpectTag(40)) goto parse_disc_number; - break; - } - - // optional uint32 disc_number = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_disc_number: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &disc_number_))); - set_has_disc_number(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_track_number; - break; - } - - // optional uint32 track_number = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_track_number: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &track_number_))); - set_has_track_number(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_name; - break; - } - - // required string name = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_name: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_name())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_duration_secs; - break; - } - - // required uint32 duration_secs = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_duration_secs: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &duration_secs_))); - set_has_duration_secs(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(74)) goto parse_release_date; - break; - } - - // optional string release_date = 9; - case 9: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_release_date: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_release_date())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->release_date().data(), this->release_date().length(), - ::google::protobuf::internal::WireFormat::PARSE); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(82)) goto parse_original_release_date; - break; - } - - // optional string original_release_date = 10; - case 10: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_original_release_date: - DO_(::google::protobuf::internal::WireFormatLite::ReadString( - input, this->mutable_original_release_date())); - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->original_release_date().data(), this->original_release_date().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 AudioCollectionResponse_Track::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint64 id = 1; - if (has_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->id(), output); - } - - // required uint64 artist_id = 2; - if (has_artist_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->artist_id(), output); - } - - // required uint64 release_id = 3; - if (has_release_id()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->release_id(), output); - } - - // repeated uint64 genre_id = 4; - for (int i = 0; i < this->genre_id_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteUInt64( - 4, this->genre_id(i), output); - } - - // optional uint32 disc_number = 5; - if (has_disc_number()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->disc_number(), output); - } - - // optional uint32 track_number = 6; - if (has_track_number()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->track_number(), output); - } - - // required string name = 7; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 7, this->name(), output); - } - - // required uint32 duration_secs = 8; - if (has_duration_secs()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->duration_secs(), output); - } - - // optional string release_date = 9; - if (has_release_date()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->release_date().data(), this->release_date().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 9, this->release_date(), output); - } - - // optional string original_release_date = 10; - if (has_original_release_date()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->original_release_date().data(), this->original_release_date().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - ::google::protobuf::internal::WireFormatLite::WriteString( - 10, this->original_release_date(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse_Track::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required uint64 id = 1; - if (has_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->id(), target); - } - - // required uint64 artist_id = 2; - if (has_artist_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->artist_id(), target); - } - - // required uint64 release_id = 3; - if (has_release_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->release_id(), target); - } - - // repeated uint64 genre_id = 4; - for (int i = 0; i < this->genre_id_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteUInt64ToArray(4, this->genre_id(i), target); - } - - // optional uint32 disc_number = 5; - if (has_disc_number()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->disc_number(), target); - } - - // optional uint32 track_number = 6; - if (has_track_number()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->track_number(), target); - } - - // required string name = 7; - if (has_name()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->name().data(), this->name().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 7, this->name(), target); - } - - // required uint32 duration_secs = 8; - if (has_duration_secs()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->duration_secs(), target); - } - - // optional string release_date = 9; - if (has_release_date()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->release_date().data(), this->release_date().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 9, this->release_date(), target); - } - - // optional string original_release_date = 10; - if (has_original_release_date()) { - ::google::protobuf::internal::WireFormat::VerifyUTF8String( - this->original_release_date().data(), this->original_release_date().length(), - ::google::protobuf::internal::WireFormat::SERIALIZE); - target = - ::google::protobuf::internal::WireFormatLite::WriteStringToArray( - 10, this->original_release_date(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse_Track::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint64 id = 1; - if (has_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->id()); - } - - // required uint64 artist_id = 2; - if (has_artist_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->artist_id()); - } - - // required uint64 release_id = 3; - if (has_release_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt64Size( - this->release_id()); - } - - // optional uint32 disc_number = 5; - if (has_disc_number()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->disc_number()); - } - - // optional uint32 track_number = 6; - if (has_track_number()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->track_number()); - } - - // required string name = 7; - if (has_name()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->name()); - } - - // required uint32 duration_secs = 8; - if (has_duration_secs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->duration_secs()); - } - - } - if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) { - // optional string release_date = 9; - if (has_release_date()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->release_date()); - } - - // optional string original_release_date = 10; - if (has_original_release_date()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::StringSize( - this->original_release_date()); - } - - } - // repeated uint64 genre_id = 4; - { - int data_size = 0; - for (int i = 0; i < this->genre_id_size(); i++) { - data_size += ::google::protobuf::internal::WireFormatLite:: - UInt64Size(this->genre_id(i)); - } - total_size += 1 * this->genre_id_size() + data_size; - } - - 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 AudioCollectionResponse_Track::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse_Track* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse_Track::MergeFrom(const AudioCollectionResponse_Track& from) { - GOOGLE_CHECK_NE(&from, this); - genre_id_.MergeFrom(from.genre_id_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_id()) { - set_id(from.id()); - } - if (from.has_artist_id()) { - set_artist_id(from.artist_id()); - } - if (from.has_release_id()) { - set_release_id(from.release_id()); - } - if (from.has_disc_number()) { - set_disc_number(from.disc_number()); - } - if (from.has_track_number()) { - set_track_number(from.track_number()); - } - if (from.has_name()) { - set_name(from.name()); - } - if (from.has_duration_secs()) { - set_duration_secs(from.duration_secs()); - } - } - if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) { - if (from.has_release_date()) { - set_release_date(from.release_date()); - } - if (from.has_original_release_date()) { - set_original_release_date(from.original_release_date()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse_Track::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse_Track::CopyFrom(const AudioCollectionResponse_Track& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse_Track::IsInitialized() const { - if ((_has_bits_[0] & 0x000000c7) != 0x000000c7) return false; - - return true; -} - -void AudioCollectionResponse_Track::Swap(AudioCollectionResponse_Track* other) { - if (other != this) { - std::swap(id_, other->id_); - std::swap(artist_id_, other->artist_id_); - std::swap(release_id_, other->release_id_); - genre_id_.Swap(&other->genre_id_); - std::swap(disc_number_, other->disc_number_); - std::swap(track_number_, other->track_number_); - std::swap(name_, other->name_); - std::swap(duration_secs_, other->duration_secs_); - std::swap(release_date_, other->release_date_); - std::swap(original_release_date_, other->original_release_date_); - 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 AudioCollectionResponse_Track::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_Track_descriptor_; - metadata.reflection = AudioCollectionResponse_Track_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int AudioCollectionResponse::kTypeFieldNumber; -const int AudioCollectionResponse::kRevisionFieldNumber; -const int AudioCollectionResponse::kGenreListFieldNumber; -const int AudioCollectionResponse::kArtistListFieldNumber; -const int AudioCollectionResponse::kReleaseListFieldNumber; -const int AudioCollectionResponse::kTrackListFieldNumber; -const int AudioCollectionResponse::kCoverArtFieldNumber; -#endif // !_MSC_VER - -AudioCollectionResponse::AudioCollectionResponse() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void AudioCollectionResponse::InitAsDefaultInstance() { - revision_ = const_cast< ::Remote::AudioCollectionResponse_Revision*>(&::Remote::AudioCollectionResponse_Revision::default_instance()); - genre_list_ = const_cast< ::Remote::AudioCollectionResponse_GenreList*>(&::Remote::AudioCollectionResponse_GenreList::default_instance()); - artist_list_ = const_cast< ::Remote::AudioCollectionResponse_ArtistList*>(&::Remote::AudioCollectionResponse_ArtistList::default_instance()); - release_list_ = const_cast< ::Remote::AudioCollectionResponse_ReleaseList*>(&::Remote::AudioCollectionResponse_ReleaseList::default_instance()); - track_list_ = const_cast< ::Remote::AudioCollectionResponse_TrackList*>(&::Remote::AudioCollectionResponse_TrackList::default_instance()); -} - -AudioCollectionResponse::AudioCollectionResponse(const AudioCollectionResponse& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void AudioCollectionResponse::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - revision_ = NULL; - genre_list_ = NULL; - artist_list_ = NULL; - release_list_ = NULL; - track_list_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -AudioCollectionResponse::~AudioCollectionResponse() { - SharedDtor(); -} - -void AudioCollectionResponse::SharedDtor() { - if (this != default_instance_) { - delete revision_; - delete genre_list_; - delete artist_list_; - delete release_list_; - delete track_list_; - } -} - -void AudioCollectionResponse::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* AudioCollectionResponse::descriptor() { - protobuf_AssignDescriptorsOnce(); - return AudioCollectionResponse_descriptor_; -} - -const AudioCollectionResponse& AudioCollectionResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -AudioCollectionResponse* AudioCollectionResponse::default_instance_ = NULL; - -AudioCollectionResponse* AudioCollectionResponse::New() const { - return new AudioCollectionResponse; -} - -void AudioCollectionResponse::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - if (has_revision()) { - if (revision_ != NULL) revision_->::Remote::AudioCollectionResponse_Revision::Clear(); - } - if (has_genre_list()) { - if (genre_list_ != NULL) genre_list_->::Remote::AudioCollectionResponse_GenreList::Clear(); - } - if (has_artist_list()) { - if (artist_list_ != NULL) artist_list_->::Remote::AudioCollectionResponse_ArtistList::Clear(); - } - if (has_release_list()) { - if (release_list_ != NULL) release_list_->::Remote::AudioCollectionResponse_ReleaseList::Clear(); - } - if (has_track_list()) { - if (track_list_ != NULL) track_list_->::Remote::AudioCollectionResponse_TrackList::Clear(); - } - } - cover_art_.Clear(); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool AudioCollectionResponse::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.AudioCollectionResponse.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::AudioCollectionResponse_Type_IsValid(value)) { - set_type(static_cast< ::Remote::AudioCollectionResponse_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_revision; - break; - } - - // optional .Remote.AudioCollectionResponse.Revision revision = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_revision: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_revision())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_genre_list; - break; - } - - // optional .Remote.AudioCollectionResponse.GenreList genre_list = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_genre_list: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_genre_list())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_artist_list; - break; - } - - // optional .Remote.AudioCollectionResponse.ArtistList artist_list = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_artist_list: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_artist_list())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(42)) goto parse_release_list; - break; - } - - // optional .Remote.AudioCollectionResponse.ReleaseList release_list = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_release_list: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_release_list())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(50)) goto parse_track_list; - break; - } - - // optional .Remote.AudioCollectionResponse.TrackList track_list = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_track_list: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_track_list())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_cover_art; - break; - } - - // repeated .Remote.AudioCollectionResponse.CoverArt cover_art = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_cover_art: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, add_cover_art())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(58)) goto parse_cover_art; - 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 AudioCollectionResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.AudioCollectionResponse.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional .Remote.AudioCollectionResponse.Revision revision = 2; - if (has_revision()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->revision(), output); - } - - // optional .Remote.AudioCollectionResponse.GenreList genre_list = 3; - if (has_genre_list()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->genre_list(), output); - } - - // optional .Remote.AudioCollectionResponse.ArtistList artist_list = 4; - if (has_artist_list()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->artist_list(), output); - } - - // optional .Remote.AudioCollectionResponse.ReleaseList release_list = 5; - if (has_release_list()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->release_list(), output); - } - - // optional .Remote.AudioCollectionResponse.TrackList track_list = 6; - if (has_track_list()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->track_list(), output); - } - - // repeated .Remote.AudioCollectionResponse.CoverArt cover_art = 7; - for (int i = 0; i < this->cover_art_size(); i++) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 7, this->cover_art(i), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* AudioCollectionResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.AudioCollectionResponse.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional .Remote.AudioCollectionResponse.Revision revision = 2; - if (has_revision()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->revision(), target); - } - - // optional .Remote.AudioCollectionResponse.GenreList genre_list = 3; - if (has_genre_list()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->genre_list(), target); - } - - // optional .Remote.AudioCollectionResponse.ArtistList artist_list = 4; - if (has_artist_list()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->artist_list(), target); - } - - // optional .Remote.AudioCollectionResponse.ReleaseList release_list = 5; - if (has_release_list()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->release_list(), target); - } - - // optional .Remote.AudioCollectionResponse.TrackList track_list = 6; - if (has_track_list()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->track_list(), target); - } - - // repeated .Remote.AudioCollectionResponse.CoverArt cover_art = 7; - for (int i = 0; i < this->cover_art_size(); i++) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 7, this->cover_art(i), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int AudioCollectionResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.AudioCollectionResponse.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .Remote.AudioCollectionResponse.Revision revision = 2; - if (has_revision()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->revision()); - } - - // optional .Remote.AudioCollectionResponse.GenreList genre_list = 3; - if (has_genre_list()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->genre_list()); - } - - // optional .Remote.AudioCollectionResponse.ArtistList artist_list = 4; - if (has_artist_list()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->artist_list()); - } - - // optional .Remote.AudioCollectionResponse.ReleaseList release_list = 5; - if (has_release_list()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->release_list()); - } - - // optional .Remote.AudioCollectionResponse.TrackList track_list = 6; - if (has_track_list()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->track_list()); - } - - } - // repeated .Remote.AudioCollectionResponse.CoverArt cover_art = 7; - total_size += 1 * this->cover_art_size(); - for (int i = 0; i < this->cover_art_size(); i++) { - total_size += - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->cover_art(i)); - } - - 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 AudioCollectionResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const AudioCollectionResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void AudioCollectionResponse::MergeFrom(const AudioCollectionResponse& from) { - GOOGLE_CHECK_NE(&from, this); - cover_art_.MergeFrom(from.cover_art_); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_revision()) { - mutable_revision()->::Remote::AudioCollectionResponse_Revision::MergeFrom(from.revision()); - } - if (from.has_genre_list()) { - mutable_genre_list()->::Remote::AudioCollectionResponse_GenreList::MergeFrom(from.genre_list()); - } - if (from.has_artist_list()) { - mutable_artist_list()->::Remote::AudioCollectionResponse_ArtistList::MergeFrom(from.artist_list()); - } - if (from.has_release_list()) { - mutable_release_list()->::Remote::AudioCollectionResponse_ReleaseList::MergeFrom(from.release_list()); - } - if (from.has_track_list()) { - mutable_track_list()->::Remote::AudioCollectionResponse_TrackList::MergeFrom(from.track_list()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void AudioCollectionResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void AudioCollectionResponse::CopyFrom(const AudioCollectionResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool AudioCollectionResponse::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_revision()) { - if (!this->revision().IsInitialized()) return false; - } - if (has_genre_list()) { - if (!this->genre_list().IsInitialized()) return false; - } - if (has_artist_list()) { - if (!this->artist_list().IsInitialized()) return false; - } - if (has_release_list()) { - if (!this->release_list().IsInitialized()) return false; - } - if (has_track_list()) { - if (!this->track_list().IsInitialized()) return false; - } - for (int i = 0; i < cover_art_size(); i++) { - if (!this->cover_art(i).IsInitialized()) return false; - } - return true; -} - -void AudioCollectionResponse::Swap(AudioCollectionResponse* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(revision_, other->revision_); - std::swap(genre_list_, other->genre_list_); - std::swap(artist_list_, other->artist_list_); - std::swap(release_list_, other->release_list_); - std::swap(track_list_, other->track_list_); - cover_art_.Swap(&other->cover_art_); - 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 AudioCollectionResponse::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = AudioCollectionResponse_descriptor_; - metadata.reflection = AudioCollectionResponse_reflection_; - return metadata; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Remote - -// @@protoc_insertion_point(global_scope) diff --git a/remote/messages/collection.pb.h b/remote/messages/collection.pb.h deleted file mode 100644 index aa76cb83..00000000 --- a/remote/messages/collection.pb.h +++ /dev/null @@ -1,4139 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: collection.proto - -#ifndef PROTOBUF_collection_2eproto__INCLUDED -#define PROTOBUF_collection_2eproto__INCLUDED - -#include - -#include - -#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 -#include -#include -#include -#include -#include -#include "common.pb.h" -// @@protoc_insertion_point(includes) - -namespace Remote { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_collection_2eproto(); -void protobuf_AssignDesc_collection_2eproto(); -void protobuf_ShutdownFile_collection_2eproto(); - -class AudioCollectionRequest; -class AudioCollectionRequest_BatchParameter; -class AudioCollectionRequest_GetRevision; -class AudioCollectionRequest_GetGenreList; -class AudioCollectionRequest_GetArtistList; -class AudioCollectionRequest_GetReleaseList; -class AudioCollectionRequest_GetTrackList; -class AudioCollectionRequest_GetCoverArt; -class AudioCollectionResponse; -class AudioCollectionResponse_Revision; -class AudioCollectionResponse_GenreList; -class AudioCollectionResponse_ArtistList; -class AudioCollectionResponse_ReleaseList; -class AudioCollectionResponse_TrackList; -class AudioCollectionResponse_CoverArt; -class AudioCollectionResponse_Genre; -class AudioCollectionResponse_Artist; -class AudioCollectionResponse_Release; -class AudioCollectionResponse_Track; - -enum AudioCollectionRequest_GetCoverArt_Type { - AudioCollectionRequest_GetCoverArt_Type_TypeGetCoverArtRelease = 1, - AudioCollectionRequest_GetCoverArt_Type_TypeGetCoverArtTrack = 2 -}; -bool AudioCollectionRequest_GetCoverArt_Type_IsValid(int value); -const AudioCollectionRequest_GetCoverArt_Type AudioCollectionRequest_GetCoverArt_Type_Type_MIN = AudioCollectionRequest_GetCoverArt_Type_TypeGetCoverArtRelease; -const AudioCollectionRequest_GetCoverArt_Type AudioCollectionRequest_GetCoverArt_Type_Type_MAX = AudioCollectionRequest_GetCoverArt_Type_TypeGetCoverArtTrack; -const int AudioCollectionRequest_GetCoverArt_Type_Type_ARRAYSIZE = AudioCollectionRequest_GetCoverArt_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_GetCoverArt_Type_descriptor(); -inline const ::std::string& AudioCollectionRequest_GetCoverArt_Type_Name(AudioCollectionRequest_GetCoverArt_Type value) { - return ::google::protobuf::internal::NameOfEnum( - AudioCollectionRequest_GetCoverArt_Type_descriptor(), value); -} -inline bool AudioCollectionRequest_GetCoverArt_Type_Parse( - const ::std::string& name, AudioCollectionRequest_GetCoverArt_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - AudioCollectionRequest_GetCoverArt_Type_descriptor(), name, value); -} -enum AudioCollectionRequest_Type { - AudioCollectionRequest_Type_TypeGetRevision = 1, - AudioCollectionRequest_Type_TypeGetGenreList = 2, - AudioCollectionRequest_Type_TypeGetArtistList = 3, - AudioCollectionRequest_Type_TypeGetReleaseList = 4, - AudioCollectionRequest_Type_TypeGetTrackList = 5, - AudioCollectionRequest_Type_TypeGetCoverArt = 6 -}; -bool AudioCollectionRequest_Type_IsValid(int value); -const AudioCollectionRequest_Type AudioCollectionRequest_Type_Type_MIN = AudioCollectionRequest_Type_TypeGetRevision; -const AudioCollectionRequest_Type AudioCollectionRequest_Type_Type_MAX = AudioCollectionRequest_Type_TypeGetCoverArt; -const int AudioCollectionRequest_Type_Type_ARRAYSIZE = AudioCollectionRequest_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_Type_descriptor(); -inline const ::std::string& AudioCollectionRequest_Type_Name(AudioCollectionRequest_Type value) { - return ::google::protobuf::internal::NameOfEnum( - AudioCollectionRequest_Type_descriptor(), value); -} -inline bool AudioCollectionRequest_Type_Parse( - const ::std::string& name, AudioCollectionRequest_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - AudioCollectionRequest_Type_descriptor(), name, value); -} -enum AudioCollectionResponse_Type { - AudioCollectionResponse_Type_TypeRevision = 1, - AudioCollectionResponse_Type_TypeGenreList = 2, - AudioCollectionResponse_Type_TypeArtistList = 3, - AudioCollectionResponse_Type_TypeReleaseList = 4, - AudioCollectionResponse_Type_TypeTrackList = 5, - AudioCollectionResponse_Type_TypeCoverArt = 6 -}; -bool AudioCollectionResponse_Type_IsValid(int value); -const AudioCollectionResponse_Type AudioCollectionResponse_Type_Type_MIN = AudioCollectionResponse_Type_TypeRevision; -const AudioCollectionResponse_Type AudioCollectionResponse_Type_Type_MAX = AudioCollectionResponse_Type_TypeCoverArt; -const int AudioCollectionResponse_Type_Type_ARRAYSIZE = AudioCollectionResponse_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* AudioCollectionResponse_Type_descriptor(); -inline const ::std::string& AudioCollectionResponse_Type_Name(AudioCollectionResponse_Type value) { - return ::google::protobuf::internal::NameOfEnum( - AudioCollectionResponse_Type_descriptor(), value); -} -inline bool AudioCollectionResponse_Type_Parse( - const ::std::string& name, AudioCollectionResponse_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - AudioCollectionResponse_Type_descriptor(), name, value); -} -// =================================================================== - -class AudioCollectionRequest_BatchParameter : public ::google::protobuf::Message { - public: - AudioCollectionRequest_BatchParameter(); - virtual ~AudioCollectionRequest_BatchParameter(); - - AudioCollectionRequest_BatchParameter(const AudioCollectionRequest_BatchParameter& from); - - inline AudioCollectionRequest_BatchParameter& operator=(const AudioCollectionRequest_BatchParameter& 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 AudioCollectionRequest_BatchParameter& default_instance(); - - void Swap(AudioCollectionRequest_BatchParameter* other); - - // implements Message ---------------------------------------------- - - AudioCollectionRequest_BatchParameter* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionRequest_BatchParameter& from); - void MergeFrom(const AudioCollectionRequest_BatchParameter& 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 uint32 offset = 1; - inline bool has_offset() const; - inline void clear_offset(); - static const int kOffsetFieldNumber = 1; - inline ::google::protobuf::uint32 offset() const; - inline void set_offset(::google::protobuf::uint32 value); - - // required uint32 size = 2; - inline bool has_size() const; - inline void clear_size(); - static const int kSizeFieldNumber = 2; - inline ::google::protobuf::uint32 size() const; - inline void set_size(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.BatchParameter) - private: - inline void set_has_offset(); - inline void clear_has_offset(); - inline void set_has_size(); - inline void clear_has_size(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 offset_; - ::google::protobuf::uint32 size_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionRequest_BatchParameter* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionRequest_GetRevision : public ::google::protobuf::Message { - public: - AudioCollectionRequest_GetRevision(); - virtual ~AudioCollectionRequest_GetRevision(); - - AudioCollectionRequest_GetRevision(const AudioCollectionRequest_GetRevision& from); - - inline AudioCollectionRequest_GetRevision& operator=(const AudioCollectionRequest_GetRevision& 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 AudioCollectionRequest_GetRevision& default_instance(); - - void Swap(AudioCollectionRequest_GetRevision* other); - - // implements Message ---------------------------------------------- - - AudioCollectionRequest_GetRevision* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionRequest_GetRevision& from); - void MergeFrom(const AudioCollectionRequest_GetRevision& 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetRevision) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[1]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionRequest_GetRevision* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionRequest_GetGenreList : public ::google::protobuf::Message { - public: - AudioCollectionRequest_GetGenreList(); - virtual ~AudioCollectionRequest_GetGenreList(); - - AudioCollectionRequest_GetGenreList(const AudioCollectionRequest_GetGenreList& from); - - inline AudioCollectionRequest_GetGenreList& operator=(const AudioCollectionRequest_GetGenreList& 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 AudioCollectionRequest_GetGenreList& default_instance(); - - void Swap(AudioCollectionRequest_GetGenreList* other); - - // implements Message ---------------------------------------------- - - AudioCollectionRequest_GetGenreList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionRequest_GetGenreList& from); - void MergeFrom(const AudioCollectionRequest_GetGenreList& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - inline bool has_batch_parameter() const; - inline void clear_batch_parameter(); - static const int kBatchParameterFieldNumber = 1; - inline const ::Remote::AudioCollectionRequest_BatchParameter& batch_parameter() const; - inline ::Remote::AudioCollectionRequest_BatchParameter* mutable_batch_parameter(); - inline ::Remote::AudioCollectionRequest_BatchParameter* release_batch_parameter(); - inline void set_allocated_batch_parameter(::Remote::AudioCollectionRequest_BatchParameter* batch_parameter); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetGenreList) - private: - inline void set_has_batch_parameter(); - inline void clear_has_batch_parameter(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::AudioCollectionRequest_BatchParameter* batch_parameter_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionRequest_GetGenreList* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionRequest_GetArtistList : public ::google::protobuf::Message { - public: - AudioCollectionRequest_GetArtistList(); - virtual ~AudioCollectionRequest_GetArtistList(); - - AudioCollectionRequest_GetArtistList(const AudioCollectionRequest_GetArtistList& from); - - inline AudioCollectionRequest_GetArtistList& operator=(const AudioCollectionRequest_GetArtistList& 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 AudioCollectionRequest_GetArtistList& default_instance(); - - void Swap(AudioCollectionRequest_GetArtistList* other); - - // implements Message ---------------------------------------------- - - AudioCollectionRequest_GetArtistList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionRequest_GetArtistList& from); - void MergeFrom(const AudioCollectionRequest_GetArtistList& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - inline bool has_batch_parameter() const; - inline void clear_batch_parameter(); - static const int kBatchParameterFieldNumber = 1; - inline const ::Remote::AudioCollectionRequest_BatchParameter& batch_parameter() const; - inline ::Remote::AudioCollectionRequest_BatchParameter* mutable_batch_parameter(); - inline ::Remote::AudioCollectionRequest_BatchParameter* release_batch_parameter(); - inline void set_allocated_batch_parameter(::Remote::AudioCollectionRequest_BatchParameter* batch_parameter); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetArtistList) - private: - inline void set_has_batch_parameter(); - inline void clear_has_batch_parameter(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::AudioCollectionRequest_BatchParameter* batch_parameter_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionRequest_GetArtistList* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionRequest_GetReleaseList : public ::google::protobuf::Message { - public: - AudioCollectionRequest_GetReleaseList(); - virtual ~AudioCollectionRequest_GetReleaseList(); - - AudioCollectionRequest_GetReleaseList(const AudioCollectionRequest_GetReleaseList& from); - - inline AudioCollectionRequest_GetReleaseList& operator=(const AudioCollectionRequest_GetReleaseList& 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 AudioCollectionRequest_GetReleaseList& default_instance(); - - void Swap(AudioCollectionRequest_GetReleaseList* other); - - // implements Message ---------------------------------------------- - - AudioCollectionRequest_GetReleaseList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionRequest_GetReleaseList& from); - void MergeFrom(const AudioCollectionRequest_GetReleaseList& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - inline bool has_batch_parameter() const; - inline void clear_batch_parameter(); - static const int kBatchParameterFieldNumber = 1; - inline const ::Remote::AudioCollectionRequest_BatchParameter& batch_parameter() const; - inline ::Remote::AudioCollectionRequest_BatchParameter* mutable_batch_parameter(); - inline ::Remote::AudioCollectionRequest_BatchParameter* release_batch_parameter(); - inline void set_allocated_batch_parameter(::Remote::AudioCollectionRequest_BatchParameter* batch_parameter); - - // repeated uint64 artist_id = 2; - inline int artist_id_size() const; - inline void clear_artist_id(); - static const int kArtistIdFieldNumber = 2; - inline ::google::protobuf::uint64 artist_id(int index) const; - inline void set_artist_id(int index, ::google::protobuf::uint64 value); - inline void add_artist_id(::google::protobuf::uint64 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& - artist_id() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* - mutable_artist_id(); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetReleaseList) - private: - inline void set_has_batch_parameter(); - inline void clear_has_batch_parameter(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::AudioCollectionRequest_BatchParameter* batch_parameter_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > artist_id_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionRequest_GetReleaseList* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionRequest_GetTrackList : public ::google::protobuf::Message { - public: - AudioCollectionRequest_GetTrackList(); - virtual ~AudioCollectionRequest_GetTrackList(); - - AudioCollectionRequest_GetTrackList(const AudioCollectionRequest_GetTrackList& from); - - inline AudioCollectionRequest_GetTrackList& operator=(const AudioCollectionRequest_GetTrackList& 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 AudioCollectionRequest_GetTrackList& default_instance(); - - void Swap(AudioCollectionRequest_GetTrackList* other); - - // implements Message ---------------------------------------------- - - AudioCollectionRequest_GetTrackList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionRequest_GetTrackList& from); - void MergeFrom(const AudioCollectionRequest_GetTrackList& from); - void Clear(); - bool IsInitialized() const; - - int ByteSize() const; - bool MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input); - void SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const; - ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const; - int GetCachedSize() const { return _cached_size_; } - private: - void SharedCtor(); - void SharedDtor(); - void SetCachedSize(int size) const; - public: - - ::google::protobuf::Metadata GetMetadata() const; - - // nested types ---------------------------------------------------- - - // accessors ------------------------------------------------------- - - // required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; - inline bool has_batch_parameter() const; - inline void clear_batch_parameter(); - static const int kBatchParameterFieldNumber = 1; - inline const ::Remote::AudioCollectionRequest_BatchParameter& batch_parameter() const; - inline ::Remote::AudioCollectionRequest_BatchParameter* mutable_batch_parameter(); - inline ::Remote::AudioCollectionRequest_BatchParameter* release_batch_parameter(); - inline void set_allocated_batch_parameter(::Remote::AudioCollectionRequest_BatchParameter* batch_parameter); - - // repeated uint64 artist_id = 2; - inline int artist_id_size() const; - inline void clear_artist_id(); - static const int kArtistIdFieldNumber = 2; - inline ::google::protobuf::uint64 artist_id(int index) const; - inline void set_artist_id(int index, ::google::protobuf::uint64 value); - inline void add_artist_id(::google::protobuf::uint64 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& - artist_id() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* - mutable_artist_id(); - - // repeated uint64 release_id = 3; - inline int release_id_size() const; - inline void clear_release_id(); - static const int kReleaseIdFieldNumber = 3; - inline ::google::protobuf::uint64 release_id(int index) const; - inline void set_release_id(int index, ::google::protobuf::uint64 value); - inline void add_release_id(::google::protobuf::uint64 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& - release_id() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* - mutable_release_id(); - - // repeated uint64 genre_id = 4; - inline int genre_id_size() const; - inline void clear_genre_id(); - static const int kGenreIdFieldNumber = 4; - inline ::google::protobuf::uint64 genre_id(int index) const; - inline void set_genre_id(int index, ::google::protobuf::uint64 value); - inline void add_genre_id(::google::protobuf::uint64 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& - genre_id() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* - mutable_genre_id(); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetTrackList) - private: - inline void set_has_batch_parameter(); - inline void clear_has_batch_parameter(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::AudioCollectionRequest_BatchParameter* batch_parameter_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > artist_id_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > release_id_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > genre_id_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionRequest_GetTrackList* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionRequest_GetCoverArt : public ::google::protobuf::Message { - public: - AudioCollectionRequest_GetCoverArt(); - virtual ~AudioCollectionRequest_GetCoverArt(); - - AudioCollectionRequest_GetCoverArt(const AudioCollectionRequest_GetCoverArt& from); - - inline AudioCollectionRequest_GetCoverArt& operator=(const AudioCollectionRequest_GetCoverArt& 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 AudioCollectionRequest_GetCoverArt& default_instance(); - - void Swap(AudioCollectionRequest_GetCoverArt* other); - - // implements Message ---------------------------------------------- - - AudioCollectionRequest_GetCoverArt* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionRequest_GetCoverArt& from); - void MergeFrom(const AudioCollectionRequest_GetCoverArt& 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 AudioCollectionRequest_GetCoverArt_Type Type; - static const Type TypeGetCoverArtRelease = AudioCollectionRequest_GetCoverArt_Type_TypeGetCoverArtRelease; - static const Type TypeGetCoverArtTrack = AudioCollectionRequest_GetCoverArt_Type_TypeGetCoverArtTrack; - static inline bool Type_IsValid(int value) { - return AudioCollectionRequest_GetCoverArt_Type_IsValid(value); - } - static const Type Type_MIN = - AudioCollectionRequest_GetCoverArt_Type_Type_MIN; - static const Type Type_MAX = - AudioCollectionRequest_GetCoverArt_Type_Type_MAX; - static const int Type_ARRAYSIZE = - AudioCollectionRequest_GetCoverArt_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return AudioCollectionRequest_GetCoverArt_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return AudioCollectionRequest_GetCoverArt_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return AudioCollectionRequest_GetCoverArt_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .Remote.AudioCollectionRequest.GetCoverArt.Type type = 1; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline ::Remote::AudioCollectionRequest_GetCoverArt_Type type() const; - inline void set_type(::Remote::AudioCollectionRequest_GetCoverArt_Type value); - - // optional uint64 release_id = 2; - inline bool has_release_id() const; - inline void clear_release_id(); - static const int kReleaseIdFieldNumber = 2; - inline ::google::protobuf::uint64 release_id() const; - inline void set_release_id(::google::protobuf::uint64 value); - - // optional uint64 track_id = 3; - inline bool has_track_id() const; - inline void clear_track_id(); - static const int kTrackIdFieldNumber = 3; - inline ::google::protobuf::uint64 track_id() const; - inline void set_track_id(::google::protobuf::uint64 value); - - // required uint32 size = 4; - inline bool has_size() const; - inline void clear_size(); - static const int kSizeFieldNumber = 4; - inline ::google::protobuf::uint32 size() const; - inline void set_size(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetCoverArt) - private: - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_release_id(); - inline void clear_has_release_id(); - inline void set_has_track_id(); - inline void clear_has_track_id(); - inline void set_has_size(); - inline void clear_has_size(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint64 release_id_; - int type_; - ::google::protobuf::uint32 size_; - ::google::protobuf::uint64 track_id_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionRequest_GetCoverArt* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionRequest : public ::google::protobuf::Message { - public: - AudioCollectionRequest(); - virtual ~AudioCollectionRequest(); - - AudioCollectionRequest(const AudioCollectionRequest& from); - - inline AudioCollectionRequest& operator=(const AudioCollectionRequest& 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 AudioCollectionRequest& default_instance(); - - void Swap(AudioCollectionRequest* other); - - // implements Message ---------------------------------------------- - - AudioCollectionRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionRequest& from); - void MergeFrom(const AudioCollectionRequest& 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 AudioCollectionRequest_BatchParameter BatchParameter; - typedef AudioCollectionRequest_GetRevision GetRevision; - typedef AudioCollectionRequest_GetGenreList GetGenreList; - typedef AudioCollectionRequest_GetArtistList GetArtistList; - typedef AudioCollectionRequest_GetReleaseList GetReleaseList; - typedef AudioCollectionRequest_GetTrackList GetTrackList; - typedef AudioCollectionRequest_GetCoverArt GetCoverArt; - - typedef AudioCollectionRequest_Type Type; - static const Type TypeGetRevision = AudioCollectionRequest_Type_TypeGetRevision; - static const Type TypeGetGenreList = AudioCollectionRequest_Type_TypeGetGenreList; - static const Type TypeGetArtistList = AudioCollectionRequest_Type_TypeGetArtistList; - static const Type TypeGetReleaseList = AudioCollectionRequest_Type_TypeGetReleaseList; - static const Type TypeGetTrackList = AudioCollectionRequest_Type_TypeGetTrackList; - static const Type TypeGetCoverArt = AudioCollectionRequest_Type_TypeGetCoverArt; - static inline bool Type_IsValid(int value) { - return AudioCollectionRequest_Type_IsValid(value); - } - static const Type Type_MIN = - AudioCollectionRequest_Type_Type_MIN; - static const Type Type_MAX = - AudioCollectionRequest_Type_Type_MAX; - static const int Type_ARRAYSIZE = - AudioCollectionRequest_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return AudioCollectionRequest_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return AudioCollectionRequest_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return AudioCollectionRequest_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .Remote.AudioCollectionRequest.Type type = 1; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline ::Remote::AudioCollectionRequest_Type type() const; - inline void set_type(::Remote::AudioCollectionRequest_Type value); - - // optional .Remote.AudioCollectionRequest.GetRevision get_revision = 2; - inline bool has_get_revision() const; - inline void clear_get_revision(); - static const int kGetRevisionFieldNumber = 2; - inline const ::Remote::AudioCollectionRequest_GetRevision& get_revision() const; - inline ::Remote::AudioCollectionRequest_GetRevision* mutable_get_revision(); - inline ::Remote::AudioCollectionRequest_GetRevision* release_get_revision(); - inline void set_allocated_get_revision(::Remote::AudioCollectionRequest_GetRevision* get_revision); - - // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 3; - inline bool has_get_genres() const; - inline void clear_get_genres(); - static const int kGetGenresFieldNumber = 3; - inline const ::Remote::AudioCollectionRequest_GetGenreList& get_genres() const; - inline ::Remote::AudioCollectionRequest_GetGenreList* mutable_get_genres(); - inline ::Remote::AudioCollectionRequest_GetGenreList* release_get_genres(); - inline void set_allocated_get_genres(::Remote::AudioCollectionRequest_GetGenreList* get_genres); - - // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 4; - inline bool has_get_artists() const; - inline void clear_get_artists(); - static const int kGetArtistsFieldNumber = 4; - inline const ::Remote::AudioCollectionRequest_GetArtistList& get_artists() const; - inline ::Remote::AudioCollectionRequest_GetArtistList* mutable_get_artists(); - inline ::Remote::AudioCollectionRequest_GetArtistList* release_get_artists(); - inline void set_allocated_get_artists(::Remote::AudioCollectionRequest_GetArtistList* get_artists); - - // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 5; - inline bool has_get_releases() const; - inline void clear_get_releases(); - static const int kGetReleasesFieldNumber = 5; - inline const ::Remote::AudioCollectionRequest_GetReleaseList& get_releases() const; - inline ::Remote::AudioCollectionRequest_GetReleaseList* mutable_get_releases(); - inline ::Remote::AudioCollectionRequest_GetReleaseList* release_get_releases(); - inline void set_allocated_get_releases(::Remote::AudioCollectionRequest_GetReleaseList* get_releases); - - // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 6; - inline bool has_get_tracks() const; - inline void clear_get_tracks(); - static const int kGetTracksFieldNumber = 6; - inline const ::Remote::AudioCollectionRequest_GetTrackList& get_tracks() const; - inline ::Remote::AudioCollectionRequest_GetTrackList* mutable_get_tracks(); - inline ::Remote::AudioCollectionRequest_GetTrackList* release_get_tracks(); - inline void set_allocated_get_tracks(::Remote::AudioCollectionRequest_GetTrackList* get_tracks); - - // optional .Remote.AudioCollectionRequest.GetCoverArt get_cover_art = 7; - inline bool has_get_cover_art() const; - inline void clear_get_cover_art(); - static const int kGetCoverArtFieldNumber = 7; - inline const ::Remote::AudioCollectionRequest_GetCoverArt& get_cover_art() const; - inline ::Remote::AudioCollectionRequest_GetCoverArt* mutable_get_cover_art(); - inline ::Remote::AudioCollectionRequest_GetCoverArt* release_get_cover_art(); - inline void set_allocated_get_cover_art(::Remote::AudioCollectionRequest_GetCoverArt* get_cover_art); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest) - private: - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_get_revision(); - inline void clear_has_get_revision(); - inline void set_has_get_genres(); - inline void clear_has_get_genres(); - inline void set_has_get_artists(); - inline void clear_has_get_artists(); - inline void set_has_get_releases(); - inline void clear_has_get_releases(); - inline void set_has_get_tracks(); - inline void clear_has_get_tracks(); - inline void set_has_get_cover_art(); - inline void clear_has_get_cover_art(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::AudioCollectionRequest_GetRevision* get_revision_; - ::Remote::AudioCollectionRequest_GetGenreList* get_genres_; - ::Remote::AudioCollectionRequest_GetArtistList* get_artists_; - ::Remote::AudioCollectionRequest_GetReleaseList* get_releases_; - ::Remote::AudioCollectionRequest_GetTrackList* get_tracks_; - ::Remote::AudioCollectionRequest_GetCoverArt* get_cover_art_; - int type_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionRequest* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_Revision : public ::google::protobuf::Message { - public: - AudioCollectionResponse_Revision(); - virtual ~AudioCollectionResponse_Revision(); - - AudioCollectionResponse_Revision(const AudioCollectionResponse_Revision& from); - - inline AudioCollectionResponse_Revision& operator=(const AudioCollectionResponse_Revision& 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 AudioCollectionResponse_Revision& default_instance(); - - void Swap(AudioCollectionResponse_Revision* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_Revision* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_Revision& from); - void MergeFrom(const AudioCollectionResponse_Revision& 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 rev = 1; - inline bool has_rev() const; - inline void clear_rev(); - static const int kRevFieldNumber = 1; - inline const ::std::string& rev() const; - inline void set_rev(const ::std::string& value); - inline void set_rev(const char* value); - inline void set_rev(const char* value, size_t size); - inline ::std::string* mutable_rev(); - inline ::std::string* release_rev(); - inline void set_allocated_rev(::std::string* rev); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Revision) - private: - inline void set_has_rev(); - inline void clear_has_rev(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* rev_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_Revision* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_GenreList : public ::google::protobuf::Message { - public: - AudioCollectionResponse_GenreList(); - virtual ~AudioCollectionResponse_GenreList(); - - AudioCollectionResponse_GenreList(const AudioCollectionResponse_GenreList& from); - - inline AudioCollectionResponse_GenreList& operator=(const AudioCollectionResponse_GenreList& 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 AudioCollectionResponse_GenreList& default_instance(); - - void Swap(AudioCollectionResponse_GenreList* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_GenreList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_GenreList& from); - void MergeFrom(const AudioCollectionResponse_GenreList& 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 ------------------------------------------------------- - - // repeated .Remote.AudioCollectionResponse.Genre genres = 2; - inline int genres_size() const; - inline void clear_genres(); - static const int kGenresFieldNumber = 2; - inline const ::Remote::AudioCollectionResponse_Genre& genres(int index) const; - inline ::Remote::AudioCollectionResponse_Genre* mutable_genres(int index); - inline ::Remote::AudioCollectionResponse_Genre* add_genres(); - inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre >& - genres() const; - inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre >* - mutable_genres(); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.GenreList) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre > genres_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_GenreList* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_ArtistList : public ::google::protobuf::Message { - public: - AudioCollectionResponse_ArtistList(); - virtual ~AudioCollectionResponse_ArtistList(); - - AudioCollectionResponse_ArtistList(const AudioCollectionResponse_ArtistList& from); - - inline AudioCollectionResponse_ArtistList& operator=(const AudioCollectionResponse_ArtistList& 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 AudioCollectionResponse_ArtistList& default_instance(); - - void Swap(AudioCollectionResponse_ArtistList* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_ArtistList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_ArtistList& from); - void MergeFrom(const AudioCollectionResponse_ArtistList& 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 ------------------------------------------------------- - - // repeated .Remote.AudioCollectionResponse.Artist artists = 2; - inline int artists_size() const; - inline void clear_artists(); - static const int kArtistsFieldNumber = 2; - inline const ::Remote::AudioCollectionResponse_Artist& artists(int index) const; - inline ::Remote::AudioCollectionResponse_Artist* mutable_artists(int index); - inline ::Remote::AudioCollectionResponse_Artist* add_artists(); - inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist >& - artists() const; - inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist >* - mutable_artists(); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.ArtistList) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist > artists_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_ArtistList* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_ReleaseList : public ::google::protobuf::Message { - public: - AudioCollectionResponse_ReleaseList(); - virtual ~AudioCollectionResponse_ReleaseList(); - - AudioCollectionResponse_ReleaseList(const AudioCollectionResponse_ReleaseList& from); - - inline AudioCollectionResponse_ReleaseList& operator=(const AudioCollectionResponse_ReleaseList& 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 AudioCollectionResponse_ReleaseList& default_instance(); - - void Swap(AudioCollectionResponse_ReleaseList* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_ReleaseList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_ReleaseList& from); - void MergeFrom(const AudioCollectionResponse_ReleaseList& 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 ------------------------------------------------------- - - // repeated .Remote.AudioCollectionResponse.Release releases = 2; - inline int releases_size() const; - inline void clear_releases(); - static const int kReleasesFieldNumber = 2; - inline const ::Remote::AudioCollectionResponse_Release& releases(int index) const; - inline ::Remote::AudioCollectionResponse_Release* mutable_releases(int index); - inline ::Remote::AudioCollectionResponse_Release* add_releases(); - inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release >& - releases() const; - inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release >* - mutable_releases(); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.ReleaseList) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release > releases_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_ReleaseList* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_TrackList : public ::google::protobuf::Message { - public: - AudioCollectionResponse_TrackList(); - virtual ~AudioCollectionResponse_TrackList(); - - AudioCollectionResponse_TrackList(const AudioCollectionResponse_TrackList& from); - - inline AudioCollectionResponse_TrackList& operator=(const AudioCollectionResponse_TrackList& 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 AudioCollectionResponse_TrackList& default_instance(); - - void Swap(AudioCollectionResponse_TrackList* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_TrackList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_TrackList& from); - void MergeFrom(const AudioCollectionResponse_TrackList& 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 ------------------------------------------------------- - - // repeated .Remote.AudioCollectionResponse.Track tracks = 2; - inline int tracks_size() const; - inline void clear_tracks(); - static const int kTracksFieldNumber = 2; - inline const ::Remote::AudioCollectionResponse_Track& tracks(int index) const; - inline ::Remote::AudioCollectionResponse_Track* mutable_tracks(int index); - inline ::Remote::AudioCollectionResponse_Track* add_tracks(); - inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track >& - tracks() const; - inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track >* - mutable_tracks(); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.TrackList) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track > tracks_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_TrackList* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_CoverArt : public ::google::protobuf::Message { - public: - AudioCollectionResponse_CoverArt(); - virtual ~AudioCollectionResponse_CoverArt(); - - AudioCollectionResponse_CoverArt(const AudioCollectionResponse_CoverArt& from); - - inline AudioCollectionResponse_CoverArt& operator=(const AudioCollectionResponse_CoverArt& 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 AudioCollectionResponse_CoverArt& default_instance(); - - void Swap(AudioCollectionResponse_CoverArt* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_CoverArt* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_CoverArt& from); - void MergeFrom(const AudioCollectionResponse_CoverArt& 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 ------------------------------------------------------- - - // optional string mime_type = 1; - inline bool has_mime_type() const; - inline void clear_mime_type(); - static const int kMimeTypeFieldNumber = 1; - inline const ::std::string& mime_type() const; - inline void set_mime_type(const ::std::string& value); - inline void set_mime_type(const char* value); - inline void set_mime_type(const char* value, size_t size); - inline ::std::string* mutable_mime_type(); - inline ::std::string* release_mime_type(); - inline void set_allocated_mime_type(::std::string* mime_type); - - // required bytes data = 2; - inline bool has_data() const; - inline void clear_data(); - static const int kDataFieldNumber = 2; - inline const ::std::string& data() const; - inline void set_data(const ::std::string& value); - inline void set_data(const char* value); - inline void set_data(const void* value, size_t size); - inline ::std::string* mutable_data(); - inline ::std::string* release_data(); - inline void set_allocated_data(::std::string* data); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.CoverArt) - private: - inline void set_has_mime_type(); - inline void clear_has_mime_type(); - inline void set_has_data(); - inline void clear_has_data(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* mime_type_; - ::std::string* data_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_CoverArt* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_Genre : public ::google::protobuf::Message { - public: - AudioCollectionResponse_Genre(); - virtual ~AudioCollectionResponse_Genre(); - - AudioCollectionResponse_Genre(const AudioCollectionResponse_Genre& from); - - inline AudioCollectionResponse_Genre& operator=(const AudioCollectionResponse_Genre& 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 AudioCollectionResponse_Genre& default_instance(); - - void Swap(AudioCollectionResponse_Genre* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_Genre* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_Genre& from); - void MergeFrom(const AudioCollectionResponse_Genre& 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 uint64 id = 1; - inline bool has_id() const; - inline void clear_id(); - static const int kIdFieldNumber = 1; - inline ::google::protobuf::uint64 id() const; - inline void set_id(::google::protobuf::uint64 value); - - // required string name = 2; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 2; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Genre) - private: - inline void set_has_id(); - inline void clear_has_id(); - inline void set_has_name(); - inline void clear_has_name(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint64 id_; - ::std::string* name_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_Genre* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_Artist : public ::google::protobuf::Message { - public: - AudioCollectionResponse_Artist(); - virtual ~AudioCollectionResponse_Artist(); - - AudioCollectionResponse_Artist(const AudioCollectionResponse_Artist& from); - - inline AudioCollectionResponse_Artist& operator=(const AudioCollectionResponse_Artist& 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 AudioCollectionResponse_Artist& default_instance(); - - void Swap(AudioCollectionResponse_Artist* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_Artist* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_Artist& from); - void MergeFrom(const AudioCollectionResponse_Artist& 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 uint64 id = 1; - inline bool has_id() const; - inline void clear_id(); - static const int kIdFieldNumber = 1; - inline ::google::protobuf::uint64 id() const; - inline void set_id(::google::protobuf::uint64 value); - - // required string name = 2; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 2; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Artist) - private: - inline void set_has_id(); - inline void clear_has_id(); - inline void set_has_name(); - inline void clear_has_name(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint64 id_; - ::std::string* name_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_Artist* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_Release : public ::google::protobuf::Message { - public: - AudioCollectionResponse_Release(); - virtual ~AudioCollectionResponse_Release(); - - AudioCollectionResponse_Release(const AudioCollectionResponse_Release& from); - - inline AudioCollectionResponse_Release& operator=(const AudioCollectionResponse_Release& 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 AudioCollectionResponse_Release& default_instance(); - - void Swap(AudioCollectionResponse_Release* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_Release* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_Release& from); - void MergeFrom(const AudioCollectionResponse_Release& 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 uint64 id = 1; - inline bool has_id() const; - inline void clear_id(); - static const int kIdFieldNumber = 1; - inline ::google::protobuf::uint64 id() const; - inline void set_id(::google::protobuf::uint64 value); - - // required string name = 2; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 2; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Release) - private: - inline void set_has_id(); - inline void clear_has_id(); - inline void set_has_name(); - inline void clear_has_name(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint64 id_; - ::std::string* name_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_Release* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse_Track : public ::google::protobuf::Message { - public: - AudioCollectionResponse_Track(); - virtual ~AudioCollectionResponse_Track(); - - AudioCollectionResponse_Track(const AudioCollectionResponse_Track& from); - - inline AudioCollectionResponse_Track& operator=(const AudioCollectionResponse_Track& 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 AudioCollectionResponse_Track& default_instance(); - - void Swap(AudioCollectionResponse_Track* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse_Track* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse_Track& from); - void MergeFrom(const AudioCollectionResponse_Track& 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 uint64 id = 1; - inline bool has_id() const; - inline void clear_id(); - static const int kIdFieldNumber = 1; - inline ::google::protobuf::uint64 id() const; - inline void set_id(::google::protobuf::uint64 value); - - // required uint64 artist_id = 2; - inline bool has_artist_id() const; - inline void clear_artist_id(); - static const int kArtistIdFieldNumber = 2; - inline ::google::protobuf::uint64 artist_id() const; - inline void set_artist_id(::google::protobuf::uint64 value); - - // required uint64 release_id = 3; - inline bool has_release_id() const; - inline void clear_release_id(); - static const int kReleaseIdFieldNumber = 3; - inline ::google::protobuf::uint64 release_id() const; - inline void set_release_id(::google::protobuf::uint64 value); - - // repeated uint64 genre_id = 4; - inline int genre_id_size() const; - inline void clear_genre_id(); - static const int kGenreIdFieldNumber = 4; - inline ::google::protobuf::uint64 genre_id(int index) const; - inline void set_genre_id(int index, ::google::protobuf::uint64 value); - inline void add_genre_id(::google::protobuf::uint64 value); - inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& - genre_id() const; - inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* - mutable_genre_id(); - - // optional uint32 disc_number = 5; - inline bool has_disc_number() const; - inline void clear_disc_number(); - static const int kDiscNumberFieldNumber = 5; - inline ::google::protobuf::uint32 disc_number() const; - inline void set_disc_number(::google::protobuf::uint32 value); - - // optional uint32 track_number = 6; - inline bool has_track_number() const; - inline void clear_track_number(); - static const int kTrackNumberFieldNumber = 6; - inline ::google::protobuf::uint32 track_number() const; - inline void set_track_number(::google::protobuf::uint32 value); - - // required string name = 7; - inline bool has_name() const; - inline void clear_name(); - static const int kNameFieldNumber = 7; - inline const ::std::string& name() const; - inline void set_name(const ::std::string& value); - inline void set_name(const char* value); - inline void set_name(const char* value, size_t size); - inline ::std::string* mutable_name(); - inline ::std::string* release_name(); - inline void set_allocated_name(::std::string* name); - - // required uint32 duration_secs = 8; - inline bool has_duration_secs() const; - inline void clear_duration_secs(); - static const int kDurationSecsFieldNumber = 8; - inline ::google::protobuf::uint32 duration_secs() const; - inline void set_duration_secs(::google::protobuf::uint32 value); - - // optional string release_date = 9; - inline bool has_release_date() const; - inline void clear_release_date(); - static const int kReleaseDateFieldNumber = 9; - inline const ::std::string& release_date() const; - inline void set_release_date(const ::std::string& value); - inline void set_release_date(const char* value); - inline void set_release_date(const char* value, size_t size); - inline ::std::string* mutable_release_date(); - inline ::std::string* release_release_date(); - inline void set_allocated_release_date(::std::string* release_date); - - // optional string original_release_date = 10; - inline bool has_original_release_date() const; - inline void clear_original_release_date(); - static const int kOriginalReleaseDateFieldNumber = 10; - inline const ::std::string& original_release_date() const; - inline void set_original_release_date(const ::std::string& value); - inline void set_original_release_date(const char* value); - inline void set_original_release_date(const char* value, size_t size); - inline ::std::string* mutable_original_release_date(); - inline ::std::string* release_original_release_date(); - inline void set_allocated_original_release_date(::std::string* original_release_date); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Track) - private: - inline void set_has_id(); - inline void clear_has_id(); - inline void set_has_artist_id(); - inline void clear_has_artist_id(); - inline void set_has_release_id(); - inline void clear_has_release_id(); - inline void set_has_disc_number(); - inline void clear_has_disc_number(); - inline void set_has_track_number(); - inline void clear_has_track_number(); - inline void set_has_name(); - inline void clear_has_name(); - inline void set_has_duration_secs(); - inline void clear_has_duration_secs(); - inline void set_has_release_date(); - inline void clear_has_release_date(); - inline void set_has_original_release_date(); - inline void clear_has_original_release_date(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint64 id_; - ::google::protobuf::uint64 artist_id_; - ::google::protobuf::uint64 release_id_; - ::google::protobuf::RepeatedField< ::google::protobuf::uint64 > genre_id_; - ::google::protobuf::uint32 disc_number_; - ::google::protobuf::uint32 track_number_; - ::std::string* name_; - ::std::string* release_date_; - ::std::string* original_release_date_; - ::google::protobuf::uint32 duration_secs_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(10 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse_Track* default_instance_; -}; -// ------------------------------------------------------------------- - -class AudioCollectionResponse : public ::google::protobuf::Message { - public: - AudioCollectionResponse(); - virtual ~AudioCollectionResponse(); - - AudioCollectionResponse(const AudioCollectionResponse& from); - - inline AudioCollectionResponse& operator=(const AudioCollectionResponse& 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 AudioCollectionResponse& default_instance(); - - void Swap(AudioCollectionResponse* other); - - // implements Message ---------------------------------------------- - - AudioCollectionResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const AudioCollectionResponse& from); - void MergeFrom(const AudioCollectionResponse& 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 AudioCollectionResponse_Revision Revision; - typedef AudioCollectionResponse_GenreList GenreList; - typedef AudioCollectionResponse_ArtistList ArtistList; - typedef AudioCollectionResponse_ReleaseList ReleaseList; - typedef AudioCollectionResponse_TrackList TrackList; - typedef AudioCollectionResponse_CoverArt CoverArt; - typedef AudioCollectionResponse_Genre Genre; - typedef AudioCollectionResponse_Artist Artist; - typedef AudioCollectionResponse_Release Release; - typedef AudioCollectionResponse_Track Track; - - typedef AudioCollectionResponse_Type Type; - static const Type TypeRevision = AudioCollectionResponse_Type_TypeRevision; - static const Type TypeGenreList = AudioCollectionResponse_Type_TypeGenreList; - static const Type TypeArtistList = AudioCollectionResponse_Type_TypeArtistList; - static const Type TypeReleaseList = AudioCollectionResponse_Type_TypeReleaseList; - static const Type TypeTrackList = AudioCollectionResponse_Type_TypeTrackList; - static const Type TypeCoverArt = AudioCollectionResponse_Type_TypeCoverArt; - static inline bool Type_IsValid(int value) { - return AudioCollectionResponse_Type_IsValid(value); - } - static const Type Type_MIN = - AudioCollectionResponse_Type_Type_MIN; - static const Type Type_MAX = - AudioCollectionResponse_Type_Type_MAX; - static const int Type_ARRAYSIZE = - AudioCollectionResponse_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return AudioCollectionResponse_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return AudioCollectionResponse_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return AudioCollectionResponse_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .Remote.AudioCollectionResponse.Type type = 1; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline ::Remote::AudioCollectionResponse_Type type() const; - inline void set_type(::Remote::AudioCollectionResponse_Type value); - - // optional .Remote.AudioCollectionResponse.Revision revision = 2; - inline bool has_revision() const; - inline void clear_revision(); - static const int kRevisionFieldNumber = 2; - inline const ::Remote::AudioCollectionResponse_Revision& revision() const; - inline ::Remote::AudioCollectionResponse_Revision* mutable_revision(); - inline ::Remote::AudioCollectionResponse_Revision* release_revision(); - inline void set_allocated_revision(::Remote::AudioCollectionResponse_Revision* revision); - - // optional .Remote.AudioCollectionResponse.GenreList genre_list = 3; - inline bool has_genre_list() const; - inline void clear_genre_list(); - static const int kGenreListFieldNumber = 3; - inline const ::Remote::AudioCollectionResponse_GenreList& genre_list() const; - inline ::Remote::AudioCollectionResponse_GenreList* mutable_genre_list(); - inline ::Remote::AudioCollectionResponse_GenreList* release_genre_list(); - inline void set_allocated_genre_list(::Remote::AudioCollectionResponse_GenreList* genre_list); - - // optional .Remote.AudioCollectionResponse.ArtistList artist_list = 4; - inline bool has_artist_list() const; - inline void clear_artist_list(); - static const int kArtistListFieldNumber = 4; - inline const ::Remote::AudioCollectionResponse_ArtistList& artist_list() const; - inline ::Remote::AudioCollectionResponse_ArtistList* mutable_artist_list(); - inline ::Remote::AudioCollectionResponse_ArtistList* release_artist_list(); - inline void set_allocated_artist_list(::Remote::AudioCollectionResponse_ArtistList* artist_list); - - // optional .Remote.AudioCollectionResponse.ReleaseList release_list = 5; - inline bool has_release_list() const; - inline void clear_release_list(); - static const int kReleaseListFieldNumber = 5; - inline const ::Remote::AudioCollectionResponse_ReleaseList& release_list() const; - inline ::Remote::AudioCollectionResponse_ReleaseList* mutable_release_list(); - inline ::Remote::AudioCollectionResponse_ReleaseList* release_release_list(); - inline void set_allocated_release_list(::Remote::AudioCollectionResponse_ReleaseList* release_list); - - // optional .Remote.AudioCollectionResponse.TrackList track_list = 6; - inline bool has_track_list() const; - inline void clear_track_list(); - static const int kTrackListFieldNumber = 6; - inline const ::Remote::AudioCollectionResponse_TrackList& track_list() const; - inline ::Remote::AudioCollectionResponse_TrackList* mutable_track_list(); - inline ::Remote::AudioCollectionResponse_TrackList* release_track_list(); - inline void set_allocated_track_list(::Remote::AudioCollectionResponse_TrackList* track_list); - - // repeated .Remote.AudioCollectionResponse.CoverArt cover_art = 7; - inline int cover_art_size() const; - inline void clear_cover_art(); - static const int kCoverArtFieldNumber = 7; - inline const ::Remote::AudioCollectionResponse_CoverArt& cover_art(int index) const; - inline ::Remote::AudioCollectionResponse_CoverArt* mutable_cover_art(int index); - inline ::Remote::AudioCollectionResponse_CoverArt* add_cover_art(); - inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_CoverArt >& - cover_art() const; - inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_CoverArt >* - mutable_cover_art(); - - // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse) - private: - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_revision(); - inline void clear_has_revision(); - inline void set_has_genre_list(); - inline void clear_has_genre_list(); - inline void set_has_artist_list(); - inline void clear_has_artist_list(); - inline void set_has_release_list(); - inline void clear_has_release_list(); - inline void set_has_track_list(); - inline void clear_has_track_list(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::AudioCollectionResponse_Revision* revision_; - ::Remote::AudioCollectionResponse_GenreList* genre_list_; - ::Remote::AudioCollectionResponse_ArtistList* artist_list_; - ::Remote::AudioCollectionResponse_ReleaseList* release_list_; - ::Remote::AudioCollectionResponse_TrackList* track_list_; - ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_CoverArt > cover_art_; - int type_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static AudioCollectionResponse* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// AudioCollectionRequest_BatchParameter - -// required uint32 offset = 1; -inline bool AudioCollectionRequest_BatchParameter::has_offset() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionRequest_BatchParameter::set_has_offset() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionRequest_BatchParameter::clear_has_offset() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionRequest_BatchParameter::clear_offset() { - offset_ = 0u; - clear_has_offset(); -} -inline ::google::protobuf::uint32 AudioCollectionRequest_BatchParameter::offset() const { - return offset_; -} -inline void AudioCollectionRequest_BatchParameter::set_offset(::google::protobuf::uint32 value) { - set_has_offset(); - offset_ = value; -} - -// required uint32 size = 2; -inline bool AudioCollectionRequest_BatchParameter::has_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionRequest_BatchParameter::set_has_size() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionRequest_BatchParameter::clear_has_size() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionRequest_BatchParameter::clear_size() { - size_ = 0u; - clear_has_size(); -} -inline ::google::protobuf::uint32 AudioCollectionRequest_BatchParameter::size() const { - return size_; -} -inline void AudioCollectionRequest_BatchParameter::set_size(::google::protobuf::uint32 value) { - set_has_size(); - size_ = value; -} - -// ------------------------------------------------------------------- - -// AudioCollectionRequest_GetRevision - -// ------------------------------------------------------------------- - -// AudioCollectionRequest_GetGenreList - -// required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; -inline bool AudioCollectionRequest_GetGenreList::has_batch_parameter() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionRequest_GetGenreList::set_has_batch_parameter() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionRequest_GetGenreList::clear_has_batch_parameter() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionRequest_GetGenreList::clear_batch_parameter() { - if (batch_parameter_ != NULL) batch_parameter_->::Remote::AudioCollectionRequest_BatchParameter::Clear(); - clear_has_batch_parameter(); -} -inline const ::Remote::AudioCollectionRequest_BatchParameter& AudioCollectionRequest_GetGenreList::batch_parameter() const { - return batch_parameter_ != NULL ? *batch_parameter_ : *default_instance_->batch_parameter_; -} -inline ::Remote::AudioCollectionRequest_BatchParameter* AudioCollectionRequest_GetGenreList::mutable_batch_parameter() { - set_has_batch_parameter(); - if (batch_parameter_ == NULL) batch_parameter_ = new ::Remote::AudioCollectionRequest_BatchParameter; - return batch_parameter_; -} -inline ::Remote::AudioCollectionRequest_BatchParameter* AudioCollectionRequest_GetGenreList::release_batch_parameter() { - clear_has_batch_parameter(); - ::Remote::AudioCollectionRequest_BatchParameter* temp = batch_parameter_; - batch_parameter_ = NULL; - return temp; -} -inline void AudioCollectionRequest_GetGenreList::set_allocated_batch_parameter(::Remote::AudioCollectionRequest_BatchParameter* batch_parameter) { - delete batch_parameter_; - batch_parameter_ = batch_parameter; - if (batch_parameter) { - set_has_batch_parameter(); - } else { - clear_has_batch_parameter(); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionRequest_GetArtistList - -// required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; -inline bool AudioCollectionRequest_GetArtistList::has_batch_parameter() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionRequest_GetArtistList::set_has_batch_parameter() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionRequest_GetArtistList::clear_has_batch_parameter() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionRequest_GetArtistList::clear_batch_parameter() { - if (batch_parameter_ != NULL) batch_parameter_->::Remote::AudioCollectionRequest_BatchParameter::Clear(); - clear_has_batch_parameter(); -} -inline const ::Remote::AudioCollectionRequest_BatchParameter& AudioCollectionRequest_GetArtistList::batch_parameter() const { - return batch_parameter_ != NULL ? *batch_parameter_ : *default_instance_->batch_parameter_; -} -inline ::Remote::AudioCollectionRequest_BatchParameter* AudioCollectionRequest_GetArtistList::mutable_batch_parameter() { - set_has_batch_parameter(); - if (batch_parameter_ == NULL) batch_parameter_ = new ::Remote::AudioCollectionRequest_BatchParameter; - return batch_parameter_; -} -inline ::Remote::AudioCollectionRequest_BatchParameter* AudioCollectionRequest_GetArtistList::release_batch_parameter() { - clear_has_batch_parameter(); - ::Remote::AudioCollectionRequest_BatchParameter* temp = batch_parameter_; - batch_parameter_ = NULL; - return temp; -} -inline void AudioCollectionRequest_GetArtistList::set_allocated_batch_parameter(::Remote::AudioCollectionRequest_BatchParameter* batch_parameter) { - delete batch_parameter_; - batch_parameter_ = batch_parameter; - if (batch_parameter) { - set_has_batch_parameter(); - } else { - clear_has_batch_parameter(); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionRequest_GetReleaseList - -// required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; -inline bool AudioCollectionRequest_GetReleaseList::has_batch_parameter() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionRequest_GetReleaseList::set_has_batch_parameter() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionRequest_GetReleaseList::clear_has_batch_parameter() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionRequest_GetReleaseList::clear_batch_parameter() { - if (batch_parameter_ != NULL) batch_parameter_->::Remote::AudioCollectionRequest_BatchParameter::Clear(); - clear_has_batch_parameter(); -} -inline const ::Remote::AudioCollectionRequest_BatchParameter& AudioCollectionRequest_GetReleaseList::batch_parameter() const { - return batch_parameter_ != NULL ? *batch_parameter_ : *default_instance_->batch_parameter_; -} -inline ::Remote::AudioCollectionRequest_BatchParameter* AudioCollectionRequest_GetReleaseList::mutable_batch_parameter() { - set_has_batch_parameter(); - if (batch_parameter_ == NULL) batch_parameter_ = new ::Remote::AudioCollectionRequest_BatchParameter; - return batch_parameter_; -} -inline ::Remote::AudioCollectionRequest_BatchParameter* AudioCollectionRequest_GetReleaseList::release_batch_parameter() { - clear_has_batch_parameter(); - ::Remote::AudioCollectionRequest_BatchParameter* temp = batch_parameter_; - batch_parameter_ = NULL; - return temp; -} -inline void AudioCollectionRequest_GetReleaseList::set_allocated_batch_parameter(::Remote::AudioCollectionRequest_BatchParameter* batch_parameter) { - delete batch_parameter_; - batch_parameter_ = batch_parameter; - if (batch_parameter) { - set_has_batch_parameter(); - } else { - clear_has_batch_parameter(); - } -} - -// repeated uint64 artist_id = 2; -inline int AudioCollectionRequest_GetReleaseList::artist_id_size() const { - return artist_id_.size(); -} -inline void AudioCollectionRequest_GetReleaseList::clear_artist_id() { - artist_id_.Clear(); -} -inline ::google::protobuf::uint64 AudioCollectionRequest_GetReleaseList::artist_id(int index) const { - return artist_id_.Get(index); -} -inline void AudioCollectionRequest_GetReleaseList::set_artist_id(int index, ::google::protobuf::uint64 value) { - artist_id_.Set(index, value); -} -inline void AudioCollectionRequest_GetReleaseList::add_artist_id(::google::protobuf::uint64 value) { - artist_id_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& -AudioCollectionRequest_GetReleaseList::artist_id() const { - return artist_id_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* -AudioCollectionRequest_GetReleaseList::mutable_artist_id() { - return &artist_id_; -} - -// ------------------------------------------------------------------- - -// AudioCollectionRequest_GetTrackList - -// required .Remote.AudioCollectionRequest.BatchParameter batch_parameter = 1; -inline bool AudioCollectionRequest_GetTrackList::has_batch_parameter() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionRequest_GetTrackList::set_has_batch_parameter() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionRequest_GetTrackList::clear_has_batch_parameter() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionRequest_GetTrackList::clear_batch_parameter() { - if (batch_parameter_ != NULL) batch_parameter_->::Remote::AudioCollectionRequest_BatchParameter::Clear(); - clear_has_batch_parameter(); -} -inline const ::Remote::AudioCollectionRequest_BatchParameter& AudioCollectionRequest_GetTrackList::batch_parameter() const { - return batch_parameter_ != NULL ? *batch_parameter_ : *default_instance_->batch_parameter_; -} -inline ::Remote::AudioCollectionRequest_BatchParameter* AudioCollectionRequest_GetTrackList::mutable_batch_parameter() { - set_has_batch_parameter(); - if (batch_parameter_ == NULL) batch_parameter_ = new ::Remote::AudioCollectionRequest_BatchParameter; - return batch_parameter_; -} -inline ::Remote::AudioCollectionRequest_BatchParameter* AudioCollectionRequest_GetTrackList::release_batch_parameter() { - clear_has_batch_parameter(); - ::Remote::AudioCollectionRequest_BatchParameter* temp = batch_parameter_; - batch_parameter_ = NULL; - return temp; -} -inline void AudioCollectionRequest_GetTrackList::set_allocated_batch_parameter(::Remote::AudioCollectionRequest_BatchParameter* batch_parameter) { - delete batch_parameter_; - batch_parameter_ = batch_parameter; - if (batch_parameter) { - set_has_batch_parameter(); - } else { - clear_has_batch_parameter(); - } -} - -// repeated uint64 artist_id = 2; -inline int AudioCollectionRequest_GetTrackList::artist_id_size() const { - return artist_id_.size(); -} -inline void AudioCollectionRequest_GetTrackList::clear_artist_id() { - artist_id_.Clear(); -} -inline ::google::protobuf::uint64 AudioCollectionRequest_GetTrackList::artist_id(int index) const { - return artist_id_.Get(index); -} -inline void AudioCollectionRequest_GetTrackList::set_artist_id(int index, ::google::protobuf::uint64 value) { - artist_id_.Set(index, value); -} -inline void AudioCollectionRequest_GetTrackList::add_artist_id(::google::protobuf::uint64 value) { - artist_id_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& -AudioCollectionRequest_GetTrackList::artist_id() const { - return artist_id_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* -AudioCollectionRequest_GetTrackList::mutable_artist_id() { - return &artist_id_; -} - -// repeated uint64 release_id = 3; -inline int AudioCollectionRequest_GetTrackList::release_id_size() const { - return release_id_.size(); -} -inline void AudioCollectionRequest_GetTrackList::clear_release_id() { - release_id_.Clear(); -} -inline ::google::protobuf::uint64 AudioCollectionRequest_GetTrackList::release_id(int index) const { - return release_id_.Get(index); -} -inline void AudioCollectionRequest_GetTrackList::set_release_id(int index, ::google::protobuf::uint64 value) { - release_id_.Set(index, value); -} -inline void AudioCollectionRequest_GetTrackList::add_release_id(::google::protobuf::uint64 value) { - release_id_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& -AudioCollectionRequest_GetTrackList::release_id() const { - return release_id_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* -AudioCollectionRequest_GetTrackList::mutable_release_id() { - return &release_id_; -} - -// repeated uint64 genre_id = 4; -inline int AudioCollectionRequest_GetTrackList::genre_id_size() const { - return genre_id_.size(); -} -inline void AudioCollectionRequest_GetTrackList::clear_genre_id() { - genre_id_.Clear(); -} -inline ::google::protobuf::uint64 AudioCollectionRequest_GetTrackList::genre_id(int index) const { - return genre_id_.Get(index); -} -inline void AudioCollectionRequest_GetTrackList::set_genre_id(int index, ::google::protobuf::uint64 value) { - genre_id_.Set(index, value); -} -inline void AudioCollectionRequest_GetTrackList::add_genre_id(::google::protobuf::uint64 value) { - genre_id_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& -AudioCollectionRequest_GetTrackList::genre_id() const { - return genre_id_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* -AudioCollectionRequest_GetTrackList::mutable_genre_id() { - return &genre_id_; -} - -// ------------------------------------------------------------------- - -// AudioCollectionRequest_GetCoverArt - -// required .Remote.AudioCollectionRequest.GetCoverArt.Type type = 1; -inline bool AudioCollectionRequest_GetCoverArt::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionRequest_GetCoverArt::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionRequest_GetCoverArt::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionRequest_GetCoverArt::clear_type() { - type_ = 1; - clear_has_type(); -} -inline ::Remote::AudioCollectionRequest_GetCoverArt_Type AudioCollectionRequest_GetCoverArt::type() const { - return static_cast< ::Remote::AudioCollectionRequest_GetCoverArt_Type >(type_); -} -inline void AudioCollectionRequest_GetCoverArt::set_type(::Remote::AudioCollectionRequest_GetCoverArt_Type value) { - assert(::Remote::AudioCollectionRequest_GetCoverArt_Type_IsValid(value)); - set_has_type(); - type_ = value; -} - -// optional uint64 release_id = 2; -inline bool AudioCollectionRequest_GetCoverArt::has_release_id() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionRequest_GetCoverArt::set_has_release_id() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionRequest_GetCoverArt::clear_has_release_id() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionRequest_GetCoverArt::clear_release_id() { - release_id_ = GOOGLE_ULONGLONG(0); - clear_has_release_id(); -} -inline ::google::protobuf::uint64 AudioCollectionRequest_GetCoverArt::release_id() const { - return release_id_; -} -inline void AudioCollectionRequest_GetCoverArt::set_release_id(::google::protobuf::uint64 value) { - set_has_release_id(); - release_id_ = value; -} - -// optional uint64 track_id = 3; -inline bool AudioCollectionRequest_GetCoverArt::has_track_id() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AudioCollectionRequest_GetCoverArt::set_has_track_id() { - _has_bits_[0] |= 0x00000004u; -} -inline void AudioCollectionRequest_GetCoverArt::clear_has_track_id() { - _has_bits_[0] &= ~0x00000004u; -} -inline void AudioCollectionRequest_GetCoverArt::clear_track_id() { - track_id_ = GOOGLE_ULONGLONG(0); - clear_has_track_id(); -} -inline ::google::protobuf::uint64 AudioCollectionRequest_GetCoverArt::track_id() const { - return track_id_; -} -inline void AudioCollectionRequest_GetCoverArt::set_track_id(::google::protobuf::uint64 value) { - set_has_track_id(); - track_id_ = value; -} - -// required uint32 size = 4; -inline bool AudioCollectionRequest_GetCoverArt::has_size() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void AudioCollectionRequest_GetCoverArt::set_has_size() { - _has_bits_[0] |= 0x00000008u; -} -inline void AudioCollectionRequest_GetCoverArt::clear_has_size() { - _has_bits_[0] &= ~0x00000008u; -} -inline void AudioCollectionRequest_GetCoverArt::clear_size() { - size_ = 0u; - clear_has_size(); -} -inline ::google::protobuf::uint32 AudioCollectionRequest_GetCoverArt::size() const { - return size_; -} -inline void AudioCollectionRequest_GetCoverArt::set_size(::google::protobuf::uint32 value) { - set_has_size(); - size_ = value; -} - -// ------------------------------------------------------------------- - -// AudioCollectionRequest - -// required .Remote.AudioCollectionRequest.Type type = 1; -inline bool AudioCollectionRequest::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionRequest::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionRequest::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionRequest::clear_type() { - type_ = 1; - clear_has_type(); -} -inline ::Remote::AudioCollectionRequest_Type AudioCollectionRequest::type() const { - return static_cast< ::Remote::AudioCollectionRequest_Type >(type_); -} -inline void AudioCollectionRequest::set_type(::Remote::AudioCollectionRequest_Type value) { - assert(::Remote::AudioCollectionRequest_Type_IsValid(value)); - set_has_type(); - type_ = value; -} - -// optional .Remote.AudioCollectionRequest.GetRevision get_revision = 2; -inline bool AudioCollectionRequest::has_get_revision() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionRequest::set_has_get_revision() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionRequest::clear_has_get_revision() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionRequest::clear_get_revision() { - if (get_revision_ != NULL) get_revision_->::Remote::AudioCollectionRequest_GetRevision::Clear(); - clear_has_get_revision(); -} -inline const ::Remote::AudioCollectionRequest_GetRevision& AudioCollectionRequest::get_revision() const { - return get_revision_ != NULL ? *get_revision_ : *default_instance_->get_revision_; -} -inline ::Remote::AudioCollectionRequest_GetRevision* AudioCollectionRequest::mutable_get_revision() { - set_has_get_revision(); - if (get_revision_ == NULL) get_revision_ = new ::Remote::AudioCollectionRequest_GetRevision; - return get_revision_; -} -inline ::Remote::AudioCollectionRequest_GetRevision* AudioCollectionRequest::release_get_revision() { - clear_has_get_revision(); - ::Remote::AudioCollectionRequest_GetRevision* temp = get_revision_; - get_revision_ = NULL; - return temp; -} -inline void AudioCollectionRequest::set_allocated_get_revision(::Remote::AudioCollectionRequest_GetRevision* get_revision) { - delete get_revision_; - get_revision_ = get_revision; - if (get_revision) { - set_has_get_revision(); - } else { - clear_has_get_revision(); - } -} - -// optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 3; -inline bool AudioCollectionRequest::has_get_genres() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AudioCollectionRequest::set_has_get_genres() { - _has_bits_[0] |= 0x00000004u; -} -inline void AudioCollectionRequest::clear_has_get_genres() { - _has_bits_[0] &= ~0x00000004u; -} -inline void AudioCollectionRequest::clear_get_genres() { - if (get_genres_ != NULL) get_genres_->::Remote::AudioCollectionRequest_GetGenreList::Clear(); - clear_has_get_genres(); -} -inline const ::Remote::AudioCollectionRequest_GetGenreList& AudioCollectionRequest::get_genres() const { - return get_genres_ != NULL ? *get_genres_ : *default_instance_->get_genres_; -} -inline ::Remote::AudioCollectionRequest_GetGenreList* AudioCollectionRequest::mutable_get_genres() { - set_has_get_genres(); - if (get_genres_ == NULL) get_genres_ = new ::Remote::AudioCollectionRequest_GetGenreList; - return get_genres_; -} -inline ::Remote::AudioCollectionRequest_GetGenreList* AudioCollectionRequest::release_get_genres() { - clear_has_get_genres(); - ::Remote::AudioCollectionRequest_GetGenreList* temp = get_genres_; - get_genres_ = NULL; - return temp; -} -inline void AudioCollectionRequest::set_allocated_get_genres(::Remote::AudioCollectionRequest_GetGenreList* get_genres) { - delete get_genres_; - get_genres_ = get_genres; - if (get_genres) { - set_has_get_genres(); - } else { - clear_has_get_genres(); - } -} - -// optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 4; -inline bool AudioCollectionRequest::has_get_artists() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void AudioCollectionRequest::set_has_get_artists() { - _has_bits_[0] |= 0x00000008u; -} -inline void AudioCollectionRequest::clear_has_get_artists() { - _has_bits_[0] &= ~0x00000008u; -} -inline void AudioCollectionRequest::clear_get_artists() { - if (get_artists_ != NULL) get_artists_->::Remote::AudioCollectionRequest_GetArtistList::Clear(); - clear_has_get_artists(); -} -inline const ::Remote::AudioCollectionRequest_GetArtistList& AudioCollectionRequest::get_artists() const { - return get_artists_ != NULL ? *get_artists_ : *default_instance_->get_artists_; -} -inline ::Remote::AudioCollectionRequest_GetArtistList* AudioCollectionRequest::mutable_get_artists() { - set_has_get_artists(); - if (get_artists_ == NULL) get_artists_ = new ::Remote::AudioCollectionRequest_GetArtistList; - return get_artists_; -} -inline ::Remote::AudioCollectionRequest_GetArtistList* AudioCollectionRequest::release_get_artists() { - clear_has_get_artists(); - ::Remote::AudioCollectionRequest_GetArtistList* temp = get_artists_; - get_artists_ = NULL; - return temp; -} -inline void AudioCollectionRequest::set_allocated_get_artists(::Remote::AudioCollectionRequest_GetArtistList* get_artists) { - delete get_artists_; - get_artists_ = get_artists; - if (get_artists) { - set_has_get_artists(); - } else { - clear_has_get_artists(); - } -} - -// optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 5; -inline bool AudioCollectionRequest::has_get_releases() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void AudioCollectionRequest::set_has_get_releases() { - _has_bits_[0] |= 0x00000010u; -} -inline void AudioCollectionRequest::clear_has_get_releases() { - _has_bits_[0] &= ~0x00000010u; -} -inline void AudioCollectionRequest::clear_get_releases() { - if (get_releases_ != NULL) get_releases_->::Remote::AudioCollectionRequest_GetReleaseList::Clear(); - clear_has_get_releases(); -} -inline const ::Remote::AudioCollectionRequest_GetReleaseList& AudioCollectionRequest::get_releases() const { - return get_releases_ != NULL ? *get_releases_ : *default_instance_->get_releases_; -} -inline ::Remote::AudioCollectionRequest_GetReleaseList* AudioCollectionRequest::mutable_get_releases() { - set_has_get_releases(); - if (get_releases_ == NULL) get_releases_ = new ::Remote::AudioCollectionRequest_GetReleaseList; - return get_releases_; -} -inline ::Remote::AudioCollectionRequest_GetReleaseList* AudioCollectionRequest::release_get_releases() { - clear_has_get_releases(); - ::Remote::AudioCollectionRequest_GetReleaseList* temp = get_releases_; - get_releases_ = NULL; - return temp; -} -inline void AudioCollectionRequest::set_allocated_get_releases(::Remote::AudioCollectionRequest_GetReleaseList* get_releases) { - delete get_releases_; - get_releases_ = get_releases; - if (get_releases) { - set_has_get_releases(); - } else { - clear_has_get_releases(); - } -} - -// optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 6; -inline bool AudioCollectionRequest::has_get_tracks() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void AudioCollectionRequest::set_has_get_tracks() { - _has_bits_[0] |= 0x00000020u; -} -inline void AudioCollectionRequest::clear_has_get_tracks() { - _has_bits_[0] &= ~0x00000020u; -} -inline void AudioCollectionRequest::clear_get_tracks() { - if (get_tracks_ != NULL) get_tracks_->::Remote::AudioCollectionRequest_GetTrackList::Clear(); - clear_has_get_tracks(); -} -inline const ::Remote::AudioCollectionRequest_GetTrackList& AudioCollectionRequest::get_tracks() const { - return get_tracks_ != NULL ? *get_tracks_ : *default_instance_->get_tracks_; -} -inline ::Remote::AudioCollectionRequest_GetTrackList* AudioCollectionRequest::mutable_get_tracks() { - set_has_get_tracks(); - if (get_tracks_ == NULL) get_tracks_ = new ::Remote::AudioCollectionRequest_GetTrackList; - return get_tracks_; -} -inline ::Remote::AudioCollectionRequest_GetTrackList* AudioCollectionRequest::release_get_tracks() { - clear_has_get_tracks(); - ::Remote::AudioCollectionRequest_GetTrackList* temp = get_tracks_; - get_tracks_ = NULL; - return temp; -} -inline void AudioCollectionRequest::set_allocated_get_tracks(::Remote::AudioCollectionRequest_GetTrackList* get_tracks) { - delete get_tracks_; - get_tracks_ = get_tracks; - if (get_tracks) { - set_has_get_tracks(); - } else { - clear_has_get_tracks(); - } -} - -// optional .Remote.AudioCollectionRequest.GetCoverArt get_cover_art = 7; -inline bool AudioCollectionRequest::has_get_cover_art() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void AudioCollectionRequest::set_has_get_cover_art() { - _has_bits_[0] |= 0x00000040u; -} -inline void AudioCollectionRequest::clear_has_get_cover_art() { - _has_bits_[0] &= ~0x00000040u; -} -inline void AudioCollectionRequest::clear_get_cover_art() { - if (get_cover_art_ != NULL) get_cover_art_->::Remote::AudioCollectionRequest_GetCoverArt::Clear(); - clear_has_get_cover_art(); -} -inline const ::Remote::AudioCollectionRequest_GetCoverArt& AudioCollectionRequest::get_cover_art() const { - return get_cover_art_ != NULL ? *get_cover_art_ : *default_instance_->get_cover_art_; -} -inline ::Remote::AudioCollectionRequest_GetCoverArt* AudioCollectionRequest::mutable_get_cover_art() { - set_has_get_cover_art(); - if (get_cover_art_ == NULL) get_cover_art_ = new ::Remote::AudioCollectionRequest_GetCoverArt; - return get_cover_art_; -} -inline ::Remote::AudioCollectionRequest_GetCoverArt* AudioCollectionRequest::release_get_cover_art() { - clear_has_get_cover_art(); - ::Remote::AudioCollectionRequest_GetCoverArt* temp = get_cover_art_; - get_cover_art_ = NULL; - return temp; -} -inline void AudioCollectionRequest::set_allocated_get_cover_art(::Remote::AudioCollectionRequest_GetCoverArt* get_cover_art) { - delete get_cover_art_; - get_cover_art_ = get_cover_art; - if (get_cover_art) { - set_has_get_cover_art(); - } else { - clear_has_get_cover_art(); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_Revision - -// required string rev = 1; -inline bool AudioCollectionResponse_Revision::has_rev() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionResponse_Revision::set_has_rev() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionResponse_Revision::clear_has_rev() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionResponse_Revision::clear_rev() { - if (rev_ != &::google::protobuf::internal::kEmptyString) { - rev_->clear(); - } - clear_has_rev(); -} -inline const ::std::string& AudioCollectionResponse_Revision::rev() const { - return *rev_; -} -inline void AudioCollectionResponse_Revision::set_rev(const ::std::string& value) { - set_has_rev(); - if (rev_ == &::google::protobuf::internal::kEmptyString) { - rev_ = new ::std::string; - } - rev_->assign(value); -} -inline void AudioCollectionResponse_Revision::set_rev(const char* value) { - set_has_rev(); - if (rev_ == &::google::protobuf::internal::kEmptyString) { - rev_ = new ::std::string; - } - rev_->assign(value); -} -inline void AudioCollectionResponse_Revision::set_rev(const char* value, size_t size) { - set_has_rev(); - if (rev_ == &::google::protobuf::internal::kEmptyString) { - rev_ = new ::std::string; - } - rev_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_Revision::mutable_rev() { - set_has_rev(); - if (rev_ == &::google::protobuf::internal::kEmptyString) { - rev_ = new ::std::string; - } - return rev_; -} -inline ::std::string* AudioCollectionResponse_Revision::release_rev() { - clear_has_rev(); - if (rev_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = rev_; - rev_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_Revision::set_allocated_rev(::std::string* rev) { - if (rev_ != &::google::protobuf::internal::kEmptyString) { - delete rev_; - } - if (rev) { - set_has_rev(); - rev_ = rev; - } else { - clear_has_rev(); - rev_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_GenreList - -// repeated .Remote.AudioCollectionResponse.Genre genres = 2; -inline int AudioCollectionResponse_GenreList::genres_size() const { - return genres_.size(); -} -inline void AudioCollectionResponse_GenreList::clear_genres() { - genres_.Clear(); -} -inline const ::Remote::AudioCollectionResponse_Genre& AudioCollectionResponse_GenreList::genres(int index) const { - return genres_.Get(index); -} -inline ::Remote::AudioCollectionResponse_Genre* AudioCollectionResponse_GenreList::mutable_genres(int index) { - return genres_.Mutable(index); -} -inline ::Remote::AudioCollectionResponse_Genre* AudioCollectionResponse_GenreList::add_genres() { - return genres_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre >& -AudioCollectionResponse_GenreList::genres() const { - return genres_; -} -inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre >* -AudioCollectionResponse_GenreList::mutable_genres() { - return &genres_; -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_ArtistList - -// repeated .Remote.AudioCollectionResponse.Artist artists = 2; -inline int AudioCollectionResponse_ArtistList::artists_size() const { - return artists_.size(); -} -inline void AudioCollectionResponse_ArtistList::clear_artists() { - artists_.Clear(); -} -inline const ::Remote::AudioCollectionResponse_Artist& AudioCollectionResponse_ArtistList::artists(int index) const { - return artists_.Get(index); -} -inline ::Remote::AudioCollectionResponse_Artist* AudioCollectionResponse_ArtistList::mutable_artists(int index) { - return artists_.Mutable(index); -} -inline ::Remote::AudioCollectionResponse_Artist* AudioCollectionResponse_ArtistList::add_artists() { - return artists_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist >& -AudioCollectionResponse_ArtistList::artists() const { - return artists_; -} -inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist >* -AudioCollectionResponse_ArtistList::mutable_artists() { - return &artists_; -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_ReleaseList - -// repeated .Remote.AudioCollectionResponse.Release releases = 2; -inline int AudioCollectionResponse_ReleaseList::releases_size() const { - return releases_.size(); -} -inline void AudioCollectionResponse_ReleaseList::clear_releases() { - releases_.Clear(); -} -inline const ::Remote::AudioCollectionResponse_Release& AudioCollectionResponse_ReleaseList::releases(int index) const { - return releases_.Get(index); -} -inline ::Remote::AudioCollectionResponse_Release* AudioCollectionResponse_ReleaseList::mutable_releases(int index) { - return releases_.Mutable(index); -} -inline ::Remote::AudioCollectionResponse_Release* AudioCollectionResponse_ReleaseList::add_releases() { - return releases_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release >& -AudioCollectionResponse_ReleaseList::releases() const { - return releases_; -} -inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release >* -AudioCollectionResponse_ReleaseList::mutable_releases() { - return &releases_; -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_TrackList - -// repeated .Remote.AudioCollectionResponse.Track tracks = 2; -inline int AudioCollectionResponse_TrackList::tracks_size() const { - return tracks_.size(); -} -inline void AudioCollectionResponse_TrackList::clear_tracks() { - tracks_.Clear(); -} -inline const ::Remote::AudioCollectionResponse_Track& AudioCollectionResponse_TrackList::tracks(int index) const { - return tracks_.Get(index); -} -inline ::Remote::AudioCollectionResponse_Track* AudioCollectionResponse_TrackList::mutable_tracks(int index) { - return tracks_.Mutable(index); -} -inline ::Remote::AudioCollectionResponse_Track* AudioCollectionResponse_TrackList::add_tracks() { - return tracks_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track >& -AudioCollectionResponse_TrackList::tracks() const { - return tracks_; -} -inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track >* -AudioCollectionResponse_TrackList::mutable_tracks() { - return &tracks_; -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_CoverArt - -// optional string mime_type = 1; -inline bool AudioCollectionResponse_CoverArt::has_mime_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionResponse_CoverArt::set_has_mime_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionResponse_CoverArt::clear_has_mime_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionResponse_CoverArt::clear_mime_type() { - if (mime_type_ != &::google::protobuf::internal::kEmptyString) { - mime_type_->clear(); - } - clear_has_mime_type(); -} -inline const ::std::string& AudioCollectionResponse_CoverArt::mime_type() const { - return *mime_type_; -} -inline void AudioCollectionResponse_CoverArt::set_mime_type(const ::std::string& value) { - set_has_mime_type(); - if (mime_type_ == &::google::protobuf::internal::kEmptyString) { - mime_type_ = new ::std::string; - } - mime_type_->assign(value); -} -inline void AudioCollectionResponse_CoverArt::set_mime_type(const char* value) { - set_has_mime_type(); - if (mime_type_ == &::google::protobuf::internal::kEmptyString) { - mime_type_ = new ::std::string; - } - mime_type_->assign(value); -} -inline void AudioCollectionResponse_CoverArt::set_mime_type(const char* value, size_t size) { - set_has_mime_type(); - if (mime_type_ == &::google::protobuf::internal::kEmptyString) { - mime_type_ = new ::std::string; - } - mime_type_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_CoverArt::mutable_mime_type() { - set_has_mime_type(); - if (mime_type_ == &::google::protobuf::internal::kEmptyString) { - mime_type_ = new ::std::string; - } - return mime_type_; -} -inline ::std::string* AudioCollectionResponse_CoverArt::release_mime_type() { - clear_has_mime_type(); - if (mime_type_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = mime_type_; - mime_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_CoverArt::set_allocated_mime_type(::std::string* mime_type) { - if (mime_type_ != &::google::protobuf::internal::kEmptyString) { - delete mime_type_; - } - if (mime_type) { - set_has_mime_type(); - mime_type_ = mime_type; - } else { - clear_has_mime_type(); - mime_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// required bytes data = 2; -inline bool AudioCollectionResponse_CoverArt::has_data() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionResponse_CoverArt::set_has_data() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionResponse_CoverArt::clear_has_data() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionResponse_CoverArt::clear_data() { - if (data_ != &::google::protobuf::internal::kEmptyString) { - data_->clear(); - } - clear_has_data(); -} -inline const ::std::string& AudioCollectionResponse_CoverArt::data() const { - return *data_; -} -inline void AudioCollectionResponse_CoverArt::set_data(const ::std::string& value) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(value); -} -inline void AudioCollectionResponse_CoverArt::set_data(const char* value) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(value); -} -inline void AudioCollectionResponse_CoverArt::set_data(const void* value, size_t size) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_CoverArt::mutable_data() { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - return data_; -} -inline ::std::string* AudioCollectionResponse_CoverArt::release_data() { - clear_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = data_; - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_CoverArt::set_allocated_data(::std::string* data) { - if (data_ != &::google::protobuf::internal::kEmptyString) { - delete data_; - } - if (data) { - set_has_data(); - data_ = data; - } else { - clear_has_data(); - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_Genre - -// required uint64 id = 1; -inline bool AudioCollectionResponse_Genre::has_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionResponse_Genre::set_has_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionResponse_Genre::clear_has_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionResponse_Genre::clear_id() { - id_ = GOOGLE_ULONGLONG(0); - clear_has_id(); -} -inline ::google::protobuf::uint64 AudioCollectionResponse_Genre::id() const { - return id_; -} -inline void AudioCollectionResponse_Genre::set_id(::google::protobuf::uint64 value) { - set_has_id(); - id_ = value; -} - -// required string name = 2; -inline bool AudioCollectionResponse_Genre::has_name() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionResponse_Genre::set_has_name() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionResponse_Genre::clear_has_name() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionResponse_Genre::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& AudioCollectionResponse_Genre::name() const { - return *name_; -} -inline void AudioCollectionResponse_Genre::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void AudioCollectionResponse_Genre::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void AudioCollectionResponse_Genre::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_Genre::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* AudioCollectionResponse_Genre::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_Genre::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_Artist - -// required uint64 id = 1; -inline bool AudioCollectionResponse_Artist::has_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionResponse_Artist::set_has_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionResponse_Artist::clear_has_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionResponse_Artist::clear_id() { - id_ = GOOGLE_ULONGLONG(0); - clear_has_id(); -} -inline ::google::protobuf::uint64 AudioCollectionResponse_Artist::id() const { - return id_; -} -inline void AudioCollectionResponse_Artist::set_id(::google::protobuf::uint64 value) { - set_has_id(); - id_ = value; -} - -// required string name = 2; -inline bool AudioCollectionResponse_Artist::has_name() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionResponse_Artist::set_has_name() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionResponse_Artist::clear_has_name() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionResponse_Artist::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& AudioCollectionResponse_Artist::name() const { - return *name_; -} -inline void AudioCollectionResponse_Artist::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void AudioCollectionResponse_Artist::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void AudioCollectionResponse_Artist::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_Artist::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* AudioCollectionResponse_Artist::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_Artist::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_Release - -// required uint64 id = 1; -inline bool AudioCollectionResponse_Release::has_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionResponse_Release::set_has_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionResponse_Release::clear_has_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionResponse_Release::clear_id() { - id_ = GOOGLE_ULONGLONG(0); - clear_has_id(); -} -inline ::google::protobuf::uint64 AudioCollectionResponse_Release::id() const { - return id_; -} -inline void AudioCollectionResponse_Release::set_id(::google::protobuf::uint64 value) { - set_has_id(); - id_ = value; -} - -// required string name = 2; -inline bool AudioCollectionResponse_Release::has_name() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionResponse_Release::set_has_name() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionResponse_Release::clear_has_name() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionResponse_Release::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& AudioCollectionResponse_Release::name() const { - return *name_; -} -inline void AudioCollectionResponse_Release::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void AudioCollectionResponse_Release::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void AudioCollectionResponse_Release::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_Release::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* AudioCollectionResponse_Release::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_Release::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse_Track - -// required uint64 id = 1; -inline bool AudioCollectionResponse_Track::has_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionResponse_Track::clear_has_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionResponse_Track::clear_id() { - id_ = GOOGLE_ULONGLONG(0); - clear_has_id(); -} -inline ::google::protobuf::uint64 AudioCollectionResponse_Track::id() const { - return id_; -} -inline void AudioCollectionResponse_Track::set_id(::google::protobuf::uint64 value) { - set_has_id(); - id_ = value; -} - -// required uint64 artist_id = 2; -inline bool AudioCollectionResponse_Track::has_artist_id() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_artist_id() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionResponse_Track::clear_has_artist_id() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionResponse_Track::clear_artist_id() { - artist_id_ = GOOGLE_ULONGLONG(0); - clear_has_artist_id(); -} -inline ::google::protobuf::uint64 AudioCollectionResponse_Track::artist_id() const { - return artist_id_; -} -inline void AudioCollectionResponse_Track::set_artist_id(::google::protobuf::uint64 value) { - set_has_artist_id(); - artist_id_ = value; -} - -// required uint64 release_id = 3; -inline bool AudioCollectionResponse_Track::has_release_id() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_release_id() { - _has_bits_[0] |= 0x00000004u; -} -inline void AudioCollectionResponse_Track::clear_has_release_id() { - _has_bits_[0] &= ~0x00000004u; -} -inline void AudioCollectionResponse_Track::clear_release_id() { - release_id_ = GOOGLE_ULONGLONG(0); - clear_has_release_id(); -} -inline ::google::protobuf::uint64 AudioCollectionResponse_Track::release_id() const { - return release_id_; -} -inline void AudioCollectionResponse_Track::set_release_id(::google::protobuf::uint64 value) { - set_has_release_id(); - release_id_ = value; -} - -// repeated uint64 genre_id = 4; -inline int AudioCollectionResponse_Track::genre_id_size() const { - return genre_id_.size(); -} -inline void AudioCollectionResponse_Track::clear_genre_id() { - genre_id_.Clear(); -} -inline ::google::protobuf::uint64 AudioCollectionResponse_Track::genre_id(int index) const { - return genre_id_.Get(index); -} -inline void AudioCollectionResponse_Track::set_genre_id(int index, ::google::protobuf::uint64 value) { - genre_id_.Set(index, value); -} -inline void AudioCollectionResponse_Track::add_genre_id(::google::protobuf::uint64 value) { - genre_id_.Add(value); -} -inline const ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >& -AudioCollectionResponse_Track::genre_id() const { - return genre_id_; -} -inline ::google::protobuf::RepeatedField< ::google::protobuf::uint64 >* -AudioCollectionResponse_Track::mutable_genre_id() { - return &genre_id_; -} - -// optional uint32 disc_number = 5; -inline bool AudioCollectionResponse_Track::has_disc_number() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_disc_number() { - _has_bits_[0] |= 0x00000010u; -} -inline void AudioCollectionResponse_Track::clear_has_disc_number() { - _has_bits_[0] &= ~0x00000010u; -} -inline void AudioCollectionResponse_Track::clear_disc_number() { - disc_number_ = 0u; - clear_has_disc_number(); -} -inline ::google::protobuf::uint32 AudioCollectionResponse_Track::disc_number() const { - return disc_number_; -} -inline void AudioCollectionResponse_Track::set_disc_number(::google::protobuf::uint32 value) { - set_has_disc_number(); - disc_number_ = value; -} - -// optional uint32 track_number = 6; -inline bool AudioCollectionResponse_Track::has_track_number() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_track_number() { - _has_bits_[0] |= 0x00000020u; -} -inline void AudioCollectionResponse_Track::clear_has_track_number() { - _has_bits_[0] &= ~0x00000020u; -} -inline void AudioCollectionResponse_Track::clear_track_number() { - track_number_ = 0u; - clear_has_track_number(); -} -inline ::google::protobuf::uint32 AudioCollectionResponse_Track::track_number() const { - return track_number_; -} -inline void AudioCollectionResponse_Track::set_track_number(::google::protobuf::uint32 value) { - set_has_track_number(); - track_number_ = value; -} - -// required string name = 7; -inline bool AudioCollectionResponse_Track::has_name() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_name() { - _has_bits_[0] |= 0x00000040u; -} -inline void AudioCollectionResponse_Track::clear_has_name() { - _has_bits_[0] &= ~0x00000040u; -} -inline void AudioCollectionResponse_Track::clear_name() { - if (name_ != &::google::protobuf::internal::kEmptyString) { - name_->clear(); - } - clear_has_name(); -} -inline const ::std::string& AudioCollectionResponse_Track::name() const { - return *name_; -} -inline void AudioCollectionResponse_Track::set_name(const ::std::string& value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void AudioCollectionResponse_Track::set_name(const char* value) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(value); -} -inline void AudioCollectionResponse_Track::set_name(const char* value, size_t size) { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - name_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_Track::mutable_name() { - set_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - name_ = new ::std::string; - } - return name_; -} -inline ::std::string* AudioCollectionResponse_Track::release_name() { - clear_has_name(); - if (name_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = name_; - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_Track::set_allocated_name(::std::string* name) { - if (name_ != &::google::protobuf::internal::kEmptyString) { - delete name_; - } - if (name) { - set_has_name(); - name_ = name; - } else { - clear_has_name(); - name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// required uint32 duration_secs = 8; -inline bool AudioCollectionResponse_Track::has_duration_secs() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_duration_secs() { - _has_bits_[0] |= 0x00000080u; -} -inline void AudioCollectionResponse_Track::clear_has_duration_secs() { - _has_bits_[0] &= ~0x00000080u; -} -inline void AudioCollectionResponse_Track::clear_duration_secs() { - duration_secs_ = 0u; - clear_has_duration_secs(); -} -inline ::google::protobuf::uint32 AudioCollectionResponse_Track::duration_secs() const { - return duration_secs_; -} -inline void AudioCollectionResponse_Track::set_duration_secs(::google::protobuf::uint32 value) { - set_has_duration_secs(); - duration_secs_ = value; -} - -// optional string release_date = 9; -inline bool AudioCollectionResponse_Track::has_release_date() const { - return (_has_bits_[0] & 0x00000100u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_release_date() { - _has_bits_[0] |= 0x00000100u; -} -inline void AudioCollectionResponse_Track::clear_has_release_date() { - _has_bits_[0] &= ~0x00000100u; -} -inline void AudioCollectionResponse_Track::clear_release_date() { - if (release_date_ != &::google::protobuf::internal::kEmptyString) { - release_date_->clear(); - } - clear_has_release_date(); -} -inline const ::std::string& AudioCollectionResponse_Track::release_date() const { - return *release_date_; -} -inline void AudioCollectionResponse_Track::set_release_date(const ::std::string& value) { - set_has_release_date(); - if (release_date_ == &::google::protobuf::internal::kEmptyString) { - release_date_ = new ::std::string; - } - release_date_->assign(value); -} -inline void AudioCollectionResponse_Track::set_release_date(const char* value) { - set_has_release_date(); - if (release_date_ == &::google::protobuf::internal::kEmptyString) { - release_date_ = new ::std::string; - } - release_date_->assign(value); -} -inline void AudioCollectionResponse_Track::set_release_date(const char* value, size_t size) { - set_has_release_date(); - if (release_date_ == &::google::protobuf::internal::kEmptyString) { - release_date_ = new ::std::string; - } - release_date_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_Track::mutable_release_date() { - set_has_release_date(); - if (release_date_ == &::google::protobuf::internal::kEmptyString) { - release_date_ = new ::std::string; - } - return release_date_; -} -inline ::std::string* AudioCollectionResponse_Track::release_release_date() { - clear_has_release_date(); - if (release_date_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = release_date_; - release_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_Track::set_allocated_release_date(::std::string* release_date) { - if (release_date_ != &::google::protobuf::internal::kEmptyString) { - delete release_date_; - } - if (release_date) { - set_has_release_date(); - release_date_ = release_date; - } else { - clear_has_release_date(); - release_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// optional string original_release_date = 10; -inline bool AudioCollectionResponse_Track::has_original_release_date() const { - return (_has_bits_[0] & 0x00000200u) != 0; -} -inline void AudioCollectionResponse_Track::set_has_original_release_date() { - _has_bits_[0] |= 0x00000200u; -} -inline void AudioCollectionResponse_Track::clear_has_original_release_date() { - _has_bits_[0] &= ~0x00000200u; -} -inline void AudioCollectionResponse_Track::clear_original_release_date() { - if (original_release_date_ != &::google::protobuf::internal::kEmptyString) { - original_release_date_->clear(); - } - clear_has_original_release_date(); -} -inline const ::std::string& AudioCollectionResponse_Track::original_release_date() const { - return *original_release_date_; -} -inline void AudioCollectionResponse_Track::set_original_release_date(const ::std::string& value) { - set_has_original_release_date(); - if (original_release_date_ == &::google::protobuf::internal::kEmptyString) { - original_release_date_ = new ::std::string; - } - original_release_date_->assign(value); -} -inline void AudioCollectionResponse_Track::set_original_release_date(const char* value) { - set_has_original_release_date(); - if (original_release_date_ == &::google::protobuf::internal::kEmptyString) { - original_release_date_ = new ::std::string; - } - original_release_date_->assign(value); -} -inline void AudioCollectionResponse_Track::set_original_release_date(const char* value, size_t size) { - set_has_original_release_date(); - if (original_release_date_ == &::google::protobuf::internal::kEmptyString) { - original_release_date_ = new ::std::string; - } - original_release_date_->assign(reinterpret_cast(value), size); -} -inline ::std::string* AudioCollectionResponse_Track::mutable_original_release_date() { - set_has_original_release_date(); - if (original_release_date_ == &::google::protobuf::internal::kEmptyString) { - original_release_date_ = new ::std::string; - } - return original_release_date_; -} -inline ::std::string* AudioCollectionResponse_Track::release_original_release_date() { - clear_has_original_release_date(); - if (original_release_date_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = original_release_date_; - original_release_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void AudioCollectionResponse_Track::set_allocated_original_release_date(::std::string* original_release_date) { - if (original_release_date_ != &::google::protobuf::internal::kEmptyString) { - delete original_release_date_; - } - if (original_release_date) { - set_has_original_release_date(); - original_release_date_ = original_release_date; - } else { - clear_has_original_release_date(); - original_release_date_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// AudioCollectionResponse - -// required .Remote.AudioCollectionResponse.Type type = 1; -inline bool AudioCollectionResponse::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void AudioCollectionResponse::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void AudioCollectionResponse::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void AudioCollectionResponse::clear_type() { - type_ = 1; - clear_has_type(); -} -inline ::Remote::AudioCollectionResponse_Type AudioCollectionResponse::type() const { - return static_cast< ::Remote::AudioCollectionResponse_Type >(type_); -} -inline void AudioCollectionResponse::set_type(::Remote::AudioCollectionResponse_Type value) { - assert(::Remote::AudioCollectionResponse_Type_IsValid(value)); - set_has_type(); - type_ = value; -} - -// optional .Remote.AudioCollectionResponse.Revision revision = 2; -inline bool AudioCollectionResponse::has_revision() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void AudioCollectionResponse::set_has_revision() { - _has_bits_[0] |= 0x00000002u; -} -inline void AudioCollectionResponse::clear_has_revision() { - _has_bits_[0] &= ~0x00000002u; -} -inline void AudioCollectionResponse::clear_revision() { - if (revision_ != NULL) revision_->::Remote::AudioCollectionResponse_Revision::Clear(); - clear_has_revision(); -} -inline const ::Remote::AudioCollectionResponse_Revision& AudioCollectionResponse::revision() const { - return revision_ != NULL ? *revision_ : *default_instance_->revision_; -} -inline ::Remote::AudioCollectionResponse_Revision* AudioCollectionResponse::mutable_revision() { - set_has_revision(); - if (revision_ == NULL) revision_ = new ::Remote::AudioCollectionResponse_Revision; - return revision_; -} -inline ::Remote::AudioCollectionResponse_Revision* AudioCollectionResponse::release_revision() { - clear_has_revision(); - ::Remote::AudioCollectionResponse_Revision* temp = revision_; - revision_ = NULL; - return temp; -} -inline void AudioCollectionResponse::set_allocated_revision(::Remote::AudioCollectionResponse_Revision* revision) { - delete revision_; - revision_ = revision; - if (revision) { - set_has_revision(); - } else { - clear_has_revision(); - } -} - -// optional .Remote.AudioCollectionResponse.GenreList genre_list = 3; -inline bool AudioCollectionResponse::has_genre_list() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void AudioCollectionResponse::set_has_genre_list() { - _has_bits_[0] |= 0x00000004u; -} -inline void AudioCollectionResponse::clear_has_genre_list() { - _has_bits_[0] &= ~0x00000004u; -} -inline void AudioCollectionResponse::clear_genre_list() { - if (genre_list_ != NULL) genre_list_->::Remote::AudioCollectionResponse_GenreList::Clear(); - clear_has_genre_list(); -} -inline const ::Remote::AudioCollectionResponse_GenreList& AudioCollectionResponse::genre_list() const { - return genre_list_ != NULL ? *genre_list_ : *default_instance_->genre_list_; -} -inline ::Remote::AudioCollectionResponse_GenreList* AudioCollectionResponse::mutable_genre_list() { - set_has_genre_list(); - if (genre_list_ == NULL) genre_list_ = new ::Remote::AudioCollectionResponse_GenreList; - return genre_list_; -} -inline ::Remote::AudioCollectionResponse_GenreList* AudioCollectionResponse::release_genre_list() { - clear_has_genre_list(); - ::Remote::AudioCollectionResponse_GenreList* temp = genre_list_; - genre_list_ = NULL; - return temp; -} -inline void AudioCollectionResponse::set_allocated_genre_list(::Remote::AudioCollectionResponse_GenreList* genre_list) { - delete genre_list_; - genre_list_ = genre_list; - if (genre_list) { - set_has_genre_list(); - } else { - clear_has_genre_list(); - } -} - -// optional .Remote.AudioCollectionResponse.ArtistList artist_list = 4; -inline bool AudioCollectionResponse::has_artist_list() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void AudioCollectionResponse::set_has_artist_list() { - _has_bits_[0] |= 0x00000008u; -} -inline void AudioCollectionResponse::clear_has_artist_list() { - _has_bits_[0] &= ~0x00000008u; -} -inline void AudioCollectionResponse::clear_artist_list() { - if (artist_list_ != NULL) artist_list_->::Remote::AudioCollectionResponse_ArtistList::Clear(); - clear_has_artist_list(); -} -inline const ::Remote::AudioCollectionResponse_ArtistList& AudioCollectionResponse::artist_list() const { - return artist_list_ != NULL ? *artist_list_ : *default_instance_->artist_list_; -} -inline ::Remote::AudioCollectionResponse_ArtistList* AudioCollectionResponse::mutable_artist_list() { - set_has_artist_list(); - if (artist_list_ == NULL) artist_list_ = new ::Remote::AudioCollectionResponse_ArtistList; - return artist_list_; -} -inline ::Remote::AudioCollectionResponse_ArtistList* AudioCollectionResponse::release_artist_list() { - clear_has_artist_list(); - ::Remote::AudioCollectionResponse_ArtistList* temp = artist_list_; - artist_list_ = NULL; - return temp; -} -inline void AudioCollectionResponse::set_allocated_artist_list(::Remote::AudioCollectionResponse_ArtistList* artist_list) { - delete artist_list_; - artist_list_ = artist_list; - if (artist_list) { - set_has_artist_list(); - } else { - clear_has_artist_list(); - } -} - -// optional .Remote.AudioCollectionResponse.ReleaseList release_list = 5; -inline bool AudioCollectionResponse::has_release_list() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void AudioCollectionResponse::set_has_release_list() { - _has_bits_[0] |= 0x00000010u; -} -inline void AudioCollectionResponse::clear_has_release_list() { - _has_bits_[0] &= ~0x00000010u; -} -inline void AudioCollectionResponse::clear_release_list() { - if (release_list_ != NULL) release_list_->::Remote::AudioCollectionResponse_ReleaseList::Clear(); - clear_has_release_list(); -} -inline const ::Remote::AudioCollectionResponse_ReleaseList& AudioCollectionResponse::release_list() const { - return release_list_ != NULL ? *release_list_ : *default_instance_->release_list_; -} -inline ::Remote::AudioCollectionResponse_ReleaseList* AudioCollectionResponse::mutable_release_list() { - set_has_release_list(); - if (release_list_ == NULL) release_list_ = new ::Remote::AudioCollectionResponse_ReleaseList; - return release_list_; -} -inline ::Remote::AudioCollectionResponse_ReleaseList* AudioCollectionResponse::release_release_list() { - clear_has_release_list(); - ::Remote::AudioCollectionResponse_ReleaseList* temp = release_list_; - release_list_ = NULL; - return temp; -} -inline void AudioCollectionResponse::set_allocated_release_list(::Remote::AudioCollectionResponse_ReleaseList* release_list) { - delete release_list_; - release_list_ = release_list; - if (release_list) { - set_has_release_list(); - } else { - clear_has_release_list(); - } -} - -// optional .Remote.AudioCollectionResponse.TrackList track_list = 6; -inline bool AudioCollectionResponse::has_track_list() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void AudioCollectionResponse::set_has_track_list() { - _has_bits_[0] |= 0x00000020u; -} -inline void AudioCollectionResponse::clear_has_track_list() { - _has_bits_[0] &= ~0x00000020u; -} -inline void AudioCollectionResponse::clear_track_list() { - if (track_list_ != NULL) track_list_->::Remote::AudioCollectionResponse_TrackList::Clear(); - clear_has_track_list(); -} -inline const ::Remote::AudioCollectionResponse_TrackList& AudioCollectionResponse::track_list() const { - return track_list_ != NULL ? *track_list_ : *default_instance_->track_list_; -} -inline ::Remote::AudioCollectionResponse_TrackList* AudioCollectionResponse::mutable_track_list() { - set_has_track_list(); - if (track_list_ == NULL) track_list_ = new ::Remote::AudioCollectionResponse_TrackList; - return track_list_; -} -inline ::Remote::AudioCollectionResponse_TrackList* AudioCollectionResponse::release_track_list() { - clear_has_track_list(); - ::Remote::AudioCollectionResponse_TrackList* temp = track_list_; - track_list_ = NULL; - return temp; -} -inline void AudioCollectionResponse::set_allocated_track_list(::Remote::AudioCollectionResponse_TrackList* track_list) { - delete track_list_; - track_list_ = track_list; - if (track_list) { - set_has_track_list(); - } else { - clear_has_track_list(); - } -} - -// repeated .Remote.AudioCollectionResponse.CoverArt cover_art = 7; -inline int AudioCollectionResponse::cover_art_size() const { - return cover_art_.size(); -} -inline void AudioCollectionResponse::clear_cover_art() { - cover_art_.Clear(); -} -inline const ::Remote::AudioCollectionResponse_CoverArt& AudioCollectionResponse::cover_art(int index) const { - return cover_art_.Get(index); -} -inline ::Remote::AudioCollectionResponse_CoverArt* AudioCollectionResponse::mutable_cover_art(int index) { - return cover_art_.Mutable(index); -} -inline ::Remote::AudioCollectionResponse_CoverArt* AudioCollectionResponse::add_cover_art() { - return cover_art_.Add(); -} -inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_CoverArt >& -AudioCollectionResponse::cover_art() const { - return cover_art_; -} -inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_CoverArt >* -AudioCollectionResponse::mutable_cover_art() { - return &cover_art_; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Remote - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::AudioCollectionRequest_GetCoverArt_Type>() { - return ::Remote::AudioCollectionRequest_GetCoverArt_Type_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::AudioCollectionRequest_Type>() { - return ::Remote::AudioCollectionRequest_Type_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::AudioCollectionResponse_Type>() { - return ::Remote::AudioCollectionResponse_Type_descriptor(); -} - -} // namespace google -} // namespace protobuf -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_collection_2eproto__INCLUDED diff --git a/remote/messages/common.pb.cc b/remote/messages/common.pb.cc deleted file mode 100644 index eacb49b8..00000000 --- a/remote/messages/common.pb.cc +++ /dev/null @@ -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 - -#include -#include -#include -#include -#include -#include -#include -#include -// @@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( - &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) diff --git a/remote/messages/common.pb.h b/remote/messages/common.pb.h deleted file mode 100644 index eceeeaad..00000000 --- a/remote/messages/common.pb.h +++ /dev/null @@ -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 - -#include - -#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 -#include -#include -#include -#include -// @@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(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 diff --git a/remote/messages/media.pb.cc b/remote/messages/media.pb.cc deleted file mode 100644 index bb914797..00000000 --- a/remote/messages/media.pb.cc +++ /dev/null @@ -1,3494 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: media.proto - -#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION -#include "media.pb.h" - -#include - -#include -#include -#include -#include -#include -#include -#include -#include -// @@protoc_insertion_point(includes) - -namespace Remote { - -namespace { - -const ::google::protobuf::Descriptor* MediaRequest_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaRequest_reflection_ = NULL; -const ::google::protobuf::Descriptor* MediaRequest_Prepare_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaRequest_Prepare_reflection_ = NULL; -const ::google::protobuf::Descriptor* MediaRequest_Prepare_Audio_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaRequest_Prepare_Audio_reflection_ = NULL; -const ::google::protobuf::Descriptor* MediaRequest_Prepare_Video_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaRequest_Prepare_Video_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_AudioCodecType_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_AudioBitrate_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_VideoCodecType_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_VideoBitrate_descriptor_ = NULL; -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_Type_descriptor_ = NULL; -const ::google::protobuf::Descriptor* MediaRequest_GetPart_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaRequest_GetPart_reflection_ = NULL; -const ::google::protobuf::Descriptor* MediaRequest_Terminate_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaRequest_Terminate_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* MediaRequest_Type_descriptor_ = NULL; -const ::google::protobuf::Descriptor* MediaResponse_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaResponse_reflection_ = NULL; -const ::google::protobuf::Descriptor* MediaResponse_PrepareResult_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaResponse_PrepareResult_reflection_ = NULL; -const ::google::protobuf::Descriptor* MediaResponse_PartResult_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaResponse_PartResult_reflection_ = NULL; -const ::google::protobuf::Descriptor* MediaResponse_TerminateResult_descriptor_ = NULL; -const ::google::protobuf::internal::GeneratedMessageReflection* - MediaResponse_TerminateResult_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* MediaResponse_Type_descriptor_ = NULL; - -} // namespace - - -void protobuf_AssignDesc_media_2eproto() { - protobuf_AddDesc_media_2eproto(); - const ::google::protobuf::FileDescriptor* file = - ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( - "media.proto"); - GOOGLE_CHECK(file != NULL); - MediaRequest_descriptor_ = file->message_type(0); - static const int MediaRequest_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest, prepare_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest, get_part_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest, terminate_), - }; - MediaRequest_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaRequest_descriptor_, - MediaRequest::default_instance_, - MediaRequest_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaRequest)); - MediaRequest_Prepare_descriptor_ = MediaRequest_descriptor_->nested_type(0); - static const int MediaRequest_Prepare_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare, audio_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare, video_), - }; - MediaRequest_Prepare_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaRequest_Prepare_descriptor_, - MediaRequest_Prepare::default_instance_, - MediaRequest_Prepare_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaRequest_Prepare)); - MediaRequest_Prepare_Audio_descriptor_ = MediaRequest_Prepare_descriptor_->nested_type(0); - static const int MediaRequest_Prepare_Audio_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Audio, track_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Audio, codec_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Audio, bitrate_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Audio, stream_idx_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Audio, offset_secs_), - }; - MediaRequest_Prepare_Audio_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaRequest_Prepare_Audio_descriptor_, - MediaRequest_Prepare_Audio::default_instance_, - MediaRequest_Prepare_Audio_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Audio, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Audio, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaRequest_Prepare_Audio)); - MediaRequest_Prepare_Video_descriptor_ = MediaRequest_Prepare_descriptor_->nested_type(1); - static const int MediaRequest_Prepare_Video_offsets_[8] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, video_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, codec_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, audio_bitrate_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, video_bitrate_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, offset_secs_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, audio_stream_idx_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, video_stream_idx_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, subtitle_stream_idx_), - }; - MediaRequest_Prepare_Video_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaRequest_Prepare_Video_descriptor_, - MediaRequest_Prepare_Video::default_instance_, - MediaRequest_Prepare_Video_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Prepare_Video, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaRequest_Prepare_Video)); - MediaRequest_Prepare_AudioCodecType_descriptor_ = MediaRequest_Prepare_descriptor_->enum_type(0); - MediaRequest_Prepare_AudioBitrate_descriptor_ = MediaRequest_Prepare_descriptor_->enum_type(1); - MediaRequest_Prepare_VideoCodecType_descriptor_ = MediaRequest_Prepare_descriptor_->enum_type(2); - MediaRequest_Prepare_VideoBitrate_descriptor_ = MediaRequest_Prepare_descriptor_->enum_type(3); - MediaRequest_Prepare_Type_descriptor_ = MediaRequest_Prepare_descriptor_->enum_type(4); - MediaRequest_GetPart_descriptor_ = MediaRequest_descriptor_->nested_type(1); - static const int MediaRequest_GetPart_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_GetPart, handle_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_GetPart, requested_data_size_), - }; - MediaRequest_GetPart_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaRequest_GetPart_descriptor_, - MediaRequest_GetPart::default_instance_, - MediaRequest_GetPart_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_GetPart, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_GetPart, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaRequest_GetPart)); - MediaRequest_Terminate_descriptor_ = MediaRequest_descriptor_->nested_type(2); - static const int MediaRequest_Terminate_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Terminate, handle_), - }; - MediaRequest_Terminate_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaRequest_Terminate_descriptor_, - MediaRequest_Terminate::default_instance_, - MediaRequest_Terminate_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Terminate, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaRequest_Terminate, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaRequest_Terminate)); - MediaRequest_Type_descriptor_ = MediaRequest_descriptor_->enum_type(0); - MediaResponse_descriptor_ = file->message_type(1); - static const int MediaResponse_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse, prepare_result_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse, part_result_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse, terminate_result_), - }; - MediaResponse_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaResponse_descriptor_, - MediaResponse::default_instance_, - MediaResponse_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaResponse)); - MediaResponse_PrepareResult_descriptor_ = MediaResponse_descriptor_->nested_type(0); - static const int MediaResponse_PrepareResult_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse_PrepareResult, handle_), - }; - MediaResponse_PrepareResult_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaResponse_PrepareResult_descriptor_, - MediaResponse_PrepareResult::default_instance_, - MediaResponse_PrepareResult_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse_PrepareResult, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse_PrepareResult, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaResponse_PrepareResult)); - MediaResponse_PartResult_descriptor_ = MediaResponse_descriptor_->nested_type(1); - static const int MediaResponse_PartResult_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse_PartResult, data_), - }; - MediaResponse_PartResult_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaResponse_PartResult_descriptor_, - MediaResponse_PartResult::default_instance_, - MediaResponse_PartResult_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse_PartResult, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse_PartResult, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaResponse_PartResult)); - MediaResponse_TerminateResult_descriptor_ = MediaResponse_descriptor_->nested_type(2); - static const int MediaResponse_TerminateResult_offsets_[1] = { - }; - MediaResponse_TerminateResult_reflection_ = - new ::google::protobuf::internal::GeneratedMessageReflection( - MediaResponse_TerminateResult_descriptor_, - MediaResponse_TerminateResult::default_instance_, - MediaResponse_TerminateResult_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse_TerminateResult, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(MediaResponse_TerminateResult, _unknown_fields_), - -1, - ::google::protobuf::DescriptorPool::generated_pool(), - ::google::protobuf::MessageFactory::generated_factory(), - sizeof(MediaResponse_TerminateResult)); - MediaResponse_Type_descriptor_ = MediaResponse_descriptor_->enum_type(0); -} - -namespace { - -GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); -inline void protobuf_AssignDescriptorsOnce() { - ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, - &protobuf_AssignDesc_media_2eproto); -} - -void protobuf_RegisterTypes(const ::std::string&) { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaRequest_descriptor_, &MediaRequest::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaRequest_Prepare_descriptor_, &MediaRequest_Prepare::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaRequest_Prepare_Audio_descriptor_, &MediaRequest_Prepare_Audio::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaRequest_Prepare_Video_descriptor_, &MediaRequest_Prepare_Video::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaRequest_GetPart_descriptor_, &MediaRequest_GetPart::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaRequest_Terminate_descriptor_, &MediaRequest_Terminate::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaResponse_descriptor_, &MediaResponse::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaResponse_PrepareResult_descriptor_, &MediaResponse_PrepareResult::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaResponse_PartResult_descriptor_, &MediaResponse_PartResult::default_instance()); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - MediaResponse_TerminateResult_descriptor_, &MediaResponse_TerminateResult::default_instance()); -} - -} // namespace - -void protobuf_ShutdownFile_media_2eproto() { - delete MediaRequest::default_instance_; - delete MediaRequest_reflection_; - delete MediaRequest_Prepare::default_instance_; - delete MediaRequest_Prepare_reflection_; - delete MediaRequest_Prepare_Audio::default_instance_; - delete MediaRequest_Prepare_Audio_reflection_; - delete MediaRequest_Prepare_Video::default_instance_; - delete MediaRequest_Prepare_Video_reflection_; - delete MediaRequest_GetPart::default_instance_; - delete MediaRequest_GetPart_reflection_; - delete MediaRequest_Terminate::default_instance_; - delete MediaRequest_Terminate_reflection_; - delete MediaResponse::default_instance_; - delete MediaResponse_reflection_; - delete MediaResponse_PrepareResult::default_instance_; - delete MediaResponse_PrepareResult_reflection_; - delete MediaResponse_PartResult::default_instance_; - delete MediaResponse_PartResult_reflection_; - delete MediaResponse_TerminateResult::default_instance_; - delete MediaResponse_TerminateResult_reflection_; -} - -void protobuf_AddDesc_media_2eproto() { - static bool already_here = false; - if (already_here) return; - already_here = true; - GOOGLE_PROTOBUF_VERIFY_VERSION; - - ::Remote::protobuf_AddDesc_common_2eproto(); - ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\013media.proto\022\006Remote\032\014common.proto\"\357\n\n\014" - "MediaRequest\022\'\n\004type\030\001 \002(\0162\031.Remote.Medi" - "aRequest.Type\022-\n\007prepare\030\002 \001(\0132\034.Remote." - "MediaRequest.Prepare\022.\n\010get_part\030\003 \001(\0132\034" - ".Remote.MediaRequest.GetPart\0221\n\tterminat" - "e\030\004 \001(\0132\036.Remote.MediaRequest.Terminate\032" - "\202\010\n\007Prepare\022/\n\004type\030\001 \002(\0162!.Remote.Media" - "Request.Prepare.Type\0221\n\005audio\030\002 \001(\0132\".Re" - "mote.MediaRequest.Prepare.Audio\0221\n\005video" - "\030\003 \001(\0132\".Remote.MediaRequest.Prepare.Vid" - "eo\032\277\001\n\005Audio\022\020\n\010track_id\030\001 \002(\003\022\?\n\ncodec_" - "type\030\002 \002(\0162+.Remote.MediaRequest.Prepare" - ".AudioCodecType\022:\n\007bitrate\030\003 \002(\0162).Remot" - "e.MediaRequest.Prepare.AudioBitrate\022\022\n\ns" - "tream_idx\030\004 \001(\r\022\023\n\013offset_secs\030\005 \001(\r\032\304\002\n" - "\005Video\022\020\n\010video_id\030\001 \002(\003\022\?\n\ncodec_type\030\002" - " \002(\0162+.Remote.MediaRequest.Prepare.Video" - "CodecType\022@\n\raudio_bitrate\030\003 \002(\0162).Remot" - "e.MediaRequest.Prepare.AudioBitrate\022@\n\rv" - "ideo_bitrate\030\004 \002(\0162).Remote.MediaRequest" - ".Prepare.VideoBitrate\022\023\n\013offset_secs\030\005 \001" - "(\r\022\030\n\020audio_stream_idx\030\006 \001(\r\022\030\n\020video_st" - "ream_idx\030\007 \001(\r\022\033\n\023subtitle_stream_idx\030\010 " - "\001(\r\"\'\n\016AudioCodecType\022\025\n\021AudioCodecTypeO" - "GA\020\001\"\255\001\n\014AudioBitrate\022\030\n\024AudioBitrate_32" - "_kbps\020\001\022\030\n\024AudioBitrate_64_kbps\020\002\022\030\n\024Aud" - "ioBitrate_96_kbps\020\003\022\031\n\025AudioBitrate_128_" - "kbps\020\004\022\031\n\025AudioBitrate_192_kbps\020\005\022\031\n\025Aud" - "ioBitrate_256_kbps\020\006\"\'\n\016VideoCodecType\022\025" - "\n\021VideoCodecTypeOGV\020\001\")\n\014VideoBitrate\022\031\n" - "\025VideoBitrate_512_kbps\020\001\"*\n\004Type\022\020\n\014Audi" - "oRequest\020\001\022\020\n\014VideoRequest\020\002\0326\n\007GetPart\022" - "\016\n\006handle\030\001 \002(\r\022\033\n\023requested_data_size\030\002" - " \002(\r\032\033\n\tTerminate\022\016\n\006handle\030\001 \002(\r\"J\n\004Typ" - "e\022\024\n\020TypeMediaPrepare\020\001\022\024\n\020TypeMediaGetP" - "art\020\002\022\026\n\022TypeMediaTerminate\020\003\"\212\003\n\rMediaR" - "esponse\022(\n\004type\030\001 \002(\0162\032.Remote.MediaResp" - "onse.Type\022;\n\016prepare_result\030\002 \001(\0132#.Remo" - "te.MediaResponse.PrepareResult\0225\n\013part_r" - "esult\030\003 \001(\0132 .Remote.MediaResponse.PartR" - "esult\022\?\n\020terminate_result\030\004 \001(\0132%.Remote" - ".MediaResponse.TerminateResult\032\037\n\rPrepar" - "eResult\022\016\n\006handle\030\001 \001(\r\032\032\n\nPartResult\022\014\n" - "\004data\030\002 \001(\014\032\021\n\017TerminateResult\"J\n\004Type\022\025" - "\n\021TypePrepareResult\020\001\022\022\n\016TypePartResult\020" - "\002\022\027\n\023TypeTerminateResult\020\003", 1826); - ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( - "media.proto", &protobuf_RegisterTypes); - MediaRequest::default_instance_ = new MediaRequest(); - MediaRequest_Prepare::default_instance_ = new MediaRequest_Prepare(); - MediaRequest_Prepare_Audio::default_instance_ = new MediaRequest_Prepare_Audio(); - MediaRequest_Prepare_Video::default_instance_ = new MediaRequest_Prepare_Video(); - MediaRequest_GetPart::default_instance_ = new MediaRequest_GetPart(); - MediaRequest_Terminate::default_instance_ = new MediaRequest_Terminate(); - MediaResponse::default_instance_ = new MediaResponse(); - MediaResponse_PrepareResult::default_instance_ = new MediaResponse_PrepareResult(); - MediaResponse_PartResult::default_instance_ = new MediaResponse_PartResult(); - MediaResponse_TerminateResult::default_instance_ = new MediaResponse_TerminateResult(); - MediaRequest::default_instance_->InitAsDefaultInstance(); - MediaRequest_Prepare::default_instance_->InitAsDefaultInstance(); - MediaRequest_Prepare_Audio::default_instance_->InitAsDefaultInstance(); - MediaRequest_Prepare_Video::default_instance_->InitAsDefaultInstance(); - MediaRequest_GetPart::default_instance_->InitAsDefaultInstance(); - MediaRequest_Terminate::default_instance_->InitAsDefaultInstance(); - MediaResponse::default_instance_->InitAsDefaultInstance(); - MediaResponse_PrepareResult::default_instance_->InitAsDefaultInstance(); - MediaResponse_PartResult::default_instance_->InitAsDefaultInstance(); - MediaResponse_TerminateResult::default_instance_->InitAsDefaultInstance(); - ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_media_2eproto); -} - -// Force AddDescriptors() to be called at static initialization time. -struct StaticDescriptorInitializer_media_2eproto { - StaticDescriptorInitializer_media_2eproto() { - protobuf_AddDesc_media_2eproto(); - } -} static_descriptor_initializer_media_2eproto_; - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* MediaRequest_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Type_descriptor_; -} -bool MediaRequest_Type_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const MediaRequest_Type MediaRequest::TypeMediaPrepare; -const MediaRequest_Type MediaRequest::TypeMediaGetPart; -const MediaRequest_Type MediaRequest::TypeMediaTerminate; -const MediaRequest_Type MediaRequest::Type_MIN; -const MediaRequest_Type MediaRequest::Type_MAX; -const int MediaRequest::Type_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_AudioCodecType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Prepare_AudioCodecType_descriptor_; -} -bool MediaRequest_Prepare_AudioCodecType_IsValid(int value) { - switch(value) { - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const MediaRequest_Prepare_AudioCodecType MediaRequest_Prepare::AudioCodecTypeOGA; -const MediaRequest_Prepare_AudioCodecType MediaRequest_Prepare::AudioCodecType_MIN; -const MediaRequest_Prepare_AudioCodecType MediaRequest_Prepare::AudioCodecType_MAX; -const int MediaRequest_Prepare::AudioCodecType_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_AudioBitrate_descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Prepare_AudioBitrate_descriptor_; -} -bool MediaRequest_Prepare_AudioBitrate_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - case 4: - case 5: - case 6: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare::AudioBitrate_32_kbps; -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare::AudioBitrate_64_kbps; -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare::AudioBitrate_96_kbps; -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare::AudioBitrate_128_kbps; -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare::AudioBitrate_192_kbps; -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare::AudioBitrate_256_kbps; -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare::AudioBitrate_MIN; -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare::AudioBitrate_MAX; -const int MediaRequest_Prepare::AudioBitrate_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_VideoCodecType_descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Prepare_VideoCodecType_descriptor_; -} -bool MediaRequest_Prepare_VideoCodecType_IsValid(int value) { - switch(value) { - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const MediaRequest_Prepare_VideoCodecType MediaRequest_Prepare::VideoCodecTypeOGV; -const MediaRequest_Prepare_VideoCodecType MediaRequest_Prepare::VideoCodecType_MIN; -const MediaRequest_Prepare_VideoCodecType MediaRequest_Prepare::VideoCodecType_MAX; -const int MediaRequest_Prepare::VideoCodecType_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_VideoBitrate_descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Prepare_VideoBitrate_descriptor_; -} -bool MediaRequest_Prepare_VideoBitrate_IsValid(int value) { - switch(value) { - case 1: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const MediaRequest_Prepare_VideoBitrate MediaRequest_Prepare::VideoBitrate_512_kbps; -const MediaRequest_Prepare_VideoBitrate MediaRequest_Prepare::VideoBitrate_MIN; -const MediaRequest_Prepare_VideoBitrate MediaRequest_Prepare::VideoBitrate_MAX; -const int MediaRequest_Prepare::VideoBitrate_ARRAYSIZE; -#endif // _MSC_VER -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Prepare_Type_descriptor_; -} -bool MediaRequest_Prepare_Type_IsValid(int value) { - switch(value) { - case 1: - case 2: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const MediaRequest_Prepare_Type MediaRequest_Prepare::AudioRequest; -const MediaRequest_Prepare_Type MediaRequest_Prepare::VideoRequest; -const MediaRequest_Prepare_Type MediaRequest_Prepare::Type_MIN; -const MediaRequest_Prepare_Type MediaRequest_Prepare::Type_MAX; -const int MediaRequest_Prepare::Type_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int MediaRequest_Prepare_Audio::kTrackIdFieldNumber; -const int MediaRequest_Prepare_Audio::kCodecTypeFieldNumber; -const int MediaRequest_Prepare_Audio::kBitrateFieldNumber; -const int MediaRequest_Prepare_Audio::kStreamIdxFieldNumber; -const int MediaRequest_Prepare_Audio::kOffsetSecsFieldNumber; -#endif // !_MSC_VER - -MediaRequest_Prepare_Audio::MediaRequest_Prepare_Audio() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaRequest_Prepare_Audio::InitAsDefaultInstance() { -} - -MediaRequest_Prepare_Audio::MediaRequest_Prepare_Audio(const MediaRequest_Prepare_Audio& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaRequest_Prepare_Audio::SharedCtor() { - _cached_size_ = 0; - track_id_ = GOOGLE_LONGLONG(0); - codec_type_ = 1; - bitrate_ = 1; - stream_idx_ = 0u; - offset_secs_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaRequest_Prepare_Audio::~MediaRequest_Prepare_Audio() { - SharedDtor(); -} - -void MediaRequest_Prepare_Audio::SharedDtor() { - if (this != default_instance_) { - } -} - -void MediaRequest_Prepare_Audio::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaRequest_Prepare_Audio::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Prepare_Audio_descriptor_; -} - -const MediaRequest_Prepare_Audio& MediaRequest_Prepare_Audio::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaRequest_Prepare_Audio* MediaRequest_Prepare_Audio::default_instance_ = NULL; - -MediaRequest_Prepare_Audio* MediaRequest_Prepare_Audio::New() const { - return new MediaRequest_Prepare_Audio; -} - -void MediaRequest_Prepare_Audio::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - track_id_ = GOOGLE_LONGLONG(0); - codec_type_ = 1; - bitrate_ = 1; - stream_idx_ = 0u; - offset_secs_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaRequest_Prepare_Audio::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 int64 track_id = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &track_id_))); - set_has_track_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_codec_type; - break; - } - - // required .Remote.MediaRequest.Prepare.AudioCodecType codec_type = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_codec_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::Remote::MediaRequest_Prepare_AudioCodecType_IsValid(value)) { - set_codec_type(static_cast< ::Remote::MediaRequest_Prepare_AudioCodecType >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_bitrate; - break; - } - - // required .Remote.MediaRequest.Prepare.AudioBitrate bitrate = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_bitrate: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::Remote::MediaRequest_Prepare_AudioBitrate_IsValid(value)) { - set_bitrate(static_cast< ::Remote::MediaRequest_Prepare_AudioBitrate >(value)); - } else { - mutable_unknown_fields()->AddVarint(3, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_stream_idx; - break; - } - - // optional uint32 stream_idx = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_stream_idx: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &stream_idx_))); - set_has_stream_idx(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_offset_secs; - break; - } - - // optional uint32 offset_secs = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_offset_secs: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &offset_secs_))); - set_has_offset_secs(); - } 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 MediaRequest_Prepare_Audio::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required int64 track_id = 1; - if (has_track_id()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->track_id(), output); - } - - // required .Remote.MediaRequest.Prepare.AudioCodecType codec_type = 2; - if (has_codec_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->codec_type(), output); - } - - // required .Remote.MediaRequest.Prepare.AudioBitrate bitrate = 3; - if (has_bitrate()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->bitrate(), output); - } - - // optional uint32 stream_idx = 4; - if (has_stream_idx()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(4, this->stream_idx(), output); - } - - // optional uint32 offset_secs = 5; - if (has_offset_secs()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->offset_secs(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaRequest_Prepare_Audio::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required int64 track_id = 1; - if (has_track_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->track_id(), target); - } - - // required .Remote.MediaRequest.Prepare.AudioCodecType codec_type = 2; - if (has_codec_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->codec_type(), target); - } - - // required .Remote.MediaRequest.Prepare.AudioBitrate bitrate = 3; - if (has_bitrate()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->bitrate(), target); - } - - // optional uint32 stream_idx = 4; - if (has_stream_idx()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(4, this->stream_idx(), target); - } - - // optional uint32 offset_secs = 5; - if (has_offset_secs()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->offset_secs(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaRequest_Prepare_Audio::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required int64 track_id = 1; - if (has_track_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->track_id()); - } - - // required .Remote.MediaRequest.Prepare.AudioCodecType codec_type = 2; - if (has_codec_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->codec_type()); - } - - // required .Remote.MediaRequest.Prepare.AudioBitrate bitrate = 3; - if (has_bitrate()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->bitrate()); - } - - // optional uint32 stream_idx = 4; - if (has_stream_idx()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->stream_idx()); - } - - // optional uint32 offset_secs = 5; - if (has_offset_secs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->offset_secs()); - } - - } - 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 MediaRequest_Prepare_Audio::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaRequest_Prepare_Audio* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaRequest_Prepare_Audio::MergeFrom(const MediaRequest_Prepare_Audio& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_track_id()) { - set_track_id(from.track_id()); - } - if (from.has_codec_type()) { - set_codec_type(from.codec_type()); - } - if (from.has_bitrate()) { - set_bitrate(from.bitrate()); - } - if (from.has_stream_idx()) { - set_stream_idx(from.stream_idx()); - } - if (from.has_offset_secs()) { - set_offset_secs(from.offset_secs()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaRequest_Prepare_Audio::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaRequest_Prepare_Audio::CopyFrom(const MediaRequest_Prepare_Audio& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaRequest_Prepare_Audio::IsInitialized() const { - if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; - - return true; -} - -void MediaRequest_Prepare_Audio::Swap(MediaRequest_Prepare_Audio* other) { - if (other != this) { - std::swap(track_id_, other->track_id_); - std::swap(codec_type_, other->codec_type_); - std::swap(bitrate_, other->bitrate_); - std::swap(stream_idx_, other->stream_idx_); - std::swap(offset_secs_, other->offset_secs_); - 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 MediaRequest_Prepare_Audio::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaRequest_Prepare_Audio_descriptor_; - metadata.reflection = MediaRequest_Prepare_Audio_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int MediaRequest_Prepare_Video::kVideoIdFieldNumber; -const int MediaRequest_Prepare_Video::kCodecTypeFieldNumber; -const int MediaRequest_Prepare_Video::kAudioBitrateFieldNumber; -const int MediaRequest_Prepare_Video::kVideoBitrateFieldNumber; -const int MediaRequest_Prepare_Video::kOffsetSecsFieldNumber; -const int MediaRequest_Prepare_Video::kAudioStreamIdxFieldNumber; -const int MediaRequest_Prepare_Video::kVideoStreamIdxFieldNumber; -const int MediaRequest_Prepare_Video::kSubtitleStreamIdxFieldNumber; -#endif // !_MSC_VER - -MediaRequest_Prepare_Video::MediaRequest_Prepare_Video() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaRequest_Prepare_Video::InitAsDefaultInstance() { -} - -MediaRequest_Prepare_Video::MediaRequest_Prepare_Video(const MediaRequest_Prepare_Video& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaRequest_Prepare_Video::SharedCtor() { - _cached_size_ = 0; - video_id_ = GOOGLE_LONGLONG(0); - codec_type_ = 1; - audio_bitrate_ = 1; - video_bitrate_ = 1; - offset_secs_ = 0u; - audio_stream_idx_ = 0u; - video_stream_idx_ = 0u; - subtitle_stream_idx_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaRequest_Prepare_Video::~MediaRequest_Prepare_Video() { - SharedDtor(); -} - -void MediaRequest_Prepare_Video::SharedDtor() { - if (this != default_instance_) { - } -} - -void MediaRequest_Prepare_Video::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaRequest_Prepare_Video::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Prepare_Video_descriptor_; -} - -const MediaRequest_Prepare_Video& MediaRequest_Prepare_Video::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaRequest_Prepare_Video* MediaRequest_Prepare_Video::default_instance_ = NULL; - -MediaRequest_Prepare_Video* MediaRequest_Prepare_Video::New() const { - return new MediaRequest_Prepare_Video; -} - -void MediaRequest_Prepare_Video::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - video_id_ = GOOGLE_LONGLONG(0); - codec_type_ = 1; - audio_bitrate_ = 1; - video_bitrate_ = 1; - offset_secs_ = 0u; - audio_stream_idx_ = 0u; - video_stream_idx_ = 0u; - subtitle_stream_idx_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaRequest_Prepare_Video::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 int64 video_id = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_INT64>( - input, &video_id_))); - set_has_video_id(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_codec_type; - break; - } - - // required .Remote.MediaRequest.Prepare.VideoCodecType codec_type = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_codec_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::Remote::MediaRequest_Prepare_VideoCodecType_IsValid(value)) { - set_codec_type(static_cast< ::Remote::MediaRequest_Prepare_VideoCodecType >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(24)) goto parse_audio_bitrate; - break; - } - - // required .Remote.MediaRequest.Prepare.AudioBitrate audio_bitrate = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_audio_bitrate: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::Remote::MediaRequest_Prepare_AudioBitrate_IsValid(value)) { - set_audio_bitrate(static_cast< ::Remote::MediaRequest_Prepare_AudioBitrate >(value)); - } else { - mutable_unknown_fields()->AddVarint(3, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(32)) goto parse_video_bitrate; - break; - } - - // required .Remote.MediaRequest.Prepare.VideoBitrate video_bitrate = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_video_bitrate: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::Remote::MediaRequest_Prepare_VideoBitrate_IsValid(value)) { - set_video_bitrate(static_cast< ::Remote::MediaRequest_Prepare_VideoBitrate >(value)); - } else { - mutable_unknown_fields()->AddVarint(4, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(40)) goto parse_offset_secs; - break; - } - - // optional uint32 offset_secs = 5; - case 5: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_offset_secs: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &offset_secs_))); - set_has_offset_secs(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(48)) goto parse_audio_stream_idx; - break; - } - - // optional uint32 audio_stream_idx = 6; - case 6: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_audio_stream_idx: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &audio_stream_idx_))); - set_has_audio_stream_idx(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(56)) goto parse_video_stream_idx; - break; - } - - // optional uint32 video_stream_idx = 7; - case 7: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_video_stream_idx: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &video_stream_idx_))); - set_has_video_stream_idx(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(64)) goto parse_subtitle_stream_idx; - break; - } - - // optional uint32 subtitle_stream_idx = 8; - case 8: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_subtitle_stream_idx: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &subtitle_stream_idx_))); - set_has_subtitle_stream_idx(); - } 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 MediaRequest_Prepare_Video::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required int64 video_id = 1; - if (has_video_id()) { - ::google::protobuf::internal::WireFormatLite::WriteInt64(1, this->video_id(), output); - } - - // required .Remote.MediaRequest.Prepare.VideoCodecType codec_type = 2; - if (has_codec_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->codec_type(), output); - } - - // required .Remote.MediaRequest.Prepare.AudioBitrate audio_bitrate = 3; - if (has_audio_bitrate()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 3, this->audio_bitrate(), output); - } - - // required .Remote.MediaRequest.Prepare.VideoBitrate video_bitrate = 4; - if (has_video_bitrate()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 4, this->video_bitrate(), output); - } - - // optional uint32 offset_secs = 5; - if (has_offset_secs()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(5, this->offset_secs(), output); - } - - // optional uint32 audio_stream_idx = 6; - if (has_audio_stream_idx()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(6, this->audio_stream_idx(), output); - } - - // optional uint32 video_stream_idx = 7; - if (has_video_stream_idx()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(7, this->video_stream_idx(), output); - } - - // optional uint32 subtitle_stream_idx = 8; - if (has_subtitle_stream_idx()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(8, this->subtitle_stream_idx(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaRequest_Prepare_Video::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required int64 video_id = 1; - if (has_video_id()) { - target = ::google::protobuf::internal::WireFormatLite::WriteInt64ToArray(1, this->video_id(), target); - } - - // required .Remote.MediaRequest.Prepare.VideoCodecType codec_type = 2; - if (has_codec_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->codec_type(), target); - } - - // required .Remote.MediaRequest.Prepare.AudioBitrate audio_bitrate = 3; - if (has_audio_bitrate()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 3, this->audio_bitrate(), target); - } - - // required .Remote.MediaRequest.Prepare.VideoBitrate video_bitrate = 4; - if (has_video_bitrate()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 4, this->video_bitrate(), target); - } - - // optional uint32 offset_secs = 5; - if (has_offset_secs()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(5, this->offset_secs(), target); - } - - // optional uint32 audio_stream_idx = 6; - if (has_audio_stream_idx()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(6, this->audio_stream_idx(), target); - } - - // optional uint32 video_stream_idx = 7; - if (has_video_stream_idx()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(7, this->video_stream_idx(), target); - } - - // optional uint32 subtitle_stream_idx = 8; - if (has_subtitle_stream_idx()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(8, this->subtitle_stream_idx(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaRequest_Prepare_Video::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required int64 video_id = 1; - if (has_video_id()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::Int64Size( - this->video_id()); - } - - // required .Remote.MediaRequest.Prepare.VideoCodecType codec_type = 2; - if (has_codec_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->codec_type()); - } - - // required .Remote.MediaRequest.Prepare.AudioBitrate audio_bitrate = 3; - if (has_audio_bitrate()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->audio_bitrate()); - } - - // required .Remote.MediaRequest.Prepare.VideoBitrate video_bitrate = 4; - if (has_video_bitrate()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->video_bitrate()); - } - - // optional uint32 offset_secs = 5; - if (has_offset_secs()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->offset_secs()); - } - - // optional uint32 audio_stream_idx = 6; - if (has_audio_stream_idx()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->audio_stream_idx()); - } - - // optional uint32 video_stream_idx = 7; - if (has_video_stream_idx()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->video_stream_idx()); - } - - // optional uint32 subtitle_stream_idx = 8; - if (has_subtitle_stream_idx()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->subtitle_stream_idx()); - } - - } - 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 MediaRequest_Prepare_Video::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaRequest_Prepare_Video* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaRequest_Prepare_Video::MergeFrom(const MediaRequest_Prepare_Video& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_video_id()) { - set_video_id(from.video_id()); - } - if (from.has_codec_type()) { - set_codec_type(from.codec_type()); - } - if (from.has_audio_bitrate()) { - set_audio_bitrate(from.audio_bitrate()); - } - if (from.has_video_bitrate()) { - set_video_bitrate(from.video_bitrate()); - } - if (from.has_offset_secs()) { - set_offset_secs(from.offset_secs()); - } - if (from.has_audio_stream_idx()) { - set_audio_stream_idx(from.audio_stream_idx()); - } - if (from.has_video_stream_idx()) { - set_video_stream_idx(from.video_stream_idx()); - } - if (from.has_subtitle_stream_idx()) { - set_subtitle_stream_idx(from.subtitle_stream_idx()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaRequest_Prepare_Video::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaRequest_Prepare_Video::CopyFrom(const MediaRequest_Prepare_Video& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaRequest_Prepare_Video::IsInitialized() const { - if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false; - - return true; -} - -void MediaRequest_Prepare_Video::Swap(MediaRequest_Prepare_Video* other) { - if (other != this) { - std::swap(video_id_, other->video_id_); - std::swap(codec_type_, other->codec_type_); - std::swap(audio_bitrate_, other->audio_bitrate_); - std::swap(video_bitrate_, other->video_bitrate_); - std::swap(offset_secs_, other->offset_secs_); - std::swap(audio_stream_idx_, other->audio_stream_idx_); - std::swap(video_stream_idx_, other->video_stream_idx_); - std::swap(subtitle_stream_idx_, other->subtitle_stream_idx_); - 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 MediaRequest_Prepare_Video::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaRequest_Prepare_Video_descriptor_; - metadata.reflection = MediaRequest_Prepare_Video_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int MediaRequest_Prepare::kTypeFieldNumber; -const int MediaRequest_Prepare::kAudioFieldNumber; -const int MediaRequest_Prepare::kVideoFieldNumber; -#endif // !_MSC_VER - -MediaRequest_Prepare::MediaRequest_Prepare() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaRequest_Prepare::InitAsDefaultInstance() { - audio_ = const_cast< ::Remote::MediaRequest_Prepare_Audio*>(&::Remote::MediaRequest_Prepare_Audio::default_instance()); - video_ = const_cast< ::Remote::MediaRequest_Prepare_Video*>(&::Remote::MediaRequest_Prepare_Video::default_instance()); -} - -MediaRequest_Prepare::MediaRequest_Prepare(const MediaRequest_Prepare& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaRequest_Prepare::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - audio_ = NULL; - video_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaRequest_Prepare::~MediaRequest_Prepare() { - SharedDtor(); -} - -void MediaRequest_Prepare::SharedDtor() { - if (this != default_instance_) { - delete audio_; - delete video_; - } -} - -void MediaRequest_Prepare::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaRequest_Prepare::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Prepare_descriptor_; -} - -const MediaRequest_Prepare& MediaRequest_Prepare::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaRequest_Prepare* MediaRequest_Prepare::default_instance_ = NULL; - -MediaRequest_Prepare* MediaRequest_Prepare::New() const { - return new MediaRequest_Prepare; -} - -void MediaRequest_Prepare::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - if (has_audio()) { - if (audio_ != NULL) audio_->::Remote::MediaRequest_Prepare_Audio::Clear(); - } - if (has_video()) { - if (video_ != NULL) video_->::Remote::MediaRequest_Prepare_Video::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaRequest_Prepare::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.MediaRequest.Prepare.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::MediaRequest_Prepare_Type_IsValid(value)) { - set_type(static_cast< ::Remote::MediaRequest_Prepare_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_audio; - break; - } - - // optional .Remote.MediaRequest.Prepare.Audio audio = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_audio: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_audio())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_video; - break; - } - - // optional .Remote.MediaRequest.Prepare.Video video = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_video: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_video())); - } 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 MediaRequest_Prepare::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.MediaRequest.Prepare.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional .Remote.MediaRequest.Prepare.Audio audio = 2; - if (has_audio()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->audio(), output); - } - - // optional .Remote.MediaRequest.Prepare.Video video = 3; - if (has_video()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->video(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaRequest_Prepare::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.MediaRequest.Prepare.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional .Remote.MediaRequest.Prepare.Audio audio = 2; - if (has_audio()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->audio(), target); - } - - // optional .Remote.MediaRequest.Prepare.Video video = 3; - if (has_video()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->video(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaRequest_Prepare::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.MediaRequest.Prepare.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .Remote.MediaRequest.Prepare.Audio audio = 2; - if (has_audio()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->audio()); - } - - // optional .Remote.MediaRequest.Prepare.Video video = 3; - if (has_video()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->video()); - } - - } - 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 MediaRequest_Prepare::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaRequest_Prepare* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaRequest_Prepare::MergeFrom(const MediaRequest_Prepare& 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_audio()) { - mutable_audio()->::Remote::MediaRequest_Prepare_Audio::MergeFrom(from.audio()); - } - if (from.has_video()) { - mutable_video()->::Remote::MediaRequest_Prepare_Video::MergeFrom(from.video()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaRequest_Prepare::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaRequest_Prepare::CopyFrom(const MediaRequest_Prepare& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaRequest_Prepare::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_audio()) { - if (!this->audio().IsInitialized()) return false; - } - if (has_video()) { - if (!this->video().IsInitialized()) return false; - } - return true; -} - -void MediaRequest_Prepare::Swap(MediaRequest_Prepare* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(audio_, other->audio_); - std::swap(video_, other->video_); - 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 MediaRequest_Prepare::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaRequest_Prepare_descriptor_; - metadata.reflection = MediaRequest_Prepare_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int MediaRequest_GetPart::kHandleFieldNumber; -const int MediaRequest_GetPart::kRequestedDataSizeFieldNumber; -#endif // !_MSC_VER - -MediaRequest_GetPart::MediaRequest_GetPart() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaRequest_GetPart::InitAsDefaultInstance() { -} - -MediaRequest_GetPart::MediaRequest_GetPart(const MediaRequest_GetPart& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaRequest_GetPart::SharedCtor() { - _cached_size_ = 0; - handle_ = 0u; - requested_data_size_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaRequest_GetPart::~MediaRequest_GetPart() { - SharedDtor(); -} - -void MediaRequest_GetPart::SharedDtor() { - if (this != default_instance_) { - } -} - -void MediaRequest_GetPart::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaRequest_GetPart::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_GetPart_descriptor_; -} - -const MediaRequest_GetPart& MediaRequest_GetPart::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaRequest_GetPart* MediaRequest_GetPart::default_instance_ = NULL; - -MediaRequest_GetPart* MediaRequest_GetPart::New() const { - return new MediaRequest_GetPart; -} - -void MediaRequest_GetPart::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - handle_ = 0u; - requested_data_size_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaRequest_GetPart::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 uint32 handle = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &handle_))); - set_has_handle(); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_requested_data_size; - break; - } - - // required uint32 requested_data_size = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_requested_data_size: - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &requested_data_size_))); - set_has_requested_data_size(); - } 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 MediaRequest_GetPart::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 handle = 1; - if (has_handle()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->handle(), output); - } - - // required uint32 requested_data_size = 2; - if (has_requested_data_size()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->requested_data_size(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaRequest_GetPart::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required uint32 handle = 1; - if (has_handle()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->handle(), target); - } - - // required uint32 requested_data_size = 2; - if (has_requested_data_size()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->requested_data_size(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaRequest_GetPart::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 handle = 1; - if (has_handle()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handle()); - } - - // required uint32 requested_data_size = 2; - if (has_requested_data_size()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->requested_data_size()); - } - - } - 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 MediaRequest_GetPart::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaRequest_GetPart* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaRequest_GetPart::MergeFrom(const MediaRequest_GetPart& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_handle()) { - set_handle(from.handle()); - } - if (from.has_requested_data_size()) { - set_requested_data_size(from.requested_data_size()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaRequest_GetPart::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaRequest_GetPart::CopyFrom(const MediaRequest_GetPart& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaRequest_GetPart::IsInitialized() const { - if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; - - return true; -} - -void MediaRequest_GetPart::Swap(MediaRequest_GetPart* other) { - if (other != this) { - std::swap(handle_, other->handle_); - std::swap(requested_data_size_, other->requested_data_size_); - 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 MediaRequest_GetPart::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaRequest_GetPart_descriptor_; - metadata.reflection = MediaRequest_GetPart_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int MediaRequest_Terminate::kHandleFieldNumber; -#endif // !_MSC_VER - -MediaRequest_Terminate::MediaRequest_Terminate() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaRequest_Terminate::InitAsDefaultInstance() { -} - -MediaRequest_Terminate::MediaRequest_Terminate(const MediaRequest_Terminate& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaRequest_Terminate::SharedCtor() { - _cached_size_ = 0; - handle_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaRequest_Terminate::~MediaRequest_Terminate() { - SharedDtor(); -} - -void MediaRequest_Terminate::SharedDtor() { - if (this != default_instance_) { - } -} - -void MediaRequest_Terminate::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaRequest_Terminate::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_Terminate_descriptor_; -} - -const MediaRequest_Terminate& MediaRequest_Terminate::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaRequest_Terminate* MediaRequest_Terminate::default_instance_ = NULL; - -MediaRequest_Terminate* MediaRequest_Terminate::New() const { - return new MediaRequest_Terminate; -} - -void MediaRequest_Terminate::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - handle_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaRequest_Terminate::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 uint32 handle = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &handle_))); - set_has_handle(); - } 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 MediaRequest_Terminate::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required uint32 handle = 1; - if (has_handle()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->handle(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaRequest_Terminate::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required uint32 handle = 1; - if (has_handle()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->handle(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaRequest_Terminate::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required uint32 handle = 1; - if (has_handle()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handle()); - } - - } - 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 MediaRequest_Terminate::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaRequest_Terminate* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaRequest_Terminate::MergeFrom(const MediaRequest_Terminate& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_handle()) { - set_handle(from.handle()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaRequest_Terminate::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaRequest_Terminate::CopyFrom(const MediaRequest_Terminate& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaRequest_Terminate::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void MediaRequest_Terminate::Swap(MediaRequest_Terminate* other) { - if (other != this) { - std::swap(handle_, other->handle_); - 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 MediaRequest_Terminate::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaRequest_Terminate_descriptor_; - metadata.reflection = MediaRequest_Terminate_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int MediaRequest::kTypeFieldNumber; -const int MediaRequest::kPrepareFieldNumber; -const int MediaRequest::kGetPartFieldNumber; -const int MediaRequest::kTerminateFieldNumber; -#endif // !_MSC_VER - -MediaRequest::MediaRequest() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaRequest::InitAsDefaultInstance() { - prepare_ = const_cast< ::Remote::MediaRequest_Prepare*>(&::Remote::MediaRequest_Prepare::default_instance()); - get_part_ = const_cast< ::Remote::MediaRequest_GetPart*>(&::Remote::MediaRequest_GetPart::default_instance()); - terminate_ = const_cast< ::Remote::MediaRequest_Terminate*>(&::Remote::MediaRequest_Terminate::default_instance()); -} - -MediaRequest::MediaRequest(const MediaRequest& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaRequest::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - prepare_ = NULL; - get_part_ = NULL; - terminate_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaRequest::~MediaRequest() { - SharedDtor(); -} - -void MediaRequest::SharedDtor() { - if (this != default_instance_) { - delete prepare_; - delete get_part_; - delete terminate_; - } -} - -void MediaRequest::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaRequest::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaRequest_descriptor_; -} - -const MediaRequest& MediaRequest::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaRequest* MediaRequest::default_instance_ = NULL; - -MediaRequest* MediaRequest::New() const { - return new MediaRequest; -} - -void MediaRequest::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - if (has_prepare()) { - if (prepare_ != NULL) prepare_->::Remote::MediaRequest_Prepare::Clear(); - } - if (has_get_part()) { - if (get_part_ != NULL) get_part_->::Remote::MediaRequest_GetPart::Clear(); - } - if (has_terminate()) { - if (terminate_ != NULL) terminate_->::Remote::MediaRequest_Terminate::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaRequest::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.MediaRequest.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::MediaRequest_Type_IsValid(value)) { - set_type(static_cast< ::Remote::MediaRequest_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_prepare; - break; - } - - // optional .Remote.MediaRequest.Prepare prepare = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_prepare: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_prepare())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_get_part; - break; - } - - // optional .Remote.MediaRequest.GetPart get_part = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_get_part: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_get_part())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_terminate; - break; - } - - // optional .Remote.MediaRequest.Terminate terminate = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_terminate: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_terminate())); - } 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 MediaRequest::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.MediaRequest.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional .Remote.MediaRequest.Prepare prepare = 2; - if (has_prepare()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->prepare(), output); - } - - // optional .Remote.MediaRequest.GetPart get_part = 3; - if (has_get_part()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->get_part(), output); - } - - // optional .Remote.MediaRequest.Terminate terminate = 4; - if (has_terminate()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->terminate(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaRequest::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.MediaRequest.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional .Remote.MediaRequest.Prepare prepare = 2; - if (has_prepare()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->prepare(), target); - } - - // optional .Remote.MediaRequest.GetPart get_part = 3; - if (has_get_part()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->get_part(), target); - } - - // optional .Remote.MediaRequest.Terminate terminate = 4; - if (has_terminate()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->terminate(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaRequest::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.MediaRequest.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .Remote.MediaRequest.Prepare prepare = 2; - if (has_prepare()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->prepare()); - } - - // optional .Remote.MediaRequest.GetPart get_part = 3; - if (has_get_part()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->get_part()); - } - - // optional .Remote.MediaRequest.Terminate terminate = 4; - if (has_terminate()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->terminate()); - } - - } - 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 MediaRequest::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaRequest::MergeFrom(const MediaRequest& 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_prepare()) { - mutable_prepare()->::Remote::MediaRequest_Prepare::MergeFrom(from.prepare()); - } - if (from.has_get_part()) { - mutable_get_part()->::Remote::MediaRequest_GetPart::MergeFrom(from.get_part()); - } - if (from.has_terminate()) { - mutable_terminate()->::Remote::MediaRequest_Terminate::MergeFrom(from.terminate()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaRequest::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaRequest::CopyFrom(const MediaRequest& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaRequest::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_prepare()) { - if (!this->prepare().IsInitialized()) return false; - } - if (has_get_part()) { - if (!this->get_part().IsInitialized()) return false; - } - if (has_terminate()) { - if (!this->terminate().IsInitialized()) return false; - } - return true; -} - -void MediaRequest::Swap(MediaRequest* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(prepare_, other->prepare_); - std::swap(get_part_, other->get_part_); - std::swap(terminate_, other->terminate_); - 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 MediaRequest::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaRequest_descriptor_; - metadata.reflection = MediaRequest_reflection_; - return metadata; -} - - -// =================================================================== - -const ::google::protobuf::EnumDescriptor* MediaResponse_Type_descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaResponse_Type_descriptor_; -} -bool MediaResponse_Type_IsValid(int value) { - switch(value) { - case 1: - case 2: - case 3: - return true; - default: - return false; - } -} - -#ifndef _MSC_VER -const MediaResponse_Type MediaResponse::TypePrepareResult; -const MediaResponse_Type MediaResponse::TypePartResult; -const MediaResponse_Type MediaResponse::TypeTerminateResult; -const MediaResponse_Type MediaResponse::Type_MIN; -const MediaResponse_Type MediaResponse::Type_MAX; -const int MediaResponse::Type_ARRAYSIZE; -#endif // _MSC_VER -#ifndef _MSC_VER -const int MediaResponse_PrepareResult::kHandleFieldNumber; -#endif // !_MSC_VER - -MediaResponse_PrepareResult::MediaResponse_PrepareResult() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaResponse_PrepareResult::InitAsDefaultInstance() { -} - -MediaResponse_PrepareResult::MediaResponse_PrepareResult(const MediaResponse_PrepareResult& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaResponse_PrepareResult::SharedCtor() { - _cached_size_ = 0; - handle_ = 0u; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaResponse_PrepareResult::~MediaResponse_PrepareResult() { - SharedDtor(); -} - -void MediaResponse_PrepareResult::SharedDtor() { - if (this != default_instance_) { - } -} - -void MediaResponse_PrepareResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaResponse_PrepareResult::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaResponse_PrepareResult_descriptor_; -} - -const MediaResponse_PrepareResult& MediaResponse_PrepareResult::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaResponse_PrepareResult* MediaResponse_PrepareResult::default_instance_ = NULL; - -MediaResponse_PrepareResult* MediaResponse_PrepareResult::New() const { - return new MediaResponse_PrepareResult; -} - -void MediaResponse_PrepareResult::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - handle_ = 0u; - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaResponse_PrepareResult::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)) { - // optional uint32 handle = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>( - input, &handle_))); - set_has_handle(); - } 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 MediaResponse_PrepareResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional uint32 handle = 1; - if (has_handle()) { - ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->handle(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaResponse_PrepareResult::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional uint32 handle = 1; - if (has_handle()) { - target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->handle(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaResponse_PrepareResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional uint32 handle = 1; - if (has_handle()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::UInt32Size( - this->handle()); - } - - } - 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 MediaResponse_PrepareResult::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaResponse_PrepareResult* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaResponse_PrepareResult::MergeFrom(const MediaResponse_PrepareResult& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_handle()) { - set_handle(from.handle()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaResponse_PrepareResult::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaResponse_PrepareResult::CopyFrom(const MediaResponse_PrepareResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaResponse_PrepareResult::IsInitialized() const { - - return true; -} - -void MediaResponse_PrepareResult::Swap(MediaResponse_PrepareResult* other) { - if (other != this) { - std::swap(handle_, other->handle_); - 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 MediaResponse_PrepareResult::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaResponse_PrepareResult_descriptor_; - metadata.reflection = MediaResponse_PrepareResult_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int MediaResponse_PartResult::kDataFieldNumber; -#endif // !_MSC_VER - -MediaResponse_PartResult::MediaResponse_PartResult() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaResponse_PartResult::InitAsDefaultInstance() { -} - -MediaResponse_PartResult::MediaResponse_PartResult(const MediaResponse_PartResult& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaResponse_PartResult::SharedCtor() { - _cached_size_ = 0; - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaResponse_PartResult::~MediaResponse_PartResult() { - SharedDtor(); -} - -void MediaResponse_PartResult::SharedDtor() { - if (data_ != &::google::protobuf::internal::kEmptyString) { - delete data_; - } - if (this != default_instance_) { - } -} - -void MediaResponse_PartResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaResponse_PartResult::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaResponse_PartResult_descriptor_; -} - -const MediaResponse_PartResult& MediaResponse_PartResult::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaResponse_PartResult* MediaResponse_PartResult::default_instance_ = NULL; - -MediaResponse_PartResult* MediaResponse_PartResult::New() const { - return new MediaResponse_PartResult; -} - -void MediaResponse_PartResult::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_data()) { - if (data_ != &::google::protobuf::internal::kEmptyString) { - data_->clear(); - } - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaResponse_PartResult::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)) { - // optional bytes data = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadBytes( - input, this->mutable_data())); - } 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 MediaResponse_PartResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // optional bytes data = 2; - if (has_data()) { - ::google::protobuf::internal::WireFormatLite::WriteBytes( - 2, this->data(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaResponse_PartResult::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // optional bytes data = 2; - if (has_data()) { - target = - ::google::protobuf::internal::WireFormatLite::WriteBytesToArray( - 2, this->data(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaResponse_PartResult::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // optional bytes data = 2; - if (has_data()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::BytesSize( - this->data()); - } - - } - 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 MediaResponse_PartResult::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaResponse_PartResult* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaResponse_PartResult::MergeFrom(const MediaResponse_PartResult& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_data()) { - set_data(from.data()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaResponse_PartResult::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaResponse_PartResult::CopyFrom(const MediaResponse_PartResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaResponse_PartResult::IsInitialized() const { - - return true; -} - -void MediaResponse_PartResult::Swap(MediaResponse_PartResult* other) { - if (other != this) { - std::swap(data_, other->data_); - 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 MediaResponse_PartResult::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaResponse_PartResult_descriptor_; - metadata.reflection = MediaResponse_PartResult_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -#endif // !_MSC_VER - -MediaResponse_TerminateResult::MediaResponse_TerminateResult() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaResponse_TerminateResult::InitAsDefaultInstance() { -} - -MediaResponse_TerminateResult::MediaResponse_TerminateResult(const MediaResponse_TerminateResult& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaResponse_TerminateResult::SharedCtor() { - _cached_size_ = 0; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaResponse_TerminateResult::~MediaResponse_TerminateResult() { - SharedDtor(); -} - -void MediaResponse_TerminateResult::SharedDtor() { - if (this != default_instance_) { - } -} - -void MediaResponse_TerminateResult::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaResponse_TerminateResult::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaResponse_TerminateResult_descriptor_; -} - -const MediaResponse_TerminateResult& MediaResponse_TerminateResult::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaResponse_TerminateResult* MediaResponse_TerminateResult::default_instance_ = NULL; - -MediaResponse_TerminateResult* MediaResponse_TerminateResult::New() const { - return new MediaResponse_TerminateResult; -} - -void MediaResponse_TerminateResult::Clear() { - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaResponse_TerminateResult::MergePartialFromCodedStream( - ::google::protobuf::io::CodedInputStream* input) { -#define DO_(EXPRESSION) if (!(EXPRESSION)) return false - ::google::protobuf::uint32 tag; - while ((tag = input->ReadTag()) != 0) { - 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())); - } - return true; -#undef DO_ -} - -void MediaResponse_TerminateResult::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaResponse_TerminateResult::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaResponse_TerminateResult::ByteSize() const { - int total_size = 0; - - 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 MediaResponse_TerminateResult::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaResponse_TerminateResult* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaResponse_TerminateResult::MergeFrom(const MediaResponse_TerminateResult& from) { - GOOGLE_CHECK_NE(&from, this); - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaResponse_TerminateResult::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaResponse_TerminateResult::CopyFrom(const MediaResponse_TerminateResult& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaResponse_TerminateResult::IsInitialized() const { - - return true; -} - -void MediaResponse_TerminateResult::Swap(MediaResponse_TerminateResult* other) { - if (other != this) { - _unknown_fields_.Swap(&other->_unknown_fields_); - std::swap(_cached_size_, other->_cached_size_); - } -} - -::google::protobuf::Metadata MediaResponse_TerminateResult::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaResponse_TerminateResult_descriptor_; - metadata.reflection = MediaResponse_TerminateResult_reflection_; - return metadata; -} - - -// ------------------------------------------------------------------- - -#ifndef _MSC_VER -const int MediaResponse::kTypeFieldNumber; -const int MediaResponse::kPrepareResultFieldNumber; -const int MediaResponse::kPartResultFieldNumber; -const int MediaResponse::kTerminateResultFieldNumber; -#endif // !_MSC_VER - -MediaResponse::MediaResponse() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void MediaResponse::InitAsDefaultInstance() { - prepare_result_ = const_cast< ::Remote::MediaResponse_PrepareResult*>(&::Remote::MediaResponse_PrepareResult::default_instance()); - part_result_ = const_cast< ::Remote::MediaResponse_PartResult*>(&::Remote::MediaResponse_PartResult::default_instance()); - terminate_result_ = const_cast< ::Remote::MediaResponse_TerminateResult*>(&::Remote::MediaResponse_TerminateResult::default_instance()); -} - -MediaResponse::MediaResponse(const MediaResponse& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void MediaResponse::SharedCtor() { - _cached_size_ = 0; - type_ = 1; - prepare_result_ = NULL; - part_result_ = NULL; - terminate_result_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -MediaResponse::~MediaResponse() { - SharedDtor(); -} - -void MediaResponse::SharedDtor() { - if (this != default_instance_) { - delete prepare_result_; - delete part_result_; - delete terminate_result_; - } -} - -void MediaResponse::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* MediaResponse::descriptor() { - protobuf_AssignDescriptorsOnce(); - return MediaResponse_descriptor_; -} - -const MediaResponse& MediaResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_media_2eproto(); - return *default_instance_; -} - -MediaResponse* MediaResponse::default_instance_ = NULL; - -MediaResponse* MediaResponse::New() const { - return new MediaResponse; -} - -void MediaResponse::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - type_ = 1; - if (has_prepare_result()) { - if (prepare_result_ != NULL) prepare_result_->::Remote::MediaResponse_PrepareResult::Clear(); - } - if (has_part_result()) { - if (part_result_ != NULL) part_result_->::Remote::MediaResponse_PartResult::Clear(); - } - if (has_terminate_result()) { - if (terminate_result_ != NULL) terminate_result_->::Remote::MediaResponse_TerminateResult::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool MediaResponse::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.MediaResponse.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::MediaResponse_Type_IsValid(value)) { - set_type(static_cast< ::Remote::MediaResponse_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(1, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(18)) goto parse_prepare_result; - break; - } - - // optional .Remote.MediaResponse.PrepareResult prepare_result = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_prepare_result: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_prepare_result())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_part_result; - break; - } - - // optional .Remote.MediaResponse.PartResult part_result = 3; - case 3: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_part_result: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_part_result())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(34)) goto parse_terminate_result; - break; - } - - // optional .Remote.MediaResponse.TerminateResult terminate_result = 4; - case 4: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_terminate_result: - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_terminate_result())); - } 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 MediaResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Remote.MediaResponse.Type type = 1; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 1, this->type(), output); - } - - // optional .Remote.MediaResponse.PrepareResult prepare_result = 2; - if (has_prepare_result()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 2, this->prepare_result(), output); - } - - // optional .Remote.MediaResponse.PartResult part_result = 3; - if (has_part_result()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->part_result(), output); - } - - // optional .Remote.MediaResponse.TerminateResult terminate_result = 4; - if (has_terminate_result()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->terminate_result(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* MediaResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Remote.MediaResponse.Type type = 1; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 1, this->type(), target); - } - - // optional .Remote.MediaResponse.PrepareResult prepare_result = 2; - if (has_prepare_result()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 2, this->prepare_result(), target); - } - - // optional .Remote.MediaResponse.PartResult part_result = 3; - if (has_part_result()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->part_result(), target); - } - - // optional .Remote.MediaResponse.TerminateResult terminate_result = 4; - if (has_terminate_result()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->terminate_result(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int MediaResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Remote.MediaResponse.Type type = 1; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .Remote.MediaResponse.PrepareResult prepare_result = 2; - if (has_prepare_result()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->prepare_result()); - } - - // optional .Remote.MediaResponse.PartResult part_result = 3; - if (has_part_result()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->part_result()); - } - - // optional .Remote.MediaResponse.TerminateResult terminate_result = 4; - if (has_terminate_result()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->terminate_result()); - } - - } - 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 MediaResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const MediaResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void MediaResponse::MergeFrom(const MediaResponse& 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_prepare_result()) { - mutable_prepare_result()->::Remote::MediaResponse_PrepareResult::MergeFrom(from.prepare_result()); - } - if (from.has_part_result()) { - mutable_part_result()->::Remote::MediaResponse_PartResult::MergeFrom(from.part_result()); - } - if (from.has_terminate_result()) { - mutable_terminate_result()->::Remote::MediaResponse_TerminateResult::MergeFrom(from.terminate_result()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void MediaResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void MediaResponse::CopyFrom(const MediaResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool MediaResponse::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - return true; -} - -void MediaResponse::Swap(MediaResponse* other) { - if (other != this) { - std::swap(type_, other->type_); - std::swap(prepare_result_, other->prepare_result_); - std::swap(part_result_, other->part_result_); - std::swap(terminate_result_, other->terminate_result_); - 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 MediaResponse::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = MediaResponse_descriptor_; - metadata.reflection = MediaResponse_reflection_; - return metadata; -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Remote - -// @@protoc_insertion_point(global_scope) diff --git a/remote/messages/media.pb.h b/remote/messages/media.pb.h deleted file mode 100644 index 68956f67..00000000 --- a/remote/messages/media.pb.h +++ /dev/null @@ -1,2307 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: media.proto - -#ifndef PROTOBUF_media_2eproto__INCLUDED -#define PROTOBUF_media_2eproto__INCLUDED - -#include - -#include - -#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 -#include -#include -#include -#include -#include -#include "common.pb.h" -// @@protoc_insertion_point(includes) - -namespace Remote { - -// Internal implementation detail -- do not call these. -void protobuf_AddDesc_media_2eproto(); -void protobuf_AssignDesc_media_2eproto(); -void protobuf_ShutdownFile_media_2eproto(); - -class MediaRequest; -class MediaRequest_Prepare; -class MediaRequest_Prepare_Audio; -class MediaRequest_Prepare_Video; -class MediaRequest_GetPart; -class MediaRequest_Terminate; -class MediaResponse; -class MediaResponse_PrepareResult; -class MediaResponse_PartResult; -class MediaResponse_TerminateResult; - -enum MediaRequest_Prepare_AudioCodecType { - MediaRequest_Prepare_AudioCodecType_AudioCodecTypeOGA = 1 -}; -bool MediaRequest_Prepare_AudioCodecType_IsValid(int value); -const MediaRequest_Prepare_AudioCodecType MediaRequest_Prepare_AudioCodecType_AudioCodecType_MIN = MediaRequest_Prepare_AudioCodecType_AudioCodecTypeOGA; -const MediaRequest_Prepare_AudioCodecType MediaRequest_Prepare_AudioCodecType_AudioCodecType_MAX = MediaRequest_Prepare_AudioCodecType_AudioCodecTypeOGA; -const int MediaRequest_Prepare_AudioCodecType_AudioCodecType_ARRAYSIZE = MediaRequest_Prepare_AudioCodecType_AudioCodecType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_AudioCodecType_descriptor(); -inline const ::std::string& MediaRequest_Prepare_AudioCodecType_Name(MediaRequest_Prepare_AudioCodecType value) { - return ::google::protobuf::internal::NameOfEnum( - MediaRequest_Prepare_AudioCodecType_descriptor(), value); -} -inline bool MediaRequest_Prepare_AudioCodecType_Parse( - const ::std::string& name, MediaRequest_Prepare_AudioCodecType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MediaRequest_Prepare_AudioCodecType_descriptor(), name, value); -} -enum MediaRequest_Prepare_AudioBitrate { - MediaRequest_Prepare_AudioBitrate_AudioBitrate_32_kbps = 1, - MediaRequest_Prepare_AudioBitrate_AudioBitrate_64_kbps = 2, - MediaRequest_Prepare_AudioBitrate_AudioBitrate_96_kbps = 3, - MediaRequest_Prepare_AudioBitrate_AudioBitrate_128_kbps = 4, - MediaRequest_Prepare_AudioBitrate_AudioBitrate_192_kbps = 5, - MediaRequest_Prepare_AudioBitrate_AudioBitrate_256_kbps = 6 -}; -bool MediaRequest_Prepare_AudioBitrate_IsValid(int value); -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare_AudioBitrate_AudioBitrate_MIN = MediaRequest_Prepare_AudioBitrate_AudioBitrate_32_kbps; -const MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare_AudioBitrate_AudioBitrate_MAX = MediaRequest_Prepare_AudioBitrate_AudioBitrate_256_kbps; -const int MediaRequest_Prepare_AudioBitrate_AudioBitrate_ARRAYSIZE = MediaRequest_Prepare_AudioBitrate_AudioBitrate_MAX + 1; - -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_AudioBitrate_descriptor(); -inline const ::std::string& MediaRequest_Prepare_AudioBitrate_Name(MediaRequest_Prepare_AudioBitrate value) { - return ::google::protobuf::internal::NameOfEnum( - MediaRequest_Prepare_AudioBitrate_descriptor(), value); -} -inline bool MediaRequest_Prepare_AudioBitrate_Parse( - const ::std::string& name, MediaRequest_Prepare_AudioBitrate* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MediaRequest_Prepare_AudioBitrate_descriptor(), name, value); -} -enum MediaRequest_Prepare_VideoCodecType { - MediaRequest_Prepare_VideoCodecType_VideoCodecTypeOGV = 1 -}; -bool MediaRequest_Prepare_VideoCodecType_IsValid(int value); -const MediaRequest_Prepare_VideoCodecType MediaRequest_Prepare_VideoCodecType_VideoCodecType_MIN = MediaRequest_Prepare_VideoCodecType_VideoCodecTypeOGV; -const MediaRequest_Prepare_VideoCodecType MediaRequest_Prepare_VideoCodecType_VideoCodecType_MAX = MediaRequest_Prepare_VideoCodecType_VideoCodecTypeOGV; -const int MediaRequest_Prepare_VideoCodecType_VideoCodecType_ARRAYSIZE = MediaRequest_Prepare_VideoCodecType_VideoCodecType_MAX + 1; - -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_VideoCodecType_descriptor(); -inline const ::std::string& MediaRequest_Prepare_VideoCodecType_Name(MediaRequest_Prepare_VideoCodecType value) { - return ::google::protobuf::internal::NameOfEnum( - MediaRequest_Prepare_VideoCodecType_descriptor(), value); -} -inline bool MediaRequest_Prepare_VideoCodecType_Parse( - const ::std::string& name, MediaRequest_Prepare_VideoCodecType* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MediaRequest_Prepare_VideoCodecType_descriptor(), name, value); -} -enum MediaRequest_Prepare_VideoBitrate { - MediaRequest_Prepare_VideoBitrate_VideoBitrate_512_kbps = 1 -}; -bool MediaRequest_Prepare_VideoBitrate_IsValid(int value); -const MediaRequest_Prepare_VideoBitrate MediaRequest_Prepare_VideoBitrate_VideoBitrate_MIN = MediaRequest_Prepare_VideoBitrate_VideoBitrate_512_kbps; -const MediaRequest_Prepare_VideoBitrate MediaRequest_Prepare_VideoBitrate_VideoBitrate_MAX = MediaRequest_Prepare_VideoBitrate_VideoBitrate_512_kbps; -const int MediaRequest_Prepare_VideoBitrate_VideoBitrate_ARRAYSIZE = MediaRequest_Prepare_VideoBitrate_VideoBitrate_MAX + 1; - -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_VideoBitrate_descriptor(); -inline const ::std::string& MediaRequest_Prepare_VideoBitrate_Name(MediaRequest_Prepare_VideoBitrate value) { - return ::google::protobuf::internal::NameOfEnum( - MediaRequest_Prepare_VideoBitrate_descriptor(), value); -} -inline bool MediaRequest_Prepare_VideoBitrate_Parse( - const ::std::string& name, MediaRequest_Prepare_VideoBitrate* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MediaRequest_Prepare_VideoBitrate_descriptor(), name, value); -} -enum MediaRequest_Prepare_Type { - MediaRequest_Prepare_Type_AudioRequest = 1, - MediaRequest_Prepare_Type_VideoRequest = 2 -}; -bool MediaRequest_Prepare_Type_IsValid(int value); -const MediaRequest_Prepare_Type MediaRequest_Prepare_Type_Type_MIN = MediaRequest_Prepare_Type_AudioRequest; -const MediaRequest_Prepare_Type MediaRequest_Prepare_Type_Type_MAX = MediaRequest_Prepare_Type_VideoRequest; -const int MediaRequest_Prepare_Type_Type_ARRAYSIZE = MediaRequest_Prepare_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* MediaRequest_Prepare_Type_descriptor(); -inline const ::std::string& MediaRequest_Prepare_Type_Name(MediaRequest_Prepare_Type value) { - return ::google::protobuf::internal::NameOfEnum( - MediaRequest_Prepare_Type_descriptor(), value); -} -inline bool MediaRequest_Prepare_Type_Parse( - const ::std::string& name, MediaRequest_Prepare_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MediaRequest_Prepare_Type_descriptor(), name, value); -} -enum MediaRequest_Type { - MediaRequest_Type_TypeMediaPrepare = 1, - MediaRequest_Type_TypeMediaGetPart = 2, - MediaRequest_Type_TypeMediaTerminate = 3 -}; -bool MediaRequest_Type_IsValid(int value); -const MediaRequest_Type MediaRequest_Type_Type_MIN = MediaRequest_Type_TypeMediaPrepare; -const MediaRequest_Type MediaRequest_Type_Type_MAX = MediaRequest_Type_TypeMediaTerminate; -const int MediaRequest_Type_Type_ARRAYSIZE = MediaRequest_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* MediaRequest_Type_descriptor(); -inline const ::std::string& MediaRequest_Type_Name(MediaRequest_Type value) { - return ::google::protobuf::internal::NameOfEnum( - MediaRequest_Type_descriptor(), value); -} -inline bool MediaRequest_Type_Parse( - const ::std::string& name, MediaRequest_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MediaRequest_Type_descriptor(), name, value); -} -enum MediaResponse_Type { - MediaResponse_Type_TypePrepareResult = 1, - MediaResponse_Type_TypePartResult = 2, - MediaResponse_Type_TypeTerminateResult = 3 -}; -bool MediaResponse_Type_IsValid(int value); -const MediaResponse_Type MediaResponse_Type_Type_MIN = MediaResponse_Type_TypePrepareResult; -const MediaResponse_Type MediaResponse_Type_Type_MAX = MediaResponse_Type_TypeTerminateResult; -const int MediaResponse_Type_Type_ARRAYSIZE = MediaResponse_Type_Type_MAX + 1; - -const ::google::protobuf::EnumDescriptor* MediaResponse_Type_descriptor(); -inline const ::std::string& MediaResponse_Type_Name(MediaResponse_Type value) { - return ::google::protobuf::internal::NameOfEnum( - MediaResponse_Type_descriptor(), value); -} -inline bool MediaResponse_Type_Parse( - const ::std::string& name, MediaResponse_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - MediaResponse_Type_descriptor(), name, value); -} -// =================================================================== - -class MediaRequest_Prepare_Audio : public ::google::protobuf::Message { - public: - MediaRequest_Prepare_Audio(); - virtual ~MediaRequest_Prepare_Audio(); - - MediaRequest_Prepare_Audio(const MediaRequest_Prepare_Audio& from); - - inline MediaRequest_Prepare_Audio& operator=(const MediaRequest_Prepare_Audio& 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 MediaRequest_Prepare_Audio& default_instance(); - - void Swap(MediaRequest_Prepare_Audio* other); - - // implements Message ---------------------------------------------- - - MediaRequest_Prepare_Audio* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaRequest_Prepare_Audio& from); - void MergeFrom(const MediaRequest_Prepare_Audio& 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 int64 track_id = 1; - inline bool has_track_id() const; - inline void clear_track_id(); - static const int kTrackIdFieldNumber = 1; - inline ::google::protobuf::int64 track_id() const; - inline void set_track_id(::google::protobuf::int64 value); - - // required .Remote.MediaRequest.Prepare.AudioCodecType codec_type = 2; - inline bool has_codec_type() const; - inline void clear_codec_type(); - static const int kCodecTypeFieldNumber = 2; - inline ::Remote::MediaRequest_Prepare_AudioCodecType codec_type() const; - inline void set_codec_type(::Remote::MediaRequest_Prepare_AudioCodecType value); - - // required .Remote.MediaRequest.Prepare.AudioBitrate bitrate = 3; - inline bool has_bitrate() const; - inline void clear_bitrate(); - static const int kBitrateFieldNumber = 3; - inline ::Remote::MediaRequest_Prepare_AudioBitrate bitrate() const; - inline void set_bitrate(::Remote::MediaRequest_Prepare_AudioBitrate value); - - // optional uint32 stream_idx = 4; - inline bool has_stream_idx() const; - inline void clear_stream_idx(); - static const int kStreamIdxFieldNumber = 4; - inline ::google::protobuf::uint32 stream_idx() const; - inline void set_stream_idx(::google::protobuf::uint32 value); - - // optional uint32 offset_secs = 5; - inline bool has_offset_secs() const; - inline void clear_offset_secs(); - static const int kOffsetSecsFieldNumber = 5; - inline ::google::protobuf::uint32 offset_secs() const; - inline void set_offset_secs(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:Remote.MediaRequest.Prepare.Audio) - private: - inline void set_has_track_id(); - inline void clear_has_track_id(); - inline void set_has_codec_type(); - inline void clear_has_codec_type(); - inline void set_has_bitrate(); - inline void clear_has_bitrate(); - inline void set_has_stream_idx(); - inline void clear_has_stream_idx(); - inline void set_has_offset_secs(); - inline void clear_has_offset_secs(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::int64 track_id_; - int codec_type_; - int bitrate_; - ::google::protobuf::uint32 stream_idx_; - ::google::protobuf::uint32 offset_secs_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaRequest_Prepare_Audio* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaRequest_Prepare_Video : public ::google::protobuf::Message { - public: - MediaRequest_Prepare_Video(); - virtual ~MediaRequest_Prepare_Video(); - - MediaRequest_Prepare_Video(const MediaRequest_Prepare_Video& from); - - inline MediaRequest_Prepare_Video& operator=(const MediaRequest_Prepare_Video& 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 MediaRequest_Prepare_Video& default_instance(); - - void Swap(MediaRequest_Prepare_Video* other); - - // implements Message ---------------------------------------------- - - MediaRequest_Prepare_Video* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaRequest_Prepare_Video& from); - void MergeFrom(const MediaRequest_Prepare_Video& 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 int64 video_id = 1; - inline bool has_video_id() const; - inline void clear_video_id(); - static const int kVideoIdFieldNumber = 1; - inline ::google::protobuf::int64 video_id() const; - inline void set_video_id(::google::protobuf::int64 value); - - // required .Remote.MediaRequest.Prepare.VideoCodecType codec_type = 2; - inline bool has_codec_type() const; - inline void clear_codec_type(); - static const int kCodecTypeFieldNumber = 2; - inline ::Remote::MediaRequest_Prepare_VideoCodecType codec_type() const; - inline void set_codec_type(::Remote::MediaRequest_Prepare_VideoCodecType value); - - // required .Remote.MediaRequest.Prepare.AudioBitrate audio_bitrate = 3; - inline bool has_audio_bitrate() const; - inline void clear_audio_bitrate(); - static const int kAudioBitrateFieldNumber = 3; - inline ::Remote::MediaRequest_Prepare_AudioBitrate audio_bitrate() const; - inline void set_audio_bitrate(::Remote::MediaRequest_Prepare_AudioBitrate value); - - // required .Remote.MediaRequest.Prepare.VideoBitrate video_bitrate = 4; - inline bool has_video_bitrate() const; - inline void clear_video_bitrate(); - static const int kVideoBitrateFieldNumber = 4; - inline ::Remote::MediaRequest_Prepare_VideoBitrate video_bitrate() const; - inline void set_video_bitrate(::Remote::MediaRequest_Prepare_VideoBitrate value); - - // optional uint32 offset_secs = 5; - inline bool has_offset_secs() const; - inline void clear_offset_secs(); - static const int kOffsetSecsFieldNumber = 5; - inline ::google::protobuf::uint32 offset_secs() const; - inline void set_offset_secs(::google::protobuf::uint32 value); - - // optional uint32 audio_stream_idx = 6; - inline bool has_audio_stream_idx() const; - inline void clear_audio_stream_idx(); - static const int kAudioStreamIdxFieldNumber = 6; - inline ::google::protobuf::uint32 audio_stream_idx() const; - inline void set_audio_stream_idx(::google::protobuf::uint32 value); - - // optional uint32 video_stream_idx = 7; - inline bool has_video_stream_idx() const; - inline void clear_video_stream_idx(); - static const int kVideoStreamIdxFieldNumber = 7; - inline ::google::protobuf::uint32 video_stream_idx() const; - inline void set_video_stream_idx(::google::protobuf::uint32 value); - - // optional uint32 subtitle_stream_idx = 8; - inline bool has_subtitle_stream_idx() const; - inline void clear_subtitle_stream_idx(); - static const int kSubtitleStreamIdxFieldNumber = 8; - inline ::google::protobuf::uint32 subtitle_stream_idx() const; - inline void set_subtitle_stream_idx(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:Remote.MediaRequest.Prepare.Video) - private: - inline void set_has_video_id(); - inline void clear_has_video_id(); - inline void set_has_codec_type(); - inline void clear_has_codec_type(); - inline void set_has_audio_bitrate(); - inline void clear_has_audio_bitrate(); - inline void set_has_video_bitrate(); - inline void clear_has_video_bitrate(); - inline void set_has_offset_secs(); - inline void clear_has_offset_secs(); - inline void set_has_audio_stream_idx(); - inline void clear_has_audio_stream_idx(); - inline void set_has_video_stream_idx(); - inline void clear_has_video_stream_idx(); - inline void set_has_subtitle_stream_idx(); - inline void clear_has_subtitle_stream_idx(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::int64 video_id_; - int codec_type_; - int audio_bitrate_; - int video_bitrate_; - ::google::protobuf::uint32 offset_secs_; - ::google::protobuf::uint32 audio_stream_idx_; - ::google::protobuf::uint32 video_stream_idx_; - ::google::protobuf::uint32 subtitle_stream_idx_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(8 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaRequest_Prepare_Video* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaRequest_Prepare : public ::google::protobuf::Message { - public: - MediaRequest_Prepare(); - virtual ~MediaRequest_Prepare(); - - MediaRequest_Prepare(const MediaRequest_Prepare& from); - - inline MediaRequest_Prepare& operator=(const MediaRequest_Prepare& 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 MediaRequest_Prepare& default_instance(); - - void Swap(MediaRequest_Prepare* other); - - // implements Message ---------------------------------------------- - - MediaRequest_Prepare* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaRequest_Prepare& from); - void MergeFrom(const MediaRequest_Prepare& 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 MediaRequest_Prepare_Audio Audio; - typedef MediaRequest_Prepare_Video Video; - - typedef MediaRequest_Prepare_AudioCodecType AudioCodecType; - static const AudioCodecType AudioCodecTypeOGA = MediaRequest_Prepare_AudioCodecType_AudioCodecTypeOGA; - static inline bool AudioCodecType_IsValid(int value) { - return MediaRequest_Prepare_AudioCodecType_IsValid(value); - } - static const AudioCodecType AudioCodecType_MIN = - MediaRequest_Prepare_AudioCodecType_AudioCodecType_MIN; - static const AudioCodecType AudioCodecType_MAX = - MediaRequest_Prepare_AudioCodecType_AudioCodecType_MAX; - static const int AudioCodecType_ARRAYSIZE = - MediaRequest_Prepare_AudioCodecType_AudioCodecType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - AudioCodecType_descriptor() { - return MediaRequest_Prepare_AudioCodecType_descriptor(); - } - static inline const ::std::string& AudioCodecType_Name(AudioCodecType value) { - return MediaRequest_Prepare_AudioCodecType_Name(value); - } - static inline bool AudioCodecType_Parse(const ::std::string& name, - AudioCodecType* value) { - return MediaRequest_Prepare_AudioCodecType_Parse(name, value); - } - - typedef MediaRequest_Prepare_AudioBitrate AudioBitrate; - static const AudioBitrate AudioBitrate_32_kbps = MediaRequest_Prepare_AudioBitrate_AudioBitrate_32_kbps; - static const AudioBitrate AudioBitrate_64_kbps = MediaRequest_Prepare_AudioBitrate_AudioBitrate_64_kbps; - static const AudioBitrate AudioBitrate_96_kbps = MediaRequest_Prepare_AudioBitrate_AudioBitrate_96_kbps; - static const AudioBitrate AudioBitrate_128_kbps = MediaRequest_Prepare_AudioBitrate_AudioBitrate_128_kbps; - static const AudioBitrate AudioBitrate_192_kbps = MediaRequest_Prepare_AudioBitrate_AudioBitrate_192_kbps; - static const AudioBitrate AudioBitrate_256_kbps = MediaRequest_Prepare_AudioBitrate_AudioBitrate_256_kbps; - static inline bool AudioBitrate_IsValid(int value) { - return MediaRequest_Prepare_AudioBitrate_IsValid(value); - } - static const AudioBitrate AudioBitrate_MIN = - MediaRequest_Prepare_AudioBitrate_AudioBitrate_MIN; - static const AudioBitrate AudioBitrate_MAX = - MediaRequest_Prepare_AudioBitrate_AudioBitrate_MAX; - static const int AudioBitrate_ARRAYSIZE = - MediaRequest_Prepare_AudioBitrate_AudioBitrate_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - AudioBitrate_descriptor() { - return MediaRequest_Prepare_AudioBitrate_descriptor(); - } - static inline const ::std::string& AudioBitrate_Name(AudioBitrate value) { - return MediaRequest_Prepare_AudioBitrate_Name(value); - } - static inline bool AudioBitrate_Parse(const ::std::string& name, - AudioBitrate* value) { - return MediaRequest_Prepare_AudioBitrate_Parse(name, value); - } - - typedef MediaRequest_Prepare_VideoCodecType VideoCodecType; - static const VideoCodecType VideoCodecTypeOGV = MediaRequest_Prepare_VideoCodecType_VideoCodecTypeOGV; - static inline bool VideoCodecType_IsValid(int value) { - return MediaRequest_Prepare_VideoCodecType_IsValid(value); - } - static const VideoCodecType VideoCodecType_MIN = - MediaRequest_Prepare_VideoCodecType_VideoCodecType_MIN; - static const VideoCodecType VideoCodecType_MAX = - MediaRequest_Prepare_VideoCodecType_VideoCodecType_MAX; - static const int VideoCodecType_ARRAYSIZE = - MediaRequest_Prepare_VideoCodecType_VideoCodecType_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - VideoCodecType_descriptor() { - return MediaRequest_Prepare_VideoCodecType_descriptor(); - } - static inline const ::std::string& VideoCodecType_Name(VideoCodecType value) { - return MediaRequest_Prepare_VideoCodecType_Name(value); - } - static inline bool VideoCodecType_Parse(const ::std::string& name, - VideoCodecType* value) { - return MediaRequest_Prepare_VideoCodecType_Parse(name, value); - } - - typedef MediaRequest_Prepare_VideoBitrate VideoBitrate; - static const VideoBitrate VideoBitrate_512_kbps = MediaRequest_Prepare_VideoBitrate_VideoBitrate_512_kbps; - static inline bool VideoBitrate_IsValid(int value) { - return MediaRequest_Prepare_VideoBitrate_IsValid(value); - } - static const VideoBitrate VideoBitrate_MIN = - MediaRequest_Prepare_VideoBitrate_VideoBitrate_MIN; - static const VideoBitrate VideoBitrate_MAX = - MediaRequest_Prepare_VideoBitrate_VideoBitrate_MAX; - static const int VideoBitrate_ARRAYSIZE = - MediaRequest_Prepare_VideoBitrate_VideoBitrate_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - VideoBitrate_descriptor() { - return MediaRequest_Prepare_VideoBitrate_descriptor(); - } - static inline const ::std::string& VideoBitrate_Name(VideoBitrate value) { - return MediaRequest_Prepare_VideoBitrate_Name(value); - } - static inline bool VideoBitrate_Parse(const ::std::string& name, - VideoBitrate* value) { - return MediaRequest_Prepare_VideoBitrate_Parse(name, value); - } - - typedef MediaRequest_Prepare_Type Type; - static const Type AudioRequest = MediaRequest_Prepare_Type_AudioRequest; - static const Type VideoRequest = MediaRequest_Prepare_Type_VideoRequest; - static inline bool Type_IsValid(int value) { - return MediaRequest_Prepare_Type_IsValid(value); - } - static const Type Type_MIN = - MediaRequest_Prepare_Type_Type_MIN; - static const Type Type_MAX = - MediaRequest_Prepare_Type_Type_MAX; - static const int Type_ARRAYSIZE = - MediaRequest_Prepare_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return MediaRequest_Prepare_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return MediaRequest_Prepare_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return MediaRequest_Prepare_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .Remote.MediaRequest.Prepare.Type type = 1; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline ::Remote::MediaRequest_Prepare_Type type() const; - inline void set_type(::Remote::MediaRequest_Prepare_Type value); - - // optional .Remote.MediaRequest.Prepare.Audio audio = 2; - inline bool has_audio() const; - inline void clear_audio(); - static const int kAudioFieldNumber = 2; - inline const ::Remote::MediaRequest_Prepare_Audio& audio() const; - inline ::Remote::MediaRequest_Prepare_Audio* mutable_audio(); - inline ::Remote::MediaRequest_Prepare_Audio* release_audio(); - inline void set_allocated_audio(::Remote::MediaRequest_Prepare_Audio* audio); - - // optional .Remote.MediaRequest.Prepare.Video video = 3; - inline bool has_video() const; - inline void clear_video(); - static const int kVideoFieldNumber = 3; - inline const ::Remote::MediaRequest_Prepare_Video& video() const; - inline ::Remote::MediaRequest_Prepare_Video* mutable_video(); - inline ::Remote::MediaRequest_Prepare_Video* release_video(); - inline void set_allocated_video(::Remote::MediaRequest_Prepare_Video* video); - - // @@protoc_insertion_point(class_scope:Remote.MediaRequest.Prepare) - private: - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_audio(); - inline void clear_has_audio(); - inline void set_has_video(); - inline void clear_has_video(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::MediaRequest_Prepare_Audio* audio_; - ::Remote::MediaRequest_Prepare_Video* video_; - int type_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(3 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaRequest_Prepare* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaRequest_GetPart : public ::google::protobuf::Message { - public: - MediaRequest_GetPart(); - virtual ~MediaRequest_GetPart(); - - MediaRequest_GetPart(const MediaRequest_GetPart& from); - - inline MediaRequest_GetPart& operator=(const MediaRequest_GetPart& 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 MediaRequest_GetPart& default_instance(); - - void Swap(MediaRequest_GetPart* other); - - // implements Message ---------------------------------------------- - - MediaRequest_GetPart* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaRequest_GetPart& from); - void MergeFrom(const MediaRequest_GetPart& 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 uint32 handle = 1; - inline bool has_handle() const; - inline void clear_handle(); - static const int kHandleFieldNumber = 1; - inline ::google::protobuf::uint32 handle() const; - inline void set_handle(::google::protobuf::uint32 value); - - // required uint32 requested_data_size = 2; - inline bool has_requested_data_size() const; - inline void clear_requested_data_size(); - static const int kRequestedDataSizeFieldNumber = 2; - inline ::google::protobuf::uint32 requested_data_size() const; - inline void set_requested_data_size(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:Remote.MediaRequest.GetPart) - private: - inline void set_has_handle(); - inline void clear_has_handle(); - inline void set_has_requested_data_size(); - inline void clear_has_requested_data_size(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 handle_; - ::google::protobuf::uint32 requested_data_size_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaRequest_GetPart* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaRequest_Terminate : public ::google::protobuf::Message { - public: - MediaRequest_Terminate(); - virtual ~MediaRequest_Terminate(); - - MediaRequest_Terminate(const MediaRequest_Terminate& from); - - inline MediaRequest_Terminate& operator=(const MediaRequest_Terminate& 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 MediaRequest_Terminate& default_instance(); - - void Swap(MediaRequest_Terminate* other); - - // implements Message ---------------------------------------------- - - MediaRequest_Terminate* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaRequest_Terminate& from); - void MergeFrom(const MediaRequest_Terminate& 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 uint32 handle = 1; - inline bool has_handle() const; - inline void clear_handle(); - static const int kHandleFieldNumber = 1; - inline ::google::protobuf::uint32 handle() const; - inline void set_handle(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:Remote.MediaRequest.Terminate) - private: - inline void set_has_handle(); - inline void clear_has_handle(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 handle_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaRequest_Terminate* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaRequest : public ::google::protobuf::Message { - public: - MediaRequest(); - virtual ~MediaRequest(); - - MediaRequest(const MediaRequest& from); - - inline MediaRequest& operator=(const MediaRequest& 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 MediaRequest& default_instance(); - - void Swap(MediaRequest* other); - - // implements Message ---------------------------------------------- - - MediaRequest* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaRequest& from); - void MergeFrom(const MediaRequest& 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 MediaRequest_Prepare Prepare; - typedef MediaRequest_GetPart GetPart; - typedef MediaRequest_Terminate Terminate; - - typedef MediaRequest_Type Type; - static const Type TypeMediaPrepare = MediaRequest_Type_TypeMediaPrepare; - static const Type TypeMediaGetPart = MediaRequest_Type_TypeMediaGetPart; - static const Type TypeMediaTerminate = MediaRequest_Type_TypeMediaTerminate; - static inline bool Type_IsValid(int value) { - return MediaRequest_Type_IsValid(value); - } - static const Type Type_MIN = - MediaRequest_Type_Type_MIN; - static const Type Type_MAX = - MediaRequest_Type_Type_MAX; - static const int Type_ARRAYSIZE = - MediaRequest_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return MediaRequest_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return MediaRequest_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return MediaRequest_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .Remote.MediaRequest.Type type = 1; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline ::Remote::MediaRequest_Type type() const; - inline void set_type(::Remote::MediaRequest_Type value); - - // optional .Remote.MediaRequest.Prepare prepare = 2; - inline bool has_prepare() const; - inline void clear_prepare(); - static const int kPrepareFieldNumber = 2; - inline const ::Remote::MediaRequest_Prepare& prepare() const; - inline ::Remote::MediaRequest_Prepare* mutable_prepare(); - inline ::Remote::MediaRequest_Prepare* release_prepare(); - inline void set_allocated_prepare(::Remote::MediaRequest_Prepare* prepare); - - // optional .Remote.MediaRequest.GetPart get_part = 3; - inline bool has_get_part() const; - inline void clear_get_part(); - static const int kGetPartFieldNumber = 3; - inline const ::Remote::MediaRequest_GetPart& get_part() const; - inline ::Remote::MediaRequest_GetPart* mutable_get_part(); - inline ::Remote::MediaRequest_GetPart* release_get_part(); - inline void set_allocated_get_part(::Remote::MediaRequest_GetPart* get_part); - - // optional .Remote.MediaRequest.Terminate terminate = 4; - inline bool has_terminate() const; - inline void clear_terminate(); - static const int kTerminateFieldNumber = 4; - inline const ::Remote::MediaRequest_Terminate& terminate() const; - inline ::Remote::MediaRequest_Terminate* mutable_terminate(); - inline ::Remote::MediaRequest_Terminate* release_terminate(); - inline void set_allocated_terminate(::Remote::MediaRequest_Terminate* terminate); - - // @@protoc_insertion_point(class_scope:Remote.MediaRequest) - private: - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_prepare(); - inline void clear_has_prepare(); - inline void set_has_get_part(); - inline void clear_has_get_part(); - inline void set_has_terminate(); - inline void clear_has_terminate(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::MediaRequest_Prepare* prepare_; - ::Remote::MediaRequest_GetPart* get_part_; - ::Remote::MediaRequest_Terminate* terminate_; - int type_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaRequest* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaResponse_PrepareResult : public ::google::protobuf::Message { - public: - MediaResponse_PrepareResult(); - virtual ~MediaResponse_PrepareResult(); - - MediaResponse_PrepareResult(const MediaResponse_PrepareResult& from); - - inline MediaResponse_PrepareResult& operator=(const MediaResponse_PrepareResult& 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 MediaResponse_PrepareResult& default_instance(); - - void Swap(MediaResponse_PrepareResult* other); - - // implements Message ---------------------------------------------- - - MediaResponse_PrepareResult* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaResponse_PrepareResult& from); - void MergeFrom(const MediaResponse_PrepareResult& 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 ------------------------------------------------------- - - // optional uint32 handle = 1; - inline bool has_handle() const; - inline void clear_handle(); - static const int kHandleFieldNumber = 1; - inline ::google::protobuf::uint32 handle() const; - inline void set_handle(::google::protobuf::uint32 value); - - // @@protoc_insertion_point(class_scope:Remote.MediaResponse.PrepareResult) - private: - inline void set_has_handle(); - inline void clear_has_handle(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::google::protobuf::uint32 handle_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaResponse_PrepareResult* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaResponse_PartResult : public ::google::protobuf::Message { - public: - MediaResponse_PartResult(); - virtual ~MediaResponse_PartResult(); - - MediaResponse_PartResult(const MediaResponse_PartResult& from); - - inline MediaResponse_PartResult& operator=(const MediaResponse_PartResult& 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 MediaResponse_PartResult& default_instance(); - - void Swap(MediaResponse_PartResult* other); - - // implements Message ---------------------------------------------- - - MediaResponse_PartResult* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaResponse_PartResult& from); - void MergeFrom(const MediaResponse_PartResult& 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 ------------------------------------------------------- - - // optional bytes data = 2; - inline bool has_data() const; - inline void clear_data(); - static const int kDataFieldNumber = 2; - inline const ::std::string& data() const; - inline void set_data(const ::std::string& value); - inline void set_data(const char* value); - inline void set_data(const void* value, size_t size); - inline ::std::string* mutable_data(); - inline ::std::string* release_data(); - inline void set_allocated_data(::std::string* data); - - // @@protoc_insertion_point(class_scope:Remote.MediaResponse.PartResult) - private: - inline void set_has_data(); - inline void clear_has_data(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::std::string* data_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaResponse_PartResult* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaResponse_TerminateResult : public ::google::protobuf::Message { - public: - MediaResponse_TerminateResult(); - virtual ~MediaResponse_TerminateResult(); - - MediaResponse_TerminateResult(const MediaResponse_TerminateResult& from); - - inline MediaResponse_TerminateResult& operator=(const MediaResponse_TerminateResult& 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 MediaResponse_TerminateResult& default_instance(); - - void Swap(MediaResponse_TerminateResult* other); - - // implements Message ---------------------------------------------- - - MediaResponse_TerminateResult* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaResponse_TerminateResult& from); - void MergeFrom(const MediaResponse_TerminateResult& 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 ------------------------------------------------------- - - // @@protoc_insertion_point(class_scope:Remote.MediaResponse.TerminateResult) - private: - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[1]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaResponse_TerminateResult* default_instance_; -}; -// ------------------------------------------------------------------- - -class MediaResponse : public ::google::protobuf::Message { - public: - MediaResponse(); - virtual ~MediaResponse(); - - MediaResponse(const MediaResponse& from); - - inline MediaResponse& operator=(const MediaResponse& 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 MediaResponse& default_instance(); - - void Swap(MediaResponse* other); - - // implements Message ---------------------------------------------- - - MediaResponse* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const MediaResponse& from); - void MergeFrom(const MediaResponse& 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 MediaResponse_PrepareResult PrepareResult; - typedef MediaResponse_PartResult PartResult; - typedef MediaResponse_TerminateResult TerminateResult; - - typedef MediaResponse_Type Type; - static const Type TypePrepareResult = MediaResponse_Type_TypePrepareResult; - static const Type TypePartResult = MediaResponse_Type_TypePartResult; - static const Type TypeTerminateResult = MediaResponse_Type_TypeTerminateResult; - static inline bool Type_IsValid(int value) { - return MediaResponse_Type_IsValid(value); - } - static const Type Type_MIN = - MediaResponse_Type_Type_MIN; - static const Type Type_MAX = - MediaResponse_Type_Type_MAX; - static const int Type_ARRAYSIZE = - MediaResponse_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return MediaResponse_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return MediaResponse_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return MediaResponse_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .Remote.MediaResponse.Type type = 1; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 1; - inline ::Remote::MediaResponse_Type type() const; - inline void set_type(::Remote::MediaResponse_Type value); - - // optional .Remote.MediaResponse.PrepareResult prepare_result = 2; - inline bool has_prepare_result() const; - inline void clear_prepare_result(); - static const int kPrepareResultFieldNumber = 2; - inline const ::Remote::MediaResponse_PrepareResult& prepare_result() const; - inline ::Remote::MediaResponse_PrepareResult* mutable_prepare_result(); - inline ::Remote::MediaResponse_PrepareResult* release_prepare_result(); - inline void set_allocated_prepare_result(::Remote::MediaResponse_PrepareResult* prepare_result); - - // optional .Remote.MediaResponse.PartResult part_result = 3; - inline bool has_part_result() const; - inline void clear_part_result(); - static const int kPartResultFieldNumber = 3; - inline const ::Remote::MediaResponse_PartResult& part_result() const; - inline ::Remote::MediaResponse_PartResult* mutable_part_result(); - inline ::Remote::MediaResponse_PartResult* release_part_result(); - inline void set_allocated_part_result(::Remote::MediaResponse_PartResult* part_result); - - // optional .Remote.MediaResponse.TerminateResult terminate_result = 4; - inline bool has_terminate_result() const; - inline void clear_terminate_result(); - static const int kTerminateResultFieldNumber = 4; - inline const ::Remote::MediaResponse_TerminateResult& terminate_result() const; - inline ::Remote::MediaResponse_TerminateResult* mutable_terminate_result(); - inline ::Remote::MediaResponse_TerminateResult* release_terminate_result(); - inline void set_allocated_terminate_result(::Remote::MediaResponse_TerminateResult* terminate_result); - - // @@protoc_insertion_point(class_scope:Remote.MediaResponse) - private: - inline void set_has_type(); - inline void clear_has_type(); - inline void set_has_prepare_result(); - inline void clear_has_prepare_result(); - inline void set_has_part_result(); - inline void clear_has_part_result(); - inline void set_has_terminate_result(); - inline void clear_has_terminate_result(); - - ::google::protobuf::UnknownFieldSet _unknown_fields_; - - ::Remote::MediaResponse_PrepareResult* prepare_result_; - ::Remote::MediaResponse_PartResult* part_result_; - ::Remote::MediaResponse_TerminateResult* terminate_result_; - int type_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; - - friend void protobuf_AddDesc_media_2eproto(); - friend void protobuf_AssignDesc_media_2eproto(); - friend void protobuf_ShutdownFile_media_2eproto(); - - void InitAsDefaultInstance(); - static MediaResponse* default_instance_; -}; -// =================================================================== - - -// =================================================================== - -// MediaRequest_Prepare_Audio - -// required int64 track_id = 1; -inline bool MediaRequest_Prepare_Audio::has_track_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaRequest_Prepare_Audio::set_has_track_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaRequest_Prepare_Audio::clear_has_track_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaRequest_Prepare_Audio::clear_track_id() { - track_id_ = GOOGLE_LONGLONG(0); - clear_has_track_id(); -} -inline ::google::protobuf::int64 MediaRequest_Prepare_Audio::track_id() const { - return track_id_; -} -inline void MediaRequest_Prepare_Audio::set_track_id(::google::protobuf::int64 value) { - set_has_track_id(); - track_id_ = value; -} - -// required .Remote.MediaRequest.Prepare.AudioCodecType codec_type = 2; -inline bool MediaRequest_Prepare_Audio::has_codec_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MediaRequest_Prepare_Audio::set_has_codec_type() { - _has_bits_[0] |= 0x00000002u; -} -inline void MediaRequest_Prepare_Audio::clear_has_codec_type() { - _has_bits_[0] &= ~0x00000002u; -} -inline void MediaRequest_Prepare_Audio::clear_codec_type() { - codec_type_ = 1; - clear_has_codec_type(); -} -inline ::Remote::MediaRequest_Prepare_AudioCodecType MediaRequest_Prepare_Audio::codec_type() const { - return static_cast< ::Remote::MediaRequest_Prepare_AudioCodecType >(codec_type_); -} -inline void MediaRequest_Prepare_Audio::set_codec_type(::Remote::MediaRequest_Prepare_AudioCodecType value) { - assert(::Remote::MediaRequest_Prepare_AudioCodecType_IsValid(value)); - set_has_codec_type(); - codec_type_ = value; -} - -// required .Remote.MediaRequest.Prepare.AudioBitrate bitrate = 3; -inline bool MediaRequest_Prepare_Audio::has_bitrate() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void MediaRequest_Prepare_Audio::set_has_bitrate() { - _has_bits_[0] |= 0x00000004u; -} -inline void MediaRequest_Prepare_Audio::clear_has_bitrate() { - _has_bits_[0] &= ~0x00000004u; -} -inline void MediaRequest_Prepare_Audio::clear_bitrate() { - bitrate_ = 1; - clear_has_bitrate(); -} -inline ::Remote::MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare_Audio::bitrate() const { - return static_cast< ::Remote::MediaRequest_Prepare_AudioBitrate >(bitrate_); -} -inline void MediaRequest_Prepare_Audio::set_bitrate(::Remote::MediaRequest_Prepare_AudioBitrate value) { - assert(::Remote::MediaRequest_Prepare_AudioBitrate_IsValid(value)); - set_has_bitrate(); - bitrate_ = value; -} - -// optional uint32 stream_idx = 4; -inline bool MediaRequest_Prepare_Audio::has_stream_idx() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void MediaRequest_Prepare_Audio::set_has_stream_idx() { - _has_bits_[0] |= 0x00000008u; -} -inline void MediaRequest_Prepare_Audio::clear_has_stream_idx() { - _has_bits_[0] &= ~0x00000008u; -} -inline void MediaRequest_Prepare_Audio::clear_stream_idx() { - stream_idx_ = 0u; - clear_has_stream_idx(); -} -inline ::google::protobuf::uint32 MediaRequest_Prepare_Audio::stream_idx() const { - return stream_idx_; -} -inline void MediaRequest_Prepare_Audio::set_stream_idx(::google::protobuf::uint32 value) { - set_has_stream_idx(); - stream_idx_ = value; -} - -// optional uint32 offset_secs = 5; -inline bool MediaRequest_Prepare_Audio::has_offset_secs() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void MediaRequest_Prepare_Audio::set_has_offset_secs() { - _has_bits_[0] |= 0x00000010u; -} -inline void MediaRequest_Prepare_Audio::clear_has_offset_secs() { - _has_bits_[0] &= ~0x00000010u; -} -inline void MediaRequest_Prepare_Audio::clear_offset_secs() { - offset_secs_ = 0u; - clear_has_offset_secs(); -} -inline ::google::protobuf::uint32 MediaRequest_Prepare_Audio::offset_secs() const { - return offset_secs_; -} -inline void MediaRequest_Prepare_Audio::set_offset_secs(::google::protobuf::uint32 value) { - set_has_offset_secs(); - offset_secs_ = value; -} - -// ------------------------------------------------------------------- - -// MediaRequest_Prepare_Video - -// required int64 video_id = 1; -inline bool MediaRequest_Prepare_Video::has_video_id() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaRequest_Prepare_Video::set_has_video_id() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaRequest_Prepare_Video::clear_has_video_id() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaRequest_Prepare_Video::clear_video_id() { - video_id_ = GOOGLE_LONGLONG(0); - clear_has_video_id(); -} -inline ::google::protobuf::int64 MediaRequest_Prepare_Video::video_id() const { - return video_id_; -} -inline void MediaRequest_Prepare_Video::set_video_id(::google::protobuf::int64 value) { - set_has_video_id(); - video_id_ = value; -} - -// required .Remote.MediaRequest.Prepare.VideoCodecType codec_type = 2; -inline bool MediaRequest_Prepare_Video::has_codec_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MediaRequest_Prepare_Video::set_has_codec_type() { - _has_bits_[0] |= 0x00000002u; -} -inline void MediaRequest_Prepare_Video::clear_has_codec_type() { - _has_bits_[0] &= ~0x00000002u; -} -inline void MediaRequest_Prepare_Video::clear_codec_type() { - codec_type_ = 1; - clear_has_codec_type(); -} -inline ::Remote::MediaRequest_Prepare_VideoCodecType MediaRequest_Prepare_Video::codec_type() const { - return static_cast< ::Remote::MediaRequest_Prepare_VideoCodecType >(codec_type_); -} -inline void MediaRequest_Prepare_Video::set_codec_type(::Remote::MediaRequest_Prepare_VideoCodecType value) { - assert(::Remote::MediaRequest_Prepare_VideoCodecType_IsValid(value)); - set_has_codec_type(); - codec_type_ = value; -} - -// required .Remote.MediaRequest.Prepare.AudioBitrate audio_bitrate = 3; -inline bool MediaRequest_Prepare_Video::has_audio_bitrate() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void MediaRequest_Prepare_Video::set_has_audio_bitrate() { - _has_bits_[0] |= 0x00000004u; -} -inline void MediaRequest_Prepare_Video::clear_has_audio_bitrate() { - _has_bits_[0] &= ~0x00000004u; -} -inline void MediaRequest_Prepare_Video::clear_audio_bitrate() { - audio_bitrate_ = 1; - clear_has_audio_bitrate(); -} -inline ::Remote::MediaRequest_Prepare_AudioBitrate MediaRequest_Prepare_Video::audio_bitrate() const { - return static_cast< ::Remote::MediaRequest_Prepare_AudioBitrate >(audio_bitrate_); -} -inline void MediaRequest_Prepare_Video::set_audio_bitrate(::Remote::MediaRequest_Prepare_AudioBitrate value) { - assert(::Remote::MediaRequest_Prepare_AudioBitrate_IsValid(value)); - set_has_audio_bitrate(); - audio_bitrate_ = value; -} - -// required .Remote.MediaRequest.Prepare.VideoBitrate video_bitrate = 4; -inline bool MediaRequest_Prepare_Video::has_video_bitrate() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void MediaRequest_Prepare_Video::set_has_video_bitrate() { - _has_bits_[0] |= 0x00000008u; -} -inline void MediaRequest_Prepare_Video::clear_has_video_bitrate() { - _has_bits_[0] &= ~0x00000008u; -} -inline void MediaRequest_Prepare_Video::clear_video_bitrate() { - video_bitrate_ = 1; - clear_has_video_bitrate(); -} -inline ::Remote::MediaRequest_Prepare_VideoBitrate MediaRequest_Prepare_Video::video_bitrate() const { - return static_cast< ::Remote::MediaRequest_Prepare_VideoBitrate >(video_bitrate_); -} -inline void MediaRequest_Prepare_Video::set_video_bitrate(::Remote::MediaRequest_Prepare_VideoBitrate value) { - assert(::Remote::MediaRequest_Prepare_VideoBitrate_IsValid(value)); - set_has_video_bitrate(); - video_bitrate_ = value; -} - -// optional uint32 offset_secs = 5; -inline bool MediaRequest_Prepare_Video::has_offset_secs() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void MediaRequest_Prepare_Video::set_has_offset_secs() { - _has_bits_[0] |= 0x00000010u; -} -inline void MediaRequest_Prepare_Video::clear_has_offset_secs() { - _has_bits_[0] &= ~0x00000010u; -} -inline void MediaRequest_Prepare_Video::clear_offset_secs() { - offset_secs_ = 0u; - clear_has_offset_secs(); -} -inline ::google::protobuf::uint32 MediaRequest_Prepare_Video::offset_secs() const { - return offset_secs_; -} -inline void MediaRequest_Prepare_Video::set_offset_secs(::google::protobuf::uint32 value) { - set_has_offset_secs(); - offset_secs_ = value; -} - -// optional uint32 audio_stream_idx = 6; -inline bool MediaRequest_Prepare_Video::has_audio_stream_idx() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void MediaRequest_Prepare_Video::set_has_audio_stream_idx() { - _has_bits_[0] |= 0x00000020u; -} -inline void MediaRequest_Prepare_Video::clear_has_audio_stream_idx() { - _has_bits_[0] &= ~0x00000020u; -} -inline void MediaRequest_Prepare_Video::clear_audio_stream_idx() { - audio_stream_idx_ = 0u; - clear_has_audio_stream_idx(); -} -inline ::google::protobuf::uint32 MediaRequest_Prepare_Video::audio_stream_idx() const { - return audio_stream_idx_; -} -inline void MediaRequest_Prepare_Video::set_audio_stream_idx(::google::protobuf::uint32 value) { - set_has_audio_stream_idx(); - audio_stream_idx_ = value; -} - -// optional uint32 video_stream_idx = 7; -inline bool MediaRequest_Prepare_Video::has_video_stream_idx() const { - return (_has_bits_[0] & 0x00000040u) != 0; -} -inline void MediaRequest_Prepare_Video::set_has_video_stream_idx() { - _has_bits_[0] |= 0x00000040u; -} -inline void MediaRequest_Prepare_Video::clear_has_video_stream_idx() { - _has_bits_[0] &= ~0x00000040u; -} -inline void MediaRequest_Prepare_Video::clear_video_stream_idx() { - video_stream_idx_ = 0u; - clear_has_video_stream_idx(); -} -inline ::google::protobuf::uint32 MediaRequest_Prepare_Video::video_stream_idx() const { - return video_stream_idx_; -} -inline void MediaRequest_Prepare_Video::set_video_stream_idx(::google::protobuf::uint32 value) { - set_has_video_stream_idx(); - video_stream_idx_ = value; -} - -// optional uint32 subtitle_stream_idx = 8; -inline bool MediaRequest_Prepare_Video::has_subtitle_stream_idx() const { - return (_has_bits_[0] & 0x00000080u) != 0; -} -inline void MediaRequest_Prepare_Video::set_has_subtitle_stream_idx() { - _has_bits_[0] |= 0x00000080u; -} -inline void MediaRequest_Prepare_Video::clear_has_subtitle_stream_idx() { - _has_bits_[0] &= ~0x00000080u; -} -inline void MediaRequest_Prepare_Video::clear_subtitle_stream_idx() { - subtitle_stream_idx_ = 0u; - clear_has_subtitle_stream_idx(); -} -inline ::google::protobuf::uint32 MediaRequest_Prepare_Video::subtitle_stream_idx() const { - return subtitle_stream_idx_; -} -inline void MediaRequest_Prepare_Video::set_subtitle_stream_idx(::google::protobuf::uint32 value) { - set_has_subtitle_stream_idx(); - subtitle_stream_idx_ = value; -} - -// ------------------------------------------------------------------- - -// MediaRequest_Prepare - -// required .Remote.MediaRequest.Prepare.Type type = 1; -inline bool MediaRequest_Prepare::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaRequest_Prepare::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaRequest_Prepare::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaRequest_Prepare::clear_type() { - type_ = 1; - clear_has_type(); -} -inline ::Remote::MediaRequest_Prepare_Type MediaRequest_Prepare::type() const { - return static_cast< ::Remote::MediaRequest_Prepare_Type >(type_); -} -inline void MediaRequest_Prepare::set_type(::Remote::MediaRequest_Prepare_Type value) { - assert(::Remote::MediaRequest_Prepare_Type_IsValid(value)); - set_has_type(); - type_ = value; -} - -// optional .Remote.MediaRequest.Prepare.Audio audio = 2; -inline bool MediaRequest_Prepare::has_audio() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MediaRequest_Prepare::set_has_audio() { - _has_bits_[0] |= 0x00000002u; -} -inline void MediaRequest_Prepare::clear_has_audio() { - _has_bits_[0] &= ~0x00000002u; -} -inline void MediaRequest_Prepare::clear_audio() { - if (audio_ != NULL) audio_->::Remote::MediaRequest_Prepare_Audio::Clear(); - clear_has_audio(); -} -inline const ::Remote::MediaRequest_Prepare_Audio& MediaRequest_Prepare::audio() const { - return audio_ != NULL ? *audio_ : *default_instance_->audio_; -} -inline ::Remote::MediaRequest_Prepare_Audio* MediaRequest_Prepare::mutable_audio() { - set_has_audio(); - if (audio_ == NULL) audio_ = new ::Remote::MediaRequest_Prepare_Audio; - return audio_; -} -inline ::Remote::MediaRequest_Prepare_Audio* MediaRequest_Prepare::release_audio() { - clear_has_audio(); - ::Remote::MediaRequest_Prepare_Audio* temp = audio_; - audio_ = NULL; - return temp; -} -inline void MediaRequest_Prepare::set_allocated_audio(::Remote::MediaRequest_Prepare_Audio* audio) { - delete audio_; - audio_ = audio; - if (audio) { - set_has_audio(); - } else { - clear_has_audio(); - } -} - -// optional .Remote.MediaRequest.Prepare.Video video = 3; -inline bool MediaRequest_Prepare::has_video() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void MediaRequest_Prepare::set_has_video() { - _has_bits_[0] |= 0x00000004u; -} -inline void MediaRequest_Prepare::clear_has_video() { - _has_bits_[0] &= ~0x00000004u; -} -inline void MediaRequest_Prepare::clear_video() { - if (video_ != NULL) video_->::Remote::MediaRequest_Prepare_Video::Clear(); - clear_has_video(); -} -inline const ::Remote::MediaRequest_Prepare_Video& MediaRequest_Prepare::video() const { - return video_ != NULL ? *video_ : *default_instance_->video_; -} -inline ::Remote::MediaRequest_Prepare_Video* MediaRequest_Prepare::mutable_video() { - set_has_video(); - if (video_ == NULL) video_ = new ::Remote::MediaRequest_Prepare_Video; - return video_; -} -inline ::Remote::MediaRequest_Prepare_Video* MediaRequest_Prepare::release_video() { - clear_has_video(); - ::Remote::MediaRequest_Prepare_Video* temp = video_; - video_ = NULL; - return temp; -} -inline void MediaRequest_Prepare::set_allocated_video(::Remote::MediaRequest_Prepare_Video* video) { - delete video_; - video_ = video; - if (video) { - set_has_video(); - } else { - clear_has_video(); - } -} - -// ------------------------------------------------------------------- - -// MediaRequest_GetPart - -// required uint32 handle = 1; -inline bool MediaRequest_GetPart::has_handle() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaRequest_GetPart::set_has_handle() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaRequest_GetPart::clear_has_handle() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaRequest_GetPart::clear_handle() { - handle_ = 0u; - clear_has_handle(); -} -inline ::google::protobuf::uint32 MediaRequest_GetPart::handle() const { - return handle_; -} -inline void MediaRequest_GetPart::set_handle(::google::protobuf::uint32 value) { - set_has_handle(); - handle_ = value; -} - -// required uint32 requested_data_size = 2; -inline bool MediaRequest_GetPart::has_requested_data_size() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MediaRequest_GetPart::set_has_requested_data_size() { - _has_bits_[0] |= 0x00000002u; -} -inline void MediaRequest_GetPart::clear_has_requested_data_size() { - _has_bits_[0] &= ~0x00000002u; -} -inline void MediaRequest_GetPart::clear_requested_data_size() { - requested_data_size_ = 0u; - clear_has_requested_data_size(); -} -inline ::google::protobuf::uint32 MediaRequest_GetPart::requested_data_size() const { - return requested_data_size_; -} -inline void MediaRequest_GetPart::set_requested_data_size(::google::protobuf::uint32 value) { - set_has_requested_data_size(); - requested_data_size_ = value; -} - -// ------------------------------------------------------------------- - -// MediaRequest_Terminate - -// required uint32 handle = 1; -inline bool MediaRequest_Terminate::has_handle() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaRequest_Terminate::set_has_handle() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaRequest_Terminate::clear_has_handle() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaRequest_Terminate::clear_handle() { - handle_ = 0u; - clear_has_handle(); -} -inline ::google::protobuf::uint32 MediaRequest_Terminate::handle() const { - return handle_; -} -inline void MediaRequest_Terminate::set_handle(::google::protobuf::uint32 value) { - set_has_handle(); - handle_ = value; -} - -// ------------------------------------------------------------------- - -// MediaRequest - -// required .Remote.MediaRequest.Type type = 1; -inline bool MediaRequest::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaRequest::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaRequest::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaRequest::clear_type() { - type_ = 1; - clear_has_type(); -} -inline ::Remote::MediaRequest_Type MediaRequest::type() const { - return static_cast< ::Remote::MediaRequest_Type >(type_); -} -inline void MediaRequest::set_type(::Remote::MediaRequest_Type value) { - assert(::Remote::MediaRequest_Type_IsValid(value)); - set_has_type(); - type_ = value; -} - -// optional .Remote.MediaRequest.Prepare prepare = 2; -inline bool MediaRequest::has_prepare() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MediaRequest::set_has_prepare() { - _has_bits_[0] |= 0x00000002u; -} -inline void MediaRequest::clear_has_prepare() { - _has_bits_[0] &= ~0x00000002u; -} -inline void MediaRequest::clear_prepare() { - if (prepare_ != NULL) prepare_->::Remote::MediaRequest_Prepare::Clear(); - clear_has_prepare(); -} -inline const ::Remote::MediaRequest_Prepare& MediaRequest::prepare() const { - return prepare_ != NULL ? *prepare_ : *default_instance_->prepare_; -} -inline ::Remote::MediaRequest_Prepare* MediaRequest::mutable_prepare() { - set_has_prepare(); - if (prepare_ == NULL) prepare_ = new ::Remote::MediaRequest_Prepare; - return prepare_; -} -inline ::Remote::MediaRequest_Prepare* MediaRequest::release_prepare() { - clear_has_prepare(); - ::Remote::MediaRequest_Prepare* temp = prepare_; - prepare_ = NULL; - return temp; -} -inline void MediaRequest::set_allocated_prepare(::Remote::MediaRequest_Prepare* prepare) { - delete prepare_; - prepare_ = prepare; - if (prepare) { - set_has_prepare(); - } else { - clear_has_prepare(); - } -} - -// optional .Remote.MediaRequest.GetPart get_part = 3; -inline bool MediaRequest::has_get_part() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void MediaRequest::set_has_get_part() { - _has_bits_[0] |= 0x00000004u; -} -inline void MediaRequest::clear_has_get_part() { - _has_bits_[0] &= ~0x00000004u; -} -inline void MediaRequest::clear_get_part() { - if (get_part_ != NULL) get_part_->::Remote::MediaRequest_GetPart::Clear(); - clear_has_get_part(); -} -inline const ::Remote::MediaRequest_GetPart& MediaRequest::get_part() const { - return get_part_ != NULL ? *get_part_ : *default_instance_->get_part_; -} -inline ::Remote::MediaRequest_GetPart* MediaRequest::mutable_get_part() { - set_has_get_part(); - if (get_part_ == NULL) get_part_ = new ::Remote::MediaRequest_GetPart; - return get_part_; -} -inline ::Remote::MediaRequest_GetPart* MediaRequest::release_get_part() { - clear_has_get_part(); - ::Remote::MediaRequest_GetPart* temp = get_part_; - get_part_ = NULL; - return temp; -} -inline void MediaRequest::set_allocated_get_part(::Remote::MediaRequest_GetPart* get_part) { - delete get_part_; - get_part_ = get_part; - if (get_part) { - set_has_get_part(); - } else { - clear_has_get_part(); - } -} - -// optional .Remote.MediaRequest.Terminate terminate = 4; -inline bool MediaRequest::has_terminate() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void MediaRequest::set_has_terminate() { - _has_bits_[0] |= 0x00000008u; -} -inline void MediaRequest::clear_has_terminate() { - _has_bits_[0] &= ~0x00000008u; -} -inline void MediaRequest::clear_terminate() { - if (terminate_ != NULL) terminate_->::Remote::MediaRequest_Terminate::Clear(); - clear_has_terminate(); -} -inline const ::Remote::MediaRequest_Terminate& MediaRequest::terminate() const { - return terminate_ != NULL ? *terminate_ : *default_instance_->terminate_; -} -inline ::Remote::MediaRequest_Terminate* MediaRequest::mutable_terminate() { - set_has_terminate(); - if (terminate_ == NULL) terminate_ = new ::Remote::MediaRequest_Terminate; - return terminate_; -} -inline ::Remote::MediaRequest_Terminate* MediaRequest::release_terminate() { - clear_has_terminate(); - ::Remote::MediaRequest_Terminate* temp = terminate_; - terminate_ = NULL; - return temp; -} -inline void MediaRequest::set_allocated_terminate(::Remote::MediaRequest_Terminate* terminate) { - delete terminate_; - terminate_ = terminate; - if (terminate) { - set_has_terminate(); - } else { - clear_has_terminate(); - } -} - -// ------------------------------------------------------------------- - -// MediaResponse_PrepareResult - -// optional uint32 handle = 1; -inline bool MediaResponse_PrepareResult::has_handle() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaResponse_PrepareResult::set_has_handle() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaResponse_PrepareResult::clear_has_handle() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaResponse_PrepareResult::clear_handle() { - handle_ = 0u; - clear_has_handle(); -} -inline ::google::protobuf::uint32 MediaResponse_PrepareResult::handle() const { - return handle_; -} -inline void MediaResponse_PrepareResult::set_handle(::google::protobuf::uint32 value) { - set_has_handle(); - handle_ = value; -} - -// ------------------------------------------------------------------- - -// MediaResponse_PartResult - -// optional bytes data = 2; -inline bool MediaResponse_PartResult::has_data() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaResponse_PartResult::set_has_data() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaResponse_PartResult::clear_has_data() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaResponse_PartResult::clear_data() { - if (data_ != &::google::protobuf::internal::kEmptyString) { - data_->clear(); - } - clear_has_data(); -} -inline const ::std::string& MediaResponse_PartResult::data() const { - return *data_; -} -inline void MediaResponse_PartResult::set_data(const ::std::string& value) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(value); -} -inline void MediaResponse_PartResult::set_data(const char* value) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(value); -} -inline void MediaResponse_PartResult::set_data(const void* value, size_t size) { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - data_->assign(reinterpret_cast(value), size); -} -inline ::std::string* MediaResponse_PartResult::mutable_data() { - set_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - data_ = new ::std::string; - } - return data_; -} -inline ::std::string* MediaResponse_PartResult::release_data() { - clear_has_data(); - if (data_ == &::google::protobuf::internal::kEmptyString) { - return NULL; - } else { - ::std::string* temp = data_; - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - return temp; - } -} -inline void MediaResponse_PartResult::set_allocated_data(::std::string* data) { - if (data_ != &::google::protobuf::internal::kEmptyString) { - delete data_; - } - if (data) { - set_has_data(); - data_ = data; - } else { - clear_has_data(); - data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); - } -} - -// ------------------------------------------------------------------- - -// MediaResponse_TerminateResult - -// ------------------------------------------------------------------- - -// MediaResponse - -// required .Remote.MediaResponse.Type type = 1; -inline bool MediaResponse::has_type() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void MediaResponse::set_has_type() { - _has_bits_[0] |= 0x00000001u; -} -inline void MediaResponse::clear_has_type() { - _has_bits_[0] &= ~0x00000001u; -} -inline void MediaResponse::clear_type() { - type_ = 1; - clear_has_type(); -} -inline ::Remote::MediaResponse_Type MediaResponse::type() const { - return static_cast< ::Remote::MediaResponse_Type >(type_); -} -inline void MediaResponse::set_type(::Remote::MediaResponse_Type value) { - assert(::Remote::MediaResponse_Type_IsValid(value)); - set_has_type(); - type_ = value; -} - -// optional .Remote.MediaResponse.PrepareResult prepare_result = 2; -inline bool MediaResponse::has_prepare_result() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void MediaResponse::set_has_prepare_result() { - _has_bits_[0] |= 0x00000002u; -} -inline void MediaResponse::clear_has_prepare_result() { - _has_bits_[0] &= ~0x00000002u; -} -inline void MediaResponse::clear_prepare_result() { - if (prepare_result_ != NULL) prepare_result_->::Remote::MediaResponse_PrepareResult::Clear(); - clear_has_prepare_result(); -} -inline const ::Remote::MediaResponse_PrepareResult& MediaResponse::prepare_result() const { - return prepare_result_ != NULL ? *prepare_result_ : *default_instance_->prepare_result_; -} -inline ::Remote::MediaResponse_PrepareResult* MediaResponse::mutable_prepare_result() { - set_has_prepare_result(); - if (prepare_result_ == NULL) prepare_result_ = new ::Remote::MediaResponse_PrepareResult; - return prepare_result_; -} -inline ::Remote::MediaResponse_PrepareResult* MediaResponse::release_prepare_result() { - clear_has_prepare_result(); - ::Remote::MediaResponse_PrepareResult* temp = prepare_result_; - prepare_result_ = NULL; - return temp; -} -inline void MediaResponse::set_allocated_prepare_result(::Remote::MediaResponse_PrepareResult* prepare_result) { - delete prepare_result_; - prepare_result_ = prepare_result; - if (prepare_result) { - set_has_prepare_result(); - } else { - clear_has_prepare_result(); - } -} - -// optional .Remote.MediaResponse.PartResult part_result = 3; -inline bool MediaResponse::has_part_result() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void MediaResponse::set_has_part_result() { - _has_bits_[0] |= 0x00000004u; -} -inline void MediaResponse::clear_has_part_result() { - _has_bits_[0] &= ~0x00000004u; -} -inline void MediaResponse::clear_part_result() { - if (part_result_ != NULL) part_result_->::Remote::MediaResponse_PartResult::Clear(); - clear_has_part_result(); -} -inline const ::Remote::MediaResponse_PartResult& MediaResponse::part_result() const { - return part_result_ != NULL ? *part_result_ : *default_instance_->part_result_; -} -inline ::Remote::MediaResponse_PartResult* MediaResponse::mutable_part_result() { - set_has_part_result(); - if (part_result_ == NULL) part_result_ = new ::Remote::MediaResponse_PartResult; - return part_result_; -} -inline ::Remote::MediaResponse_PartResult* MediaResponse::release_part_result() { - clear_has_part_result(); - ::Remote::MediaResponse_PartResult* temp = part_result_; - part_result_ = NULL; - return temp; -} -inline void MediaResponse::set_allocated_part_result(::Remote::MediaResponse_PartResult* part_result) { - delete part_result_; - part_result_ = part_result; - if (part_result) { - set_has_part_result(); - } else { - clear_has_part_result(); - } -} - -// optional .Remote.MediaResponse.TerminateResult terminate_result = 4; -inline bool MediaResponse::has_terminate_result() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void MediaResponse::set_has_terminate_result() { - _has_bits_[0] |= 0x00000008u; -} -inline void MediaResponse::clear_has_terminate_result() { - _has_bits_[0] &= ~0x00000008u; -} -inline void MediaResponse::clear_terminate_result() { - if (terminate_result_ != NULL) terminate_result_->::Remote::MediaResponse_TerminateResult::Clear(); - clear_has_terminate_result(); -} -inline const ::Remote::MediaResponse_TerminateResult& MediaResponse::terminate_result() const { - return terminate_result_ != NULL ? *terminate_result_ : *default_instance_->terminate_result_; -} -inline ::Remote::MediaResponse_TerminateResult* MediaResponse::mutable_terminate_result() { - set_has_terminate_result(); - if (terminate_result_ == NULL) terminate_result_ = new ::Remote::MediaResponse_TerminateResult; - return terminate_result_; -} -inline ::Remote::MediaResponse_TerminateResult* MediaResponse::release_terminate_result() { - clear_has_terminate_result(); - ::Remote::MediaResponse_TerminateResult* temp = terminate_result_; - terminate_result_ = NULL; - return temp; -} -inline void MediaResponse::set_allocated_terminate_result(::Remote::MediaResponse_TerminateResult* terminate_result) { - delete terminate_result_; - terminate_result_ = terminate_result; - if (terminate_result) { - set_has_terminate_result(); - } else { - clear_has_terminate_result(); - } -} - - -// @@protoc_insertion_point(namespace_scope) - -} // namespace Remote - -#ifndef SWIG -namespace google { -namespace protobuf { - -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaRequest_Prepare_AudioCodecType>() { - return ::Remote::MediaRequest_Prepare_AudioCodecType_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaRequest_Prepare_AudioBitrate>() { - return ::Remote::MediaRequest_Prepare_AudioBitrate_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaRequest_Prepare_VideoCodecType>() { - return ::Remote::MediaRequest_Prepare_VideoCodecType_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaRequest_Prepare_VideoBitrate>() { - return ::Remote::MediaRequest_Prepare_VideoBitrate_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaRequest_Prepare_Type>() { - return ::Remote::MediaRequest_Prepare_Type_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaRequest_Type>() { - return ::Remote::MediaRequest_Type_descriptor(); -} -template <> -inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaResponse_Type>() { - return ::Remote::MediaResponse_Type_descriptor(); -} - -} // namespace google -} // namespace protobuf -#endif // SWIG - -// @@protoc_insertion_point(global_scope) - -#endif // PROTOBUF_media_2eproto__INCLUDED diff --git a/remote/messages/messages.pb.cc b/remote/messages/messages.pb.cc deleted file mode 100644 index afa8eb57..00000000 --- a/remote/messages/messages.pb.cc +++ /dev/null @@ -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 - -#include -#include -#include -#include -#include -#include -#include -#include -// @@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( - &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( - &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) diff --git a/remote/messages/messages.pb.h b/remote/messages/messages.pb.h deleted file mode 100644 index 6f42b794..00000000 --- a/remote/messages/messages.pb.h +++ /dev/null @@ -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 - -#include - -#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 -#include -#include -#include -#include -#include -#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_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_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 diff --git a/remote/server/AudioCollectionRequestHandler.hpp b/remote/server/AudioCollectionRequestHandler.hpp index ae467785..5bb6759f 100644 --- a/remote/server/AudioCollectionRequestHandler.hpp +++ b/remote/server/AudioCollectionRequestHandler.hpp @@ -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 { diff --git a/remote/server/AuthRequestHandler.hpp b/remote/server/AuthRequestHandler.hpp index fad3008b..c7ec1f29 100644 --- a/remote/server/AuthRequestHandler.hpp +++ b/remote/server/AuthRequestHandler.hpp @@ -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 { diff --git a/remote/server/Connection.cpp b/remote/server/Connection.cpp index fa8949ce..619551af 100644 --- a/remote/server/Connection.cpp +++ b/remote/server/Connection.cpp @@ -26,7 +26,7 @@ #include "logger/Logger.hpp" -#include "messages/messages.pb.h" +#include "messages.pb.h" #include "RequestHandler.hpp" diff --git a/remote/server/MediaRequestHandler.hpp b/remote/server/MediaRequestHandler.hpp index 2479f5bc..e1b749c8 100644 --- a/remote/server/MediaRequestHandler.hpp +++ b/remote/server/MediaRequestHandler.hpp @@ -23,11 +23,11 @@ #include #include -#include "messages/media.pb.h" - #include "database/DatabaseHandler.hpp" #include "transcode/AvConvTranscoder.hpp" +#include "media.pb.h" + namespace Remote { namespace Server { diff --git a/remote/server/RequestHandler.hpp b/remote/server/RequestHandler.hpp index 94d42002..15d1b510 100644 --- a/remote/server/RequestHandler.hpp +++ b/remote/server/RequestHandler.hpp @@ -22,7 +22,7 @@ #include -#include "messages/messages.pb.h" +#include "messages.pb.h" #include "database/DatabaseHandler.hpp"