From 8f4d3e5e234e942228a800823e2e2f5434639ffa Mon Sep 17 00:00:00 2001 From: emeric Date: Wed, 7 May 2014 13:31:47 +0200 Subject: [PATCH] WIP remote client/server tests --- configure.ac | 5 + remote/messages/Header.hpp | 47 + remote/messages/auth.pb.cc | 28 +- remote/messages/auth.pb.h | 36 +- remote/messages/collection.pb.cc | 2702 +++++++++++++++--------------- remote/messages/collection.pb.h | 2362 +++++++++++++------------- remote/messages/common.pb.cc | 8 +- remote/messages/common.pb.h | 6 +- remote/messages/media.pb.cc | 153 +- remote/messages/media.pb.h | 216 +-- remote/messages/messages.pb.cc | 228 +-- remote/messages/messages.pb.h | 304 ++-- remote/proto/auth.proto | 2 + remote/proto/collection.proto | 149 +- remote/proto/common.proto | 2 + remote/proto/media.proto | 2 + remote/proto/messages.proto | 18 +- test/Makefile.am | 5 + test/Makefile.in | 111 +- test/RemoteClientServer.cpp | 78 +- 20 files changed, 3381 insertions(+), 3081 deletions(-) diff --git a/configure.ac b/configure.ac index 751646d2..ac5df1f8 100644 --- a/configure.ac +++ b/configure.ac @@ -62,6 +62,11 @@ AC_CHECK_LIB( [boost_iostreams], , [AC_MSG_ERROR([libboost_iostreams not found!])]) +AC_CHECK_LIB( [protobuf], + [main], + , + [AC_MSG_ERROR([libprotobuf not found!])]) + # TODO -> PARAMETRIZE THIS AC_CHECK_LIB([wthttp], [main], diff --git a/remote/messages/Header.hpp b/remote/messages/Header.hpp index 1aadf1c0..d6fa4709 100644 --- a/remote/messages/Header.hpp +++ b/remote/messages/Header.hpp @@ -8,8 +8,55 @@ namespace Remote class Header { public: + static const std::size_t size = 8; + Header() : _size(0) {} + + void setSize(std::size_t size) { _size = size; } + std::size_t getSize(void) const {return _size;} + + static Header from_buffer(const std::array& buffer, bool& error) + { + Header res; + + if (decode32(&buffer[0]) != _magic) + error = true; + else + { + res._size = decode32(&buffer[4]); + error = false; + } + + return res; + } + + void to_buffer(std::array& buffer) + { + encode32(_magic, &buffer[0]); + encode32(_size, &buffer[4]); + } + + private: + static uint32_t decode32(const unsigned char* data) + { + return (static_cast(data[0]) << 24) + + (static_cast(data[1]) << 16) + + (static_cast(data[2]) << 8) + + (static_cast(data[3])); + } + + static void encode32(uint32_t value, unsigned char* data) + { + data[0] = (value >> 24) & 0xFF; + data[1] = (value >> 16) & 0xFF; + data[2] = (value >> 8) & 0xFF; + data[3] = (value) & 0xFF; + } + + static const uint32_t _magic = 0xbeef; + + uint32_t _size; }; diff --git a/remote/messages/auth.pb.cc b/remote/messages/auth.pb.cc index 078c9b52..f4042f3d 100644 --- a/remote/messages/auth.pb.cc +++ b/remote/messages/auth.pb.cc @@ -16,6 +16,8 @@ #include // @@protoc_insertion_point(includes) +namespace Remote { + namespace { const ::google::protobuf::Descriptor* AuthRequest_descriptor_ = NULL; @@ -98,12 +100,12 @@ void protobuf_AddDesc_auth_2eproto() { already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; - ::protobuf_AddDesc_common_2eproto(); + ::Remote::protobuf_AddDesc_common_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\nauth.proto\032\014common.proto\"7\n\013AuthReques" - "t\022\021\n\tuser_name\030\001 \002(\t\022\025\n\ruser_password\030\002 " - "\002(\t\"%\n\014AuthResponse\022\025\n\005error\030\001 \002(\0132\006.Err" - "or", 122); + "\n\nauth.proto\022\006Remote\032\014common.proto\"7\n\013Au" + "thRequest\022\021\n\tuser_name\030\001 \002(\t\022\025\n\ruser_pas" + "sword\030\002 \002(\t\",\n\014AuthResponse\022\034\n\005error\030\001 \002" + "(\0132\r.Remote.Error", 137); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "auth.proto", &protobuf_RegisterTypes); AuthRequest::default_instance_ = new AuthRequest(); @@ -415,7 +417,7 @@ AuthResponse::AuthResponse() } void AuthResponse::InitAsDefaultInstance() { - error_ = const_cast< ::Error*>(&::Error::default_instance()); + error_ = const_cast< ::Remote::Error*>(&::Remote::Error::default_instance()); } AuthResponse::AuthResponse(const AuthResponse& from) @@ -464,7 +466,7 @@ AuthResponse* AuthResponse::New() const { void AuthResponse::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_error()) { - if (error_ != NULL) error_->::Error::Clear(); + if (error_ != NULL) error_->::Remote::Error::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -477,7 +479,7 @@ bool AuthResponse::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .Error error = 1; + // required .Remote.Error error = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -508,7 +510,7 @@ bool AuthResponse::MergePartialFromCodedStream( void AuthResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // required .Error error = 1; + // required .Remote.Error error = 1; if (has_error()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->error(), output); @@ -522,7 +524,7 @@ void AuthResponse::SerializeWithCachedSizes( ::google::protobuf::uint8* AuthResponse::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // required .Error error = 1; + // required .Remote.Error error = 1; if (has_error()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -540,7 +542,7 @@ int AuthResponse::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Error error = 1; + // required .Remote.Error error = 1; if (has_error()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -575,7 +577,7 @@ void AuthResponse::MergeFrom(const AuthResponse& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_error()) { - mutable_error()->::Error::MergeFrom(from.error()); + mutable_error()->::Remote::Error::MergeFrom(from.error()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); @@ -622,4 +624,6 @@ void AuthResponse::Swap(AuthResponse* other) { // @@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 index 07f150e3..ef469b0c 100644 --- a/remote/messages/auth.pb.h +++ b/remote/messages/auth.pb.h @@ -27,6 +27,8 @@ #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(); @@ -115,7 +117,7 @@ class AuthRequest : public ::google::protobuf::Message { inline ::std::string* release_user_password(); inline void set_allocated_user_password(::std::string* user_password); - // @@protoc_insertion_point(class_scope:AuthRequest) + // @@protoc_insertion_point(class_scope:Remote.AuthRequest) private: inline void set_has_user_name(); inline void clear_has_user_name(); @@ -193,23 +195,23 @@ class AuthResponse : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // required .Error error = 1; + // required .Remote.Error error = 1; inline bool has_error() const; inline void clear_error(); static const int kErrorFieldNumber = 1; - inline const ::Error& error() const; - inline ::Error* mutable_error(); - inline ::Error* release_error(); - inline void set_allocated_error(::Error* error); + inline const ::Remote::Error& error() const; + inline ::Remote::Error* mutable_error(); + inline ::Remote::Error* release_error(); + inline void set_allocated_error(::Remote::Error* error); - // @@protoc_insertion_point(class_scope:AuthResponse) + // @@protoc_insertion_point(class_scope:Remote.AuthResponse) private: inline void set_has_error(); inline void clear_has_error(); ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::Error* error_; + ::Remote::Error* error_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32]; @@ -372,7 +374,7 @@ inline void AuthRequest::set_allocated_user_password(::std::string* user_passwor // AuthResponse -// required .Error error = 1; +// required .Remote.Error error = 1; inline bool AuthResponse::has_error() const { return (_has_bits_[0] & 0x00000001u) != 0; } @@ -383,24 +385,24 @@ inline void AuthResponse::clear_has_error() { _has_bits_[0] &= ~0x00000001u; } inline void AuthResponse::clear_error() { - if (error_ != NULL) error_->::Error::Clear(); + if (error_ != NULL) error_->::Remote::Error::Clear(); clear_has_error(); } -inline const ::Error& AuthResponse::error() const { +inline const ::Remote::Error& AuthResponse::error() const { return error_ != NULL ? *error_ : *default_instance_->error_; } -inline ::Error* AuthResponse::mutable_error() { +inline ::Remote::Error* AuthResponse::mutable_error() { set_has_error(); - if (error_ == NULL) error_ = new ::Error; + if (error_ == NULL) error_ = new ::Remote::Error; return error_; } -inline ::Error* AuthResponse::release_error() { +inline ::Remote::Error* AuthResponse::release_error() { clear_has_error(); - ::Error* temp = error_; + ::Remote::Error* temp = error_; error_ = NULL; return temp; } -inline void AuthResponse::set_allocated_error(::Error* error) { +inline void AuthResponse::set_allocated_error(::Remote::Error* error) { delete error_; error_ = error; if (error) { @@ -413,6 +415,8 @@ inline void AuthResponse::set_allocated_error(::Error* error) { // @@protoc_insertion_point(namespace_scope) +} // namespace Remote + #ifndef SWIG namespace google { namespace protobuf { diff --git a/remote/messages/collection.pb.cc b/remote/messages/collection.pb.cc index 5e5599aa..974d9418 100644 --- a/remote/messages/collection.pb.cc +++ b/remote/messages/collection.pb.cc @@ -16,55 +16,57 @@ #include // @@protoc_insertion_point(includes) +namespace Remote { + namespace { -const ::google::protobuf::Descriptor* CollectionRequest_descriptor_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionRequest_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionRequest_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionRequest_GetGenreList_descriptor_ = NULL; + AudioCollectionRequest_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionRequest_GetGenreList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionRequest_GetGenreList_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionRequest_GetArtistList_descriptor_ = NULL; + AudioCollectionRequest_GetGenreList_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionRequest_GetArtistList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionRequest_GetArtistList_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionRequest_GetReleaseList_descriptor_ = NULL; + AudioCollectionRequest_GetArtistList_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionRequest_GetReleaseList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionRequest_GetReleaseList_reflection_ = NULL; -const ::google::protobuf::Descriptor* CollectionRequest_GetTrackList_descriptor_ = NULL; + AudioCollectionRequest_GetReleaseList_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionRequest_GetTrackList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionRequest_GetTrackList_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* CollectionRequest_Type_descriptor_ = NULL; -const ::google::protobuf::Descriptor* CollectionResponse_descriptor_ = NULL; + AudioCollectionRequest_GetTrackList_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_Type_descriptor_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - CollectionResponse_reflection_ = NULL; -const ::google::protobuf::EnumDescriptor* CollectionResponse_Type_descriptor_ = NULL; -const ::google::protobuf::Descriptor* GenreList_descriptor_ = NULL; + AudioCollectionResponse_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_GenreList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - GenreList_reflection_ = NULL; -const ::google::protobuf::Descriptor* ArtistList_descriptor_ = NULL; + AudioCollectionResponse_GenreList_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_ArtistList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - ArtistList_reflection_ = NULL; -const ::google::protobuf::Descriptor* ReleaseList_descriptor_ = NULL; + AudioCollectionResponse_ArtistList_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_ReleaseList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - ReleaseList_reflection_ = NULL; -const ::google::protobuf::Descriptor* TrackList_descriptor_ = NULL; + AudioCollectionResponse_ReleaseList_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_TrackList_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - TrackList_reflection_ = NULL; -const ::google::protobuf::Descriptor* Genre_descriptor_ = NULL; + AudioCollectionResponse_TrackList_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_Genre_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - Genre_reflection_ = NULL; -const ::google::protobuf::Descriptor* CoverArt_descriptor_ = NULL; + AudioCollectionResponse_Genre_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_CoverArt_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - CoverArt_reflection_ = NULL; -const ::google::protobuf::Descriptor* Artist_descriptor_ = NULL; + AudioCollectionResponse_CoverArt_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_Artist_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - Artist_reflection_ = NULL; -const ::google::protobuf::Descriptor* Release_descriptor_ = NULL; + AudioCollectionResponse_Artist_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_Release_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - Release_reflection_ = NULL; -const ::google::protobuf::Descriptor* Track_descriptor_ = NULL; + AudioCollectionResponse_Release_reflection_ = NULL; +const ::google::protobuf::Descriptor* AudioCollectionResponse_Track_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* - Track_reflection_ = NULL; + AudioCollectionResponse_Track_reflection_ = NULL; +const ::google::protobuf::EnumDescriptor* AudioCollectionResponse_Type_descriptor_ = NULL; } // namespace @@ -75,275 +77,275 @@ void protobuf_AssignDesc_collection_2eproto() { ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "collection.proto"); GOOGLE_CHECK(file != NULL); - CollectionRequest_descriptor_ = file->message_type(0); - static const int CollectionRequest_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest, get_genres_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest, get_artists_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest, get_releases_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest, get_tracks_), + AudioCollectionRequest_descriptor_ = file->message_type(0); + static const int AudioCollectionRequest_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest, type_), + 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_), }; - CollectionRequest_reflection_ = + AudioCollectionRequest_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - CollectionRequest_descriptor_, - CollectionRequest::default_instance_, - CollectionRequest_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest, _unknown_fields_), + 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(CollectionRequest)); - CollectionRequest_GetGenreList_descriptor_ = CollectionRequest_descriptor_->nested_type(0); - static const int CollectionRequest_GetGenreList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetGenreList, filter_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetGenreList, preferred_batch_size_), + sizeof(AudioCollectionRequest)); + AudioCollectionRequest_GetGenreList_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(0); + static const int AudioCollectionRequest_GetGenreList_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetGenreList, filter_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetGenreList, preferred_batch_size_), }; - CollectionRequest_GetGenreList_reflection_ = + AudioCollectionRequest_GetGenreList_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - CollectionRequest_GetGenreList_descriptor_, - CollectionRequest_GetGenreList::default_instance_, - CollectionRequest_GetGenreList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetGenreList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetGenreList, _unknown_fields_), + 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(CollectionRequest_GetGenreList)); - CollectionRequest_GetArtistList_descriptor_ = CollectionRequest_descriptor_->nested_type(1); - static const int CollectionRequest_GetArtistList_offsets_[3] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetArtistList, filter_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetArtistList, filter_genre_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetArtistList, preferred_batch_size_), + sizeof(AudioCollectionRequest_GetGenreList)); + AudioCollectionRequest_GetArtistList_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(1); + static const int AudioCollectionRequest_GetArtistList_offsets_[3] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetArtistList, filter_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetArtistList, filter_genre_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetArtistList, preferred_batch_size_), }; - CollectionRequest_GetArtistList_reflection_ = + AudioCollectionRequest_GetArtistList_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - CollectionRequest_GetArtistList_descriptor_, - CollectionRequest_GetArtistList::default_instance_, - CollectionRequest_GetArtistList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetArtistList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetArtistList, _unknown_fields_), + 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(CollectionRequest_GetArtistList)); - CollectionRequest_GetReleaseList_descriptor_ = CollectionRequest_descriptor_->nested_type(2); - static const int CollectionRequest_GetReleaseList_offsets_[5] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetReleaseList, filter_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetReleaseList, artist_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetReleaseList, filter_genre_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetReleaseList, get_cover_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetReleaseList, preferred_batch_size_), + sizeof(AudioCollectionRequest_GetArtistList)); + AudioCollectionRequest_GetReleaseList_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(2); + static const int AudioCollectionRequest_GetReleaseList_offsets_[5] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, filter_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, artist_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, filter_genre_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, get_cover_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetReleaseList, preferred_batch_size_), }; - CollectionRequest_GetReleaseList_reflection_ = + AudioCollectionRequest_GetReleaseList_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - CollectionRequest_GetReleaseList_descriptor_, - CollectionRequest_GetReleaseList::default_instance_, - CollectionRequest_GetReleaseList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetReleaseList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetReleaseList, _unknown_fields_), + 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(CollectionRequest_GetReleaseList)); - CollectionRequest_GetTrackList_descriptor_ = CollectionRequest_descriptor_->nested_type(3); - static const int CollectionRequest_GetTrackList_offsets_[8] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, filter_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, release_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, artist_name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, filter_genre_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, disc_number_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, track_number_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, get_cover_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, preferred_batch_size_), + sizeof(AudioCollectionRequest_GetReleaseList)); + AudioCollectionRequest_GetTrackList_descriptor_ = AudioCollectionRequest_descriptor_->nested_type(3); + static const int AudioCollectionRequest_GetTrackList_offsets_[8] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, filter_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, release_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, artist_name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, filter_genre_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, disc_number_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, track_number_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, get_cover_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionRequest_GetTrackList, preferred_batch_size_), }; - CollectionRequest_GetTrackList_reflection_ = + AudioCollectionRequest_GetTrackList_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - CollectionRequest_GetTrackList_descriptor_, - CollectionRequest_GetTrackList::default_instance_, - CollectionRequest_GetTrackList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionRequest_GetTrackList, _unknown_fields_), + 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(CollectionRequest_GetTrackList)); - CollectionRequest_Type_descriptor_ = CollectionRequest_descriptor_->enum_type(0); - CollectionResponse_descriptor_ = file->message_type(1); - static const int CollectionResponse_offsets_[6] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionResponse, error_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionResponse, type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionResponse, genre_list_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionResponse, artist_list_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionResponse, release_list_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionResponse, track_list_), + sizeof(AudioCollectionRequest_GetTrackList)); + AudioCollectionRequest_Type_descriptor_ = AudioCollectionRequest_descriptor_->enum_type(0); + AudioCollectionResponse_descriptor_ = file->message_type(1); + static const int AudioCollectionResponse_offsets_[6] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, error_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse, type_), + 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_), }; - CollectionResponse_reflection_ = + AudioCollectionResponse_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - CollectionResponse_descriptor_, - CollectionResponse::default_instance_, - CollectionResponse_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionResponse, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CollectionResponse, _unknown_fields_), + 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(CollectionResponse)); - CollectionResponse_Type_descriptor_ = CollectionResponse_descriptor_->enum_type(0); - GenreList_descriptor_ = file->message_type(2); - static const int GenreList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenreList, last_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenreList, genres_), + sizeof(AudioCollectionResponse)); + AudioCollectionResponse_GenreList_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(0); + static const int AudioCollectionResponse_GenreList_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_GenreList, last_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_GenreList, genres_), }; - GenreList_reflection_ = + AudioCollectionResponse_GenreList_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - GenreList_descriptor_, - GenreList::default_instance_, - GenreList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenreList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(GenreList, _unknown_fields_), + 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(GenreList)); - ArtistList_descriptor_ = file->message_type(3); - static const int ArtistList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArtistList, last_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArtistList, artists_), + sizeof(AudioCollectionResponse_GenreList)); + AudioCollectionResponse_ArtistList_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(1); + static const int AudioCollectionResponse_ArtistList_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ArtistList, last_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ArtistList, artists_), }; - ArtistList_reflection_ = + AudioCollectionResponse_ArtistList_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - ArtistList_descriptor_, - ArtistList::default_instance_, - ArtistList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArtistList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ArtistList, _unknown_fields_), + 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(ArtistList)); - ReleaseList_descriptor_ = file->message_type(4); - static const int ReleaseList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReleaseList, last_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReleaseList, releases_), + sizeof(AudioCollectionResponse_ArtistList)); + AudioCollectionResponse_ReleaseList_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(2); + static const int AudioCollectionResponse_ReleaseList_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ReleaseList, last_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_ReleaseList, releases_), }; - ReleaseList_reflection_ = + AudioCollectionResponse_ReleaseList_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - ReleaseList_descriptor_, - ReleaseList::default_instance_, - ReleaseList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReleaseList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ReleaseList, _unknown_fields_), + 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(ReleaseList)); - TrackList_descriptor_ = file->message_type(5); - static const int TrackList_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TrackList, last_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TrackList, tracks_), + sizeof(AudioCollectionResponse_ReleaseList)); + AudioCollectionResponse_TrackList_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(3); + static const int AudioCollectionResponse_TrackList_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_TrackList, last_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_TrackList, tracks_), }; - TrackList_reflection_ = + AudioCollectionResponse_TrackList_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - TrackList_descriptor_, - TrackList::default_instance_, - TrackList_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TrackList, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(TrackList, _unknown_fields_), + 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(TrackList)); - Genre_descriptor_ = file->message_type(6); - static const int Genre_offsets_[1] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Genre, name_), + sizeof(AudioCollectionResponse_TrackList)); + AudioCollectionResponse_Genre_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(4); + static const int AudioCollectionResponse_Genre_offsets_[1] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Genre, name_), }; - Genre_reflection_ = + AudioCollectionResponse_Genre_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - Genre_descriptor_, - Genre::default_instance_, - Genre_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Genre, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Genre, _unknown_fields_), + 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(Genre)); - CoverArt_descriptor_ = file->message_type(7); - static const int CoverArt_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoverArt, mime_type_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoverArt, data_), + sizeof(AudioCollectionResponse_Genre)); + 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_), }; - CoverArt_reflection_ = + AudioCollectionResponse_CoverArt_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - CoverArt_descriptor_, - CoverArt::default_instance_, - CoverArt_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoverArt, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(CoverArt, _unknown_fields_), + 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(CoverArt)); - Artist_descriptor_ = file->message_type(8); - static const int Artist_offsets_[2] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Artist, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Artist, nb_releases_), + sizeof(AudioCollectionResponse_CoverArt)); + AudioCollectionResponse_Artist_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(6); + static const int AudioCollectionResponse_Artist_offsets_[2] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Artist, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Artist, nb_releases_), }; - Artist_reflection_ = + AudioCollectionResponse_Artist_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - Artist_descriptor_, - Artist::default_instance_, - Artist_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Artist, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Artist, _unknown_fields_), + 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(Artist)); - Release_descriptor_ = file->message_type(9); - static const int Release_offsets_[4] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Release, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Release, nb_tracks_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Release, duration_secs_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Release, coverart_), + sizeof(AudioCollectionResponse_Artist)); + AudioCollectionResponse_Release_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(7); + static const int AudioCollectionResponse_Release_offsets_[4] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Release, name_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Release, nb_tracks_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Release, duration_secs_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Release, coverart_), }; - Release_reflection_ = + AudioCollectionResponse_Release_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - Release_descriptor_, - Release::default_instance_, - Release_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Release, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Release, _unknown_fields_), + 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(Release)); - Track_descriptor_ = file->message_type(10); - static const int Track_offsets_[11] = { - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, media_id_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, disc_number_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, track_number_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, artist_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, release_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, name_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, duration_secs_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, release_date_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, original_release_date_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, genres_), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, coverart_), + sizeof(AudioCollectionResponse_Release)); + AudioCollectionResponse_Track_descriptor_ = AudioCollectionResponse_descriptor_->nested_type(8); + static const int AudioCollectionResponse_Track_offsets_[11] = { + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, media_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, artist_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, release_), + 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_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, genres_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(AudioCollectionResponse_Track, coverart_), }; - Track_reflection_ = + AudioCollectionResponse_Track_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( - Track_descriptor_, - Track::default_instance_, - Track_offsets_, - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, _has_bits_[0]), - GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Track, _unknown_fields_), + 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(Track)); + sizeof(AudioCollectionResponse_Track)); + AudioCollectionResponse_Type_descriptor_ = AudioCollectionResponse_descriptor_->enum_type(0); } namespace { @@ -357,70 +359,70 @@ inline void protobuf_AssignDescriptorsOnce() { void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionRequest_descriptor_, &CollectionRequest::default_instance()); + AudioCollectionRequest_descriptor_, &AudioCollectionRequest::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionRequest_GetGenreList_descriptor_, &CollectionRequest_GetGenreList::default_instance()); + AudioCollectionRequest_GetGenreList_descriptor_, &AudioCollectionRequest_GetGenreList::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionRequest_GetArtistList_descriptor_, &CollectionRequest_GetArtistList::default_instance()); + AudioCollectionRequest_GetArtistList_descriptor_, &AudioCollectionRequest_GetArtistList::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionRequest_GetReleaseList_descriptor_, &CollectionRequest_GetReleaseList::default_instance()); + AudioCollectionRequest_GetReleaseList_descriptor_, &AudioCollectionRequest_GetReleaseList::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionRequest_GetTrackList_descriptor_, &CollectionRequest_GetTrackList::default_instance()); + AudioCollectionRequest_GetTrackList_descriptor_, &AudioCollectionRequest_GetTrackList::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CollectionResponse_descriptor_, &CollectionResponse::default_instance()); + AudioCollectionResponse_descriptor_, &AudioCollectionResponse::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - GenreList_descriptor_, &GenreList::default_instance()); + AudioCollectionResponse_GenreList_descriptor_, &AudioCollectionResponse_GenreList::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ArtistList_descriptor_, &ArtistList::default_instance()); + AudioCollectionResponse_ArtistList_descriptor_, &AudioCollectionResponse_ArtistList::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - ReleaseList_descriptor_, &ReleaseList::default_instance()); + AudioCollectionResponse_ReleaseList_descriptor_, &AudioCollectionResponse_ReleaseList::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - TrackList_descriptor_, &TrackList::default_instance()); + AudioCollectionResponse_TrackList_descriptor_, &AudioCollectionResponse_TrackList::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Genre_descriptor_, &Genre::default_instance()); + AudioCollectionResponse_Genre_descriptor_, &AudioCollectionResponse_Genre::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - CoverArt_descriptor_, &CoverArt::default_instance()); + AudioCollectionResponse_CoverArt_descriptor_, &AudioCollectionResponse_CoverArt::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Artist_descriptor_, &Artist::default_instance()); + AudioCollectionResponse_Artist_descriptor_, &AudioCollectionResponse_Artist::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Release_descriptor_, &Release::default_instance()); + AudioCollectionResponse_Release_descriptor_, &AudioCollectionResponse_Release::default_instance()); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( - Track_descriptor_, &Track::default_instance()); + AudioCollectionResponse_Track_descriptor_, &AudioCollectionResponse_Track::default_instance()); } } // namespace void protobuf_ShutdownFile_collection_2eproto() { - delete CollectionRequest::default_instance_; - delete CollectionRequest_reflection_; - delete CollectionRequest_GetGenreList::default_instance_; - delete CollectionRequest_GetGenreList_reflection_; - delete CollectionRequest_GetArtistList::default_instance_; - delete CollectionRequest_GetArtistList_reflection_; - delete CollectionRequest_GetReleaseList::default_instance_; - delete CollectionRequest_GetReleaseList_reflection_; - delete CollectionRequest_GetTrackList::default_instance_; - delete CollectionRequest_GetTrackList_reflection_; - delete CollectionResponse::default_instance_; - delete CollectionResponse_reflection_; - delete GenreList::default_instance_; - delete GenreList_reflection_; - delete ArtistList::default_instance_; - delete ArtistList_reflection_; - delete ReleaseList::default_instance_; - delete ReleaseList_reflection_; - delete TrackList::default_instance_; - delete TrackList_reflection_; - delete Genre::default_instance_; - delete Genre_reflection_; - delete CoverArt::default_instance_; - delete CoverArt_reflection_; - delete Artist::default_instance_; - delete Artist_reflection_; - delete Release::default_instance_; - delete Release_reflection_; - delete Track::default_instance_; - delete Track_reflection_; + delete AudioCollectionRequest::default_instance_; + delete AudioCollectionRequest_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 AudioCollectionResponse::default_instance_; + delete AudioCollectionResponse_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_Genre::default_instance_; + delete AudioCollectionResponse_Genre_reflection_; + delete AudioCollectionResponse_CoverArt::default_instance_; + delete AudioCollectionResponse_CoverArt_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() { @@ -429,86 +431,96 @@ void protobuf_AddDesc_collection_2eproto() { already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; - ::protobuf_AddDesc_common_2eproto(); + ::Remote::protobuf_AddDesc_common_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\020collection.proto\032\014common.proto\"\305\006\n\021Col" - "lectionRequest\022%\n\004type\030\001 \002(\0162\027.Collectio" - "nRequest.Type\0223\n\nget_genres\030\002 \001(\0132\037.Coll" - "ectionRequest.GetGenreList\0225\n\013get_artist" - "s\030\003 \001(\0132 .CollectionRequest.GetArtistLis" - "t\0227\n\014get_releases\030\004 \001(\0132!.CollectionRequ" - "est.GetReleaseList\0223\n\nget_tracks\030\005 \001(\0132\037" - ".CollectionRequest.GetTrackList\032A\n\014GetGe" - "nreList\022\023\n\013filter_name\030\001 \001(\t\022\034\n\024preferre" - "d_batch_size\030\002 \001(\r\032X\n\rGetArtistList\022\023\n\013f" - "ilter_name\030\001 \001(\t\022\024\n\014filter_genre\030\002 \003(\t\022\034" - "\n\024preferred_batch_size\030\003 \001(\r\032\201\001\n\016GetRele" - "aseList\022\023\n\013filter_name\030\001 \001(\t\022\023\n\013artist_n" - "ame\030\002 \003(\t\022\024\n\014filter_genre\030\003 \003(\t\022\021\n\tget_c" - "over\030\004 \001(\010\022\034\n\024preferred_batch_size\030\005 \001(\r" - "\032\300\001\n\014GetTrackList\022\023\n\013filter_name\030\001 \001(\t\022\024" - "\n\014release_name\030\002 \003(\t\022\023\n\013artist_name\030\003 \003(" - "\t\022\024\n\014filter_genre\030\004 \003(\t\022\023\n\013disc_number\030\005" - " \001(\r\022\024\n\014track_number\030\006 \001(\r\022\021\n\tget_cover\030" - "\007 \001(\010\022\034\n\024preferred_batch_size\030\010 \001(\r\"K\n\004T" - "ype\022\025\n\021TypeGetArtistList\020\000\022\026\n\022TypeGetRel" - "easeList\020\001\022\024\n\020TypeGetTrackList\020\002\"\260\002\n\022Col" - "lectionResponse\022\025\n\005error\030\001 \002(\0132\006.Error\022&" - "\n\004type\030\002 \001(\0162\030.CollectionResponse.Type\022\036" - "\n\ngenre_list\030\003 \001(\0132\n.GenreList\022 \n\013artist" - "_list\030\004 \001(\0132\013.ArtistList\022\"\n\014release_list" - "\030\005 \001(\0132\014.ReleaseList\022\036\n\ntrack_list\030\006 \001(\013" - "2\n.TrackList\"U\n\004Type\022\021\n\rTypeGenreList\020\001\022" - "\022\n\016TypeArtistList\020\002\022\023\n\017TypeReleaseList\020\003" - "\022\021\n\rTypeTrackList\020\004\"1\n\tGenreList\022\014\n\004last" - "\030\001 \002(\010\022\026\n\006genres\030\002 \003(\0132\006.Genre\"4\n\nArtist" - "List\022\014\n\004last\030\001 \002(\010\022\030\n\007artists\030\002 \003(\0132\007.Ar" - "tist\"7\n\013ReleaseList\022\014\n\004last\030\001 \002(\010\022\032\n\010rel" - "eases\030\002 \003(\0132\010.Release\"1\n\tTrackList\022\014\n\004la" - "st\030\001 \002(\010\022\026\n\006tracks\030\002 \003(\0132\006.Track\"\025\n\005Genr" - "e\022\014\n\004name\030\001 \002(\t\"+\n\010CoverArt\022\021\n\tmime_type" - "\030\001 \001(\t\022\014\n\004data\030\002 \003(\014\"+\n\006Artist\022\014\n\004name\030\001" - " \002(\t\022\023\n\013nb_releases\030\002 \002(\r\"^\n\007Release\022\014\n\004" - "name\030\001 \002(\t\022\021\n\tnb_tracks\030\002 \002(\r\022\025\n\rduratio" - "n_secs\030\003 \002(\r\022\033\n\010coverArt\030\004 \001(\0132\t.CoverAr" - "t\"\341\001\n\005Track\022\020\n\010media_id\030\001 \002(\003\022\023\n\013disc_nu" - "mber\030\002 \001(\r\022\024\n\014track_number\030\003 \001(\r\022\016\n\006arti" - "st\030\004 \001(\t\022\017\n\007release\030\005 \001(\t\022\014\n\004name\030\006 \002(\t\022" - "\025\n\rduration_secs\030\007 \002(\r\022\024\n\014release_date\030\010" - " \001(\t\022\035\n\025original_release_date\030\t \001(\t\022\016\n\006g" - "enres\030\n \003(\t\022\020\n\010coverArt\030\013 \001(\014", 1829); + "\n\020collection.proto\022\006Remote\032\014common.proto" + "\"\206\007\n\026AudioCollectionRequest\0221\n\004type\030\001 \002(" + "\0162#.Remote.AudioCollectionRequest.Type\022\?" + "\n\nget_genres\030\002 \001(\0132+.Remote.AudioCollect" + "ionRequest.GetGenreList\022A\n\013get_artists\030\003" + " \001(\0132,.Remote.AudioCollectionRequest.Get" + "ArtistList\022C\n\014get_releases\030\004 \001(\0132-.Remot" + "e.AudioCollectionRequest.GetReleaseList\022" + "\?\n\nget_tracks\030\005 \001(\0132+.Remote.AudioCollec" + "tionRequest.GetTrackList\032A\n\014GetGenreList" + "\022\023\n\013filter_name\030\001 \001(\t\022\034\n\024preferred_batch" + "_size\030\002 \001(\r\032X\n\rGetArtistList\022\023\n\013filter_n" + "ame\030\001 \001(\t\022\024\n\014filter_genre\030\002 \003(\t\022\034\n\024prefe" + "rred_batch_size\030\003 \001(\r\032\201\001\n\016GetReleaseList" + "\022\023\n\013filter_name\030\001 \001(\t\022\023\n\013artist_name\030\002 \003" + "(\t\022\024\n\014filter_genre\030\003 \003(\t\022\021\n\tget_cover\030\004 " + "\001(\010\022\034\n\024preferred_batch_size\030\005 \001(\r\032\300\001\n\014Ge" + "tTrackList\022\023\n\013filter_name\030\001 \001(\t\022\024\n\014relea" + "se_name\030\002 \003(\t\022\023\n\013artist_name\030\003 \003(\t\022\024\n\014fi" + "lter_genre\030\004 \003(\t\022\023\n\013disc_number\030\005 \001(\r\022\024\n" + "\014track_number\030\006 \001(\r\022\021\n\tget_cover\030\007 \001(\010\022\034" + "\n\024preferred_batch_size\030\010 \001(\r\"K\n\004Type\022\025\n\021" + "TypeGetArtistList\020\000\022\026\n\022TypeGetReleaseLis" + "t\020\001\022\024\n\020TypeGetTrackList\020\002\"\351\t\n\027AudioColle" + "ctionResponse\022\034\n\005error\030\001 \002(\0132\r.Remote.Er" + "ror\0222\n\004type\030\002 \001(\0162$.Remote.AudioCollecti" + "onResponse.Type\022=\n\ngenre_list\030\003 \001(\0132).Re" + "mote.AudioCollectionResponse.GenreList\022\?" + "\n\013artist_list\030\004 \001(\0132*.Remote.AudioCollec" + "tionResponse.ArtistList\022A\n\014release_list\030" + "\005 \001(\0132+.Remote.AudioCollectionResponse.R" + "eleaseList\022=\n\ntrack_list\030\006 \001(\0132).Remote." + "AudioCollectionResponse.TrackList\032P\n\tGen" + "reList\022\014\n\004last\030\001 \002(\010\0225\n\006genres\030\002 \003(\0132%.R" + "emote.AudioCollectionResponse.Genre\032S\n\nA" + "rtistList\022\014\n\004last\030\001 \002(\010\0227\n\007artists\030\002 \003(\013" + "2&.Remote.AudioCollectionResponse.Artist" + "\032V\n\013ReleaseList\022\014\n\004last\030\001 \002(\010\0229\n\010release" + "s\030\002 \003(\0132\'.Remote.AudioCollectionResponse" + ".Release\032P\n\tTrackList\022\014\n\004last\030\001 \002(\010\0225\n\006t" + "racks\030\002 \003(\0132%.Remote.AudioCollectionResp" + "onse.Track\032\025\n\005Genre\022\014\n\004name\030\001 \002(\t\032+\n\010Cov" + "erArt\022\021\n\tmime_type\030\001 \001(\t\022\014\n\004data\030\002 \003(\014\032+" + "\n\006Artist\022\014\n\004name\030\001 \002(\t\022\023\n\013nb_releases\030\002 " + "\002(\r\032}\n\007Release\022\014\n\004name\030\001 \002(\t\022\021\n\tnb_track" + "s\030\002 \002(\r\022\025\n\rduration_secs\030\003 \002(\r\022:\n\010coverA" + "rt\030\004 \001(\0132(.Remote.AudioCollectionRespons" + "e.CoverArt\032\341\001\n\005Track\022\020\n\010media_id\030\001 \002(\003\022\023" + "\n\013disc_number\030\002 \001(\r\022\024\n\014track_number\030\003 \001(" + "\r\022\016\n\006artist\030\004 \001(\t\022\017\n\007release\030\005 \001(\t\022\014\n\004na" + "me\030\006 \002(\t\022\025\n\rduration_secs\030\007 \002(\r\022\024\n\014relea" + "se_date\030\010 \001(\t\022\035\n\025original_release_date\030\t" + " \001(\t\022\016\n\006genres\030\n \003(\t\022\020\n\010coverArt\030\013 \001(\014\"U" + "\n\004Type\022\021\n\rTypeGenreList\020\001\022\022\n\016TypeArtistL" + "ist\020\002\022\023\n\017TypeReleaseList\020\003\022\021\n\rTypeTrackL" + "ist\020\004", 2205); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "collection.proto", &protobuf_RegisterTypes); - CollectionRequest::default_instance_ = new CollectionRequest(); - CollectionRequest_GetGenreList::default_instance_ = new CollectionRequest_GetGenreList(); - CollectionRequest_GetArtistList::default_instance_ = new CollectionRequest_GetArtistList(); - CollectionRequest_GetReleaseList::default_instance_ = new CollectionRequest_GetReleaseList(); - CollectionRequest_GetTrackList::default_instance_ = new CollectionRequest_GetTrackList(); - CollectionResponse::default_instance_ = new CollectionResponse(); - GenreList::default_instance_ = new GenreList(); - ArtistList::default_instance_ = new ArtistList(); - ReleaseList::default_instance_ = new ReleaseList(); - TrackList::default_instance_ = new TrackList(); - Genre::default_instance_ = new Genre(); - CoverArt::default_instance_ = new CoverArt(); - Artist::default_instance_ = new Artist(); - Release::default_instance_ = new Release(); - Track::default_instance_ = new Track(); - CollectionRequest::default_instance_->InitAsDefaultInstance(); - CollectionRequest_GetGenreList::default_instance_->InitAsDefaultInstance(); - CollectionRequest_GetArtistList::default_instance_->InitAsDefaultInstance(); - CollectionRequest_GetReleaseList::default_instance_->InitAsDefaultInstance(); - CollectionRequest_GetTrackList::default_instance_->InitAsDefaultInstance(); - CollectionResponse::default_instance_->InitAsDefaultInstance(); - GenreList::default_instance_->InitAsDefaultInstance(); - ArtistList::default_instance_->InitAsDefaultInstance(); - ReleaseList::default_instance_->InitAsDefaultInstance(); - TrackList::default_instance_->InitAsDefaultInstance(); - Genre::default_instance_->InitAsDefaultInstance(); - CoverArt::default_instance_->InitAsDefaultInstance(); - Artist::default_instance_->InitAsDefaultInstance(); - Release::default_instance_->InitAsDefaultInstance(); - Track::default_instance_->InitAsDefaultInstance(); + AudioCollectionRequest::default_instance_ = new AudioCollectionRequest(); + 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(); + AudioCollectionResponse::default_instance_ = new AudioCollectionResponse(); + 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_Genre::default_instance_ = new AudioCollectionResponse_Genre(); + AudioCollectionResponse_CoverArt::default_instance_ = new AudioCollectionResponse_CoverArt(); + 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_GetGenreList::default_instance_->InitAsDefaultInstance(); + AudioCollectionRequest_GetArtistList::default_instance_->InitAsDefaultInstance(); + AudioCollectionRequest_GetReleaseList::default_instance_->InitAsDefaultInstance(); + AudioCollectionRequest_GetTrackList::default_instance_->InitAsDefaultInstance(); + AudioCollectionResponse::default_instance_->InitAsDefaultInstance(); + AudioCollectionResponse_GenreList::default_instance_->InitAsDefaultInstance(); + AudioCollectionResponse_ArtistList::default_instance_->InitAsDefaultInstance(); + AudioCollectionResponse_ReleaseList::default_instance_->InitAsDefaultInstance(); + AudioCollectionResponse_TrackList::default_instance_->InitAsDefaultInstance(); + AudioCollectionResponse_Genre::default_instance_->InitAsDefaultInstance(); + AudioCollectionResponse_CoverArt::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); } @@ -521,11 +533,11 @@ struct StaticDescriptorInitializer_collection_2eproto { // =================================================================== -const ::google::protobuf::EnumDescriptor* CollectionRequest_Type_descriptor() { +const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_Type_descriptor() { protobuf_AssignDescriptorsOnce(); - return CollectionRequest_Type_descriptor_; + return AudioCollectionRequest_Type_descriptor_; } -bool CollectionRequest_Type_IsValid(int value) { +bool AudioCollectionRequest_Type_IsValid(int value) { switch(value) { case 0: case 1: @@ -537,44 +549,44 @@ bool CollectionRequest_Type_IsValid(int value) { } #ifndef _MSC_VER -const CollectionRequest_Type CollectionRequest::TypeGetArtistList; -const CollectionRequest_Type CollectionRequest::TypeGetReleaseList; -const CollectionRequest_Type CollectionRequest::TypeGetTrackList; -const CollectionRequest_Type CollectionRequest::Type_MIN; -const CollectionRequest_Type CollectionRequest::Type_MAX; -const int CollectionRequest::Type_ARRAYSIZE; +const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetArtistList; +const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetReleaseList; +const AudioCollectionRequest_Type AudioCollectionRequest::TypeGetTrackList; +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 CollectionRequest_GetGenreList::kFilterNameFieldNumber; -const int CollectionRequest_GetGenreList::kPreferredBatchSizeFieldNumber; +const int AudioCollectionRequest_GetGenreList::kFilterNameFieldNumber; +const int AudioCollectionRequest_GetGenreList::kPreferredBatchSizeFieldNumber; #endif // !_MSC_VER -CollectionRequest_GetGenreList::CollectionRequest_GetGenreList() +AudioCollectionRequest_GetGenreList::AudioCollectionRequest_GetGenreList() : ::google::protobuf::Message() { SharedCtor(); } -void CollectionRequest_GetGenreList::InitAsDefaultInstance() { +void AudioCollectionRequest_GetGenreList::InitAsDefaultInstance() { } -CollectionRequest_GetGenreList::CollectionRequest_GetGenreList(const CollectionRequest_GetGenreList& from) +AudioCollectionRequest_GetGenreList::AudioCollectionRequest_GetGenreList(const AudioCollectionRequest_GetGenreList& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void CollectionRequest_GetGenreList::SharedCtor() { +void AudioCollectionRequest_GetGenreList::SharedCtor() { _cached_size_ = 0; filter_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); preferred_batch_size_ = 0u; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -CollectionRequest_GetGenreList::~CollectionRequest_GetGenreList() { +AudioCollectionRequest_GetGenreList::~AudioCollectionRequest_GetGenreList() { SharedDtor(); } -void CollectionRequest_GetGenreList::SharedDtor() { +void AudioCollectionRequest_GetGenreList::SharedDtor() { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { delete filter_name_; } @@ -582,28 +594,28 @@ void CollectionRequest_GetGenreList::SharedDtor() { } } -void CollectionRequest_GetGenreList::SetCachedSize(int size) const { +void AudioCollectionRequest_GetGenreList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CollectionRequest_GetGenreList::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionRequest_GetGenreList::descriptor() { protobuf_AssignDescriptorsOnce(); - return CollectionRequest_GetGenreList_descriptor_; + return AudioCollectionRequest_GetGenreList_descriptor_; } -const CollectionRequest_GetGenreList& CollectionRequest_GetGenreList::default_instance() { +const AudioCollectionRequest_GetGenreList& AudioCollectionRequest_GetGenreList::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -CollectionRequest_GetGenreList* CollectionRequest_GetGenreList::default_instance_ = NULL; +AudioCollectionRequest_GetGenreList* AudioCollectionRequest_GetGenreList::default_instance_ = NULL; -CollectionRequest_GetGenreList* CollectionRequest_GetGenreList::New() const { - return new CollectionRequest_GetGenreList; +AudioCollectionRequest_GetGenreList* AudioCollectionRequest_GetGenreList::New() const { + return new AudioCollectionRequest_GetGenreList; } -void CollectionRequest_GetGenreList::Clear() { +void AudioCollectionRequest_GetGenreList::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_filter_name()) { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { @@ -616,7 +628,7 @@ void CollectionRequest_GetGenreList::Clear() { mutable_unknown_fields()->Clear(); } -bool CollectionRequest_GetGenreList::MergePartialFromCodedStream( +bool AudioCollectionRequest_GetGenreList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -670,7 +682,7 @@ bool CollectionRequest_GetGenreList::MergePartialFromCodedStream( #undef DO_ } -void CollectionRequest_GetGenreList::SerializeWithCachedSizes( +void AudioCollectionRequest_GetGenreList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional string filter_name = 1; if (has_filter_name()) { @@ -692,7 +704,7 @@ void CollectionRequest_GetGenreList::SerializeWithCachedSizes( } } -::google::protobuf::uint8* CollectionRequest_GetGenreList::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionRequest_GetGenreList::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional string filter_name = 1; if (has_filter_name()) { @@ -716,7 +728,7 @@ void CollectionRequest_GetGenreList::SerializeWithCachedSizes( return target; } -int CollectionRequest_GetGenreList::ByteSize() const { +int AudioCollectionRequest_GetGenreList::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -746,10 +758,10 @@ int CollectionRequest_GetGenreList::ByteSize() const { return total_size; } -void CollectionRequest_GetGenreList::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest_GetGenreList::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const CollectionRequest_GetGenreList* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionRequest_GetGenreList* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -758,7 +770,7 @@ void CollectionRequest_GetGenreList::MergeFrom(const ::google::protobuf::Message } } -void CollectionRequest_GetGenreList::MergeFrom(const CollectionRequest_GetGenreList& from) { +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_filter_name()) { @@ -771,24 +783,24 @@ void CollectionRequest_GetGenreList::MergeFrom(const CollectionRequest_GetGenreL mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void CollectionRequest_GetGenreList::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest_GetGenreList::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void CollectionRequest_GetGenreList::CopyFrom(const CollectionRequest_GetGenreList& from) { +void AudioCollectionRequest_GetGenreList::CopyFrom(const AudioCollectionRequest_GetGenreList& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool CollectionRequest_GetGenreList::IsInitialized() const { +bool AudioCollectionRequest_GetGenreList::IsInitialized() const { return true; } -void CollectionRequest_GetGenreList::Swap(CollectionRequest_GetGenreList* other) { +void AudioCollectionRequest_GetGenreList::Swap(AudioCollectionRequest_GetGenreList* other) { if (other != this) { std::swap(filter_name_, other->filter_name_); std::swap(preferred_batch_size_, other->preferred_batch_size_); @@ -798,11 +810,11 @@ void CollectionRequest_GetGenreList::Swap(CollectionRequest_GetGenreList* other) } } -::google::protobuf::Metadata CollectionRequest_GetGenreList::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionRequest_GetGenreList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionRequest_GetGenreList_descriptor_; - metadata.reflection = CollectionRequest_GetGenreList_reflection_; + metadata.descriptor = AudioCollectionRequest_GetGenreList_descriptor_; + metadata.reflection = AudioCollectionRequest_GetGenreList_reflection_; return metadata; } @@ -810,37 +822,37 @@ void CollectionRequest_GetGenreList::Swap(CollectionRequest_GetGenreList* other) // ------------------------------------------------------------------- #ifndef _MSC_VER -const int CollectionRequest_GetArtistList::kFilterNameFieldNumber; -const int CollectionRequest_GetArtistList::kFilterGenreFieldNumber; -const int CollectionRequest_GetArtistList::kPreferredBatchSizeFieldNumber; +const int AudioCollectionRequest_GetArtistList::kFilterNameFieldNumber; +const int AudioCollectionRequest_GetArtistList::kFilterGenreFieldNumber; +const int AudioCollectionRequest_GetArtistList::kPreferredBatchSizeFieldNumber; #endif // !_MSC_VER -CollectionRequest_GetArtistList::CollectionRequest_GetArtistList() +AudioCollectionRequest_GetArtistList::AudioCollectionRequest_GetArtistList() : ::google::protobuf::Message() { SharedCtor(); } -void CollectionRequest_GetArtistList::InitAsDefaultInstance() { +void AudioCollectionRequest_GetArtistList::InitAsDefaultInstance() { } -CollectionRequest_GetArtistList::CollectionRequest_GetArtistList(const CollectionRequest_GetArtistList& from) +AudioCollectionRequest_GetArtistList::AudioCollectionRequest_GetArtistList(const AudioCollectionRequest_GetArtistList& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void CollectionRequest_GetArtistList::SharedCtor() { +void AudioCollectionRequest_GetArtistList::SharedCtor() { _cached_size_ = 0; filter_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); preferred_batch_size_ = 0u; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -CollectionRequest_GetArtistList::~CollectionRequest_GetArtistList() { +AudioCollectionRequest_GetArtistList::~AudioCollectionRequest_GetArtistList() { SharedDtor(); } -void CollectionRequest_GetArtistList::SharedDtor() { +void AudioCollectionRequest_GetArtistList::SharedDtor() { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { delete filter_name_; } @@ -848,28 +860,28 @@ void CollectionRequest_GetArtistList::SharedDtor() { } } -void CollectionRequest_GetArtistList::SetCachedSize(int size) const { +void AudioCollectionRequest_GetArtistList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CollectionRequest_GetArtistList::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionRequest_GetArtistList::descriptor() { protobuf_AssignDescriptorsOnce(); - return CollectionRequest_GetArtistList_descriptor_; + return AudioCollectionRequest_GetArtistList_descriptor_; } -const CollectionRequest_GetArtistList& CollectionRequest_GetArtistList::default_instance() { +const AudioCollectionRequest_GetArtistList& AudioCollectionRequest_GetArtistList::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -CollectionRequest_GetArtistList* CollectionRequest_GetArtistList::default_instance_ = NULL; +AudioCollectionRequest_GetArtistList* AudioCollectionRequest_GetArtistList::default_instance_ = NULL; -CollectionRequest_GetArtistList* CollectionRequest_GetArtistList::New() const { - return new CollectionRequest_GetArtistList; +AudioCollectionRequest_GetArtistList* AudioCollectionRequest_GetArtistList::New() const { + return new AudioCollectionRequest_GetArtistList; } -void CollectionRequest_GetArtistList::Clear() { +void AudioCollectionRequest_GetArtistList::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_filter_name()) { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { @@ -883,7 +895,7 @@ void CollectionRequest_GetArtistList::Clear() { mutable_unknown_fields()->Clear(); } -bool CollectionRequest_GetArtistList::MergePartialFromCodedStream( +bool AudioCollectionRequest_GetArtistList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -956,7 +968,7 @@ bool CollectionRequest_GetArtistList::MergePartialFromCodedStream( #undef DO_ } -void CollectionRequest_GetArtistList::SerializeWithCachedSizes( +void AudioCollectionRequest_GetArtistList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional string filter_name = 1; if (has_filter_name()) { @@ -987,7 +999,7 @@ void CollectionRequest_GetArtistList::SerializeWithCachedSizes( } } -::google::protobuf::uint8* CollectionRequest_GetArtistList::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionRequest_GetArtistList::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional string filter_name = 1; if (has_filter_name()) { @@ -1020,7 +1032,7 @@ void CollectionRequest_GetArtistList::SerializeWithCachedSizes( return target; } -int CollectionRequest_GetArtistList::ByteSize() const { +int AudioCollectionRequest_GetArtistList::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -1057,10 +1069,10 @@ int CollectionRequest_GetArtistList::ByteSize() const { return total_size; } -void CollectionRequest_GetArtistList::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest_GetArtistList::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const CollectionRequest_GetArtistList* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionRequest_GetArtistList* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -1069,7 +1081,7 @@ void CollectionRequest_GetArtistList::MergeFrom(const ::google::protobuf::Messag } } -void CollectionRequest_GetArtistList::MergeFrom(const CollectionRequest_GetArtistList& from) { +void AudioCollectionRequest_GetArtistList::MergeFrom(const AudioCollectionRequest_GetArtistList& from) { GOOGLE_CHECK_NE(&from, this); filter_genre_.MergeFrom(from.filter_genre_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -1083,24 +1095,24 @@ void CollectionRequest_GetArtistList::MergeFrom(const CollectionRequest_GetArtis mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void CollectionRequest_GetArtistList::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest_GetArtistList::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void CollectionRequest_GetArtistList::CopyFrom(const CollectionRequest_GetArtistList& from) { +void AudioCollectionRequest_GetArtistList::CopyFrom(const AudioCollectionRequest_GetArtistList& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool CollectionRequest_GetArtistList::IsInitialized() const { +bool AudioCollectionRequest_GetArtistList::IsInitialized() const { return true; } -void CollectionRequest_GetArtistList::Swap(CollectionRequest_GetArtistList* other) { +void AudioCollectionRequest_GetArtistList::Swap(AudioCollectionRequest_GetArtistList* other) { if (other != this) { std::swap(filter_name_, other->filter_name_); filter_genre_.Swap(&other->filter_genre_); @@ -1111,11 +1123,11 @@ void CollectionRequest_GetArtistList::Swap(CollectionRequest_GetArtistList* othe } } -::google::protobuf::Metadata CollectionRequest_GetArtistList::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionRequest_GetArtistList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionRequest_GetArtistList_descriptor_; - metadata.reflection = CollectionRequest_GetArtistList_reflection_; + metadata.descriptor = AudioCollectionRequest_GetArtistList_descriptor_; + metadata.reflection = AudioCollectionRequest_GetArtistList_reflection_; return metadata; } @@ -1123,28 +1135,28 @@ void CollectionRequest_GetArtistList::Swap(CollectionRequest_GetArtistList* othe // ------------------------------------------------------------------- #ifndef _MSC_VER -const int CollectionRequest_GetReleaseList::kFilterNameFieldNumber; -const int CollectionRequest_GetReleaseList::kArtistNameFieldNumber; -const int CollectionRequest_GetReleaseList::kFilterGenreFieldNumber; -const int CollectionRequest_GetReleaseList::kGetCoverFieldNumber; -const int CollectionRequest_GetReleaseList::kPreferredBatchSizeFieldNumber; +const int AudioCollectionRequest_GetReleaseList::kFilterNameFieldNumber; +const int AudioCollectionRequest_GetReleaseList::kArtistNameFieldNumber; +const int AudioCollectionRequest_GetReleaseList::kFilterGenreFieldNumber; +const int AudioCollectionRequest_GetReleaseList::kGetCoverFieldNumber; +const int AudioCollectionRequest_GetReleaseList::kPreferredBatchSizeFieldNumber; #endif // !_MSC_VER -CollectionRequest_GetReleaseList::CollectionRequest_GetReleaseList() +AudioCollectionRequest_GetReleaseList::AudioCollectionRequest_GetReleaseList() : ::google::protobuf::Message() { SharedCtor(); } -void CollectionRequest_GetReleaseList::InitAsDefaultInstance() { +void AudioCollectionRequest_GetReleaseList::InitAsDefaultInstance() { } -CollectionRequest_GetReleaseList::CollectionRequest_GetReleaseList(const CollectionRequest_GetReleaseList& from) +AudioCollectionRequest_GetReleaseList::AudioCollectionRequest_GetReleaseList(const AudioCollectionRequest_GetReleaseList& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void CollectionRequest_GetReleaseList::SharedCtor() { +void AudioCollectionRequest_GetReleaseList::SharedCtor() { _cached_size_ = 0; filter_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); get_cover_ = false; @@ -1152,11 +1164,11 @@ void CollectionRequest_GetReleaseList::SharedCtor() { ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -CollectionRequest_GetReleaseList::~CollectionRequest_GetReleaseList() { +AudioCollectionRequest_GetReleaseList::~AudioCollectionRequest_GetReleaseList() { SharedDtor(); } -void CollectionRequest_GetReleaseList::SharedDtor() { +void AudioCollectionRequest_GetReleaseList::SharedDtor() { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { delete filter_name_; } @@ -1164,28 +1176,28 @@ void CollectionRequest_GetReleaseList::SharedDtor() { } } -void CollectionRequest_GetReleaseList::SetCachedSize(int size) const { +void AudioCollectionRequest_GetReleaseList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CollectionRequest_GetReleaseList::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionRequest_GetReleaseList::descriptor() { protobuf_AssignDescriptorsOnce(); - return CollectionRequest_GetReleaseList_descriptor_; + return AudioCollectionRequest_GetReleaseList_descriptor_; } -const CollectionRequest_GetReleaseList& CollectionRequest_GetReleaseList::default_instance() { +const AudioCollectionRequest_GetReleaseList& AudioCollectionRequest_GetReleaseList::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -CollectionRequest_GetReleaseList* CollectionRequest_GetReleaseList::default_instance_ = NULL; +AudioCollectionRequest_GetReleaseList* AudioCollectionRequest_GetReleaseList::default_instance_ = NULL; -CollectionRequest_GetReleaseList* CollectionRequest_GetReleaseList::New() const { - return new CollectionRequest_GetReleaseList; +AudioCollectionRequest_GetReleaseList* AudioCollectionRequest_GetReleaseList::New() const { + return new AudioCollectionRequest_GetReleaseList; } -void CollectionRequest_GetReleaseList::Clear() { +void AudioCollectionRequest_GetReleaseList::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_filter_name()) { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { @@ -1201,7 +1213,7 @@ void CollectionRequest_GetReleaseList::Clear() { mutable_unknown_fields()->Clear(); } -bool CollectionRequest_GetReleaseList::MergePartialFromCodedStream( +bool AudioCollectionRequest_GetReleaseList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -1309,7 +1321,7 @@ bool CollectionRequest_GetReleaseList::MergePartialFromCodedStream( #undef DO_ } -void CollectionRequest_GetReleaseList::SerializeWithCachedSizes( +void AudioCollectionRequest_GetReleaseList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional string filter_name = 1; if (has_filter_name()) { @@ -1354,7 +1366,7 @@ void CollectionRequest_GetReleaseList::SerializeWithCachedSizes( } } -::google::protobuf::uint8* CollectionRequest_GetReleaseList::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionRequest_GetReleaseList::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional string filter_name = 1; if (has_filter_name()) { @@ -1401,7 +1413,7 @@ void CollectionRequest_GetReleaseList::SerializeWithCachedSizes( return target; } -int CollectionRequest_GetReleaseList::ByteSize() const { +int AudioCollectionRequest_GetReleaseList::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -1450,10 +1462,10 @@ int CollectionRequest_GetReleaseList::ByteSize() const { return total_size; } -void CollectionRequest_GetReleaseList::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest_GetReleaseList::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const CollectionRequest_GetReleaseList* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionRequest_GetReleaseList* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -1462,7 +1474,7 @@ void CollectionRequest_GetReleaseList::MergeFrom(const ::google::protobuf::Messa } } -void CollectionRequest_GetReleaseList::MergeFrom(const CollectionRequest_GetReleaseList& from) { +void AudioCollectionRequest_GetReleaseList::MergeFrom(const AudioCollectionRequest_GetReleaseList& from) { GOOGLE_CHECK_NE(&from, this); artist_name_.MergeFrom(from.artist_name_); filter_genre_.MergeFrom(from.filter_genre_); @@ -1480,24 +1492,24 @@ void CollectionRequest_GetReleaseList::MergeFrom(const CollectionRequest_GetRele mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void CollectionRequest_GetReleaseList::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest_GetReleaseList::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void CollectionRequest_GetReleaseList::CopyFrom(const CollectionRequest_GetReleaseList& from) { +void AudioCollectionRequest_GetReleaseList::CopyFrom(const AudioCollectionRequest_GetReleaseList& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool CollectionRequest_GetReleaseList::IsInitialized() const { +bool AudioCollectionRequest_GetReleaseList::IsInitialized() const { return true; } -void CollectionRequest_GetReleaseList::Swap(CollectionRequest_GetReleaseList* other) { +void AudioCollectionRequest_GetReleaseList::Swap(AudioCollectionRequest_GetReleaseList* other) { if (other != this) { std::swap(filter_name_, other->filter_name_); artist_name_.Swap(&other->artist_name_); @@ -1510,11 +1522,11 @@ void CollectionRequest_GetReleaseList::Swap(CollectionRequest_GetReleaseList* ot } } -::google::protobuf::Metadata CollectionRequest_GetReleaseList::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionRequest_GetReleaseList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionRequest_GetReleaseList_descriptor_; - metadata.reflection = CollectionRequest_GetReleaseList_reflection_; + metadata.descriptor = AudioCollectionRequest_GetReleaseList_descriptor_; + metadata.reflection = AudioCollectionRequest_GetReleaseList_reflection_; return metadata; } @@ -1522,31 +1534,31 @@ void CollectionRequest_GetReleaseList::Swap(CollectionRequest_GetReleaseList* ot // ------------------------------------------------------------------- #ifndef _MSC_VER -const int CollectionRequest_GetTrackList::kFilterNameFieldNumber; -const int CollectionRequest_GetTrackList::kReleaseNameFieldNumber; -const int CollectionRequest_GetTrackList::kArtistNameFieldNumber; -const int CollectionRequest_GetTrackList::kFilterGenreFieldNumber; -const int CollectionRequest_GetTrackList::kDiscNumberFieldNumber; -const int CollectionRequest_GetTrackList::kTrackNumberFieldNumber; -const int CollectionRequest_GetTrackList::kGetCoverFieldNumber; -const int CollectionRequest_GetTrackList::kPreferredBatchSizeFieldNumber; +const int AudioCollectionRequest_GetTrackList::kFilterNameFieldNumber; +const int AudioCollectionRequest_GetTrackList::kReleaseNameFieldNumber; +const int AudioCollectionRequest_GetTrackList::kArtistNameFieldNumber; +const int AudioCollectionRequest_GetTrackList::kFilterGenreFieldNumber; +const int AudioCollectionRequest_GetTrackList::kDiscNumberFieldNumber; +const int AudioCollectionRequest_GetTrackList::kTrackNumberFieldNumber; +const int AudioCollectionRequest_GetTrackList::kGetCoverFieldNumber; +const int AudioCollectionRequest_GetTrackList::kPreferredBatchSizeFieldNumber; #endif // !_MSC_VER -CollectionRequest_GetTrackList::CollectionRequest_GetTrackList() +AudioCollectionRequest_GetTrackList::AudioCollectionRequest_GetTrackList() : ::google::protobuf::Message() { SharedCtor(); } -void CollectionRequest_GetTrackList::InitAsDefaultInstance() { +void AudioCollectionRequest_GetTrackList::InitAsDefaultInstance() { } -CollectionRequest_GetTrackList::CollectionRequest_GetTrackList(const CollectionRequest_GetTrackList& from) +AudioCollectionRequest_GetTrackList::AudioCollectionRequest_GetTrackList(const AudioCollectionRequest_GetTrackList& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void CollectionRequest_GetTrackList::SharedCtor() { +void AudioCollectionRequest_GetTrackList::SharedCtor() { _cached_size_ = 0; filter_name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); disc_number_ = 0u; @@ -1556,11 +1568,11 @@ void CollectionRequest_GetTrackList::SharedCtor() { ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -CollectionRequest_GetTrackList::~CollectionRequest_GetTrackList() { +AudioCollectionRequest_GetTrackList::~AudioCollectionRequest_GetTrackList() { SharedDtor(); } -void CollectionRequest_GetTrackList::SharedDtor() { +void AudioCollectionRequest_GetTrackList::SharedDtor() { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { delete filter_name_; } @@ -1568,28 +1580,28 @@ void CollectionRequest_GetTrackList::SharedDtor() { } } -void CollectionRequest_GetTrackList::SetCachedSize(int size) const { +void AudioCollectionRequest_GetTrackList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CollectionRequest_GetTrackList::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionRequest_GetTrackList::descriptor() { protobuf_AssignDescriptorsOnce(); - return CollectionRequest_GetTrackList_descriptor_; + return AudioCollectionRequest_GetTrackList_descriptor_; } -const CollectionRequest_GetTrackList& CollectionRequest_GetTrackList::default_instance() { +const AudioCollectionRequest_GetTrackList& AudioCollectionRequest_GetTrackList::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -CollectionRequest_GetTrackList* CollectionRequest_GetTrackList::default_instance_ = NULL; +AudioCollectionRequest_GetTrackList* AudioCollectionRequest_GetTrackList::default_instance_ = NULL; -CollectionRequest_GetTrackList* CollectionRequest_GetTrackList::New() const { - return new CollectionRequest_GetTrackList; +AudioCollectionRequest_GetTrackList* AudioCollectionRequest_GetTrackList::New() const { + return new AudioCollectionRequest_GetTrackList; } -void CollectionRequest_GetTrackList::Clear() { +void AudioCollectionRequest_GetTrackList::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_filter_name()) { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { @@ -1608,7 +1620,7 @@ void CollectionRequest_GetTrackList::Clear() { mutable_unknown_fields()->Clear(); } -bool CollectionRequest_GetTrackList::MergePartialFromCodedStream( +bool AudioCollectionRequest_GetTrackList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -1767,7 +1779,7 @@ bool CollectionRequest_GetTrackList::MergePartialFromCodedStream( #undef DO_ } -void CollectionRequest_GetTrackList::SerializeWithCachedSizes( +void AudioCollectionRequest_GetTrackList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional string filter_name = 1; if (has_filter_name()) { @@ -1831,7 +1843,7 @@ void CollectionRequest_GetTrackList::SerializeWithCachedSizes( } } -::google::protobuf::uint8* CollectionRequest_GetTrackList::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionRequest_GetTrackList::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional string filter_name = 1; if (has_filter_name()) { @@ -1897,7 +1909,7 @@ void CollectionRequest_GetTrackList::SerializeWithCachedSizes( return target; } -int CollectionRequest_GetTrackList::ByteSize() const { +int AudioCollectionRequest_GetTrackList::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -1967,10 +1979,10 @@ int CollectionRequest_GetTrackList::ByteSize() const { return total_size; } -void CollectionRequest_GetTrackList::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest_GetTrackList::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const CollectionRequest_GetTrackList* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionRequest_GetTrackList* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -1979,7 +1991,7 @@ void CollectionRequest_GetTrackList::MergeFrom(const ::google::protobuf::Message } } -void CollectionRequest_GetTrackList::MergeFrom(const CollectionRequest_GetTrackList& from) { +void AudioCollectionRequest_GetTrackList::MergeFrom(const AudioCollectionRequest_GetTrackList& from) { GOOGLE_CHECK_NE(&from, this); release_name_.MergeFrom(from.release_name_); artist_name_.MergeFrom(from.artist_name_); @@ -2004,24 +2016,24 @@ void CollectionRequest_GetTrackList::MergeFrom(const CollectionRequest_GetTrackL mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void CollectionRequest_GetTrackList::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest_GetTrackList::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void CollectionRequest_GetTrackList::CopyFrom(const CollectionRequest_GetTrackList& from) { +void AudioCollectionRequest_GetTrackList::CopyFrom(const AudioCollectionRequest_GetTrackList& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool CollectionRequest_GetTrackList::IsInitialized() const { +bool AudioCollectionRequest_GetTrackList::IsInitialized() const { return true; } -void CollectionRequest_GetTrackList::Swap(CollectionRequest_GetTrackList* other) { +void AudioCollectionRequest_GetTrackList::Swap(AudioCollectionRequest_GetTrackList* other) { if (other != this) { std::swap(filter_name_, other->filter_name_); release_name_.Swap(&other->release_name_); @@ -2037,11 +2049,11 @@ void CollectionRequest_GetTrackList::Swap(CollectionRequest_GetTrackList* other) } } -::google::protobuf::Metadata CollectionRequest_GetTrackList::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionRequest_GetTrackList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionRequest_GetTrackList_descriptor_; - metadata.reflection = CollectionRequest_GetTrackList_reflection_; + metadata.descriptor = AudioCollectionRequest_GetTrackList_descriptor_; + metadata.reflection = AudioCollectionRequest_GetTrackList_reflection_; return metadata; } @@ -2049,32 +2061,32 @@ void CollectionRequest_GetTrackList::Swap(CollectionRequest_GetTrackList* other) // ------------------------------------------------------------------- #ifndef _MSC_VER -const int CollectionRequest::kTypeFieldNumber; -const int CollectionRequest::kGetGenresFieldNumber; -const int CollectionRequest::kGetArtistsFieldNumber; -const int CollectionRequest::kGetReleasesFieldNumber; -const int CollectionRequest::kGetTracksFieldNumber; +const int AudioCollectionRequest::kTypeFieldNumber; +const int AudioCollectionRequest::kGetGenresFieldNumber; +const int AudioCollectionRequest::kGetArtistsFieldNumber; +const int AudioCollectionRequest::kGetReleasesFieldNumber; +const int AudioCollectionRequest::kGetTracksFieldNumber; #endif // !_MSC_VER -CollectionRequest::CollectionRequest() +AudioCollectionRequest::AudioCollectionRequest() : ::google::protobuf::Message() { SharedCtor(); } -void CollectionRequest::InitAsDefaultInstance() { - get_genres_ = const_cast< ::CollectionRequest_GetGenreList*>(&::CollectionRequest_GetGenreList::default_instance()); - get_artists_ = const_cast< ::CollectionRequest_GetArtistList*>(&::CollectionRequest_GetArtistList::default_instance()); - get_releases_ = const_cast< ::CollectionRequest_GetReleaseList*>(&::CollectionRequest_GetReleaseList::default_instance()); - get_tracks_ = const_cast< ::CollectionRequest_GetTrackList*>(&::CollectionRequest_GetTrackList::default_instance()); +void AudioCollectionRequest::InitAsDefaultInstance() { + 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()); } -CollectionRequest::CollectionRequest(const CollectionRequest& from) +AudioCollectionRequest::AudioCollectionRequest(const AudioCollectionRequest& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void CollectionRequest::SharedCtor() { +void AudioCollectionRequest::SharedCtor() { _cached_size_ = 0; type_ = 0; get_genres_ = NULL; @@ -2084,11 +2096,11 @@ void CollectionRequest::SharedCtor() { ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -CollectionRequest::~CollectionRequest() { +AudioCollectionRequest::~AudioCollectionRequest() { SharedDtor(); } -void CollectionRequest::SharedDtor() { +void AudioCollectionRequest::SharedDtor() { if (this != default_instance_) { delete get_genres_; delete get_artists_; @@ -2097,54 +2109,54 @@ void CollectionRequest::SharedDtor() { } } -void CollectionRequest::SetCachedSize(int size) const { +void AudioCollectionRequest::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CollectionRequest::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionRequest::descriptor() { protobuf_AssignDescriptorsOnce(); - return CollectionRequest_descriptor_; + return AudioCollectionRequest_descriptor_; } -const CollectionRequest& CollectionRequest::default_instance() { +const AudioCollectionRequest& AudioCollectionRequest::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -CollectionRequest* CollectionRequest::default_instance_ = NULL; +AudioCollectionRequest* AudioCollectionRequest::default_instance_ = NULL; -CollectionRequest* CollectionRequest::New() const { - return new CollectionRequest; +AudioCollectionRequest* AudioCollectionRequest::New() const { + return new AudioCollectionRequest; } -void CollectionRequest::Clear() { +void AudioCollectionRequest::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { type_ = 0; if (has_get_genres()) { - if (get_genres_ != NULL) get_genres_->::CollectionRequest_GetGenreList::Clear(); + if (get_genres_ != NULL) get_genres_->::Remote::AudioCollectionRequest_GetGenreList::Clear(); } if (has_get_artists()) { - if (get_artists_ != NULL) get_artists_->::CollectionRequest_GetArtistList::Clear(); + if (get_artists_ != NULL) get_artists_->::Remote::AudioCollectionRequest_GetArtistList::Clear(); } if (has_get_releases()) { - if (get_releases_ != NULL) get_releases_->::CollectionRequest_GetReleaseList::Clear(); + if (get_releases_ != NULL) get_releases_->::Remote::AudioCollectionRequest_GetReleaseList::Clear(); } if (has_get_tracks()) { - if (get_tracks_ != NULL) get_tracks_->::CollectionRequest_GetTrackList::Clear(); + if (get_tracks_ != NULL) get_tracks_->::Remote::AudioCollectionRequest_GetTrackList::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } -bool CollectionRequest::MergePartialFromCodedStream( +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 .CollectionRequest.Type type = 1; + // required .Remote.AudioCollectionRequest.Type type = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { @@ -2152,8 +2164,8 @@ bool CollectionRequest::MergePartialFromCodedStream( DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - if (::CollectionRequest_Type_IsValid(value)) { - set_type(static_cast< ::CollectionRequest_Type >(value)); + if (::Remote::AudioCollectionRequest_Type_IsValid(value)) { + set_type(static_cast< ::Remote::AudioCollectionRequest_Type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } @@ -2164,7 +2176,7 @@ bool CollectionRequest::MergePartialFromCodedStream( break; } - // optional .CollectionRequest.GetGenreList get_genres = 2; + // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -2178,7 +2190,7 @@ bool CollectionRequest::MergePartialFromCodedStream( break; } - // optional .CollectionRequest.GetArtistList get_artists = 3; + // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -2192,7 +2204,7 @@ bool CollectionRequest::MergePartialFromCodedStream( break; } - // optional .CollectionRequest.GetReleaseList get_releases = 4; + // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -2206,7 +2218,7 @@ bool CollectionRequest::MergePartialFromCodedStream( break; } - // optional .CollectionRequest.GetTrackList get_tracks = 5; + // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 5; case 5: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -2236,33 +2248,33 @@ bool CollectionRequest::MergePartialFromCodedStream( #undef DO_ } -void CollectionRequest::SerializeWithCachedSizes( +void AudioCollectionRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // required .CollectionRequest.Type type = 1; + // required .Remote.AudioCollectionRequest.Type type = 1; if (has_type()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->type(), output); } - // optional .CollectionRequest.GetGenreList get_genres = 2; + // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 2; if (has_get_genres()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->get_genres(), output); } - // optional .CollectionRequest.GetArtistList get_artists = 3; + // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 3; if (has_get_artists()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->get_artists(), output); } - // optional .CollectionRequest.GetReleaseList get_releases = 4; + // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 4; if (has_get_releases()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->get_releases(), output); } - // optional .CollectionRequest.GetTrackList get_tracks = 5; + // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 5; if (has_get_tracks()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 5, this->get_tracks(), output); @@ -2274,36 +2286,36 @@ void CollectionRequest::SerializeWithCachedSizes( } } -::google::protobuf::uint8* CollectionRequest::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionRequest::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // required .CollectionRequest.Type type = 1; + // required .Remote.AudioCollectionRequest.Type type = 1; if (has_type()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->type(), target); } - // optional .CollectionRequest.GetGenreList get_genres = 2; + // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 2; if (has_get_genres()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 2, this->get_genres(), target); } - // optional .CollectionRequest.GetArtistList get_artists = 3; + // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 3; if (has_get_artists()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 3, this->get_artists(), target); } - // optional .CollectionRequest.GetReleaseList get_releases = 4; + // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 4; if (has_get_releases()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 4, this->get_releases(), target); } - // optional .CollectionRequest.GetTrackList get_tracks = 5; + // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 5; if (has_get_tracks()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -2317,38 +2329,38 @@ void CollectionRequest::SerializeWithCachedSizes( return target; } -int CollectionRequest::ByteSize() const { +int AudioCollectionRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .CollectionRequest.Type type = 1; + // required .Remote.AudioCollectionRequest.Type type = 1; if (has_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); } - // optional .CollectionRequest.GetGenreList get_genres = 2; + // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 2; if (has_get_genres()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->get_genres()); } - // optional .CollectionRequest.GetArtistList get_artists = 3; + // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 3; if (has_get_artists()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->get_artists()); } - // optional .CollectionRequest.GetReleaseList get_releases = 4; + // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 4; if (has_get_releases()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->get_releases()); } - // optional .CollectionRequest.GetTrackList get_tracks = 5; + // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 5; if (has_get_tracks()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -2367,10 +2379,10 @@ int CollectionRequest::ByteSize() const { return total_size; } -void CollectionRequest::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const CollectionRequest* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionRequest* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -2379,47 +2391,47 @@ void CollectionRequest::MergeFrom(const ::google::protobuf::Message& from) { } } -void CollectionRequest::MergeFrom(const CollectionRequest& from) { +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_genres()) { - mutable_get_genres()->::CollectionRequest_GetGenreList::MergeFrom(from.get_genres()); + mutable_get_genres()->::Remote::AudioCollectionRequest_GetGenreList::MergeFrom(from.get_genres()); } if (from.has_get_artists()) { - mutable_get_artists()->::CollectionRequest_GetArtistList::MergeFrom(from.get_artists()); + mutable_get_artists()->::Remote::AudioCollectionRequest_GetArtistList::MergeFrom(from.get_artists()); } if (from.has_get_releases()) { - mutable_get_releases()->::CollectionRequest_GetReleaseList::MergeFrom(from.get_releases()); + mutable_get_releases()->::Remote::AudioCollectionRequest_GetReleaseList::MergeFrom(from.get_releases()); } if (from.has_get_tracks()) { - mutable_get_tracks()->::CollectionRequest_GetTrackList::MergeFrom(from.get_tracks()); + mutable_get_tracks()->::Remote::AudioCollectionRequest_GetTrackList::MergeFrom(from.get_tracks()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void CollectionRequest::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionRequest::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void CollectionRequest::CopyFrom(const CollectionRequest& from) { +void AudioCollectionRequest::CopyFrom(const AudioCollectionRequest& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool CollectionRequest::IsInitialized() const { +bool AudioCollectionRequest::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; return true; } -void CollectionRequest::Swap(CollectionRequest* other) { +void AudioCollectionRequest::Swap(AudioCollectionRequest* other) { if (other != this) { std::swap(type_, other->type_); std::swap(get_genres_, other->get_genres_); @@ -2432,22 +2444,22 @@ void CollectionRequest::Swap(CollectionRequest* other) { } } -::google::protobuf::Metadata CollectionRequest::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionRequest::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionRequest_descriptor_; - metadata.reflection = CollectionRequest_reflection_; + metadata.descriptor = AudioCollectionRequest_descriptor_; + metadata.reflection = AudioCollectionRequest_reflection_; return metadata; } // =================================================================== -const ::google::protobuf::EnumDescriptor* CollectionResponse_Type_descriptor() { +const ::google::protobuf::EnumDescriptor* AudioCollectionResponse_Type_descriptor() { protobuf_AssignDescriptorsOnce(); - return CollectionResponse_Type_descriptor_; + return AudioCollectionResponse_Type_descriptor_; } -bool CollectionResponse_Type_IsValid(int value) { +bool AudioCollectionResponse_Type_IsValid(int value) { switch(value) { case 1: case 2: @@ -2460,525 +2472,70 @@ bool CollectionResponse_Type_IsValid(int value) { } #ifndef _MSC_VER -const CollectionResponse_Type CollectionResponse::TypeGenreList; -const CollectionResponse_Type CollectionResponse::TypeArtistList; -const CollectionResponse_Type CollectionResponse::TypeReleaseList; -const CollectionResponse_Type CollectionResponse::TypeTrackList; -const CollectionResponse_Type CollectionResponse::Type_MIN; -const CollectionResponse_Type CollectionResponse::Type_MAX; -const int CollectionResponse::Type_ARRAYSIZE; +const AudioCollectionResponse_Type AudioCollectionResponse::TypeGenreList; +const AudioCollectionResponse_Type AudioCollectionResponse::TypeArtistList; +const AudioCollectionResponse_Type AudioCollectionResponse::TypeReleaseList; +const AudioCollectionResponse_Type AudioCollectionResponse::TypeTrackList; +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 CollectionResponse::kErrorFieldNumber; -const int CollectionResponse::kTypeFieldNumber; -const int CollectionResponse::kGenreListFieldNumber; -const int CollectionResponse::kArtistListFieldNumber; -const int CollectionResponse::kReleaseListFieldNumber; -const int CollectionResponse::kTrackListFieldNumber; +const int AudioCollectionResponse_GenreList::kLastFieldNumber; +const int AudioCollectionResponse_GenreList::kGenresFieldNumber; #endif // !_MSC_VER -CollectionResponse::CollectionResponse() +AudioCollectionResponse_GenreList::AudioCollectionResponse_GenreList() : ::google::protobuf::Message() { SharedCtor(); } -void CollectionResponse::InitAsDefaultInstance() { - error_ = const_cast< ::Error*>(&::Error::default_instance()); - genre_list_ = const_cast< ::GenreList*>(&::GenreList::default_instance()); - artist_list_ = const_cast< ::ArtistList*>(&::ArtistList::default_instance()); - release_list_ = const_cast< ::ReleaseList*>(&::ReleaseList::default_instance()); - track_list_ = const_cast< ::TrackList*>(&::TrackList::default_instance()); +void AudioCollectionResponse_GenreList::InitAsDefaultInstance() { } -CollectionResponse::CollectionResponse(const CollectionResponse& from) +AudioCollectionResponse_GenreList::AudioCollectionResponse_GenreList(const AudioCollectionResponse_GenreList& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void CollectionResponse::SharedCtor() { - _cached_size_ = 0; - error_ = NULL; - type_ = 1; - genre_list_ = NULL; - artist_list_ = NULL; - release_list_ = NULL; - track_list_ = NULL; - ::memset(_has_bits_, 0, sizeof(_has_bits_)); -} - -CollectionResponse::~CollectionResponse() { - SharedDtor(); -} - -void CollectionResponse::SharedDtor() { - if (this != default_instance_) { - delete error_; - delete genre_list_; - delete artist_list_; - delete release_list_; - delete track_list_; - } -} - -void CollectionResponse::SetCachedSize(int size) const { - GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); - _cached_size_ = size; - GOOGLE_SAFE_CONCURRENT_WRITES_END(); -} -const ::google::protobuf::Descriptor* CollectionResponse::descriptor() { - protobuf_AssignDescriptorsOnce(); - return CollectionResponse_descriptor_; -} - -const CollectionResponse& CollectionResponse::default_instance() { - if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); - return *default_instance_; -} - -CollectionResponse* CollectionResponse::default_instance_ = NULL; - -CollectionResponse* CollectionResponse::New() const { - return new CollectionResponse; -} - -void CollectionResponse::Clear() { - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (has_error()) { - if (error_ != NULL) error_->::Error::Clear(); - } - type_ = 1; - if (has_genre_list()) { - if (genre_list_ != NULL) genre_list_->::GenreList::Clear(); - } - if (has_artist_list()) { - if (artist_list_ != NULL) artist_list_->::ArtistList::Clear(); - } - if (has_release_list()) { - if (release_list_ != NULL) release_list_->::ReleaseList::Clear(); - } - if (has_track_list()) { - if (track_list_ != NULL) track_list_->::TrackList::Clear(); - } - } - ::memset(_has_bits_, 0, sizeof(_has_bits_)); - mutable_unknown_fields()->Clear(); -} - -bool CollectionResponse::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 .Error error = 1; - case 1: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_error())); - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(16)) goto parse_type; - break; - } - - // optional .CollectionResponse.Type type = 2; - case 2: { - if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == - ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { - parse_type: - int value; - DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< - int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( - input, &value))); - if (::CollectionResponse_Type_IsValid(value)) { - set_type(static_cast< ::CollectionResponse_Type >(value)); - } else { - mutable_unknown_fields()->AddVarint(2, value); - } - } else { - goto handle_uninterpreted; - } - if (input->ExpectTag(26)) goto parse_genre_list; - break; - } - - // optional .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 .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 .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 .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->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 CollectionResponse::SerializeWithCachedSizes( - ::google::protobuf::io::CodedOutputStream* output) const { - // required .Error error = 1; - if (has_error()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 1, this->error(), output); - } - - // optional .CollectionResponse.Type type = 2; - if (has_type()) { - ::google::protobuf::internal::WireFormatLite::WriteEnum( - 2, this->type(), output); - } - - // optional .GenreList genre_list = 3; - if (has_genre_list()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->genre_list(), output); - } - - // optional .ArtistList artist_list = 4; - if (has_artist_list()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 4, this->artist_list(), output); - } - - // optional .ReleaseList release_list = 5; - if (has_release_list()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 5, this->release_list(), output); - } - - // optional .TrackList track_list = 6; - if (has_track_list()) { - ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 6, this->track_list(), output); - } - - if (!unknown_fields().empty()) { - ::google::protobuf::internal::WireFormat::SerializeUnknownFields( - unknown_fields(), output); - } -} - -::google::protobuf::uint8* CollectionResponse::SerializeWithCachedSizesToArray( - ::google::protobuf::uint8* target) const { - // required .Error error = 1; - if (has_error()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 1, this->error(), target); - } - - // optional .CollectionResponse.Type type = 2; - if (has_type()) { - target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( - 2, this->type(), target); - } - - // optional .GenreList genre_list = 3; - if (has_genre_list()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 3, this->genre_list(), target); - } - - // optional .ArtistList artist_list = 4; - if (has_artist_list()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 4, this->artist_list(), target); - } - - // optional .ReleaseList release_list = 5; - if (has_release_list()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 5, this->release_list(), target); - } - - // optional .TrackList track_list = 6; - if (has_track_list()) { - target = ::google::protobuf::internal::WireFormatLite:: - WriteMessageNoVirtualToArray( - 6, this->track_list(), target); - } - - if (!unknown_fields().empty()) { - target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( - unknown_fields(), target); - } - return target; -} - -int CollectionResponse::ByteSize() const { - int total_size = 0; - - if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Error error = 1; - if (has_error()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->error()); - } - - // optional .CollectionResponse.Type type = 2; - if (has_type()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); - } - - // optional .GenreList genre_list = 3; - if (has_genre_list()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->genre_list()); - } - - // optional .ArtistList artist_list = 4; - if (has_artist_list()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->artist_list()); - } - - // optional .ReleaseList release_list = 5; - if (has_release_list()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->release_list()); - } - - // optional .TrackList track_list = 6; - if (has_track_list()) { - total_size += 1 + - ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->track_list()); - } - - } - 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 CollectionResponse::MergeFrom(const ::google::protobuf::Message& from) { - GOOGLE_CHECK_NE(&from, this); - const CollectionResponse* source = - ::google::protobuf::internal::dynamic_cast_if_available( - &from); - if (source == NULL) { - ::google::protobuf::internal::ReflectionOps::Merge(from, this); - } else { - MergeFrom(*source); - } -} - -void CollectionResponse::MergeFrom(const CollectionResponse& from) { - GOOGLE_CHECK_NE(&from, this); - if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { - if (from.has_error()) { - mutable_error()->::Error::MergeFrom(from.error()); - } - if (from.has_type()) { - set_type(from.type()); - } - if (from.has_genre_list()) { - mutable_genre_list()->::GenreList::MergeFrom(from.genre_list()); - } - if (from.has_artist_list()) { - mutable_artist_list()->::ArtistList::MergeFrom(from.artist_list()); - } - if (from.has_release_list()) { - mutable_release_list()->::ReleaseList::MergeFrom(from.release_list()); - } - if (from.has_track_list()) { - mutable_track_list()->::TrackList::MergeFrom(from.track_list()); - } - } - mutable_unknown_fields()->MergeFrom(from.unknown_fields()); -} - -void CollectionResponse::CopyFrom(const ::google::protobuf::Message& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -void CollectionResponse::CopyFrom(const CollectionResponse& from) { - if (&from == this) return; - Clear(); - MergeFrom(from); -} - -bool CollectionResponse::IsInitialized() const { - if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; - - if (has_error()) { - if (!this->error().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; - } - return true; -} - -void CollectionResponse::Swap(CollectionResponse* other) { - if (other != this) { - std::swap(error_, other->error_); - std::swap(type_, other->type_); - 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_); - 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 CollectionResponse::GetMetadata() const { - protobuf_AssignDescriptorsOnce(); - ::google::protobuf::Metadata metadata; - metadata.descriptor = CollectionResponse_descriptor_; - metadata.reflection = CollectionResponse_reflection_; - return metadata; -} - - -// =================================================================== - -#ifndef _MSC_VER -const int GenreList::kLastFieldNumber; -const int GenreList::kGenresFieldNumber; -#endif // !_MSC_VER - -GenreList::GenreList() - : ::google::protobuf::Message() { - SharedCtor(); -} - -void GenreList::InitAsDefaultInstance() { -} - -GenreList::GenreList(const GenreList& from) - : ::google::protobuf::Message() { - SharedCtor(); - MergeFrom(from); -} - -void GenreList::SharedCtor() { +void AudioCollectionResponse_GenreList::SharedCtor() { _cached_size_ = 0; last_ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -GenreList::~GenreList() { +AudioCollectionResponse_GenreList::~AudioCollectionResponse_GenreList() { SharedDtor(); } -void GenreList::SharedDtor() { +void AudioCollectionResponse_GenreList::SharedDtor() { if (this != default_instance_) { } } -void GenreList::SetCachedSize(int size) const { +void AudioCollectionResponse_GenreList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* GenreList::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_GenreList::descriptor() { protobuf_AssignDescriptorsOnce(); - return GenreList_descriptor_; + return AudioCollectionResponse_GenreList_descriptor_; } -const GenreList& GenreList::default_instance() { +const AudioCollectionResponse_GenreList& AudioCollectionResponse_GenreList::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -GenreList* GenreList::default_instance_ = NULL; +AudioCollectionResponse_GenreList* AudioCollectionResponse_GenreList::default_instance_ = NULL; -GenreList* GenreList::New() const { - return new GenreList; +AudioCollectionResponse_GenreList* AudioCollectionResponse_GenreList::New() const { + return new AudioCollectionResponse_GenreList; } -void GenreList::Clear() { +void AudioCollectionResponse_GenreList::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { last_ = false; } @@ -2987,7 +2544,7 @@ void GenreList::Clear() { mutable_unknown_fields()->Clear(); } -bool GenreList::MergePartialFromCodedStream( +bool AudioCollectionResponse_GenreList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -3008,7 +2565,7 @@ bool GenreList::MergePartialFromCodedStream( break; } - // repeated .Genre genres = 2; + // repeated .Remote.AudioCollectionResponse.Genre genres = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -3039,14 +2596,14 @@ bool GenreList::MergePartialFromCodedStream( #undef DO_ } -void GenreList::SerializeWithCachedSizes( +void AudioCollectionResponse_GenreList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required bool last = 1; if (has_last()) { ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->last(), output); } - // repeated .Genre genres = 2; + // 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); @@ -3058,14 +2615,14 @@ void GenreList::SerializeWithCachedSizes( } } -::google::protobuf::uint8* GenreList::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_GenreList::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required bool last = 1; if (has_last()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->last(), target); } - // repeated .Genre genres = 2; + // repeated .Remote.AudioCollectionResponse.Genre genres = 2; for (int i = 0; i < this->genres_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -3079,7 +2636,7 @@ void GenreList::SerializeWithCachedSizes( return target; } -int GenreList::ByteSize() const { +int AudioCollectionResponse_GenreList::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -3089,7 +2646,7 @@ int GenreList::ByteSize() const { } } - // repeated .Genre genres = 2; + // repeated .Remote.AudioCollectionResponse.Genre genres = 2; total_size += 1 * this->genres_size(); for (int i = 0; i < this->genres_size(); i++) { total_size += @@ -3108,10 +2665,10 @@ int GenreList::ByteSize() const { return total_size; } -void GenreList::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_GenreList::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const GenreList* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_GenreList* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -3120,7 +2677,7 @@ void GenreList::MergeFrom(const ::google::protobuf::Message& from) { } } -void GenreList::MergeFrom(const GenreList& from) { +void AudioCollectionResponse_GenreList::MergeFrom(const AudioCollectionResponse_GenreList& from) { GOOGLE_CHECK_NE(&from, this); genres_.MergeFrom(from.genres_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -3131,19 +2688,19 @@ void GenreList::MergeFrom(const GenreList& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void GenreList::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_GenreList::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void GenreList::CopyFrom(const GenreList& from) { +void AudioCollectionResponse_GenreList::CopyFrom(const AudioCollectionResponse_GenreList& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool GenreList::IsInitialized() const { +bool AudioCollectionResponse_GenreList::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; for (int i = 0; i < genres_size(); i++) { @@ -3152,7 +2709,7 @@ bool GenreList::IsInitialized() const { return true; } -void GenreList::Swap(GenreList* other) { +void AudioCollectionResponse_GenreList::Swap(AudioCollectionResponse_GenreList* other) { if (other != this) { std::swap(last_, other->last_); genres_.Swap(&other->genres_); @@ -3162,73 +2719,73 @@ void GenreList::Swap(GenreList* other) { } } -::google::protobuf::Metadata GenreList::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_GenreList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = GenreList_descriptor_; - metadata.reflection = GenreList_reflection_; + metadata.descriptor = AudioCollectionResponse_GenreList_descriptor_; + metadata.reflection = AudioCollectionResponse_GenreList_reflection_; return metadata; } -// =================================================================== +// ------------------------------------------------------------------- #ifndef _MSC_VER -const int ArtistList::kLastFieldNumber; -const int ArtistList::kArtistsFieldNumber; +const int AudioCollectionResponse_ArtistList::kLastFieldNumber; +const int AudioCollectionResponse_ArtistList::kArtistsFieldNumber; #endif // !_MSC_VER -ArtistList::ArtistList() +AudioCollectionResponse_ArtistList::AudioCollectionResponse_ArtistList() : ::google::protobuf::Message() { SharedCtor(); } -void ArtistList::InitAsDefaultInstance() { +void AudioCollectionResponse_ArtistList::InitAsDefaultInstance() { } -ArtistList::ArtistList(const ArtistList& from) +AudioCollectionResponse_ArtistList::AudioCollectionResponse_ArtistList(const AudioCollectionResponse_ArtistList& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void ArtistList::SharedCtor() { +void AudioCollectionResponse_ArtistList::SharedCtor() { _cached_size_ = 0; last_ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -ArtistList::~ArtistList() { +AudioCollectionResponse_ArtistList::~AudioCollectionResponse_ArtistList() { SharedDtor(); } -void ArtistList::SharedDtor() { +void AudioCollectionResponse_ArtistList::SharedDtor() { if (this != default_instance_) { } } -void ArtistList::SetCachedSize(int size) const { +void AudioCollectionResponse_ArtistList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* ArtistList::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_ArtistList::descriptor() { protobuf_AssignDescriptorsOnce(); - return ArtistList_descriptor_; + return AudioCollectionResponse_ArtistList_descriptor_; } -const ArtistList& ArtistList::default_instance() { +const AudioCollectionResponse_ArtistList& AudioCollectionResponse_ArtistList::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -ArtistList* ArtistList::default_instance_ = NULL; +AudioCollectionResponse_ArtistList* AudioCollectionResponse_ArtistList::default_instance_ = NULL; -ArtistList* ArtistList::New() const { - return new ArtistList; +AudioCollectionResponse_ArtistList* AudioCollectionResponse_ArtistList::New() const { + return new AudioCollectionResponse_ArtistList; } -void ArtistList::Clear() { +void AudioCollectionResponse_ArtistList::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { last_ = false; } @@ -3237,7 +2794,7 @@ void ArtistList::Clear() { mutable_unknown_fields()->Clear(); } -bool ArtistList::MergePartialFromCodedStream( +bool AudioCollectionResponse_ArtistList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -3258,7 +2815,7 @@ bool ArtistList::MergePartialFromCodedStream( break; } - // repeated .Artist artists = 2; + // repeated .Remote.AudioCollectionResponse.Artist artists = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -3289,14 +2846,14 @@ bool ArtistList::MergePartialFromCodedStream( #undef DO_ } -void ArtistList::SerializeWithCachedSizes( +void AudioCollectionResponse_ArtistList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required bool last = 1; if (has_last()) { ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->last(), output); } - // repeated .Artist artists = 2; + // 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); @@ -3308,14 +2865,14 @@ void ArtistList::SerializeWithCachedSizes( } } -::google::protobuf::uint8* ArtistList::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_ArtistList::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required bool last = 1; if (has_last()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->last(), target); } - // repeated .Artist artists = 2; + // repeated .Remote.AudioCollectionResponse.Artist artists = 2; for (int i = 0; i < this->artists_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -3329,7 +2886,7 @@ void ArtistList::SerializeWithCachedSizes( return target; } -int ArtistList::ByteSize() const { +int AudioCollectionResponse_ArtistList::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -3339,7 +2896,7 @@ int ArtistList::ByteSize() const { } } - // repeated .Artist artists = 2; + // repeated .Remote.AudioCollectionResponse.Artist artists = 2; total_size += 1 * this->artists_size(); for (int i = 0; i < this->artists_size(); i++) { total_size += @@ -3358,10 +2915,10 @@ int ArtistList::ByteSize() const { return total_size; } -void ArtistList::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_ArtistList::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const ArtistList* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_ArtistList* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -3370,7 +2927,7 @@ void ArtistList::MergeFrom(const ::google::protobuf::Message& from) { } } -void ArtistList::MergeFrom(const ArtistList& from) { +void AudioCollectionResponse_ArtistList::MergeFrom(const AudioCollectionResponse_ArtistList& from) { GOOGLE_CHECK_NE(&from, this); artists_.MergeFrom(from.artists_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -3381,19 +2938,19 @@ void ArtistList::MergeFrom(const ArtistList& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void ArtistList::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_ArtistList::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void ArtistList::CopyFrom(const ArtistList& from) { +void AudioCollectionResponse_ArtistList::CopyFrom(const AudioCollectionResponse_ArtistList& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool ArtistList::IsInitialized() const { +bool AudioCollectionResponse_ArtistList::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; for (int i = 0; i < artists_size(); i++) { @@ -3402,7 +2959,7 @@ bool ArtistList::IsInitialized() const { return true; } -void ArtistList::Swap(ArtistList* other) { +void AudioCollectionResponse_ArtistList::Swap(AudioCollectionResponse_ArtistList* other) { if (other != this) { std::swap(last_, other->last_); artists_.Swap(&other->artists_); @@ -3412,73 +2969,73 @@ void ArtistList::Swap(ArtistList* other) { } } -::google::protobuf::Metadata ArtistList::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_ArtistList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = ArtistList_descriptor_; - metadata.reflection = ArtistList_reflection_; + metadata.descriptor = AudioCollectionResponse_ArtistList_descriptor_; + metadata.reflection = AudioCollectionResponse_ArtistList_reflection_; return metadata; } -// =================================================================== +// ------------------------------------------------------------------- #ifndef _MSC_VER -const int ReleaseList::kLastFieldNumber; -const int ReleaseList::kReleasesFieldNumber; +const int AudioCollectionResponse_ReleaseList::kLastFieldNumber; +const int AudioCollectionResponse_ReleaseList::kReleasesFieldNumber; #endif // !_MSC_VER -ReleaseList::ReleaseList() +AudioCollectionResponse_ReleaseList::AudioCollectionResponse_ReleaseList() : ::google::protobuf::Message() { SharedCtor(); } -void ReleaseList::InitAsDefaultInstance() { +void AudioCollectionResponse_ReleaseList::InitAsDefaultInstance() { } -ReleaseList::ReleaseList(const ReleaseList& from) +AudioCollectionResponse_ReleaseList::AudioCollectionResponse_ReleaseList(const AudioCollectionResponse_ReleaseList& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void ReleaseList::SharedCtor() { +void AudioCollectionResponse_ReleaseList::SharedCtor() { _cached_size_ = 0; last_ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -ReleaseList::~ReleaseList() { +AudioCollectionResponse_ReleaseList::~AudioCollectionResponse_ReleaseList() { SharedDtor(); } -void ReleaseList::SharedDtor() { +void AudioCollectionResponse_ReleaseList::SharedDtor() { if (this != default_instance_) { } } -void ReleaseList::SetCachedSize(int size) const { +void AudioCollectionResponse_ReleaseList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* ReleaseList::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_ReleaseList::descriptor() { protobuf_AssignDescriptorsOnce(); - return ReleaseList_descriptor_; + return AudioCollectionResponse_ReleaseList_descriptor_; } -const ReleaseList& ReleaseList::default_instance() { +const AudioCollectionResponse_ReleaseList& AudioCollectionResponse_ReleaseList::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -ReleaseList* ReleaseList::default_instance_ = NULL; +AudioCollectionResponse_ReleaseList* AudioCollectionResponse_ReleaseList::default_instance_ = NULL; -ReleaseList* ReleaseList::New() const { - return new ReleaseList; +AudioCollectionResponse_ReleaseList* AudioCollectionResponse_ReleaseList::New() const { + return new AudioCollectionResponse_ReleaseList; } -void ReleaseList::Clear() { +void AudioCollectionResponse_ReleaseList::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { last_ = false; } @@ -3487,7 +3044,7 @@ void ReleaseList::Clear() { mutable_unknown_fields()->Clear(); } -bool ReleaseList::MergePartialFromCodedStream( +bool AudioCollectionResponse_ReleaseList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -3508,7 +3065,7 @@ bool ReleaseList::MergePartialFromCodedStream( break; } - // repeated .Release releases = 2; + // repeated .Remote.AudioCollectionResponse.Release releases = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -3539,14 +3096,14 @@ bool ReleaseList::MergePartialFromCodedStream( #undef DO_ } -void ReleaseList::SerializeWithCachedSizes( +void AudioCollectionResponse_ReleaseList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required bool last = 1; if (has_last()) { ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->last(), output); } - // repeated .Release releases = 2; + // 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); @@ -3558,14 +3115,14 @@ void ReleaseList::SerializeWithCachedSizes( } } -::google::protobuf::uint8* ReleaseList::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_ReleaseList::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required bool last = 1; if (has_last()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->last(), target); } - // repeated .Release releases = 2; + // repeated .Remote.AudioCollectionResponse.Release releases = 2; for (int i = 0; i < this->releases_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -3579,7 +3136,7 @@ void ReleaseList::SerializeWithCachedSizes( return target; } -int ReleaseList::ByteSize() const { +int AudioCollectionResponse_ReleaseList::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -3589,7 +3146,7 @@ int ReleaseList::ByteSize() const { } } - // repeated .Release releases = 2; + // repeated .Remote.AudioCollectionResponse.Release releases = 2; total_size += 1 * this->releases_size(); for (int i = 0; i < this->releases_size(); i++) { total_size += @@ -3608,10 +3165,10 @@ int ReleaseList::ByteSize() const { return total_size; } -void ReleaseList::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_ReleaseList::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const ReleaseList* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_ReleaseList* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -3620,7 +3177,7 @@ void ReleaseList::MergeFrom(const ::google::protobuf::Message& from) { } } -void ReleaseList::MergeFrom(const ReleaseList& from) { +void AudioCollectionResponse_ReleaseList::MergeFrom(const AudioCollectionResponse_ReleaseList& from) { GOOGLE_CHECK_NE(&from, this); releases_.MergeFrom(from.releases_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -3631,19 +3188,19 @@ void ReleaseList::MergeFrom(const ReleaseList& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void ReleaseList::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_ReleaseList::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void ReleaseList::CopyFrom(const ReleaseList& from) { +void AudioCollectionResponse_ReleaseList::CopyFrom(const AudioCollectionResponse_ReleaseList& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool ReleaseList::IsInitialized() const { +bool AudioCollectionResponse_ReleaseList::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; for (int i = 0; i < releases_size(); i++) { @@ -3652,7 +3209,7 @@ bool ReleaseList::IsInitialized() const { return true; } -void ReleaseList::Swap(ReleaseList* other) { +void AudioCollectionResponse_ReleaseList::Swap(AudioCollectionResponse_ReleaseList* other) { if (other != this) { std::swap(last_, other->last_); releases_.Swap(&other->releases_); @@ -3662,73 +3219,73 @@ void ReleaseList::Swap(ReleaseList* other) { } } -::google::protobuf::Metadata ReleaseList::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_ReleaseList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = ReleaseList_descriptor_; - metadata.reflection = ReleaseList_reflection_; + metadata.descriptor = AudioCollectionResponse_ReleaseList_descriptor_; + metadata.reflection = AudioCollectionResponse_ReleaseList_reflection_; return metadata; } -// =================================================================== +// ------------------------------------------------------------------- #ifndef _MSC_VER -const int TrackList::kLastFieldNumber; -const int TrackList::kTracksFieldNumber; +const int AudioCollectionResponse_TrackList::kLastFieldNumber; +const int AudioCollectionResponse_TrackList::kTracksFieldNumber; #endif // !_MSC_VER -TrackList::TrackList() +AudioCollectionResponse_TrackList::AudioCollectionResponse_TrackList() : ::google::protobuf::Message() { SharedCtor(); } -void TrackList::InitAsDefaultInstance() { +void AudioCollectionResponse_TrackList::InitAsDefaultInstance() { } -TrackList::TrackList(const TrackList& from) +AudioCollectionResponse_TrackList::AudioCollectionResponse_TrackList(const AudioCollectionResponse_TrackList& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void TrackList::SharedCtor() { +void AudioCollectionResponse_TrackList::SharedCtor() { _cached_size_ = 0; last_ = false; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -TrackList::~TrackList() { +AudioCollectionResponse_TrackList::~AudioCollectionResponse_TrackList() { SharedDtor(); } -void TrackList::SharedDtor() { +void AudioCollectionResponse_TrackList::SharedDtor() { if (this != default_instance_) { } } -void TrackList::SetCachedSize(int size) const { +void AudioCollectionResponse_TrackList::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* TrackList::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_TrackList::descriptor() { protobuf_AssignDescriptorsOnce(); - return TrackList_descriptor_; + return AudioCollectionResponse_TrackList_descriptor_; } -const TrackList& TrackList::default_instance() { +const AudioCollectionResponse_TrackList& AudioCollectionResponse_TrackList::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -TrackList* TrackList::default_instance_ = NULL; +AudioCollectionResponse_TrackList* AudioCollectionResponse_TrackList::default_instance_ = NULL; -TrackList* TrackList::New() const { - return new TrackList; +AudioCollectionResponse_TrackList* AudioCollectionResponse_TrackList::New() const { + return new AudioCollectionResponse_TrackList; } -void TrackList::Clear() { +void AudioCollectionResponse_TrackList::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { last_ = false; } @@ -3737,7 +3294,7 @@ void TrackList::Clear() { mutable_unknown_fields()->Clear(); } -bool TrackList::MergePartialFromCodedStream( +bool AudioCollectionResponse_TrackList::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -3758,7 +3315,7 @@ bool TrackList::MergePartialFromCodedStream( break; } - // repeated .Track tracks = 2; + // repeated .Remote.AudioCollectionResponse.Track tracks = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -3789,14 +3346,14 @@ bool TrackList::MergePartialFromCodedStream( #undef DO_ } -void TrackList::SerializeWithCachedSizes( +void AudioCollectionResponse_TrackList::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required bool last = 1; if (has_last()) { ::google::protobuf::internal::WireFormatLite::WriteBool(1, this->last(), output); } - // repeated .Track tracks = 2; + // 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); @@ -3808,14 +3365,14 @@ void TrackList::SerializeWithCachedSizes( } } -::google::protobuf::uint8* TrackList::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_TrackList::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required bool last = 1; if (has_last()) { target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(1, this->last(), target); } - // repeated .Track tracks = 2; + // repeated .Remote.AudioCollectionResponse.Track tracks = 2; for (int i = 0; i < this->tracks_size(); i++) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -3829,7 +3386,7 @@ void TrackList::SerializeWithCachedSizes( return target; } -int TrackList::ByteSize() const { +int AudioCollectionResponse_TrackList::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -3839,7 +3396,7 @@ int TrackList::ByteSize() const { } } - // repeated .Track tracks = 2; + // repeated .Remote.AudioCollectionResponse.Track tracks = 2; total_size += 1 * this->tracks_size(); for (int i = 0; i < this->tracks_size(); i++) { total_size += @@ -3858,10 +3415,10 @@ int TrackList::ByteSize() const { return total_size; } -void TrackList::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_TrackList::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const TrackList* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_TrackList* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -3870,7 +3427,7 @@ void TrackList::MergeFrom(const ::google::protobuf::Message& from) { } } -void TrackList::MergeFrom(const TrackList& from) { +void AudioCollectionResponse_TrackList::MergeFrom(const AudioCollectionResponse_TrackList& from) { GOOGLE_CHECK_NE(&from, this); tracks_.MergeFrom(from.tracks_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -3881,19 +3438,19 @@ void TrackList::MergeFrom(const TrackList& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void TrackList::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_TrackList::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void TrackList::CopyFrom(const TrackList& from) { +void AudioCollectionResponse_TrackList::CopyFrom(const AudioCollectionResponse_TrackList& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool TrackList::IsInitialized() const { +bool AudioCollectionResponse_TrackList::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; for (int i = 0; i < tracks_size(); i++) { @@ -3902,7 +3459,7 @@ bool TrackList::IsInitialized() const { return true; } -void TrackList::Swap(TrackList* other) { +void AudioCollectionResponse_TrackList::Swap(AudioCollectionResponse_TrackList* other) { if (other != this) { std::swap(last_, other->last_); tracks_.Swap(&other->tracks_); @@ -3912,46 +3469,46 @@ void TrackList::Swap(TrackList* other) { } } -::google::protobuf::Metadata TrackList::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_TrackList::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = TrackList_descriptor_; - metadata.reflection = TrackList_reflection_; + metadata.descriptor = AudioCollectionResponse_TrackList_descriptor_; + metadata.reflection = AudioCollectionResponse_TrackList_reflection_; return metadata; } -// =================================================================== +// ------------------------------------------------------------------- #ifndef _MSC_VER -const int Genre::kNameFieldNumber; +const int AudioCollectionResponse_Genre::kNameFieldNumber; #endif // !_MSC_VER -Genre::Genre() +AudioCollectionResponse_Genre::AudioCollectionResponse_Genre() : ::google::protobuf::Message() { SharedCtor(); } -void Genre::InitAsDefaultInstance() { +void AudioCollectionResponse_Genre::InitAsDefaultInstance() { } -Genre::Genre(const Genre& from) +AudioCollectionResponse_Genre::AudioCollectionResponse_Genre(const AudioCollectionResponse_Genre& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void Genre::SharedCtor() { +void AudioCollectionResponse_Genre::SharedCtor() { _cached_size_ = 0; name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -Genre::~Genre() { +AudioCollectionResponse_Genre::~AudioCollectionResponse_Genre() { SharedDtor(); } -void Genre::SharedDtor() { +void AudioCollectionResponse_Genre::SharedDtor() { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } @@ -3959,28 +3516,28 @@ void Genre::SharedDtor() { } } -void Genre::SetCachedSize(int size) const { +void AudioCollectionResponse_Genre::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* Genre::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_Genre::descriptor() { protobuf_AssignDescriptorsOnce(); - return Genre_descriptor_; + return AudioCollectionResponse_Genre_descriptor_; } -const Genre& Genre::default_instance() { +const AudioCollectionResponse_Genre& AudioCollectionResponse_Genre::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -Genre* Genre::default_instance_ = NULL; +AudioCollectionResponse_Genre* AudioCollectionResponse_Genre::default_instance_ = NULL; -Genre* Genre::New() const { - return new Genre; +AudioCollectionResponse_Genre* AudioCollectionResponse_Genre::New() const { + return new AudioCollectionResponse_Genre; } -void Genre::Clear() { +void AudioCollectionResponse_Genre::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_name()) { if (name_ != &::google::protobuf::internal::kEmptyString) { @@ -3992,7 +3549,7 @@ void Genre::Clear() { mutable_unknown_fields()->Clear(); } -bool Genre::MergePartialFromCodedStream( +bool AudioCollectionResponse_Genre::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -4030,7 +3587,7 @@ bool Genre::MergePartialFromCodedStream( #undef DO_ } -void Genre::SerializeWithCachedSizes( +void AudioCollectionResponse_Genre::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required string name = 1; if (has_name()) { @@ -4047,7 +3604,7 @@ void Genre::SerializeWithCachedSizes( } } -::google::protobuf::uint8* Genre::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_Genre::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required string name = 1; if (has_name()) { @@ -4066,7 +3623,7 @@ void Genre::SerializeWithCachedSizes( return target; } -int Genre::ByteSize() const { +int AudioCollectionResponse_Genre::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -4089,10 +3646,10 @@ int Genre::ByteSize() const { return total_size; } -void Genre::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_Genre::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const Genre* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_Genre* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -4101,7 +3658,7 @@ void Genre::MergeFrom(const ::google::protobuf::Message& from) { } } -void Genre::MergeFrom(const Genre& from) { +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_name()) { @@ -4111,25 +3668,25 @@ void Genre::MergeFrom(const Genre& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void Genre::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_Genre::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void Genre::CopyFrom(const Genre& from) { +void AudioCollectionResponse_Genre::CopyFrom(const AudioCollectionResponse_Genre& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool Genre::IsInitialized() const { +bool AudioCollectionResponse_Genre::IsInitialized() const { if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false; return true; } -void Genre::Swap(Genre* other) { +void AudioCollectionResponse_Genre::Swap(AudioCollectionResponse_Genre* other) { if (other != this) { std::swap(name_, other->name_); std::swap(_has_bits_[0], other->_has_bits_[0]); @@ -4138,47 +3695,47 @@ void Genre::Swap(Genre* other) { } } -::google::protobuf::Metadata Genre::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_Genre::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = Genre_descriptor_; - metadata.reflection = Genre_reflection_; + metadata.descriptor = AudioCollectionResponse_Genre_descriptor_; + metadata.reflection = AudioCollectionResponse_Genre_reflection_; return metadata; } -// =================================================================== +// ------------------------------------------------------------------- #ifndef _MSC_VER -const int CoverArt::kMimeTypeFieldNumber; -const int CoverArt::kDataFieldNumber; +const int AudioCollectionResponse_CoverArt::kMimeTypeFieldNumber; +const int AudioCollectionResponse_CoverArt::kDataFieldNumber; #endif // !_MSC_VER -CoverArt::CoverArt() +AudioCollectionResponse_CoverArt::AudioCollectionResponse_CoverArt() : ::google::protobuf::Message() { SharedCtor(); } -void CoverArt::InitAsDefaultInstance() { +void AudioCollectionResponse_CoverArt::InitAsDefaultInstance() { } -CoverArt::CoverArt(const CoverArt& from) +AudioCollectionResponse_CoverArt::AudioCollectionResponse_CoverArt(const AudioCollectionResponse_CoverArt& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void CoverArt::SharedCtor() { +void AudioCollectionResponse_CoverArt::SharedCtor() { _cached_size_ = 0; mime_type_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -CoverArt::~CoverArt() { +AudioCollectionResponse_CoverArt::~AudioCollectionResponse_CoverArt() { SharedDtor(); } -void CoverArt::SharedDtor() { +void AudioCollectionResponse_CoverArt::SharedDtor() { if (mime_type_ != &::google::protobuf::internal::kEmptyString) { delete mime_type_; } @@ -4186,28 +3743,28 @@ void CoverArt::SharedDtor() { } } -void CoverArt::SetCachedSize(int size) const { +void AudioCollectionResponse_CoverArt::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* CoverArt::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_CoverArt::descriptor() { protobuf_AssignDescriptorsOnce(); - return CoverArt_descriptor_; + return AudioCollectionResponse_CoverArt_descriptor_; } -const CoverArt& CoverArt::default_instance() { +const AudioCollectionResponse_CoverArt& AudioCollectionResponse_CoverArt::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -CoverArt* CoverArt::default_instance_ = NULL; +AudioCollectionResponse_CoverArt* AudioCollectionResponse_CoverArt::default_instance_ = NULL; -CoverArt* CoverArt::New() const { - return new CoverArt; +AudioCollectionResponse_CoverArt* AudioCollectionResponse_CoverArt::New() const { + return new AudioCollectionResponse_CoverArt; } -void CoverArt::Clear() { +void AudioCollectionResponse_CoverArt::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_mime_type()) { if (mime_type_ != &::google::protobuf::internal::kEmptyString) { @@ -4220,7 +3777,7 @@ void CoverArt::Clear() { mutable_unknown_fields()->Clear(); } -bool CoverArt::MergePartialFromCodedStream( +bool AudioCollectionResponse_CoverArt::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -4273,7 +3830,7 @@ bool CoverArt::MergePartialFromCodedStream( #undef DO_ } -void CoverArt::SerializeWithCachedSizes( +void AudioCollectionResponse_CoverArt::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // optional string mime_type = 1; if (has_mime_type()) { @@ -4296,7 +3853,7 @@ void CoverArt::SerializeWithCachedSizes( } } -::google::protobuf::uint8* CoverArt::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_CoverArt::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // optional string mime_type = 1; if (has_mime_type()) { @@ -4321,7 +3878,7 @@ void CoverArt::SerializeWithCachedSizes( return target; } -int CoverArt::ByteSize() const { +int AudioCollectionResponse_CoverArt::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -4351,10 +3908,10 @@ int CoverArt::ByteSize() const { return total_size; } -void CoverArt::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_CoverArt::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const CoverArt* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_CoverArt* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -4363,7 +3920,7 @@ void CoverArt::MergeFrom(const ::google::protobuf::Message& from) { } } -void CoverArt::MergeFrom(const CoverArt& from) { +void AudioCollectionResponse_CoverArt::MergeFrom(const AudioCollectionResponse_CoverArt& from) { GOOGLE_CHECK_NE(&from, this); data_.MergeFrom(from.data_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -4374,24 +3931,24 @@ void CoverArt::MergeFrom(const CoverArt& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void CoverArt::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_CoverArt::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void CoverArt::CopyFrom(const CoverArt& from) { +void AudioCollectionResponse_CoverArt::CopyFrom(const AudioCollectionResponse_CoverArt& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool CoverArt::IsInitialized() const { +bool AudioCollectionResponse_CoverArt::IsInitialized() const { return true; } -void CoverArt::Swap(CoverArt* other) { +void AudioCollectionResponse_CoverArt::Swap(AudioCollectionResponse_CoverArt* other) { if (other != this) { std::swap(mime_type_, other->mime_type_); data_.Swap(&other->data_); @@ -4401,48 +3958,48 @@ void CoverArt::Swap(CoverArt* other) { } } -::google::protobuf::Metadata CoverArt::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_CoverArt::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = CoverArt_descriptor_; - metadata.reflection = CoverArt_reflection_; + metadata.descriptor = AudioCollectionResponse_CoverArt_descriptor_; + metadata.reflection = AudioCollectionResponse_CoverArt_reflection_; return metadata; } -// =================================================================== +// ------------------------------------------------------------------- #ifndef _MSC_VER -const int Artist::kNameFieldNumber; -const int Artist::kNbReleasesFieldNumber; +const int AudioCollectionResponse_Artist::kNameFieldNumber; +const int AudioCollectionResponse_Artist::kNbReleasesFieldNumber; #endif // !_MSC_VER -Artist::Artist() +AudioCollectionResponse_Artist::AudioCollectionResponse_Artist() : ::google::protobuf::Message() { SharedCtor(); } -void Artist::InitAsDefaultInstance() { +void AudioCollectionResponse_Artist::InitAsDefaultInstance() { } -Artist::Artist(const Artist& from) +AudioCollectionResponse_Artist::AudioCollectionResponse_Artist(const AudioCollectionResponse_Artist& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void Artist::SharedCtor() { +void AudioCollectionResponse_Artist::SharedCtor() { _cached_size_ = 0; name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); nb_releases_ = 0u; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -Artist::~Artist() { +AudioCollectionResponse_Artist::~AudioCollectionResponse_Artist() { SharedDtor(); } -void Artist::SharedDtor() { +void AudioCollectionResponse_Artist::SharedDtor() { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } @@ -4450,28 +4007,28 @@ void Artist::SharedDtor() { } } -void Artist::SetCachedSize(int size) const { +void AudioCollectionResponse_Artist::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* Artist::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_Artist::descriptor() { protobuf_AssignDescriptorsOnce(); - return Artist_descriptor_; + return AudioCollectionResponse_Artist_descriptor_; } -const Artist& Artist::default_instance() { +const AudioCollectionResponse_Artist& AudioCollectionResponse_Artist::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -Artist* Artist::default_instance_ = NULL; +AudioCollectionResponse_Artist* AudioCollectionResponse_Artist::default_instance_ = NULL; -Artist* Artist::New() const { - return new Artist; +AudioCollectionResponse_Artist* AudioCollectionResponse_Artist::New() const { + return new AudioCollectionResponse_Artist; } -void Artist::Clear() { +void AudioCollectionResponse_Artist::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_name()) { if (name_ != &::google::protobuf::internal::kEmptyString) { @@ -4484,7 +4041,7 @@ void Artist::Clear() { mutable_unknown_fields()->Clear(); } -bool Artist::MergePartialFromCodedStream( +bool AudioCollectionResponse_Artist::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -4538,7 +4095,7 @@ bool Artist::MergePartialFromCodedStream( #undef DO_ } -void Artist::SerializeWithCachedSizes( +void AudioCollectionResponse_Artist::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required string name = 1; if (has_name()) { @@ -4560,7 +4117,7 @@ void Artist::SerializeWithCachedSizes( } } -::google::protobuf::uint8* Artist::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_Artist::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required string name = 1; if (has_name()) { @@ -4584,7 +4141,7 @@ void Artist::SerializeWithCachedSizes( return target; } -int Artist::ByteSize() const { +int AudioCollectionResponse_Artist::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -4614,10 +4171,10 @@ int Artist::ByteSize() const { return total_size; } -void Artist::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_Artist::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const Artist* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_Artist* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -4626,7 +4183,7 @@ void Artist::MergeFrom(const ::google::protobuf::Message& from) { } } -void Artist::MergeFrom(const Artist& from) { +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_name()) { @@ -4639,25 +4196,25 @@ void Artist::MergeFrom(const Artist& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void Artist::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_Artist::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void Artist::CopyFrom(const Artist& from) { +void AudioCollectionResponse_Artist::CopyFrom(const AudioCollectionResponse_Artist& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool Artist::IsInitialized() const { +bool AudioCollectionResponse_Artist::IsInitialized() const { if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false; return true; } -void Artist::Swap(Artist* other) { +void AudioCollectionResponse_Artist::Swap(AudioCollectionResponse_Artist* other) { if (other != this) { std::swap(name_, other->name_); std::swap(nb_releases_, other->nb_releases_); @@ -4667,40 +4224,40 @@ void Artist::Swap(Artist* other) { } } -::google::protobuf::Metadata Artist::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_Artist::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = Artist_descriptor_; - metadata.reflection = Artist_reflection_; + metadata.descriptor = AudioCollectionResponse_Artist_descriptor_; + metadata.reflection = AudioCollectionResponse_Artist_reflection_; return metadata; } -// =================================================================== +// ------------------------------------------------------------------- #ifndef _MSC_VER -const int Release::kNameFieldNumber; -const int Release::kNbTracksFieldNumber; -const int Release::kDurationSecsFieldNumber; -const int Release::kCoverArtFieldNumber; +const int AudioCollectionResponse_Release::kNameFieldNumber; +const int AudioCollectionResponse_Release::kNbTracksFieldNumber; +const int AudioCollectionResponse_Release::kDurationSecsFieldNumber; +const int AudioCollectionResponse_Release::kCoverArtFieldNumber; #endif // !_MSC_VER -Release::Release() +AudioCollectionResponse_Release::AudioCollectionResponse_Release() : ::google::protobuf::Message() { SharedCtor(); } -void Release::InitAsDefaultInstance() { - coverart_ = const_cast< ::CoverArt*>(&::CoverArt::default_instance()); +void AudioCollectionResponse_Release::InitAsDefaultInstance() { + coverart_ = const_cast< ::Remote::AudioCollectionResponse_CoverArt*>(&::Remote::AudioCollectionResponse_CoverArt::default_instance()); } -Release::Release(const Release& from) +AudioCollectionResponse_Release::AudioCollectionResponse_Release(const AudioCollectionResponse_Release& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void Release::SharedCtor() { +void AudioCollectionResponse_Release::SharedCtor() { _cached_size_ = 0; name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString); nb_tracks_ = 0u; @@ -4709,11 +4266,11 @@ void Release::SharedCtor() { ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -Release::~Release() { +AudioCollectionResponse_Release::~AudioCollectionResponse_Release() { SharedDtor(); } -void Release::SharedDtor() { +void AudioCollectionResponse_Release::SharedDtor() { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } @@ -4722,28 +4279,28 @@ void Release::SharedDtor() { } } -void Release::SetCachedSize(int size) const { +void AudioCollectionResponse_Release::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* Release::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_Release::descriptor() { protobuf_AssignDescriptorsOnce(); - return Release_descriptor_; + return AudioCollectionResponse_Release_descriptor_; } -const Release& Release::default_instance() { +const AudioCollectionResponse_Release& AudioCollectionResponse_Release::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -Release* Release::default_instance_ = NULL; +AudioCollectionResponse_Release* AudioCollectionResponse_Release::default_instance_ = NULL; -Release* Release::New() const { - return new Release; +AudioCollectionResponse_Release* AudioCollectionResponse_Release::New() const { + return new AudioCollectionResponse_Release; } -void Release::Clear() { +void AudioCollectionResponse_Release::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_name()) { if (name_ != &::google::protobuf::internal::kEmptyString) { @@ -4753,14 +4310,14 @@ void Release::Clear() { nb_tracks_ = 0u; duration_secs_ = 0u; if (has_coverart()) { - if (coverart_ != NULL) coverart_->::CoverArt::Clear(); + if (coverart_ != NULL) coverart_->::Remote::AudioCollectionResponse_CoverArt::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } -bool Release::MergePartialFromCodedStream( +bool AudioCollectionResponse_Release::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -4814,7 +4371,7 @@ bool Release::MergePartialFromCodedStream( break; } - // optional .CoverArt coverArt = 4; + // optional .Remote.AudioCollectionResponse.CoverArt coverArt = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -4844,7 +4401,7 @@ bool Release::MergePartialFromCodedStream( #undef DO_ } -void Release::SerializeWithCachedSizes( +void AudioCollectionResponse_Release::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required string name = 1; if (has_name()) { @@ -4865,7 +4422,7 @@ void Release::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteUInt32(3, this->duration_secs(), output); } - // optional .CoverArt coverArt = 4; + // optional .Remote.AudioCollectionResponse.CoverArt coverArt = 4; if (has_coverart()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->coverart(), output); @@ -4877,7 +4434,7 @@ void Release::SerializeWithCachedSizes( } } -::google::protobuf::uint8* Release::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_Release::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required string name = 1; if (has_name()) { @@ -4899,7 +4456,7 @@ void Release::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(3, this->duration_secs(), target); } - // optional .CoverArt coverArt = 4; + // optional .Remote.AudioCollectionResponse.CoverArt coverArt = 4; if (has_coverart()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -4913,7 +4470,7 @@ void Release::SerializeWithCachedSizes( return target; } -int Release::ByteSize() const { +int AudioCollectionResponse_Release::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -4938,7 +4495,7 @@ int Release::ByteSize() const { this->duration_secs()); } - // optional .CoverArt coverArt = 4; + // optional .Remote.AudioCollectionResponse.CoverArt coverArt = 4; if (has_coverart()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -4957,10 +4514,10 @@ int Release::ByteSize() const { return total_size; } -void Release::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_Release::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const Release* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_Release* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -4969,7 +4526,7 @@ void Release::MergeFrom(const ::google::protobuf::Message& from) { } } -void Release::MergeFrom(const Release& from) { +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_name()) { @@ -4982,31 +4539,31 @@ void Release::MergeFrom(const Release& from) { set_duration_secs(from.duration_secs()); } if (from.has_coverart()) { - mutable_coverart()->::CoverArt::MergeFrom(from.coverart()); + mutable_coverart()->::Remote::AudioCollectionResponse_CoverArt::MergeFrom(from.coverart()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void Release::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_Release::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void Release::CopyFrom(const Release& from) { +void AudioCollectionResponse_Release::CopyFrom(const AudioCollectionResponse_Release& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool Release::IsInitialized() const { +bool AudioCollectionResponse_Release::IsInitialized() const { if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false; return true; } -void Release::Swap(Release* other) { +void AudioCollectionResponse_Release::Swap(AudioCollectionResponse_Release* other) { if (other != this) { std::swap(name_, other->name_); std::swap(nb_tracks_, other->nb_tracks_); @@ -5018,46 +4575,46 @@ void Release::Swap(Release* other) { } } -::google::protobuf::Metadata Release::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_Release::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = Release_descriptor_; - metadata.reflection = Release_reflection_; + metadata.descriptor = AudioCollectionResponse_Release_descriptor_; + metadata.reflection = AudioCollectionResponse_Release_reflection_; return metadata; } -// =================================================================== +// ------------------------------------------------------------------- #ifndef _MSC_VER -const int Track::kMediaIdFieldNumber; -const int Track::kDiscNumberFieldNumber; -const int Track::kTrackNumberFieldNumber; -const int Track::kArtistFieldNumber; -const int Track::kReleaseFieldNumber; -const int Track::kNameFieldNumber; -const int Track::kDurationSecsFieldNumber; -const int Track::kReleaseDateFieldNumber; -const int Track::kOriginalReleaseDateFieldNumber; -const int Track::kGenresFieldNumber; -const int Track::kCoverArtFieldNumber; +const int AudioCollectionResponse_Track::kMediaIdFieldNumber; +const int AudioCollectionResponse_Track::kDiscNumberFieldNumber; +const int AudioCollectionResponse_Track::kTrackNumberFieldNumber; +const int AudioCollectionResponse_Track::kArtistFieldNumber; +const int AudioCollectionResponse_Track::kReleaseFieldNumber; +const int AudioCollectionResponse_Track::kNameFieldNumber; +const int AudioCollectionResponse_Track::kDurationSecsFieldNumber; +const int AudioCollectionResponse_Track::kReleaseDateFieldNumber; +const int AudioCollectionResponse_Track::kOriginalReleaseDateFieldNumber; +const int AudioCollectionResponse_Track::kGenresFieldNumber; +const int AudioCollectionResponse_Track::kCoverArtFieldNumber; #endif // !_MSC_VER -Track::Track() +AudioCollectionResponse_Track::AudioCollectionResponse_Track() : ::google::protobuf::Message() { SharedCtor(); } -void Track::InitAsDefaultInstance() { +void AudioCollectionResponse_Track::InitAsDefaultInstance() { } -Track::Track(const Track& from) +AudioCollectionResponse_Track::AudioCollectionResponse_Track(const AudioCollectionResponse_Track& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); } -void Track::SharedCtor() { +void AudioCollectionResponse_Track::SharedCtor() { _cached_size_ = 0; media_id_ = GOOGLE_LONGLONG(0); disc_number_ = 0u; @@ -5072,11 +4629,11 @@ void Track::SharedCtor() { ::memset(_has_bits_, 0, sizeof(_has_bits_)); } -Track::~Track() { +AudioCollectionResponse_Track::~AudioCollectionResponse_Track() { SharedDtor(); } -void Track::SharedDtor() { +void AudioCollectionResponse_Track::SharedDtor() { if (artist_ != &::google::protobuf::internal::kEmptyString) { delete artist_; } @@ -5099,28 +4656,28 @@ void Track::SharedDtor() { } } -void Track::SetCachedSize(int size) const { +void AudioCollectionResponse_Track::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } -const ::google::protobuf::Descriptor* Track::descriptor() { +const ::google::protobuf::Descriptor* AudioCollectionResponse_Track::descriptor() { protobuf_AssignDescriptorsOnce(); - return Track_descriptor_; + return AudioCollectionResponse_Track_descriptor_; } -const Track& Track::default_instance() { +const AudioCollectionResponse_Track& AudioCollectionResponse_Track::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_collection_2eproto(); return *default_instance_; } -Track* Track::default_instance_ = NULL; +AudioCollectionResponse_Track* AudioCollectionResponse_Track::default_instance_ = NULL; -Track* Track::New() const { - return new Track; +AudioCollectionResponse_Track* AudioCollectionResponse_Track::New() const { + return new AudioCollectionResponse_Track; } -void Track::Clear() { +void AudioCollectionResponse_Track::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { media_id_ = GOOGLE_LONGLONG(0); disc_number_ = 0u; @@ -5164,7 +4721,7 @@ void Track::Clear() { mutable_unknown_fields()->Clear(); } -bool Track::MergePartialFromCodedStream( +bool AudioCollectionResponse_Track::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) return false ::google::protobuf::uint32 tag; @@ -5367,7 +4924,7 @@ bool Track::MergePartialFromCodedStream( #undef DO_ } -void Track::SerializeWithCachedSizes( +void AudioCollectionResponse_Track::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // required int64 media_id = 1; if (has_media_id()) { @@ -5455,7 +5012,7 @@ void Track::SerializeWithCachedSizes( } } -::google::protobuf::uint8* Track::SerializeWithCachedSizesToArray( +::google::protobuf::uint8* AudioCollectionResponse_Track::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // required int64 media_id = 1; if (has_media_id()) { @@ -5550,7 +5107,7 @@ void Track::SerializeWithCachedSizes( return target; } -int Track::ByteSize() const { +int AudioCollectionResponse_Track::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -5645,10 +5202,10 @@ int Track::ByteSize() const { return total_size; } -void Track::MergeFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_Track::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); - const Track* source = - ::google::protobuf::internal::dynamic_cast_if_available( + const AudioCollectionResponse_Track* source = + ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); @@ -5657,7 +5214,7 @@ void Track::MergeFrom(const ::google::protobuf::Message& from) { } } -void Track::MergeFrom(const Track& from) { +void AudioCollectionResponse_Track::MergeFrom(const AudioCollectionResponse_Track& from) { GOOGLE_CHECK_NE(&from, this); genres_.MergeFrom(from.genres_); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { @@ -5697,25 +5254,25 @@ void Track::MergeFrom(const Track& from) { mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } -void Track::CopyFrom(const ::google::protobuf::Message& from) { +void AudioCollectionResponse_Track::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } -void Track::CopyFrom(const Track& from) { +void AudioCollectionResponse_Track::CopyFrom(const AudioCollectionResponse_Track& from) { if (&from == this) return; Clear(); MergeFrom(from); } -bool Track::IsInitialized() const { +bool AudioCollectionResponse_Track::IsInitialized() const { if ((_has_bits_[0] & 0x00000061) != 0x00000061) return false; return true; } -void Track::Swap(Track* other) { +void AudioCollectionResponse_Track::Swap(AudioCollectionResponse_Track* other) { if (other != this) { std::swap(media_id_, other->media_id_); std::swap(disc_number_, other->disc_number_); @@ -5734,15 +5291,472 @@ void Track::Swap(Track* other) { } } -::google::protobuf::Metadata Track::GetMetadata() const { +::google::protobuf::Metadata AudioCollectionResponse_Track::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; - metadata.descriptor = Track_descriptor_; - metadata.reflection = Track_reflection_; + metadata.descriptor = AudioCollectionResponse_Track_descriptor_; + metadata.reflection = AudioCollectionResponse_Track_reflection_; + return metadata; +} + + +// ------------------------------------------------------------------- + +#ifndef _MSC_VER +const int AudioCollectionResponse::kErrorFieldNumber; +const int AudioCollectionResponse::kTypeFieldNumber; +const int AudioCollectionResponse::kGenreListFieldNumber; +const int AudioCollectionResponse::kArtistListFieldNumber; +const int AudioCollectionResponse::kReleaseListFieldNumber; +const int AudioCollectionResponse::kTrackListFieldNumber; +#endif // !_MSC_VER + +AudioCollectionResponse::AudioCollectionResponse() + : ::google::protobuf::Message() { + SharedCtor(); +} + +void AudioCollectionResponse::InitAsDefaultInstance() { + error_ = const_cast< ::Remote::Error*>(&::Remote::Error::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; + error_ = NULL; + type_ = 1; + 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 error_; + 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))) { + if (has_error()) { + if (error_ != NULL) error_->::Remote::Error::Clear(); + } + type_ = 1; + 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(); + } + } + ::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.Error error = 1; + case 1: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { + DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( + input, mutable_error())); + } else { + goto handle_uninterpreted; + } + if (input->ExpectTag(16)) goto parse_type; + break; + } + + // optional .Remote.AudioCollectionResponse.Type type = 2; + case 2: { + if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == + ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { + parse_type: + 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(2, value); + } + } 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->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.Error error = 1; + if (has_error()) { + ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( + 1, this->error(), output); + } + + // optional .Remote.AudioCollectionResponse.Type type = 2; + if (has_type()) { + ::google::protobuf::internal::WireFormatLite::WriteEnum( + 2, this->type(), 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); + } + + if (!unknown_fields().empty()) { + ::google::protobuf::internal::WireFormat::SerializeUnknownFields( + unknown_fields(), output); + } +} + +::google::protobuf::uint8* AudioCollectionResponse::SerializeWithCachedSizesToArray( + ::google::protobuf::uint8* target) const { + // required .Remote.Error error = 1; + if (has_error()) { + target = ::google::protobuf::internal::WireFormatLite:: + WriteMessageNoVirtualToArray( + 1, this->error(), target); + } + + // optional .Remote.AudioCollectionResponse.Type type = 2; + if (has_type()) { + target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( + 2, this->type(), 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); + } + + 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.Error error = 1; + if (has_error()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( + this->error()); + } + + // optional .Remote.AudioCollectionResponse.Type type = 2; + if (has_type()) { + total_size += 1 + + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); + } + + // 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()); + } + + } + 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); + if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { + if (from.has_error()) { + mutable_error()->::Remote::Error::MergeFrom(from.error()); + } + if (from.has_type()) { + set_type(from.type()); + } + 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_error()) { + if (!this->error().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; + } + return true; +} + +void AudioCollectionResponse::Swap(AudioCollectionResponse* other) { + if (other != this) { + std::swap(error_, other->error_); + std::swap(type_, other->type_); + 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_); + 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 index ed7732b6..dc88d0ff 100644 --- a/remote/messages/collection.pb.h +++ b/remote/messages/collection.pb.h @@ -28,78 +28,80 @@ #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 CollectionRequest; -class CollectionRequest_GetGenreList; -class CollectionRequest_GetArtistList; -class CollectionRequest_GetReleaseList; -class CollectionRequest_GetTrackList; -class CollectionResponse; -class GenreList; -class ArtistList; -class ReleaseList; -class TrackList; -class Genre; -class CoverArt; -class Artist; -class Release; -class Track; +class AudioCollectionRequest; +class AudioCollectionRequest_GetGenreList; +class AudioCollectionRequest_GetArtistList; +class AudioCollectionRequest_GetReleaseList; +class AudioCollectionRequest_GetTrackList; +class AudioCollectionResponse; +class AudioCollectionResponse_GenreList; +class AudioCollectionResponse_ArtistList; +class AudioCollectionResponse_ReleaseList; +class AudioCollectionResponse_TrackList; +class AudioCollectionResponse_Genre; +class AudioCollectionResponse_CoverArt; +class AudioCollectionResponse_Artist; +class AudioCollectionResponse_Release; +class AudioCollectionResponse_Track; -enum CollectionRequest_Type { - CollectionRequest_Type_TypeGetArtistList = 0, - CollectionRequest_Type_TypeGetReleaseList = 1, - CollectionRequest_Type_TypeGetTrackList = 2 +enum AudioCollectionRequest_Type { + AudioCollectionRequest_Type_TypeGetArtistList = 0, + AudioCollectionRequest_Type_TypeGetReleaseList = 1, + AudioCollectionRequest_Type_TypeGetTrackList = 2 }; -bool CollectionRequest_Type_IsValid(int value); -const CollectionRequest_Type CollectionRequest_Type_Type_MIN = CollectionRequest_Type_TypeGetArtistList; -const CollectionRequest_Type CollectionRequest_Type_Type_MAX = CollectionRequest_Type_TypeGetTrackList; -const int CollectionRequest_Type_Type_ARRAYSIZE = CollectionRequest_Type_Type_MAX + 1; +bool AudioCollectionRequest_Type_IsValid(int value); +const AudioCollectionRequest_Type AudioCollectionRequest_Type_Type_MIN = AudioCollectionRequest_Type_TypeGetArtistList; +const AudioCollectionRequest_Type AudioCollectionRequest_Type_Type_MAX = AudioCollectionRequest_Type_TypeGetTrackList; +const int AudioCollectionRequest_Type_Type_ARRAYSIZE = AudioCollectionRequest_Type_Type_MAX + 1; -const ::google::protobuf::EnumDescriptor* CollectionRequest_Type_descriptor(); -inline const ::std::string& CollectionRequest_Type_Name(CollectionRequest_Type value) { +const ::google::protobuf::EnumDescriptor* AudioCollectionRequest_Type_descriptor(); +inline const ::std::string& AudioCollectionRequest_Type_Name(AudioCollectionRequest_Type value) { return ::google::protobuf::internal::NameOfEnum( - CollectionRequest_Type_descriptor(), value); + AudioCollectionRequest_Type_descriptor(), value); } -inline bool CollectionRequest_Type_Parse( - const ::std::string& name, CollectionRequest_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CollectionRequest_Type_descriptor(), name, value); +inline bool AudioCollectionRequest_Type_Parse( + const ::std::string& name, AudioCollectionRequest_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + AudioCollectionRequest_Type_descriptor(), name, value); } -enum CollectionResponse_Type { - CollectionResponse_Type_TypeGenreList = 1, - CollectionResponse_Type_TypeArtistList = 2, - CollectionResponse_Type_TypeReleaseList = 3, - CollectionResponse_Type_TypeTrackList = 4 +enum AudioCollectionResponse_Type { + AudioCollectionResponse_Type_TypeGenreList = 1, + AudioCollectionResponse_Type_TypeArtistList = 2, + AudioCollectionResponse_Type_TypeReleaseList = 3, + AudioCollectionResponse_Type_TypeTrackList = 4 }; -bool CollectionResponse_Type_IsValid(int value); -const CollectionResponse_Type CollectionResponse_Type_Type_MIN = CollectionResponse_Type_TypeGenreList; -const CollectionResponse_Type CollectionResponse_Type_Type_MAX = CollectionResponse_Type_TypeTrackList; -const int CollectionResponse_Type_Type_ARRAYSIZE = CollectionResponse_Type_Type_MAX + 1; +bool AudioCollectionResponse_Type_IsValid(int value); +const AudioCollectionResponse_Type AudioCollectionResponse_Type_Type_MIN = AudioCollectionResponse_Type_TypeGenreList; +const AudioCollectionResponse_Type AudioCollectionResponse_Type_Type_MAX = AudioCollectionResponse_Type_TypeTrackList; +const int AudioCollectionResponse_Type_Type_ARRAYSIZE = AudioCollectionResponse_Type_Type_MAX + 1; -const ::google::protobuf::EnumDescriptor* CollectionResponse_Type_descriptor(); -inline const ::std::string& CollectionResponse_Type_Name(CollectionResponse_Type value) { +const ::google::protobuf::EnumDescriptor* AudioCollectionResponse_Type_descriptor(); +inline const ::std::string& AudioCollectionResponse_Type_Name(AudioCollectionResponse_Type value) { return ::google::protobuf::internal::NameOfEnum( - CollectionResponse_Type_descriptor(), value); + AudioCollectionResponse_Type_descriptor(), value); } -inline bool CollectionResponse_Type_Parse( - const ::std::string& name, CollectionResponse_Type* value) { - return ::google::protobuf::internal::ParseNamedEnum( - CollectionResponse_Type_descriptor(), name, value); +inline bool AudioCollectionResponse_Type_Parse( + const ::std::string& name, AudioCollectionResponse_Type* value) { + return ::google::protobuf::internal::ParseNamedEnum( + AudioCollectionResponse_Type_descriptor(), name, value); } // =================================================================== -class CollectionRequest_GetGenreList : public ::google::protobuf::Message { +class AudioCollectionRequest_GetGenreList : public ::google::protobuf::Message { public: - CollectionRequest_GetGenreList(); - virtual ~CollectionRequest_GetGenreList(); + AudioCollectionRequest_GetGenreList(); + virtual ~AudioCollectionRequest_GetGenreList(); - CollectionRequest_GetGenreList(const CollectionRequest_GetGenreList& from); + AudioCollectionRequest_GetGenreList(const AudioCollectionRequest_GetGenreList& from); - inline CollectionRequest_GetGenreList& operator=(const CollectionRequest_GetGenreList& from) { + inline AudioCollectionRequest_GetGenreList& operator=(const AudioCollectionRequest_GetGenreList& from) { CopyFrom(from); return *this; } @@ -113,17 +115,17 @@ class CollectionRequest_GetGenreList : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionRequest_GetGenreList& default_instance(); + static const AudioCollectionRequest_GetGenreList& default_instance(); - void Swap(CollectionRequest_GetGenreList* other); + void Swap(AudioCollectionRequest_GetGenreList* other); // implements Message ---------------------------------------------- - CollectionRequest_GetGenreList* New() const; + AudioCollectionRequest_GetGenreList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionRequest_GetGenreList& from); - void MergeFrom(const CollectionRequest_GetGenreList& from); + void CopyFrom(const AudioCollectionRequest_GetGenreList& from); + void MergeFrom(const AudioCollectionRequest_GetGenreList& from); void Clear(); bool IsInitialized() const; @@ -165,7 +167,7 @@ class CollectionRequest_GetGenreList : public ::google::protobuf::Message { inline ::google::protobuf::uint32 preferred_batch_size() const; inline void set_preferred_batch_size(::google::protobuf::uint32 value); - // @@protoc_insertion_point(class_scope:CollectionRequest.GetGenreList) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetGenreList) private: inline void set_has_filter_name(); inline void clear_has_filter_name(); @@ -185,18 +187,18 @@ class CollectionRequest_GetGenreList : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static CollectionRequest_GetGenreList* default_instance_; + static AudioCollectionRequest_GetGenreList* default_instance_; }; // ------------------------------------------------------------------- -class CollectionRequest_GetArtistList : public ::google::protobuf::Message { +class AudioCollectionRequest_GetArtistList : public ::google::protobuf::Message { public: - CollectionRequest_GetArtistList(); - virtual ~CollectionRequest_GetArtistList(); + AudioCollectionRequest_GetArtistList(); + virtual ~AudioCollectionRequest_GetArtistList(); - CollectionRequest_GetArtistList(const CollectionRequest_GetArtistList& from); + AudioCollectionRequest_GetArtistList(const AudioCollectionRequest_GetArtistList& from); - inline CollectionRequest_GetArtistList& operator=(const CollectionRequest_GetArtistList& from) { + inline AudioCollectionRequest_GetArtistList& operator=(const AudioCollectionRequest_GetArtistList& from) { CopyFrom(from); return *this; } @@ -210,17 +212,17 @@ class CollectionRequest_GetArtistList : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionRequest_GetArtistList& default_instance(); + static const AudioCollectionRequest_GetArtistList& default_instance(); - void Swap(CollectionRequest_GetArtistList* other); + void Swap(AudioCollectionRequest_GetArtistList* other); // implements Message ---------------------------------------------- - CollectionRequest_GetArtistList* New() const; + AudioCollectionRequest_GetArtistList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionRequest_GetArtistList& from); - void MergeFrom(const CollectionRequest_GetArtistList& from); + void CopyFrom(const AudioCollectionRequest_GetArtistList& from); + void MergeFrom(const AudioCollectionRequest_GetArtistList& from); void Clear(); bool IsInitialized() const; @@ -278,7 +280,7 @@ class CollectionRequest_GetArtistList : public ::google::protobuf::Message { inline ::google::protobuf::uint32 preferred_batch_size() const; inline void set_preferred_batch_size(::google::protobuf::uint32 value); - // @@protoc_insertion_point(class_scope:CollectionRequest.GetArtistList) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetArtistList) private: inline void set_has_filter_name(); inline void clear_has_filter_name(); @@ -299,18 +301,18 @@ class CollectionRequest_GetArtistList : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static CollectionRequest_GetArtistList* default_instance_; + static AudioCollectionRequest_GetArtistList* default_instance_; }; // ------------------------------------------------------------------- -class CollectionRequest_GetReleaseList : public ::google::protobuf::Message { +class AudioCollectionRequest_GetReleaseList : public ::google::protobuf::Message { public: - CollectionRequest_GetReleaseList(); - virtual ~CollectionRequest_GetReleaseList(); + AudioCollectionRequest_GetReleaseList(); + virtual ~AudioCollectionRequest_GetReleaseList(); - CollectionRequest_GetReleaseList(const CollectionRequest_GetReleaseList& from); + AudioCollectionRequest_GetReleaseList(const AudioCollectionRequest_GetReleaseList& from); - inline CollectionRequest_GetReleaseList& operator=(const CollectionRequest_GetReleaseList& from) { + inline AudioCollectionRequest_GetReleaseList& operator=(const AudioCollectionRequest_GetReleaseList& from) { CopyFrom(from); return *this; } @@ -324,17 +326,17 @@ class CollectionRequest_GetReleaseList : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionRequest_GetReleaseList& default_instance(); + static const AudioCollectionRequest_GetReleaseList& default_instance(); - void Swap(CollectionRequest_GetReleaseList* other); + void Swap(AudioCollectionRequest_GetReleaseList* other); // implements Message ---------------------------------------------- - CollectionRequest_GetReleaseList* New() const; + AudioCollectionRequest_GetReleaseList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionRequest_GetReleaseList& from); - void MergeFrom(const CollectionRequest_GetReleaseList& from); + void CopyFrom(const AudioCollectionRequest_GetReleaseList& from); + void MergeFrom(const AudioCollectionRequest_GetReleaseList& from); void Clear(); bool IsInitialized() const; @@ -415,7 +417,7 @@ class CollectionRequest_GetReleaseList : public ::google::protobuf::Message { inline ::google::protobuf::uint32 preferred_batch_size() const; inline void set_preferred_batch_size(::google::protobuf::uint32 value); - // @@protoc_insertion_point(class_scope:CollectionRequest.GetReleaseList) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetReleaseList) private: inline void set_has_filter_name(); inline void clear_has_filter_name(); @@ -440,18 +442,18 @@ class CollectionRequest_GetReleaseList : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static CollectionRequest_GetReleaseList* default_instance_; + static AudioCollectionRequest_GetReleaseList* default_instance_; }; // ------------------------------------------------------------------- -class CollectionRequest_GetTrackList : public ::google::protobuf::Message { +class AudioCollectionRequest_GetTrackList : public ::google::protobuf::Message { public: - CollectionRequest_GetTrackList(); - virtual ~CollectionRequest_GetTrackList(); + AudioCollectionRequest_GetTrackList(); + virtual ~AudioCollectionRequest_GetTrackList(); - CollectionRequest_GetTrackList(const CollectionRequest_GetTrackList& from); + AudioCollectionRequest_GetTrackList(const AudioCollectionRequest_GetTrackList& from); - inline CollectionRequest_GetTrackList& operator=(const CollectionRequest_GetTrackList& from) { + inline AudioCollectionRequest_GetTrackList& operator=(const AudioCollectionRequest_GetTrackList& from) { CopyFrom(from); return *this; } @@ -465,17 +467,17 @@ class CollectionRequest_GetTrackList : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionRequest_GetTrackList& default_instance(); + static const AudioCollectionRequest_GetTrackList& default_instance(); - void Swap(CollectionRequest_GetTrackList* other); + void Swap(AudioCollectionRequest_GetTrackList* other); // implements Message ---------------------------------------------- - CollectionRequest_GetTrackList* New() const; + AudioCollectionRequest_GetTrackList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionRequest_GetTrackList& from); - void MergeFrom(const CollectionRequest_GetTrackList& from); + void CopyFrom(const AudioCollectionRequest_GetTrackList& from); + void MergeFrom(const AudioCollectionRequest_GetTrackList& from); void Clear(); bool IsInitialized() const; @@ -586,7 +588,7 @@ class CollectionRequest_GetTrackList : public ::google::protobuf::Message { inline ::google::protobuf::uint32 preferred_batch_size() const; inline void set_preferred_batch_size(::google::protobuf::uint32 value); - // @@protoc_insertion_point(class_scope:CollectionRequest.GetTrackList) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest.GetTrackList) private: inline void set_has_filter_name(); inline void clear_has_filter_name(); @@ -618,18 +620,18 @@ class CollectionRequest_GetTrackList : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static CollectionRequest_GetTrackList* default_instance_; + static AudioCollectionRequest_GetTrackList* default_instance_; }; // ------------------------------------------------------------------- -class CollectionRequest : public ::google::protobuf::Message { +class AudioCollectionRequest : public ::google::protobuf::Message { public: - CollectionRequest(); - virtual ~CollectionRequest(); + AudioCollectionRequest(); + virtual ~AudioCollectionRequest(); - CollectionRequest(const CollectionRequest& from); + AudioCollectionRequest(const AudioCollectionRequest& from); - inline CollectionRequest& operator=(const CollectionRequest& from) { + inline AudioCollectionRequest& operator=(const AudioCollectionRequest& from) { CopyFrom(from); return *this; } @@ -643,17 +645,17 @@ class CollectionRequest : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionRequest& default_instance(); + static const AudioCollectionRequest& default_instance(); - void Swap(CollectionRequest* other); + void Swap(AudioCollectionRequest* other); // implements Message ---------------------------------------------- - CollectionRequest* New() const; + AudioCollectionRequest* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionRequest& from); - void MergeFrom(const CollectionRequest& from); + void CopyFrom(const AudioCollectionRequest& from); + void MergeFrom(const AudioCollectionRequest& from); void Clear(); bool IsInitialized() const; @@ -674,82 +676,82 @@ class CollectionRequest : public ::google::protobuf::Message { // nested types ---------------------------------------------------- - typedef CollectionRequest_GetGenreList GetGenreList; - typedef CollectionRequest_GetArtistList GetArtistList; - typedef CollectionRequest_GetReleaseList GetReleaseList; - typedef CollectionRequest_GetTrackList GetTrackList; + typedef AudioCollectionRequest_GetGenreList GetGenreList; + typedef AudioCollectionRequest_GetArtistList GetArtistList; + typedef AudioCollectionRequest_GetReleaseList GetReleaseList; + typedef AudioCollectionRequest_GetTrackList GetTrackList; - typedef CollectionRequest_Type Type; - static const Type TypeGetArtistList = CollectionRequest_Type_TypeGetArtistList; - static const Type TypeGetReleaseList = CollectionRequest_Type_TypeGetReleaseList; - static const Type TypeGetTrackList = CollectionRequest_Type_TypeGetTrackList; + typedef AudioCollectionRequest_Type Type; + static const Type TypeGetArtistList = AudioCollectionRequest_Type_TypeGetArtistList; + static const Type TypeGetReleaseList = AudioCollectionRequest_Type_TypeGetReleaseList; + static const Type TypeGetTrackList = AudioCollectionRequest_Type_TypeGetTrackList; static inline bool Type_IsValid(int value) { - return CollectionRequest_Type_IsValid(value); + return AudioCollectionRequest_Type_IsValid(value); } static const Type Type_MIN = - CollectionRequest_Type_Type_MIN; + AudioCollectionRequest_Type_Type_MIN; static const Type Type_MAX = - CollectionRequest_Type_Type_MAX; + AudioCollectionRequest_Type_Type_MAX; static const int Type_ARRAYSIZE = - CollectionRequest_Type_Type_ARRAYSIZE; + AudioCollectionRequest_Type_Type_ARRAYSIZE; static inline const ::google::protobuf::EnumDescriptor* Type_descriptor() { - return CollectionRequest_Type_descriptor(); + return AudioCollectionRequest_Type_descriptor(); } static inline const ::std::string& Type_Name(Type value) { - return CollectionRequest_Type_Name(value); + return AudioCollectionRequest_Type_Name(value); } static inline bool Type_Parse(const ::std::string& name, Type* value) { - return CollectionRequest_Type_Parse(name, value); + return AudioCollectionRequest_Type_Parse(name, value); } // accessors ------------------------------------------------------- - // required .CollectionRequest.Type type = 1; + // required .Remote.AudioCollectionRequest.Type type = 1; inline bool has_type() const; inline void clear_type(); static const int kTypeFieldNumber = 1; - inline ::CollectionRequest_Type type() const; - inline void set_type(::CollectionRequest_Type value); + inline ::Remote::AudioCollectionRequest_Type type() const; + inline void set_type(::Remote::AudioCollectionRequest_Type value); - // optional .CollectionRequest.GetGenreList get_genres = 2; + // optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 2; inline bool has_get_genres() const; inline void clear_get_genres(); static const int kGetGenresFieldNumber = 2; - inline const ::CollectionRequest_GetGenreList& get_genres() const; - inline ::CollectionRequest_GetGenreList* mutable_get_genres(); - inline ::CollectionRequest_GetGenreList* release_get_genres(); - inline void set_allocated_get_genres(::CollectionRequest_GetGenreList* get_genres); + 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 .CollectionRequest.GetArtistList get_artists = 3; + // optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 3; inline bool has_get_artists() const; inline void clear_get_artists(); static const int kGetArtistsFieldNumber = 3; - inline const ::CollectionRequest_GetArtistList& get_artists() const; - inline ::CollectionRequest_GetArtistList* mutable_get_artists(); - inline ::CollectionRequest_GetArtistList* release_get_artists(); - inline void set_allocated_get_artists(::CollectionRequest_GetArtistList* get_artists); + 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 .CollectionRequest.GetReleaseList get_releases = 4; + // optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 4; inline bool has_get_releases() const; inline void clear_get_releases(); static const int kGetReleasesFieldNumber = 4; - inline const ::CollectionRequest_GetReleaseList& get_releases() const; - inline ::CollectionRequest_GetReleaseList* mutable_get_releases(); - inline ::CollectionRequest_GetReleaseList* release_get_releases(); - inline void set_allocated_get_releases(::CollectionRequest_GetReleaseList* get_releases); + 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 .CollectionRequest.GetTrackList get_tracks = 5; + // optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 5; inline bool has_get_tracks() const; inline void clear_get_tracks(); static const int kGetTracksFieldNumber = 5; - inline const ::CollectionRequest_GetTrackList& get_tracks() const; - inline ::CollectionRequest_GetTrackList* mutable_get_tracks(); - inline ::CollectionRequest_GetTrackList* release_get_tracks(); - inline void set_allocated_get_tracks(::CollectionRequest_GetTrackList* get_tracks); + 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); - // @@protoc_insertion_point(class_scope:CollectionRequest) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionRequest) private: inline void set_has_type(); inline void clear_has_type(); @@ -764,10 +766,10 @@ class CollectionRequest : public ::google::protobuf::Message { ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::CollectionRequest_GetGenreList* get_genres_; - ::CollectionRequest_GetArtistList* get_artists_; - ::CollectionRequest_GetReleaseList* get_releases_; - ::CollectionRequest_GetTrackList* get_tracks_; + ::Remote::AudioCollectionRequest_GetGenreList* get_genres_; + ::Remote::AudioCollectionRequest_GetArtistList* get_artists_; + ::Remote::AudioCollectionRequest_GetReleaseList* get_releases_; + ::Remote::AudioCollectionRequest_GetTrackList* get_tracks_; int type_; mutable int _cached_size_; @@ -778,18 +780,18 @@ class CollectionRequest : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static CollectionRequest* default_instance_; + static AudioCollectionRequest* default_instance_; }; // ------------------------------------------------------------------- -class CollectionResponse : public ::google::protobuf::Message { +class AudioCollectionResponse_GenreList : public ::google::protobuf::Message { public: - CollectionResponse(); - virtual ~CollectionResponse(); + AudioCollectionResponse_GenreList(); + virtual ~AudioCollectionResponse_GenreList(); - CollectionResponse(const CollectionResponse& from); + AudioCollectionResponse_GenreList(const AudioCollectionResponse_GenreList& from); - inline CollectionResponse& operator=(const CollectionResponse& from) { + inline AudioCollectionResponse_GenreList& operator=(const AudioCollectionResponse_GenreList& from) { CopyFrom(from); return *this; } @@ -803,185 +805,17 @@ class CollectionResponse : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const CollectionResponse& default_instance(); + static const AudioCollectionResponse_GenreList& default_instance(); - void Swap(CollectionResponse* other); + void Swap(AudioCollectionResponse_GenreList* other); // implements Message ---------------------------------------------- - CollectionResponse* New() const; + AudioCollectionResponse_GenreList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CollectionResponse& from); - void MergeFrom(const CollectionResponse& 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 CollectionResponse_Type Type; - static const Type TypeGenreList = CollectionResponse_Type_TypeGenreList; - static const Type TypeArtistList = CollectionResponse_Type_TypeArtistList; - static const Type TypeReleaseList = CollectionResponse_Type_TypeReleaseList; - static const Type TypeTrackList = CollectionResponse_Type_TypeTrackList; - static inline bool Type_IsValid(int value) { - return CollectionResponse_Type_IsValid(value); - } - static const Type Type_MIN = - CollectionResponse_Type_Type_MIN; - static const Type Type_MAX = - CollectionResponse_Type_Type_MAX; - static const int Type_ARRAYSIZE = - CollectionResponse_Type_Type_ARRAYSIZE; - static inline const ::google::protobuf::EnumDescriptor* - Type_descriptor() { - return CollectionResponse_Type_descriptor(); - } - static inline const ::std::string& Type_Name(Type value) { - return CollectionResponse_Type_Name(value); - } - static inline bool Type_Parse(const ::std::string& name, - Type* value) { - return CollectionResponse_Type_Parse(name, value); - } - - // accessors ------------------------------------------------------- - - // required .Error error = 1; - inline bool has_error() const; - inline void clear_error(); - static const int kErrorFieldNumber = 1; - inline const ::Error& error() const; - inline ::Error* mutable_error(); - inline ::Error* release_error(); - inline void set_allocated_error(::Error* error); - - // optional .CollectionResponse.Type type = 2; - inline bool has_type() const; - inline void clear_type(); - static const int kTypeFieldNumber = 2; - inline ::CollectionResponse_Type type() const; - inline void set_type(::CollectionResponse_Type value); - - // optional .GenreList genre_list = 3; - inline bool has_genre_list() const; - inline void clear_genre_list(); - static const int kGenreListFieldNumber = 3; - inline const ::GenreList& genre_list() const; - inline ::GenreList* mutable_genre_list(); - inline ::GenreList* release_genre_list(); - inline void set_allocated_genre_list(::GenreList* genre_list); - - // optional .ArtistList artist_list = 4; - inline bool has_artist_list() const; - inline void clear_artist_list(); - static const int kArtistListFieldNumber = 4; - inline const ::ArtistList& artist_list() const; - inline ::ArtistList* mutable_artist_list(); - inline ::ArtistList* release_artist_list(); - inline void set_allocated_artist_list(::ArtistList* artist_list); - - // optional .ReleaseList release_list = 5; - inline bool has_release_list() const; - inline void clear_release_list(); - static const int kReleaseListFieldNumber = 5; - inline const ::ReleaseList& release_list() const; - inline ::ReleaseList* mutable_release_list(); - inline ::ReleaseList* release_release_list(); - inline void set_allocated_release_list(::ReleaseList* release_list); - - // optional .TrackList track_list = 6; - inline bool has_track_list() const; - inline void clear_track_list(); - static const int kTrackListFieldNumber = 6; - inline const ::TrackList& track_list() const; - inline ::TrackList* mutable_track_list(); - inline ::TrackList* release_track_list(); - inline void set_allocated_track_list(::TrackList* track_list); - - // @@protoc_insertion_point(class_scope:CollectionResponse) - private: - inline void set_has_error(); - inline void clear_has_error(); - inline void set_has_type(); - inline void clear_has_type(); - 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_; - - ::Error* error_; - ::GenreList* genre_list_; - ::ArtistList* artist_list_; - ::ReleaseList* release_list_; - ::TrackList* track_list_; - int type_; - - mutable int _cached_size_; - ::google::protobuf::uint32 _has_bits_[(6 + 31) / 32]; - - friend void protobuf_AddDesc_collection_2eproto(); - friend void protobuf_AssignDesc_collection_2eproto(); - friend void protobuf_ShutdownFile_collection_2eproto(); - - void InitAsDefaultInstance(); - static CollectionResponse* default_instance_; -}; -// ------------------------------------------------------------------- - -class GenreList : public ::google::protobuf::Message { - public: - GenreList(); - virtual ~GenreList(); - - GenreList(const GenreList& from); - - inline GenreList& operator=(const 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 GenreList& default_instance(); - - void Swap(GenreList* other); - - // implements Message ---------------------------------------------- - - GenreList* New() const; - void CopyFrom(const ::google::protobuf::Message& from); - void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const GenreList& from); - void MergeFrom(const GenreList& from); + void CopyFrom(const AudioCollectionResponse_GenreList& from); + void MergeFrom(const AudioCollectionResponse_GenreList& from); void Clear(); bool IsInitialized() const; @@ -1011,26 +845,26 @@ class GenreList : public ::google::protobuf::Message { inline bool last() const; inline void set_last(bool value); - // repeated .Genre genres = 2; + // repeated .Remote.AudioCollectionResponse.Genre genres = 2; inline int genres_size() const; inline void clear_genres(); static const int kGenresFieldNumber = 2; - inline const ::Genre& genres(int index) const; - inline ::Genre* mutable_genres(int index); - inline ::Genre* add_genres(); - inline const ::google::protobuf::RepeatedPtrField< ::Genre >& + 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< ::Genre >* + inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre >* mutable_genres(); - // @@protoc_insertion_point(class_scope:GenreList) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.GenreList) private: inline void set_has_last(); inline void clear_has_last(); ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::google::protobuf::RepeatedPtrField< ::Genre > genres_; + ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre > genres_; bool last_; mutable int _cached_size_; @@ -1041,18 +875,18 @@ class GenreList : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static GenreList* default_instance_; + static AudioCollectionResponse_GenreList* default_instance_; }; // ------------------------------------------------------------------- -class ArtistList : public ::google::protobuf::Message { +class AudioCollectionResponse_ArtistList : public ::google::protobuf::Message { public: - ArtistList(); - virtual ~ArtistList(); + AudioCollectionResponse_ArtistList(); + virtual ~AudioCollectionResponse_ArtistList(); - ArtistList(const ArtistList& from); + AudioCollectionResponse_ArtistList(const AudioCollectionResponse_ArtistList& from); - inline ArtistList& operator=(const ArtistList& from) { + inline AudioCollectionResponse_ArtistList& operator=(const AudioCollectionResponse_ArtistList& from) { CopyFrom(from); return *this; } @@ -1066,17 +900,17 @@ class ArtistList : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const ArtistList& default_instance(); + static const AudioCollectionResponse_ArtistList& default_instance(); - void Swap(ArtistList* other); + void Swap(AudioCollectionResponse_ArtistList* other); // implements Message ---------------------------------------------- - ArtistList* New() const; + AudioCollectionResponse_ArtistList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ArtistList& from); - void MergeFrom(const ArtistList& from); + void CopyFrom(const AudioCollectionResponse_ArtistList& from); + void MergeFrom(const AudioCollectionResponse_ArtistList& from); void Clear(); bool IsInitialized() const; @@ -1106,26 +940,26 @@ class ArtistList : public ::google::protobuf::Message { inline bool last() const; inline void set_last(bool value); - // repeated .Artist artists = 2; + // repeated .Remote.AudioCollectionResponse.Artist artists = 2; inline int artists_size() const; inline void clear_artists(); static const int kArtistsFieldNumber = 2; - inline const ::Artist& artists(int index) const; - inline ::Artist* mutable_artists(int index); - inline ::Artist* add_artists(); - inline const ::google::protobuf::RepeatedPtrField< ::Artist >& + 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< ::Artist >* + inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist >* mutable_artists(); - // @@protoc_insertion_point(class_scope:ArtistList) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.ArtistList) private: inline void set_has_last(); inline void clear_has_last(); ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::google::protobuf::RepeatedPtrField< ::Artist > artists_; + ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist > artists_; bool last_; mutable int _cached_size_; @@ -1136,18 +970,18 @@ class ArtistList : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static ArtistList* default_instance_; + static AudioCollectionResponse_ArtistList* default_instance_; }; // ------------------------------------------------------------------- -class ReleaseList : public ::google::protobuf::Message { +class AudioCollectionResponse_ReleaseList : public ::google::protobuf::Message { public: - ReleaseList(); - virtual ~ReleaseList(); + AudioCollectionResponse_ReleaseList(); + virtual ~AudioCollectionResponse_ReleaseList(); - ReleaseList(const ReleaseList& from); + AudioCollectionResponse_ReleaseList(const AudioCollectionResponse_ReleaseList& from); - inline ReleaseList& operator=(const ReleaseList& from) { + inline AudioCollectionResponse_ReleaseList& operator=(const AudioCollectionResponse_ReleaseList& from) { CopyFrom(from); return *this; } @@ -1161,17 +995,17 @@ class ReleaseList : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const ReleaseList& default_instance(); + static const AudioCollectionResponse_ReleaseList& default_instance(); - void Swap(ReleaseList* other); + void Swap(AudioCollectionResponse_ReleaseList* other); // implements Message ---------------------------------------------- - ReleaseList* New() const; + AudioCollectionResponse_ReleaseList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const ReleaseList& from); - void MergeFrom(const ReleaseList& from); + void CopyFrom(const AudioCollectionResponse_ReleaseList& from); + void MergeFrom(const AudioCollectionResponse_ReleaseList& from); void Clear(); bool IsInitialized() const; @@ -1201,26 +1035,26 @@ class ReleaseList : public ::google::protobuf::Message { inline bool last() const; inline void set_last(bool value); - // repeated .Release releases = 2; + // repeated .Remote.AudioCollectionResponse.Release releases = 2; inline int releases_size() const; inline void clear_releases(); static const int kReleasesFieldNumber = 2; - inline const ::Release& releases(int index) const; - inline ::Release* mutable_releases(int index); - inline ::Release* add_releases(); - inline const ::google::protobuf::RepeatedPtrField< ::Release >& + 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< ::Release >* + inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release >* mutable_releases(); - // @@protoc_insertion_point(class_scope:ReleaseList) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.ReleaseList) private: inline void set_has_last(); inline void clear_has_last(); ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::google::protobuf::RepeatedPtrField< ::Release > releases_; + ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release > releases_; bool last_; mutable int _cached_size_; @@ -1231,18 +1065,18 @@ class ReleaseList : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static ReleaseList* default_instance_; + static AudioCollectionResponse_ReleaseList* default_instance_; }; // ------------------------------------------------------------------- -class TrackList : public ::google::protobuf::Message { +class AudioCollectionResponse_TrackList : public ::google::protobuf::Message { public: - TrackList(); - virtual ~TrackList(); + AudioCollectionResponse_TrackList(); + virtual ~AudioCollectionResponse_TrackList(); - TrackList(const TrackList& from); + AudioCollectionResponse_TrackList(const AudioCollectionResponse_TrackList& from); - inline TrackList& operator=(const TrackList& from) { + inline AudioCollectionResponse_TrackList& operator=(const AudioCollectionResponse_TrackList& from) { CopyFrom(from); return *this; } @@ -1256,17 +1090,17 @@ class TrackList : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const TrackList& default_instance(); + static const AudioCollectionResponse_TrackList& default_instance(); - void Swap(TrackList* other); + void Swap(AudioCollectionResponse_TrackList* other); // implements Message ---------------------------------------------- - TrackList* New() const; + AudioCollectionResponse_TrackList* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const TrackList& from); - void MergeFrom(const TrackList& from); + void CopyFrom(const AudioCollectionResponse_TrackList& from); + void MergeFrom(const AudioCollectionResponse_TrackList& from); void Clear(); bool IsInitialized() const; @@ -1296,26 +1130,26 @@ class TrackList : public ::google::protobuf::Message { inline bool last() const; inline void set_last(bool value); - // repeated .Track tracks = 2; + // repeated .Remote.AudioCollectionResponse.Track tracks = 2; inline int tracks_size() const; inline void clear_tracks(); static const int kTracksFieldNumber = 2; - inline const ::Track& tracks(int index) const; - inline ::Track* mutable_tracks(int index); - inline ::Track* add_tracks(); - inline const ::google::protobuf::RepeatedPtrField< ::Track >& + 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< ::Track >* + inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track >* mutable_tracks(); - // @@protoc_insertion_point(class_scope:TrackList) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.TrackList) private: inline void set_has_last(); inline void clear_has_last(); ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::google::protobuf::RepeatedPtrField< ::Track > tracks_; + ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track > tracks_; bool last_; mutable int _cached_size_; @@ -1326,18 +1160,18 @@ class TrackList : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static TrackList* default_instance_; + static AudioCollectionResponse_TrackList* default_instance_; }; // ------------------------------------------------------------------- -class Genre : public ::google::protobuf::Message { +class AudioCollectionResponse_Genre : public ::google::protobuf::Message { public: - Genre(); - virtual ~Genre(); + AudioCollectionResponse_Genre(); + virtual ~AudioCollectionResponse_Genre(); - Genre(const Genre& from); + AudioCollectionResponse_Genre(const AudioCollectionResponse_Genre& from); - inline Genre& operator=(const Genre& from) { + inline AudioCollectionResponse_Genre& operator=(const AudioCollectionResponse_Genre& from) { CopyFrom(from); return *this; } @@ -1351,17 +1185,17 @@ class Genre : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const Genre& default_instance(); + static const AudioCollectionResponse_Genre& default_instance(); - void Swap(Genre* other); + void Swap(AudioCollectionResponse_Genre* other); // implements Message ---------------------------------------------- - Genre* New() const; + AudioCollectionResponse_Genre* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Genre& from); - void MergeFrom(const Genre& from); + void CopyFrom(const AudioCollectionResponse_Genre& from); + void MergeFrom(const AudioCollectionResponse_Genre& from); void Clear(); bool IsInitialized() const; @@ -1396,7 +1230,7 @@ class Genre : public ::google::protobuf::Message { inline ::std::string* release_name(); inline void set_allocated_name(::std::string* name); - // @@protoc_insertion_point(class_scope:Genre) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Genre) private: inline void set_has_name(); inline void clear_has_name(); @@ -1413,18 +1247,18 @@ class Genre : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static Genre* default_instance_; + static AudioCollectionResponse_Genre* default_instance_; }; // ------------------------------------------------------------------- -class CoverArt : public ::google::protobuf::Message { +class AudioCollectionResponse_CoverArt : public ::google::protobuf::Message { public: - CoverArt(); - virtual ~CoverArt(); + AudioCollectionResponse_CoverArt(); + virtual ~AudioCollectionResponse_CoverArt(); - CoverArt(const CoverArt& from); + AudioCollectionResponse_CoverArt(const AudioCollectionResponse_CoverArt& from); - inline CoverArt& operator=(const CoverArt& from) { + inline AudioCollectionResponse_CoverArt& operator=(const AudioCollectionResponse_CoverArt& from) { CopyFrom(from); return *this; } @@ -1438,17 +1272,17 @@ class CoverArt : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const CoverArt& default_instance(); + static const AudioCollectionResponse_CoverArt& default_instance(); - void Swap(CoverArt* other); + void Swap(AudioCollectionResponse_CoverArt* other); // implements Message ---------------------------------------------- - CoverArt* New() const; + AudioCollectionResponse_CoverArt* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const CoverArt& from); - void MergeFrom(const CoverArt& from); + void CopyFrom(const AudioCollectionResponse_CoverArt& from); + void MergeFrom(const AudioCollectionResponse_CoverArt& from); void Clear(); bool IsInitialized() const; @@ -1499,7 +1333,7 @@ class CoverArt : public ::google::protobuf::Message { inline const ::google::protobuf::RepeatedPtrField< ::std::string>& data() const; inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_data(); - // @@protoc_insertion_point(class_scope:CoverArt) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.CoverArt) private: inline void set_has_mime_type(); inline void clear_has_mime_type(); @@ -1517,18 +1351,18 @@ class CoverArt : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static CoverArt* default_instance_; + static AudioCollectionResponse_CoverArt* default_instance_; }; // ------------------------------------------------------------------- -class Artist : public ::google::protobuf::Message { +class AudioCollectionResponse_Artist : public ::google::protobuf::Message { public: - Artist(); - virtual ~Artist(); + AudioCollectionResponse_Artist(); + virtual ~AudioCollectionResponse_Artist(); - Artist(const Artist& from); + AudioCollectionResponse_Artist(const AudioCollectionResponse_Artist& from); - inline Artist& operator=(const Artist& from) { + inline AudioCollectionResponse_Artist& operator=(const AudioCollectionResponse_Artist& from) { CopyFrom(from); return *this; } @@ -1542,17 +1376,17 @@ class Artist : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const Artist& default_instance(); + static const AudioCollectionResponse_Artist& default_instance(); - void Swap(Artist* other); + void Swap(AudioCollectionResponse_Artist* other); // implements Message ---------------------------------------------- - Artist* New() const; + AudioCollectionResponse_Artist* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Artist& from); - void MergeFrom(const Artist& from); + void CopyFrom(const AudioCollectionResponse_Artist& from); + void MergeFrom(const AudioCollectionResponse_Artist& from); void Clear(); bool IsInitialized() const; @@ -1594,7 +1428,7 @@ class Artist : public ::google::protobuf::Message { inline ::google::protobuf::uint32 nb_releases() const; inline void set_nb_releases(::google::protobuf::uint32 value); - // @@protoc_insertion_point(class_scope:Artist) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Artist) private: inline void set_has_name(); inline void clear_has_name(); @@ -1614,18 +1448,18 @@ class Artist : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static Artist* default_instance_; + static AudioCollectionResponse_Artist* default_instance_; }; // ------------------------------------------------------------------- -class Release : public ::google::protobuf::Message { +class AudioCollectionResponse_Release : public ::google::protobuf::Message { public: - Release(); - virtual ~Release(); + AudioCollectionResponse_Release(); + virtual ~AudioCollectionResponse_Release(); - Release(const Release& from); + AudioCollectionResponse_Release(const AudioCollectionResponse_Release& from); - inline Release& operator=(const Release& from) { + inline AudioCollectionResponse_Release& operator=(const AudioCollectionResponse_Release& from) { CopyFrom(from); return *this; } @@ -1639,17 +1473,17 @@ class Release : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const Release& default_instance(); + static const AudioCollectionResponse_Release& default_instance(); - void Swap(Release* other); + void Swap(AudioCollectionResponse_Release* other); // implements Message ---------------------------------------------- - Release* New() const; + AudioCollectionResponse_Release* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Release& from); - void MergeFrom(const Release& from); + void CopyFrom(const AudioCollectionResponse_Release& from); + void MergeFrom(const AudioCollectionResponse_Release& from); void Clear(); bool IsInitialized() const; @@ -1698,16 +1532,16 @@ class Release : public ::google::protobuf::Message { inline ::google::protobuf::uint32 duration_secs() const; inline void set_duration_secs(::google::protobuf::uint32 value); - // optional .CoverArt coverArt = 4; + // optional .Remote.AudioCollectionResponse.CoverArt coverArt = 4; inline bool has_coverart() const; inline void clear_coverart(); static const int kCoverArtFieldNumber = 4; - inline const ::CoverArt& coverart() const; - inline ::CoverArt* mutable_coverart(); - inline ::CoverArt* release_coverart(); - inline void set_allocated_coverart(::CoverArt* coverart); + inline const ::Remote::AudioCollectionResponse_CoverArt& coverart() const; + inline ::Remote::AudioCollectionResponse_CoverArt* mutable_coverart(); + inline ::Remote::AudioCollectionResponse_CoverArt* release_coverart(); + inline void set_allocated_coverart(::Remote::AudioCollectionResponse_CoverArt* coverart); - // @@protoc_insertion_point(class_scope:Release) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Release) private: inline void set_has_name(); inline void clear_has_name(); @@ -1723,7 +1557,7 @@ class Release : public ::google::protobuf::Message { ::std::string* name_; ::google::protobuf::uint32 nb_tracks_; ::google::protobuf::uint32 duration_secs_; - ::CoverArt* coverart_; + ::Remote::AudioCollectionResponse_CoverArt* coverart_; mutable int _cached_size_; ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32]; @@ -1733,18 +1567,18 @@ class Release : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static Release* default_instance_; + static AudioCollectionResponse_Release* default_instance_; }; // ------------------------------------------------------------------- -class Track : public ::google::protobuf::Message { +class AudioCollectionResponse_Track : public ::google::protobuf::Message { public: - Track(); - virtual ~Track(); + AudioCollectionResponse_Track(); + virtual ~AudioCollectionResponse_Track(); - Track(const Track& from); + AudioCollectionResponse_Track(const AudioCollectionResponse_Track& from); - inline Track& operator=(const Track& from) { + inline AudioCollectionResponse_Track& operator=(const AudioCollectionResponse_Track& from) { CopyFrom(from); return *this; } @@ -1758,17 +1592,17 @@ class Track : public ::google::protobuf::Message { } static const ::google::protobuf::Descriptor* descriptor(); - static const Track& default_instance(); + static const AudioCollectionResponse_Track& default_instance(); - void Swap(Track* other); + void Swap(AudioCollectionResponse_Track* other); // implements Message ---------------------------------------------- - Track* New() const; + AudioCollectionResponse_Track* New() const; void CopyFrom(const ::google::protobuf::Message& from); void MergeFrom(const ::google::protobuf::Message& from); - void CopyFrom(const Track& from); - void MergeFrom(const Track& from); + void CopyFrom(const AudioCollectionResponse_Track& from); + void MergeFrom(const AudioCollectionResponse_Track& from); void Clear(); bool IsInitialized() const; @@ -1907,7 +1741,7 @@ class Track : public ::google::protobuf::Message { inline ::std::string* release_coverart(); inline void set_allocated_coverart(::std::string* coverart); - // @@protoc_insertion_point(class_scope:Track) + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse.Track) private: inline void set_has_media_id(); inline void clear_has_media_id(); @@ -1952,63 +1786,241 @@ class Track : public ::google::protobuf::Message { friend void protobuf_ShutdownFile_collection_2eproto(); void InitAsDefaultInstance(); - static Track* default_instance_; + 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_GenreList GenreList; + typedef AudioCollectionResponse_ArtistList ArtistList; + typedef AudioCollectionResponse_ReleaseList ReleaseList; + typedef AudioCollectionResponse_TrackList TrackList; + typedef AudioCollectionResponse_Genre Genre; + typedef AudioCollectionResponse_CoverArt CoverArt; + typedef AudioCollectionResponse_Artist Artist; + typedef AudioCollectionResponse_Release Release; + typedef AudioCollectionResponse_Track Track; + + typedef AudioCollectionResponse_Type Type; + 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 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.Error error = 1; + inline bool has_error() const; + inline void clear_error(); + static const int kErrorFieldNumber = 1; + inline const ::Remote::Error& error() const; + inline ::Remote::Error* mutable_error(); + inline ::Remote::Error* release_error(); + inline void set_allocated_error(::Remote::Error* error); + + // optional .Remote.AudioCollectionResponse.Type type = 2; + inline bool has_type() const; + inline void clear_type(); + static const int kTypeFieldNumber = 2; + inline ::Remote::AudioCollectionResponse_Type type() const; + inline void set_type(::Remote::AudioCollectionResponse_Type value); + + // 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); + + // @@protoc_insertion_point(class_scope:Remote.AudioCollectionResponse) + private: + inline void set_has_error(); + inline void clear_has_error(); + inline void set_has_type(); + inline void clear_has_type(); + 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::Error* error_; + ::Remote::AudioCollectionResponse_GenreList* genre_list_; + ::Remote::AudioCollectionResponse_ArtistList* artist_list_; + ::Remote::AudioCollectionResponse_ReleaseList* release_list_; + ::Remote::AudioCollectionResponse_TrackList* track_list_; + int type_; + + mutable int _cached_size_; + ::google::protobuf::uint32 _has_bits_[(6 + 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_; }; // =================================================================== // =================================================================== -// CollectionRequest_GetGenreList +// AudioCollectionRequest_GetGenreList // optional string filter_name = 1; -inline bool CollectionRequest_GetGenreList::has_filter_name() const { +inline bool AudioCollectionRequest_GetGenreList::has_filter_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void CollectionRequest_GetGenreList::set_has_filter_name() { +inline void AudioCollectionRequest_GetGenreList::set_has_filter_name() { _has_bits_[0] |= 0x00000001u; } -inline void CollectionRequest_GetGenreList::clear_has_filter_name() { +inline void AudioCollectionRequest_GetGenreList::clear_has_filter_name() { _has_bits_[0] &= ~0x00000001u; } -inline void CollectionRequest_GetGenreList::clear_filter_name() { +inline void AudioCollectionRequest_GetGenreList::clear_filter_name() { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { filter_name_->clear(); } clear_has_filter_name(); } -inline const ::std::string& CollectionRequest_GetGenreList::filter_name() const { +inline const ::std::string& AudioCollectionRequest_GetGenreList::filter_name() const { return *filter_name_; } -inline void CollectionRequest_GetGenreList::set_filter_name(const ::std::string& value) { +inline void AudioCollectionRequest_GetGenreList::set_filter_name(const ::std::string& value) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(value); } -inline void CollectionRequest_GetGenreList::set_filter_name(const char* value) { +inline void AudioCollectionRequest_GetGenreList::set_filter_name(const char* value) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(value); } -inline void CollectionRequest_GetGenreList::set_filter_name(const char* value, size_t size) { +inline void AudioCollectionRequest_GetGenreList::set_filter_name(const char* value, size_t size) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetGenreList::mutable_filter_name() { +inline ::std::string* AudioCollectionRequest_GetGenreList::mutable_filter_name() { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } return filter_name_; } -inline ::std::string* CollectionRequest_GetGenreList::release_filter_name() { +inline ::std::string* AudioCollectionRequest_GetGenreList::release_filter_name() { clear_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -2018,7 +2030,7 @@ inline ::std::string* CollectionRequest_GetGenreList::release_filter_name() { return temp; } } -inline void CollectionRequest_GetGenreList::set_allocated_filter_name(::std::string* filter_name) { +inline void AudioCollectionRequest_GetGenreList::set_allocated_filter_name(::std::string* filter_name) { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { delete filter_name_; } @@ -2032,79 +2044,79 @@ inline void CollectionRequest_GetGenreList::set_allocated_filter_name(::std::str } // optional uint32 preferred_batch_size = 2; -inline bool CollectionRequest_GetGenreList::has_preferred_batch_size() const { +inline bool AudioCollectionRequest_GetGenreList::has_preferred_batch_size() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void CollectionRequest_GetGenreList::set_has_preferred_batch_size() { +inline void AudioCollectionRequest_GetGenreList::set_has_preferred_batch_size() { _has_bits_[0] |= 0x00000002u; } -inline void CollectionRequest_GetGenreList::clear_has_preferred_batch_size() { +inline void AudioCollectionRequest_GetGenreList::clear_has_preferred_batch_size() { _has_bits_[0] &= ~0x00000002u; } -inline void CollectionRequest_GetGenreList::clear_preferred_batch_size() { +inline void AudioCollectionRequest_GetGenreList::clear_preferred_batch_size() { preferred_batch_size_ = 0u; clear_has_preferred_batch_size(); } -inline ::google::protobuf::uint32 CollectionRequest_GetGenreList::preferred_batch_size() const { +inline ::google::protobuf::uint32 AudioCollectionRequest_GetGenreList::preferred_batch_size() const { return preferred_batch_size_; } -inline void CollectionRequest_GetGenreList::set_preferred_batch_size(::google::protobuf::uint32 value) { +inline void AudioCollectionRequest_GetGenreList::set_preferred_batch_size(::google::protobuf::uint32 value) { set_has_preferred_batch_size(); preferred_batch_size_ = value; } // ------------------------------------------------------------------- -// CollectionRequest_GetArtistList +// AudioCollectionRequest_GetArtistList // optional string filter_name = 1; -inline bool CollectionRequest_GetArtistList::has_filter_name() const { +inline bool AudioCollectionRequest_GetArtistList::has_filter_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void CollectionRequest_GetArtistList::set_has_filter_name() { +inline void AudioCollectionRequest_GetArtistList::set_has_filter_name() { _has_bits_[0] |= 0x00000001u; } -inline void CollectionRequest_GetArtistList::clear_has_filter_name() { +inline void AudioCollectionRequest_GetArtistList::clear_has_filter_name() { _has_bits_[0] &= ~0x00000001u; } -inline void CollectionRequest_GetArtistList::clear_filter_name() { +inline void AudioCollectionRequest_GetArtistList::clear_filter_name() { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { filter_name_->clear(); } clear_has_filter_name(); } -inline const ::std::string& CollectionRequest_GetArtistList::filter_name() const { +inline const ::std::string& AudioCollectionRequest_GetArtistList::filter_name() const { return *filter_name_; } -inline void CollectionRequest_GetArtistList::set_filter_name(const ::std::string& value) { +inline void AudioCollectionRequest_GetArtistList::set_filter_name(const ::std::string& value) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(value); } -inline void CollectionRequest_GetArtistList::set_filter_name(const char* value) { +inline void AudioCollectionRequest_GetArtistList::set_filter_name(const char* value) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(value); } -inline void CollectionRequest_GetArtistList::set_filter_name(const char* value, size_t size) { +inline void AudioCollectionRequest_GetArtistList::set_filter_name(const char* value, size_t size) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetArtistList::mutable_filter_name() { +inline ::std::string* AudioCollectionRequest_GetArtistList::mutable_filter_name() { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } return filter_name_; } -inline ::std::string* CollectionRequest_GetArtistList::release_filter_name() { +inline ::std::string* AudioCollectionRequest_GetArtistList::release_filter_name() { clear_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -2114,7 +2126,7 @@ inline ::std::string* CollectionRequest_GetArtistList::release_filter_name() { return temp; } } -inline void CollectionRequest_GetArtistList::set_allocated_filter_name(::std::string* filter_name) { +inline void AudioCollectionRequest_GetArtistList::set_allocated_filter_name(::std::string* filter_name) { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { delete filter_name_; } @@ -2128,123 +2140,123 @@ inline void CollectionRequest_GetArtistList::set_allocated_filter_name(::std::st } // repeated string filter_genre = 2; -inline int CollectionRequest_GetArtistList::filter_genre_size() const { +inline int AudioCollectionRequest_GetArtistList::filter_genre_size() const { return filter_genre_.size(); } -inline void CollectionRequest_GetArtistList::clear_filter_genre() { +inline void AudioCollectionRequest_GetArtistList::clear_filter_genre() { filter_genre_.Clear(); } -inline const ::std::string& CollectionRequest_GetArtistList::filter_genre(int index) const { +inline const ::std::string& AudioCollectionRequest_GetArtistList::filter_genre(int index) const { return filter_genre_.Get(index); } -inline ::std::string* CollectionRequest_GetArtistList::mutable_filter_genre(int index) { +inline ::std::string* AudioCollectionRequest_GetArtistList::mutable_filter_genre(int index) { return filter_genre_.Mutable(index); } -inline void CollectionRequest_GetArtistList::set_filter_genre(int index, const ::std::string& value) { +inline void AudioCollectionRequest_GetArtistList::set_filter_genre(int index, const ::std::string& value) { filter_genre_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetArtistList::set_filter_genre(int index, const char* value) { +inline void AudioCollectionRequest_GetArtistList::set_filter_genre(int index, const char* value) { filter_genre_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetArtistList::set_filter_genre(int index, const char* value, size_t size) { +inline void AudioCollectionRequest_GetArtistList::set_filter_genre(int index, const char* value, size_t size) { filter_genre_.Mutable(index)->assign( reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetArtistList::add_filter_genre() { +inline ::std::string* AudioCollectionRequest_GetArtistList::add_filter_genre() { return filter_genre_.Add(); } -inline void CollectionRequest_GetArtistList::add_filter_genre(const ::std::string& value) { +inline void AudioCollectionRequest_GetArtistList::add_filter_genre(const ::std::string& value) { filter_genre_.Add()->assign(value); } -inline void CollectionRequest_GetArtistList::add_filter_genre(const char* value) { +inline void AudioCollectionRequest_GetArtistList::add_filter_genre(const char* value) { filter_genre_.Add()->assign(value); } -inline void CollectionRequest_GetArtistList::add_filter_genre(const char* value, size_t size) { +inline void AudioCollectionRequest_GetArtistList::add_filter_genre(const char* value, size_t size) { filter_genre_.Add()->assign(reinterpret_cast(value), size); } inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionRequest_GetArtistList::filter_genre() const { +AudioCollectionRequest_GetArtistList::filter_genre() const { return filter_genre_; } inline ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionRequest_GetArtistList::mutable_filter_genre() { +AudioCollectionRequest_GetArtistList::mutable_filter_genre() { return &filter_genre_; } // optional uint32 preferred_batch_size = 3; -inline bool CollectionRequest_GetArtistList::has_preferred_batch_size() const { +inline bool AudioCollectionRequest_GetArtistList::has_preferred_batch_size() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void CollectionRequest_GetArtistList::set_has_preferred_batch_size() { +inline void AudioCollectionRequest_GetArtistList::set_has_preferred_batch_size() { _has_bits_[0] |= 0x00000004u; } -inline void CollectionRequest_GetArtistList::clear_has_preferred_batch_size() { +inline void AudioCollectionRequest_GetArtistList::clear_has_preferred_batch_size() { _has_bits_[0] &= ~0x00000004u; } -inline void CollectionRequest_GetArtistList::clear_preferred_batch_size() { +inline void AudioCollectionRequest_GetArtistList::clear_preferred_batch_size() { preferred_batch_size_ = 0u; clear_has_preferred_batch_size(); } -inline ::google::protobuf::uint32 CollectionRequest_GetArtistList::preferred_batch_size() const { +inline ::google::protobuf::uint32 AudioCollectionRequest_GetArtistList::preferred_batch_size() const { return preferred_batch_size_; } -inline void CollectionRequest_GetArtistList::set_preferred_batch_size(::google::protobuf::uint32 value) { +inline void AudioCollectionRequest_GetArtistList::set_preferred_batch_size(::google::protobuf::uint32 value) { set_has_preferred_batch_size(); preferred_batch_size_ = value; } // ------------------------------------------------------------------- -// CollectionRequest_GetReleaseList +// AudioCollectionRequest_GetReleaseList // optional string filter_name = 1; -inline bool CollectionRequest_GetReleaseList::has_filter_name() const { +inline bool AudioCollectionRequest_GetReleaseList::has_filter_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void CollectionRequest_GetReleaseList::set_has_filter_name() { +inline void AudioCollectionRequest_GetReleaseList::set_has_filter_name() { _has_bits_[0] |= 0x00000001u; } -inline void CollectionRequest_GetReleaseList::clear_has_filter_name() { +inline void AudioCollectionRequest_GetReleaseList::clear_has_filter_name() { _has_bits_[0] &= ~0x00000001u; } -inline void CollectionRequest_GetReleaseList::clear_filter_name() { +inline void AudioCollectionRequest_GetReleaseList::clear_filter_name() { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { filter_name_->clear(); } clear_has_filter_name(); } -inline const ::std::string& CollectionRequest_GetReleaseList::filter_name() const { +inline const ::std::string& AudioCollectionRequest_GetReleaseList::filter_name() const { return *filter_name_; } -inline void CollectionRequest_GetReleaseList::set_filter_name(const ::std::string& value) { +inline void AudioCollectionRequest_GetReleaseList::set_filter_name(const ::std::string& value) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(value); } -inline void CollectionRequest_GetReleaseList::set_filter_name(const char* value) { +inline void AudioCollectionRequest_GetReleaseList::set_filter_name(const char* value) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(value); } -inline void CollectionRequest_GetReleaseList::set_filter_name(const char* value, size_t size) { +inline void AudioCollectionRequest_GetReleaseList::set_filter_name(const char* value, size_t size) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetReleaseList::mutable_filter_name() { +inline ::std::string* AudioCollectionRequest_GetReleaseList::mutable_filter_name() { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } return filter_name_; } -inline ::std::string* CollectionRequest_GetReleaseList::release_filter_name() { +inline ::std::string* AudioCollectionRequest_GetReleaseList::release_filter_name() { clear_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -2254,7 +2266,7 @@ inline ::std::string* CollectionRequest_GetReleaseList::release_filter_name() { return temp; } } -inline void CollectionRequest_GetReleaseList::set_allocated_filter_name(::std::string* filter_name) { +inline void AudioCollectionRequest_GetReleaseList::set_allocated_filter_name(::std::string* filter_name) { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { delete filter_name_; } @@ -2268,189 +2280,189 @@ inline void CollectionRequest_GetReleaseList::set_allocated_filter_name(::std::s } // repeated string artist_name = 2; -inline int CollectionRequest_GetReleaseList::artist_name_size() const { +inline int AudioCollectionRequest_GetReleaseList::artist_name_size() const { return artist_name_.size(); } -inline void CollectionRequest_GetReleaseList::clear_artist_name() { +inline void AudioCollectionRequest_GetReleaseList::clear_artist_name() { artist_name_.Clear(); } -inline const ::std::string& CollectionRequest_GetReleaseList::artist_name(int index) const { +inline const ::std::string& AudioCollectionRequest_GetReleaseList::artist_name(int index) const { return artist_name_.Get(index); } -inline ::std::string* CollectionRequest_GetReleaseList::mutable_artist_name(int index) { +inline ::std::string* AudioCollectionRequest_GetReleaseList::mutable_artist_name(int index) { return artist_name_.Mutable(index); } -inline void CollectionRequest_GetReleaseList::set_artist_name(int index, const ::std::string& value) { +inline void AudioCollectionRequest_GetReleaseList::set_artist_name(int index, const ::std::string& value) { artist_name_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetReleaseList::set_artist_name(int index, const char* value) { +inline void AudioCollectionRequest_GetReleaseList::set_artist_name(int index, const char* value) { artist_name_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetReleaseList::set_artist_name(int index, const char* value, size_t size) { +inline void AudioCollectionRequest_GetReleaseList::set_artist_name(int index, const char* value, size_t size) { artist_name_.Mutable(index)->assign( reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetReleaseList::add_artist_name() { +inline ::std::string* AudioCollectionRequest_GetReleaseList::add_artist_name() { return artist_name_.Add(); } -inline void CollectionRequest_GetReleaseList::add_artist_name(const ::std::string& value) { +inline void AudioCollectionRequest_GetReleaseList::add_artist_name(const ::std::string& value) { artist_name_.Add()->assign(value); } -inline void CollectionRequest_GetReleaseList::add_artist_name(const char* value) { +inline void AudioCollectionRequest_GetReleaseList::add_artist_name(const char* value) { artist_name_.Add()->assign(value); } -inline void CollectionRequest_GetReleaseList::add_artist_name(const char* value, size_t size) { +inline void AudioCollectionRequest_GetReleaseList::add_artist_name(const char* value, size_t size) { artist_name_.Add()->assign(reinterpret_cast(value), size); } inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionRequest_GetReleaseList::artist_name() const { +AudioCollectionRequest_GetReleaseList::artist_name() const { return artist_name_; } inline ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionRequest_GetReleaseList::mutable_artist_name() { +AudioCollectionRequest_GetReleaseList::mutable_artist_name() { return &artist_name_; } // repeated string filter_genre = 3; -inline int CollectionRequest_GetReleaseList::filter_genre_size() const { +inline int AudioCollectionRequest_GetReleaseList::filter_genre_size() const { return filter_genre_.size(); } -inline void CollectionRequest_GetReleaseList::clear_filter_genre() { +inline void AudioCollectionRequest_GetReleaseList::clear_filter_genre() { filter_genre_.Clear(); } -inline const ::std::string& CollectionRequest_GetReleaseList::filter_genre(int index) const { +inline const ::std::string& AudioCollectionRequest_GetReleaseList::filter_genre(int index) const { return filter_genre_.Get(index); } -inline ::std::string* CollectionRequest_GetReleaseList::mutable_filter_genre(int index) { +inline ::std::string* AudioCollectionRequest_GetReleaseList::mutable_filter_genre(int index) { return filter_genre_.Mutable(index); } -inline void CollectionRequest_GetReleaseList::set_filter_genre(int index, const ::std::string& value) { +inline void AudioCollectionRequest_GetReleaseList::set_filter_genre(int index, const ::std::string& value) { filter_genre_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetReleaseList::set_filter_genre(int index, const char* value) { +inline void AudioCollectionRequest_GetReleaseList::set_filter_genre(int index, const char* value) { filter_genre_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetReleaseList::set_filter_genre(int index, const char* value, size_t size) { +inline void AudioCollectionRequest_GetReleaseList::set_filter_genre(int index, const char* value, size_t size) { filter_genre_.Mutable(index)->assign( reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetReleaseList::add_filter_genre() { +inline ::std::string* AudioCollectionRequest_GetReleaseList::add_filter_genre() { return filter_genre_.Add(); } -inline void CollectionRequest_GetReleaseList::add_filter_genre(const ::std::string& value) { +inline void AudioCollectionRequest_GetReleaseList::add_filter_genre(const ::std::string& value) { filter_genre_.Add()->assign(value); } -inline void CollectionRequest_GetReleaseList::add_filter_genre(const char* value) { +inline void AudioCollectionRequest_GetReleaseList::add_filter_genre(const char* value) { filter_genre_.Add()->assign(value); } -inline void CollectionRequest_GetReleaseList::add_filter_genre(const char* value, size_t size) { +inline void AudioCollectionRequest_GetReleaseList::add_filter_genre(const char* value, size_t size) { filter_genre_.Add()->assign(reinterpret_cast(value), size); } inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionRequest_GetReleaseList::filter_genre() const { +AudioCollectionRequest_GetReleaseList::filter_genre() const { return filter_genre_; } inline ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionRequest_GetReleaseList::mutable_filter_genre() { +AudioCollectionRequest_GetReleaseList::mutable_filter_genre() { return &filter_genre_; } // optional bool get_cover = 4; -inline bool CollectionRequest_GetReleaseList::has_get_cover() const { +inline bool AudioCollectionRequest_GetReleaseList::has_get_cover() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void CollectionRequest_GetReleaseList::set_has_get_cover() { +inline void AudioCollectionRequest_GetReleaseList::set_has_get_cover() { _has_bits_[0] |= 0x00000008u; } -inline void CollectionRequest_GetReleaseList::clear_has_get_cover() { +inline void AudioCollectionRequest_GetReleaseList::clear_has_get_cover() { _has_bits_[0] &= ~0x00000008u; } -inline void CollectionRequest_GetReleaseList::clear_get_cover() { +inline void AudioCollectionRequest_GetReleaseList::clear_get_cover() { get_cover_ = false; clear_has_get_cover(); } -inline bool CollectionRequest_GetReleaseList::get_cover() const { +inline bool AudioCollectionRequest_GetReleaseList::get_cover() const { return get_cover_; } -inline void CollectionRequest_GetReleaseList::set_get_cover(bool value) { +inline void AudioCollectionRequest_GetReleaseList::set_get_cover(bool value) { set_has_get_cover(); get_cover_ = value; } // optional uint32 preferred_batch_size = 5; -inline bool CollectionRequest_GetReleaseList::has_preferred_batch_size() const { +inline bool AudioCollectionRequest_GetReleaseList::has_preferred_batch_size() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void CollectionRequest_GetReleaseList::set_has_preferred_batch_size() { +inline void AudioCollectionRequest_GetReleaseList::set_has_preferred_batch_size() { _has_bits_[0] |= 0x00000010u; } -inline void CollectionRequest_GetReleaseList::clear_has_preferred_batch_size() { +inline void AudioCollectionRequest_GetReleaseList::clear_has_preferred_batch_size() { _has_bits_[0] &= ~0x00000010u; } -inline void CollectionRequest_GetReleaseList::clear_preferred_batch_size() { +inline void AudioCollectionRequest_GetReleaseList::clear_preferred_batch_size() { preferred_batch_size_ = 0u; clear_has_preferred_batch_size(); } -inline ::google::protobuf::uint32 CollectionRequest_GetReleaseList::preferred_batch_size() const { +inline ::google::protobuf::uint32 AudioCollectionRequest_GetReleaseList::preferred_batch_size() const { return preferred_batch_size_; } -inline void CollectionRequest_GetReleaseList::set_preferred_batch_size(::google::protobuf::uint32 value) { +inline void AudioCollectionRequest_GetReleaseList::set_preferred_batch_size(::google::protobuf::uint32 value) { set_has_preferred_batch_size(); preferred_batch_size_ = value; } // ------------------------------------------------------------------- -// CollectionRequest_GetTrackList +// AudioCollectionRequest_GetTrackList // optional string filter_name = 1; -inline bool CollectionRequest_GetTrackList::has_filter_name() const { +inline bool AudioCollectionRequest_GetTrackList::has_filter_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void CollectionRequest_GetTrackList::set_has_filter_name() { +inline void AudioCollectionRequest_GetTrackList::set_has_filter_name() { _has_bits_[0] |= 0x00000001u; } -inline void CollectionRequest_GetTrackList::clear_has_filter_name() { +inline void AudioCollectionRequest_GetTrackList::clear_has_filter_name() { _has_bits_[0] &= ~0x00000001u; } -inline void CollectionRequest_GetTrackList::clear_filter_name() { +inline void AudioCollectionRequest_GetTrackList::clear_filter_name() { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { filter_name_->clear(); } clear_has_filter_name(); } -inline const ::std::string& CollectionRequest_GetTrackList::filter_name() const { +inline const ::std::string& AudioCollectionRequest_GetTrackList::filter_name() const { return *filter_name_; } -inline void CollectionRequest_GetTrackList::set_filter_name(const ::std::string& value) { +inline void AudioCollectionRequest_GetTrackList::set_filter_name(const ::std::string& value) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(value); } -inline void CollectionRequest_GetTrackList::set_filter_name(const char* value) { +inline void AudioCollectionRequest_GetTrackList::set_filter_name(const char* value) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(value); } -inline void CollectionRequest_GetTrackList::set_filter_name(const char* value, size_t size) { +inline void AudioCollectionRequest_GetTrackList::set_filter_name(const char* value, size_t size) { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } filter_name_->assign(reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetTrackList::mutable_filter_name() { +inline ::std::string* AudioCollectionRequest_GetTrackList::mutable_filter_name() { set_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { filter_name_ = new ::std::string; } return filter_name_; } -inline ::std::string* CollectionRequest_GetTrackList::release_filter_name() { +inline ::std::string* AudioCollectionRequest_GetTrackList::release_filter_name() { clear_has_filter_name(); if (filter_name_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -2460,7 +2472,7 @@ inline ::std::string* CollectionRequest_GetTrackList::release_filter_name() { return temp; } } -inline void CollectionRequest_GetTrackList::set_allocated_filter_name(::std::string* filter_name) { +inline void AudioCollectionRequest_GetTrackList::set_allocated_filter_name(::std::string* filter_name) { if (filter_name_ != &::google::protobuf::internal::kEmptyString) { delete filter_name_; } @@ -2474,281 +2486,281 @@ inline void CollectionRequest_GetTrackList::set_allocated_filter_name(::std::str } // repeated string release_name = 2; -inline int CollectionRequest_GetTrackList::release_name_size() const { +inline int AudioCollectionRequest_GetTrackList::release_name_size() const { return release_name_.size(); } -inline void CollectionRequest_GetTrackList::clear_release_name() { +inline void AudioCollectionRequest_GetTrackList::clear_release_name() { release_name_.Clear(); } -inline const ::std::string& CollectionRequest_GetTrackList::release_name(int index) const { +inline const ::std::string& AudioCollectionRequest_GetTrackList::release_name(int index) const { return release_name_.Get(index); } -inline ::std::string* CollectionRequest_GetTrackList::mutable_release_name(int index) { +inline ::std::string* AudioCollectionRequest_GetTrackList::mutable_release_name(int index) { return release_name_.Mutable(index); } -inline void CollectionRequest_GetTrackList::set_release_name(int index, const ::std::string& value) { +inline void AudioCollectionRequest_GetTrackList::set_release_name(int index, const ::std::string& value) { release_name_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetTrackList::set_release_name(int index, const char* value) { +inline void AudioCollectionRequest_GetTrackList::set_release_name(int index, const char* value) { release_name_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetTrackList::set_release_name(int index, const char* value, size_t size) { +inline void AudioCollectionRequest_GetTrackList::set_release_name(int index, const char* value, size_t size) { release_name_.Mutable(index)->assign( reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetTrackList::add_release_name() { +inline ::std::string* AudioCollectionRequest_GetTrackList::add_release_name() { return release_name_.Add(); } -inline void CollectionRequest_GetTrackList::add_release_name(const ::std::string& value) { +inline void AudioCollectionRequest_GetTrackList::add_release_name(const ::std::string& value) { release_name_.Add()->assign(value); } -inline void CollectionRequest_GetTrackList::add_release_name(const char* value) { +inline void AudioCollectionRequest_GetTrackList::add_release_name(const char* value) { release_name_.Add()->assign(value); } -inline void CollectionRequest_GetTrackList::add_release_name(const char* value, size_t size) { +inline void AudioCollectionRequest_GetTrackList::add_release_name(const char* value, size_t size) { release_name_.Add()->assign(reinterpret_cast(value), size); } inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionRequest_GetTrackList::release_name() const { +AudioCollectionRequest_GetTrackList::release_name() const { return release_name_; } inline ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionRequest_GetTrackList::mutable_release_name() { +AudioCollectionRequest_GetTrackList::mutable_release_name() { return &release_name_; } // repeated string artist_name = 3; -inline int CollectionRequest_GetTrackList::artist_name_size() const { +inline int AudioCollectionRequest_GetTrackList::artist_name_size() const { return artist_name_.size(); } -inline void CollectionRequest_GetTrackList::clear_artist_name() { +inline void AudioCollectionRequest_GetTrackList::clear_artist_name() { artist_name_.Clear(); } -inline const ::std::string& CollectionRequest_GetTrackList::artist_name(int index) const { +inline const ::std::string& AudioCollectionRequest_GetTrackList::artist_name(int index) const { return artist_name_.Get(index); } -inline ::std::string* CollectionRequest_GetTrackList::mutable_artist_name(int index) { +inline ::std::string* AudioCollectionRequest_GetTrackList::mutable_artist_name(int index) { return artist_name_.Mutable(index); } -inline void CollectionRequest_GetTrackList::set_artist_name(int index, const ::std::string& value) { +inline void AudioCollectionRequest_GetTrackList::set_artist_name(int index, const ::std::string& value) { artist_name_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetTrackList::set_artist_name(int index, const char* value) { +inline void AudioCollectionRequest_GetTrackList::set_artist_name(int index, const char* value) { artist_name_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetTrackList::set_artist_name(int index, const char* value, size_t size) { +inline void AudioCollectionRequest_GetTrackList::set_artist_name(int index, const char* value, size_t size) { artist_name_.Mutable(index)->assign( reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetTrackList::add_artist_name() { +inline ::std::string* AudioCollectionRequest_GetTrackList::add_artist_name() { return artist_name_.Add(); } -inline void CollectionRequest_GetTrackList::add_artist_name(const ::std::string& value) { +inline void AudioCollectionRequest_GetTrackList::add_artist_name(const ::std::string& value) { artist_name_.Add()->assign(value); } -inline void CollectionRequest_GetTrackList::add_artist_name(const char* value) { +inline void AudioCollectionRequest_GetTrackList::add_artist_name(const char* value) { artist_name_.Add()->assign(value); } -inline void CollectionRequest_GetTrackList::add_artist_name(const char* value, size_t size) { +inline void AudioCollectionRequest_GetTrackList::add_artist_name(const char* value, size_t size) { artist_name_.Add()->assign(reinterpret_cast(value), size); } inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionRequest_GetTrackList::artist_name() const { +AudioCollectionRequest_GetTrackList::artist_name() const { return artist_name_; } inline ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionRequest_GetTrackList::mutable_artist_name() { +AudioCollectionRequest_GetTrackList::mutable_artist_name() { return &artist_name_; } // repeated string filter_genre = 4; -inline int CollectionRequest_GetTrackList::filter_genre_size() const { +inline int AudioCollectionRequest_GetTrackList::filter_genre_size() const { return filter_genre_.size(); } -inline void CollectionRequest_GetTrackList::clear_filter_genre() { +inline void AudioCollectionRequest_GetTrackList::clear_filter_genre() { filter_genre_.Clear(); } -inline const ::std::string& CollectionRequest_GetTrackList::filter_genre(int index) const { +inline const ::std::string& AudioCollectionRequest_GetTrackList::filter_genre(int index) const { return filter_genre_.Get(index); } -inline ::std::string* CollectionRequest_GetTrackList::mutable_filter_genre(int index) { +inline ::std::string* AudioCollectionRequest_GetTrackList::mutable_filter_genre(int index) { return filter_genre_.Mutable(index); } -inline void CollectionRequest_GetTrackList::set_filter_genre(int index, const ::std::string& value) { +inline void AudioCollectionRequest_GetTrackList::set_filter_genre(int index, const ::std::string& value) { filter_genre_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetTrackList::set_filter_genre(int index, const char* value) { +inline void AudioCollectionRequest_GetTrackList::set_filter_genre(int index, const char* value) { filter_genre_.Mutable(index)->assign(value); } -inline void CollectionRequest_GetTrackList::set_filter_genre(int index, const char* value, size_t size) { +inline void AudioCollectionRequest_GetTrackList::set_filter_genre(int index, const char* value, size_t size) { filter_genre_.Mutable(index)->assign( reinterpret_cast(value), size); } -inline ::std::string* CollectionRequest_GetTrackList::add_filter_genre() { +inline ::std::string* AudioCollectionRequest_GetTrackList::add_filter_genre() { return filter_genre_.Add(); } -inline void CollectionRequest_GetTrackList::add_filter_genre(const ::std::string& value) { +inline void AudioCollectionRequest_GetTrackList::add_filter_genre(const ::std::string& value) { filter_genre_.Add()->assign(value); } -inline void CollectionRequest_GetTrackList::add_filter_genre(const char* value) { +inline void AudioCollectionRequest_GetTrackList::add_filter_genre(const char* value) { filter_genre_.Add()->assign(value); } -inline void CollectionRequest_GetTrackList::add_filter_genre(const char* value, size_t size) { +inline void AudioCollectionRequest_GetTrackList::add_filter_genre(const char* value, size_t size) { filter_genre_.Add()->assign(reinterpret_cast(value), size); } inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -CollectionRequest_GetTrackList::filter_genre() const { +AudioCollectionRequest_GetTrackList::filter_genre() const { return filter_genre_; } inline ::google::protobuf::RepeatedPtrField< ::std::string>* -CollectionRequest_GetTrackList::mutable_filter_genre() { +AudioCollectionRequest_GetTrackList::mutable_filter_genre() { return &filter_genre_; } // optional uint32 disc_number = 5; -inline bool CollectionRequest_GetTrackList::has_disc_number() const { +inline bool AudioCollectionRequest_GetTrackList::has_disc_number() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void CollectionRequest_GetTrackList::set_has_disc_number() { +inline void AudioCollectionRequest_GetTrackList::set_has_disc_number() { _has_bits_[0] |= 0x00000010u; } -inline void CollectionRequest_GetTrackList::clear_has_disc_number() { +inline void AudioCollectionRequest_GetTrackList::clear_has_disc_number() { _has_bits_[0] &= ~0x00000010u; } -inline void CollectionRequest_GetTrackList::clear_disc_number() { +inline void AudioCollectionRequest_GetTrackList::clear_disc_number() { disc_number_ = 0u; clear_has_disc_number(); } -inline ::google::protobuf::uint32 CollectionRequest_GetTrackList::disc_number() const { +inline ::google::protobuf::uint32 AudioCollectionRequest_GetTrackList::disc_number() const { return disc_number_; } -inline void CollectionRequest_GetTrackList::set_disc_number(::google::protobuf::uint32 value) { +inline void AudioCollectionRequest_GetTrackList::set_disc_number(::google::protobuf::uint32 value) { set_has_disc_number(); disc_number_ = value; } // optional uint32 track_number = 6; -inline bool CollectionRequest_GetTrackList::has_track_number() const { +inline bool AudioCollectionRequest_GetTrackList::has_track_number() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void CollectionRequest_GetTrackList::set_has_track_number() { +inline void AudioCollectionRequest_GetTrackList::set_has_track_number() { _has_bits_[0] |= 0x00000020u; } -inline void CollectionRequest_GetTrackList::clear_has_track_number() { +inline void AudioCollectionRequest_GetTrackList::clear_has_track_number() { _has_bits_[0] &= ~0x00000020u; } -inline void CollectionRequest_GetTrackList::clear_track_number() { +inline void AudioCollectionRequest_GetTrackList::clear_track_number() { track_number_ = 0u; clear_has_track_number(); } -inline ::google::protobuf::uint32 CollectionRequest_GetTrackList::track_number() const { +inline ::google::protobuf::uint32 AudioCollectionRequest_GetTrackList::track_number() const { return track_number_; } -inline void CollectionRequest_GetTrackList::set_track_number(::google::protobuf::uint32 value) { +inline void AudioCollectionRequest_GetTrackList::set_track_number(::google::protobuf::uint32 value) { set_has_track_number(); track_number_ = value; } // optional bool get_cover = 7; -inline bool CollectionRequest_GetTrackList::has_get_cover() const { +inline bool AudioCollectionRequest_GetTrackList::has_get_cover() const { return (_has_bits_[0] & 0x00000040u) != 0; } -inline void CollectionRequest_GetTrackList::set_has_get_cover() { +inline void AudioCollectionRequest_GetTrackList::set_has_get_cover() { _has_bits_[0] |= 0x00000040u; } -inline void CollectionRequest_GetTrackList::clear_has_get_cover() { +inline void AudioCollectionRequest_GetTrackList::clear_has_get_cover() { _has_bits_[0] &= ~0x00000040u; } -inline void CollectionRequest_GetTrackList::clear_get_cover() { +inline void AudioCollectionRequest_GetTrackList::clear_get_cover() { get_cover_ = false; clear_has_get_cover(); } -inline bool CollectionRequest_GetTrackList::get_cover() const { +inline bool AudioCollectionRequest_GetTrackList::get_cover() const { return get_cover_; } -inline void CollectionRequest_GetTrackList::set_get_cover(bool value) { +inline void AudioCollectionRequest_GetTrackList::set_get_cover(bool value) { set_has_get_cover(); get_cover_ = value; } // optional uint32 preferred_batch_size = 8; -inline bool CollectionRequest_GetTrackList::has_preferred_batch_size() const { +inline bool AudioCollectionRequest_GetTrackList::has_preferred_batch_size() const { return (_has_bits_[0] & 0x00000080u) != 0; } -inline void CollectionRequest_GetTrackList::set_has_preferred_batch_size() { +inline void AudioCollectionRequest_GetTrackList::set_has_preferred_batch_size() { _has_bits_[0] |= 0x00000080u; } -inline void CollectionRequest_GetTrackList::clear_has_preferred_batch_size() { +inline void AudioCollectionRequest_GetTrackList::clear_has_preferred_batch_size() { _has_bits_[0] &= ~0x00000080u; } -inline void CollectionRequest_GetTrackList::clear_preferred_batch_size() { +inline void AudioCollectionRequest_GetTrackList::clear_preferred_batch_size() { preferred_batch_size_ = 0u; clear_has_preferred_batch_size(); } -inline ::google::protobuf::uint32 CollectionRequest_GetTrackList::preferred_batch_size() const { +inline ::google::protobuf::uint32 AudioCollectionRequest_GetTrackList::preferred_batch_size() const { return preferred_batch_size_; } -inline void CollectionRequest_GetTrackList::set_preferred_batch_size(::google::protobuf::uint32 value) { +inline void AudioCollectionRequest_GetTrackList::set_preferred_batch_size(::google::protobuf::uint32 value) { set_has_preferred_batch_size(); preferred_batch_size_ = value; } // ------------------------------------------------------------------- -// CollectionRequest +// AudioCollectionRequest -// required .CollectionRequest.Type type = 1; -inline bool CollectionRequest::has_type() const { +// required .Remote.AudioCollectionRequest.Type type = 1; +inline bool AudioCollectionRequest::has_type() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void CollectionRequest::set_has_type() { +inline void AudioCollectionRequest::set_has_type() { _has_bits_[0] |= 0x00000001u; } -inline void CollectionRequest::clear_has_type() { +inline void AudioCollectionRequest::clear_has_type() { _has_bits_[0] &= ~0x00000001u; } -inline void CollectionRequest::clear_type() { +inline void AudioCollectionRequest::clear_type() { type_ = 0; clear_has_type(); } -inline ::CollectionRequest_Type CollectionRequest::type() const { - return static_cast< ::CollectionRequest_Type >(type_); +inline ::Remote::AudioCollectionRequest_Type AudioCollectionRequest::type() const { + return static_cast< ::Remote::AudioCollectionRequest_Type >(type_); } -inline void CollectionRequest::set_type(::CollectionRequest_Type value) { - assert(::CollectionRequest_Type_IsValid(value)); +inline void AudioCollectionRequest::set_type(::Remote::AudioCollectionRequest_Type value) { + assert(::Remote::AudioCollectionRequest_Type_IsValid(value)); set_has_type(); type_ = value; } -// optional .CollectionRequest.GetGenreList get_genres = 2; -inline bool CollectionRequest::has_get_genres() const { +// optional .Remote.AudioCollectionRequest.GetGenreList get_genres = 2; +inline bool AudioCollectionRequest::has_get_genres() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void CollectionRequest::set_has_get_genres() { +inline void AudioCollectionRequest::set_has_get_genres() { _has_bits_[0] |= 0x00000002u; } -inline void CollectionRequest::clear_has_get_genres() { +inline void AudioCollectionRequest::clear_has_get_genres() { _has_bits_[0] &= ~0x00000002u; } -inline void CollectionRequest::clear_get_genres() { - if (get_genres_ != NULL) get_genres_->::CollectionRequest_GetGenreList::Clear(); +inline void AudioCollectionRequest::clear_get_genres() { + if (get_genres_ != NULL) get_genres_->::Remote::AudioCollectionRequest_GetGenreList::Clear(); clear_has_get_genres(); } -inline const ::CollectionRequest_GetGenreList& CollectionRequest::get_genres() const { +inline const ::Remote::AudioCollectionRequest_GetGenreList& AudioCollectionRequest::get_genres() const { return get_genres_ != NULL ? *get_genres_ : *default_instance_->get_genres_; } -inline ::CollectionRequest_GetGenreList* CollectionRequest::mutable_get_genres() { +inline ::Remote::AudioCollectionRequest_GetGenreList* AudioCollectionRequest::mutable_get_genres() { set_has_get_genres(); - if (get_genres_ == NULL) get_genres_ = new ::CollectionRequest_GetGenreList; + if (get_genres_ == NULL) get_genres_ = new ::Remote::AudioCollectionRequest_GetGenreList; return get_genres_; } -inline ::CollectionRequest_GetGenreList* CollectionRequest::release_get_genres() { +inline ::Remote::AudioCollectionRequest_GetGenreList* AudioCollectionRequest::release_get_genres() { clear_has_get_genres(); - ::CollectionRequest_GetGenreList* temp = get_genres_; + ::Remote::AudioCollectionRequest_GetGenreList* temp = get_genres_; get_genres_ = NULL; return temp; } -inline void CollectionRequest::set_allocated_get_genres(::CollectionRequest_GetGenreList* get_genres) { +inline void AudioCollectionRequest::set_allocated_get_genres(::Remote::AudioCollectionRequest_GetGenreList* get_genres) { delete get_genres_; get_genres_ = get_genres; if (get_genres) { @@ -2758,35 +2770,35 @@ inline void CollectionRequest::set_allocated_get_genres(::CollectionRequest_GetG } } -// optional .CollectionRequest.GetArtistList get_artists = 3; -inline bool CollectionRequest::has_get_artists() const { +// optional .Remote.AudioCollectionRequest.GetArtistList get_artists = 3; +inline bool AudioCollectionRequest::has_get_artists() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void CollectionRequest::set_has_get_artists() { +inline void AudioCollectionRequest::set_has_get_artists() { _has_bits_[0] |= 0x00000004u; } -inline void CollectionRequest::clear_has_get_artists() { +inline void AudioCollectionRequest::clear_has_get_artists() { _has_bits_[0] &= ~0x00000004u; } -inline void CollectionRequest::clear_get_artists() { - if (get_artists_ != NULL) get_artists_->::CollectionRequest_GetArtistList::Clear(); +inline void AudioCollectionRequest::clear_get_artists() { + if (get_artists_ != NULL) get_artists_->::Remote::AudioCollectionRequest_GetArtistList::Clear(); clear_has_get_artists(); } -inline const ::CollectionRequest_GetArtistList& CollectionRequest::get_artists() const { +inline const ::Remote::AudioCollectionRequest_GetArtistList& AudioCollectionRequest::get_artists() const { return get_artists_ != NULL ? *get_artists_ : *default_instance_->get_artists_; } -inline ::CollectionRequest_GetArtistList* CollectionRequest::mutable_get_artists() { +inline ::Remote::AudioCollectionRequest_GetArtistList* AudioCollectionRequest::mutable_get_artists() { set_has_get_artists(); - if (get_artists_ == NULL) get_artists_ = new ::CollectionRequest_GetArtistList; + if (get_artists_ == NULL) get_artists_ = new ::Remote::AudioCollectionRequest_GetArtistList; return get_artists_; } -inline ::CollectionRequest_GetArtistList* CollectionRequest::release_get_artists() { +inline ::Remote::AudioCollectionRequest_GetArtistList* AudioCollectionRequest::release_get_artists() { clear_has_get_artists(); - ::CollectionRequest_GetArtistList* temp = get_artists_; + ::Remote::AudioCollectionRequest_GetArtistList* temp = get_artists_; get_artists_ = NULL; return temp; } -inline void CollectionRequest::set_allocated_get_artists(::CollectionRequest_GetArtistList* get_artists) { +inline void AudioCollectionRequest::set_allocated_get_artists(::Remote::AudioCollectionRequest_GetArtistList* get_artists) { delete get_artists_; get_artists_ = get_artists; if (get_artists) { @@ -2796,35 +2808,35 @@ inline void CollectionRequest::set_allocated_get_artists(::CollectionRequest_Get } } -// optional .CollectionRequest.GetReleaseList get_releases = 4; -inline bool CollectionRequest::has_get_releases() const { +// optional .Remote.AudioCollectionRequest.GetReleaseList get_releases = 4; +inline bool AudioCollectionRequest::has_get_releases() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void CollectionRequest::set_has_get_releases() { +inline void AudioCollectionRequest::set_has_get_releases() { _has_bits_[0] |= 0x00000008u; } -inline void CollectionRequest::clear_has_get_releases() { +inline void AudioCollectionRequest::clear_has_get_releases() { _has_bits_[0] &= ~0x00000008u; } -inline void CollectionRequest::clear_get_releases() { - if (get_releases_ != NULL) get_releases_->::CollectionRequest_GetReleaseList::Clear(); +inline void AudioCollectionRequest::clear_get_releases() { + if (get_releases_ != NULL) get_releases_->::Remote::AudioCollectionRequest_GetReleaseList::Clear(); clear_has_get_releases(); } -inline const ::CollectionRequest_GetReleaseList& CollectionRequest::get_releases() const { +inline const ::Remote::AudioCollectionRequest_GetReleaseList& AudioCollectionRequest::get_releases() const { return get_releases_ != NULL ? *get_releases_ : *default_instance_->get_releases_; } -inline ::CollectionRequest_GetReleaseList* CollectionRequest::mutable_get_releases() { +inline ::Remote::AudioCollectionRequest_GetReleaseList* AudioCollectionRequest::mutable_get_releases() { set_has_get_releases(); - if (get_releases_ == NULL) get_releases_ = new ::CollectionRequest_GetReleaseList; + if (get_releases_ == NULL) get_releases_ = new ::Remote::AudioCollectionRequest_GetReleaseList; return get_releases_; } -inline ::CollectionRequest_GetReleaseList* CollectionRequest::release_get_releases() { +inline ::Remote::AudioCollectionRequest_GetReleaseList* AudioCollectionRequest::release_get_releases() { clear_has_get_releases(); - ::CollectionRequest_GetReleaseList* temp = get_releases_; + ::Remote::AudioCollectionRequest_GetReleaseList* temp = get_releases_; get_releases_ = NULL; return temp; } -inline void CollectionRequest::set_allocated_get_releases(::CollectionRequest_GetReleaseList* get_releases) { +inline void AudioCollectionRequest::set_allocated_get_releases(::Remote::AudioCollectionRequest_GetReleaseList* get_releases) { delete get_releases_; get_releases_ = get_releases; if (get_releases) { @@ -2834,35 +2846,35 @@ inline void CollectionRequest::set_allocated_get_releases(::CollectionRequest_Ge } } -// optional .CollectionRequest.GetTrackList get_tracks = 5; -inline bool CollectionRequest::has_get_tracks() const { +// optional .Remote.AudioCollectionRequest.GetTrackList get_tracks = 5; +inline bool AudioCollectionRequest::has_get_tracks() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void CollectionRequest::set_has_get_tracks() { +inline void AudioCollectionRequest::set_has_get_tracks() { _has_bits_[0] |= 0x00000010u; } -inline void CollectionRequest::clear_has_get_tracks() { +inline void AudioCollectionRequest::clear_has_get_tracks() { _has_bits_[0] &= ~0x00000010u; } -inline void CollectionRequest::clear_get_tracks() { - if (get_tracks_ != NULL) get_tracks_->::CollectionRequest_GetTrackList::Clear(); +inline void AudioCollectionRequest::clear_get_tracks() { + if (get_tracks_ != NULL) get_tracks_->::Remote::AudioCollectionRequest_GetTrackList::Clear(); clear_has_get_tracks(); } -inline const ::CollectionRequest_GetTrackList& CollectionRequest::get_tracks() const { +inline const ::Remote::AudioCollectionRequest_GetTrackList& AudioCollectionRequest::get_tracks() const { return get_tracks_ != NULL ? *get_tracks_ : *default_instance_->get_tracks_; } -inline ::CollectionRequest_GetTrackList* CollectionRequest::mutable_get_tracks() { +inline ::Remote::AudioCollectionRequest_GetTrackList* AudioCollectionRequest::mutable_get_tracks() { set_has_get_tracks(); - if (get_tracks_ == NULL) get_tracks_ = new ::CollectionRequest_GetTrackList; + if (get_tracks_ == NULL) get_tracks_ = new ::Remote::AudioCollectionRequest_GetTrackList; return get_tracks_; } -inline ::CollectionRequest_GetTrackList* CollectionRequest::release_get_tracks() { +inline ::Remote::AudioCollectionRequest_GetTrackList* AudioCollectionRequest::release_get_tracks() { clear_has_get_tracks(); - ::CollectionRequest_GetTrackList* temp = get_tracks_; + ::Remote::AudioCollectionRequest_GetTrackList* temp = get_tracks_; get_tracks_ = NULL; return temp; } -inline void CollectionRequest::set_allocated_get_tracks(::CollectionRequest_GetTrackList* get_tracks) { +inline void AudioCollectionRequest::set_allocated_get_tracks(::Remote::AudioCollectionRequest_GetTrackList* get_tracks) { delete get_tracks_; get_tracks_ = get_tracks; if (get_tracks) { @@ -2874,477 +2886,260 @@ inline void CollectionRequest::set_allocated_get_tracks(::CollectionRequest_GetT // ------------------------------------------------------------------- -// CollectionResponse - -// required .Error error = 1; -inline bool CollectionResponse::has_error() const { - return (_has_bits_[0] & 0x00000001u) != 0; -} -inline void CollectionResponse::set_has_error() { - _has_bits_[0] |= 0x00000001u; -} -inline void CollectionResponse::clear_has_error() { - _has_bits_[0] &= ~0x00000001u; -} -inline void CollectionResponse::clear_error() { - if (error_ != NULL) error_->::Error::Clear(); - clear_has_error(); -} -inline const ::Error& CollectionResponse::error() const { - return error_ != NULL ? *error_ : *default_instance_->error_; -} -inline ::Error* CollectionResponse::mutable_error() { - set_has_error(); - if (error_ == NULL) error_ = new ::Error; - return error_; -} -inline ::Error* CollectionResponse::release_error() { - clear_has_error(); - ::Error* temp = error_; - error_ = NULL; - return temp; -} -inline void CollectionResponse::set_allocated_error(::Error* error) { - delete error_; - error_ = error; - if (error) { - set_has_error(); - } else { - clear_has_error(); - } -} - -// optional .CollectionResponse.Type type = 2; -inline bool CollectionResponse::has_type() const { - return (_has_bits_[0] & 0x00000002u) != 0; -} -inline void CollectionResponse::set_has_type() { - _has_bits_[0] |= 0x00000002u; -} -inline void CollectionResponse::clear_has_type() { - _has_bits_[0] &= ~0x00000002u; -} -inline void CollectionResponse::clear_type() { - type_ = 1; - clear_has_type(); -} -inline ::CollectionResponse_Type CollectionResponse::type() const { - return static_cast< ::CollectionResponse_Type >(type_); -} -inline void CollectionResponse::set_type(::CollectionResponse_Type value) { - assert(::CollectionResponse_Type_IsValid(value)); - set_has_type(); - type_ = value; -} - -// optional .GenreList genre_list = 3; -inline bool CollectionResponse::has_genre_list() const { - return (_has_bits_[0] & 0x00000004u) != 0; -} -inline void CollectionResponse::set_has_genre_list() { - _has_bits_[0] |= 0x00000004u; -} -inline void CollectionResponse::clear_has_genre_list() { - _has_bits_[0] &= ~0x00000004u; -} -inline void CollectionResponse::clear_genre_list() { - if (genre_list_ != NULL) genre_list_->::GenreList::Clear(); - clear_has_genre_list(); -} -inline const ::GenreList& CollectionResponse::genre_list() const { - return genre_list_ != NULL ? *genre_list_ : *default_instance_->genre_list_; -} -inline ::GenreList* CollectionResponse::mutable_genre_list() { - set_has_genre_list(); - if (genre_list_ == NULL) genre_list_ = new ::GenreList; - return genre_list_; -} -inline ::GenreList* CollectionResponse::release_genre_list() { - clear_has_genre_list(); - ::GenreList* temp = genre_list_; - genre_list_ = NULL; - return temp; -} -inline void CollectionResponse::set_allocated_genre_list(::GenreList* genre_list) { - delete genre_list_; - genre_list_ = genre_list; - if (genre_list) { - set_has_genre_list(); - } else { - clear_has_genre_list(); - } -} - -// optional .ArtistList artist_list = 4; -inline bool CollectionResponse::has_artist_list() const { - return (_has_bits_[0] & 0x00000008u) != 0; -} -inline void CollectionResponse::set_has_artist_list() { - _has_bits_[0] |= 0x00000008u; -} -inline void CollectionResponse::clear_has_artist_list() { - _has_bits_[0] &= ~0x00000008u; -} -inline void CollectionResponse::clear_artist_list() { - if (artist_list_ != NULL) artist_list_->::ArtistList::Clear(); - clear_has_artist_list(); -} -inline const ::ArtistList& CollectionResponse::artist_list() const { - return artist_list_ != NULL ? *artist_list_ : *default_instance_->artist_list_; -} -inline ::ArtistList* CollectionResponse::mutable_artist_list() { - set_has_artist_list(); - if (artist_list_ == NULL) artist_list_ = new ::ArtistList; - return artist_list_; -} -inline ::ArtistList* CollectionResponse::release_artist_list() { - clear_has_artist_list(); - ::ArtistList* temp = artist_list_; - artist_list_ = NULL; - return temp; -} -inline void CollectionResponse::set_allocated_artist_list(::ArtistList* artist_list) { - delete artist_list_; - artist_list_ = artist_list; - if (artist_list) { - set_has_artist_list(); - } else { - clear_has_artist_list(); - } -} - -// optional .ReleaseList release_list = 5; -inline bool CollectionResponse::has_release_list() const { - return (_has_bits_[0] & 0x00000010u) != 0; -} -inline void CollectionResponse::set_has_release_list() { - _has_bits_[0] |= 0x00000010u; -} -inline void CollectionResponse::clear_has_release_list() { - _has_bits_[0] &= ~0x00000010u; -} -inline void CollectionResponse::clear_release_list() { - if (release_list_ != NULL) release_list_->::ReleaseList::Clear(); - clear_has_release_list(); -} -inline const ::ReleaseList& CollectionResponse::release_list() const { - return release_list_ != NULL ? *release_list_ : *default_instance_->release_list_; -} -inline ::ReleaseList* CollectionResponse::mutable_release_list() { - set_has_release_list(); - if (release_list_ == NULL) release_list_ = new ::ReleaseList; - return release_list_; -} -inline ::ReleaseList* CollectionResponse::release_release_list() { - clear_has_release_list(); - ::ReleaseList* temp = release_list_; - release_list_ = NULL; - return temp; -} -inline void CollectionResponse::set_allocated_release_list(::ReleaseList* release_list) { - delete release_list_; - release_list_ = release_list; - if (release_list) { - set_has_release_list(); - } else { - clear_has_release_list(); - } -} - -// optional .TrackList track_list = 6; -inline bool CollectionResponse::has_track_list() const { - return (_has_bits_[0] & 0x00000020u) != 0; -} -inline void CollectionResponse::set_has_track_list() { - _has_bits_[0] |= 0x00000020u; -} -inline void CollectionResponse::clear_has_track_list() { - _has_bits_[0] &= ~0x00000020u; -} -inline void CollectionResponse::clear_track_list() { - if (track_list_ != NULL) track_list_->::TrackList::Clear(); - clear_has_track_list(); -} -inline const ::TrackList& CollectionResponse::track_list() const { - return track_list_ != NULL ? *track_list_ : *default_instance_->track_list_; -} -inline ::TrackList* CollectionResponse::mutable_track_list() { - set_has_track_list(); - if (track_list_ == NULL) track_list_ = new ::TrackList; - return track_list_; -} -inline ::TrackList* CollectionResponse::release_track_list() { - clear_has_track_list(); - ::TrackList* temp = track_list_; - track_list_ = NULL; - return temp; -} -inline void CollectionResponse::set_allocated_track_list(::TrackList* track_list) { - delete track_list_; - track_list_ = track_list; - if (track_list) { - set_has_track_list(); - } else { - clear_has_track_list(); - } -} - -// ------------------------------------------------------------------- - -// GenreList +// AudioCollectionResponse_GenreList // required bool last = 1; -inline bool GenreList::has_last() const { +inline bool AudioCollectionResponse_GenreList::has_last() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void GenreList::set_has_last() { +inline void AudioCollectionResponse_GenreList::set_has_last() { _has_bits_[0] |= 0x00000001u; } -inline void GenreList::clear_has_last() { +inline void AudioCollectionResponse_GenreList::clear_has_last() { _has_bits_[0] &= ~0x00000001u; } -inline void GenreList::clear_last() { +inline void AudioCollectionResponse_GenreList::clear_last() { last_ = false; clear_has_last(); } -inline bool GenreList::last() const { +inline bool AudioCollectionResponse_GenreList::last() const { return last_; } -inline void GenreList::set_last(bool value) { +inline void AudioCollectionResponse_GenreList::set_last(bool value) { set_has_last(); last_ = value; } -// repeated .Genre genres = 2; -inline int GenreList::genres_size() const { +// repeated .Remote.AudioCollectionResponse.Genre genres = 2; +inline int AudioCollectionResponse_GenreList::genres_size() const { return genres_.size(); } -inline void GenreList::clear_genres() { +inline void AudioCollectionResponse_GenreList::clear_genres() { genres_.Clear(); } -inline const ::Genre& GenreList::genres(int index) const { +inline const ::Remote::AudioCollectionResponse_Genre& AudioCollectionResponse_GenreList::genres(int index) const { return genres_.Get(index); } -inline ::Genre* GenreList::mutable_genres(int index) { +inline ::Remote::AudioCollectionResponse_Genre* AudioCollectionResponse_GenreList::mutable_genres(int index) { return genres_.Mutable(index); } -inline ::Genre* GenreList::add_genres() { +inline ::Remote::AudioCollectionResponse_Genre* AudioCollectionResponse_GenreList::add_genres() { return genres_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::Genre >& -GenreList::genres() const { +inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre >& +AudioCollectionResponse_GenreList::genres() const { return genres_; } -inline ::google::protobuf::RepeatedPtrField< ::Genre >* -GenreList::mutable_genres() { +inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Genre >* +AudioCollectionResponse_GenreList::mutable_genres() { return &genres_; } // ------------------------------------------------------------------- -// ArtistList +// AudioCollectionResponse_ArtistList // required bool last = 1; -inline bool ArtistList::has_last() const { +inline bool AudioCollectionResponse_ArtistList::has_last() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ArtistList::set_has_last() { +inline void AudioCollectionResponse_ArtistList::set_has_last() { _has_bits_[0] |= 0x00000001u; } -inline void ArtistList::clear_has_last() { +inline void AudioCollectionResponse_ArtistList::clear_has_last() { _has_bits_[0] &= ~0x00000001u; } -inline void ArtistList::clear_last() { +inline void AudioCollectionResponse_ArtistList::clear_last() { last_ = false; clear_has_last(); } -inline bool ArtistList::last() const { +inline bool AudioCollectionResponse_ArtistList::last() const { return last_; } -inline void ArtistList::set_last(bool value) { +inline void AudioCollectionResponse_ArtistList::set_last(bool value) { set_has_last(); last_ = value; } -// repeated .Artist artists = 2; -inline int ArtistList::artists_size() const { +// repeated .Remote.AudioCollectionResponse.Artist artists = 2; +inline int AudioCollectionResponse_ArtistList::artists_size() const { return artists_.size(); } -inline void ArtistList::clear_artists() { +inline void AudioCollectionResponse_ArtistList::clear_artists() { artists_.Clear(); } -inline const ::Artist& ArtistList::artists(int index) const { +inline const ::Remote::AudioCollectionResponse_Artist& AudioCollectionResponse_ArtistList::artists(int index) const { return artists_.Get(index); } -inline ::Artist* ArtistList::mutable_artists(int index) { +inline ::Remote::AudioCollectionResponse_Artist* AudioCollectionResponse_ArtistList::mutable_artists(int index) { return artists_.Mutable(index); } -inline ::Artist* ArtistList::add_artists() { +inline ::Remote::AudioCollectionResponse_Artist* AudioCollectionResponse_ArtistList::add_artists() { return artists_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::Artist >& -ArtistList::artists() const { +inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist >& +AudioCollectionResponse_ArtistList::artists() const { return artists_; } -inline ::google::protobuf::RepeatedPtrField< ::Artist >* -ArtistList::mutable_artists() { +inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Artist >* +AudioCollectionResponse_ArtistList::mutable_artists() { return &artists_; } // ------------------------------------------------------------------- -// ReleaseList +// AudioCollectionResponse_ReleaseList // required bool last = 1; -inline bool ReleaseList::has_last() const { +inline bool AudioCollectionResponse_ReleaseList::has_last() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void ReleaseList::set_has_last() { +inline void AudioCollectionResponse_ReleaseList::set_has_last() { _has_bits_[0] |= 0x00000001u; } -inline void ReleaseList::clear_has_last() { +inline void AudioCollectionResponse_ReleaseList::clear_has_last() { _has_bits_[0] &= ~0x00000001u; } -inline void ReleaseList::clear_last() { +inline void AudioCollectionResponse_ReleaseList::clear_last() { last_ = false; clear_has_last(); } -inline bool ReleaseList::last() const { +inline bool AudioCollectionResponse_ReleaseList::last() const { return last_; } -inline void ReleaseList::set_last(bool value) { +inline void AudioCollectionResponse_ReleaseList::set_last(bool value) { set_has_last(); last_ = value; } -// repeated .Release releases = 2; -inline int ReleaseList::releases_size() const { +// repeated .Remote.AudioCollectionResponse.Release releases = 2; +inline int AudioCollectionResponse_ReleaseList::releases_size() const { return releases_.size(); } -inline void ReleaseList::clear_releases() { +inline void AudioCollectionResponse_ReleaseList::clear_releases() { releases_.Clear(); } -inline const ::Release& ReleaseList::releases(int index) const { +inline const ::Remote::AudioCollectionResponse_Release& AudioCollectionResponse_ReleaseList::releases(int index) const { return releases_.Get(index); } -inline ::Release* ReleaseList::mutable_releases(int index) { +inline ::Remote::AudioCollectionResponse_Release* AudioCollectionResponse_ReleaseList::mutable_releases(int index) { return releases_.Mutable(index); } -inline ::Release* ReleaseList::add_releases() { +inline ::Remote::AudioCollectionResponse_Release* AudioCollectionResponse_ReleaseList::add_releases() { return releases_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::Release >& -ReleaseList::releases() const { +inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release >& +AudioCollectionResponse_ReleaseList::releases() const { return releases_; } -inline ::google::protobuf::RepeatedPtrField< ::Release >* -ReleaseList::mutable_releases() { +inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Release >* +AudioCollectionResponse_ReleaseList::mutable_releases() { return &releases_; } // ------------------------------------------------------------------- -// TrackList +// AudioCollectionResponse_TrackList // required bool last = 1; -inline bool TrackList::has_last() const { +inline bool AudioCollectionResponse_TrackList::has_last() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void TrackList::set_has_last() { +inline void AudioCollectionResponse_TrackList::set_has_last() { _has_bits_[0] |= 0x00000001u; } -inline void TrackList::clear_has_last() { +inline void AudioCollectionResponse_TrackList::clear_has_last() { _has_bits_[0] &= ~0x00000001u; } -inline void TrackList::clear_last() { +inline void AudioCollectionResponse_TrackList::clear_last() { last_ = false; clear_has_last(); } -inline bool TrackList::last() const { +inline bool AudioCollectionResponse_TrackList::last() const { return last_; } -inline void TrackList::set_last(bool value) { +inline void AudioCollectionResponse_TrackList::set_last(bool value) { set_has_last(); last_ = value; } -// repeated .Track tracks = 2; -inline int TrackList::tracks_size() const { +// repeated .Remote.AudioCollectionResponse.Track tracks = 2; +inline int AudioCollectionResponse_TrackList::tracks_size() const { return tracks_.size(); } -inline void TrackList::clear_tracks() { +inline void AudioCollectionResponse_TrackList::clear_tracks() { tracks_.Clear(); } -inline const ::Track& TrackList::tracks(int index) const { +inline const ::Remote::AudioCollectionResponse_Track& AudioCollectionResponse_TrackList::tracks(int index) const { return tracks_.Get(index); } -inline ::Track* TrackList::mutable_tracks(int index) { +inline ::Remote::AudioCollectionResponse_Track* AudioCollectionResponse_TrackList::mutable_tracks(int index) { return tracks_.Mutable(index); } -inline ::Track* TrackList::add_tracks() { +inline ::Remote::AudioCollectionResponse_Track* AudioCollectionResponse_TrackList::add_tracks() { return tracks_.Add(); } -inline const ::google::protobuf::RepeatedPtrField< ::Track >& -TrackList::tracks() const { +inline const ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track >& +AudioCollectionResponse_TrackList::tracks() const { return tracks_; } -inline ::google::protobuf::RepeatedPtrField< ::Track >* -TrackList::mutable_tracks() { +inline ::google::protobuf::RepeatedPtrField< ::Remote::AudioCollectionResponse_Track >* +AudioCollectionResponse_TrackList::mutable_tracks() { return &tracks_; } // ------------------------------------------------------------------- -// Genre +// AudioCollectionResponse_Genre // required string name = 1; -inline bool Genre::has_name() const { +inline bool AudioCollectionResponse_Genre::has_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void Genre::set_has_name() { +inline void AudioCollectionResponse_Genre::set_has_name() { _has_bits_[0] |= 0x00000001u; } -inline void Genre::clear_has_name() { +inline void AudioCollectionResponse_Genre::clear_has_name() { _has_bits_[0] &= ~0x00000001u; } -inline void Genre::clear_name() { +inline void AudioCollectionResponse_Genre::clear_name() { if (name_ != &::google::protobuf::internal::kEmptyString) { name_->clear(); } clear_has_name(); } -inline const ::std::string& Genre::name() const { +inline const ::std::string& AudioCollectionResponse_Genre::name() const { return *name_; } -inline void Genre::set_name(const ::std::string& value) { +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 Genre::set_name(const char* 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 Genre::set_name(const char* value, size_t size) { +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* Genre::mutable_name() { +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* Genre::release_name() { +inline ::std::string* AudioCollectionResponse_Genre::release_name() { clear_has_name(); if (name_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -3354,7 +3149,7 @@ inline ::std::string* Genre::release_name() { return temp; } } -inline void Genre::set_allocated_name(::std::string* name) { +inline void AudioCollectionResponse_Genre::set_allocated_name(::std::string* name) { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } @@ -3369,56 +3164,56 @@ inline void Genre::set_allocated_name(::std::string* name) { // ------------------------------------------------------------------- -// CoverArt +// AudioCollectionResponse_CoverArt // optional string mime_type = 1; -inline bool CoverArt::has_mime_type() const { +inline bool AudioCollectionResponse_CoverArt::has_mime_type() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void CoverArt::set_has_mime_type() { +inline void AudioCollectionResponse_CoverArt::set_has_mime_type() { _has_bits_[0] |= 0x00000001u; } -inline void CoverArt::clear_has_mime_type() { +inline void AudioCollectionResponse_CoverArt::clear_has_mime_type() { _has_bits_[0] &= ~0x00000001u; } -inline void CoverArt::clear_mime_type() { +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& CoverArt::mime_type() const { +inline const ::std::string& AudioCollectionResponse_CoverArt::mime_type() const { return *mime_type_; } -inline void CoverArt::set_mime_type(const ::std::string& value) { +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 CoverArt::set_mime_type(const char* 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 CoverArt::set_mime_type(const char* value, size_t size) { +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* CoverArt::mutable_mime_type() { +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* CoverArt::release_mime_type() { +inline ::std::string* AudioCollectionResponse_CoverArt::release_mime_type() { clear_has_mime_type(); if (mime_type_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -3428,7 +3223,7 @@ inline ::std::string* CoverArt::release_mime_type() { return temp; } } -inline void CoverArt::set_allocated_mime_type(::std::string* mime_type) { +inline void AudioCollectionResponse_CoverArt::set_allocated_mime_type(::std::string* mime_type) { if (mime_type_ != &::google::protobuf::internal::kEmptyString) { delete mime_type_; } @@ -3442,101 +3237,101 @@ inline void CoverArt::set_allocated_mime_type(::std::string* mime_type) { } // repeated bytes data = 2; -inline int CoverArt::data_size() const { +inline int AudioCollectionResponse_CoverArt::data_size() const { return data_.size(); } -inline void CoverArt::clear_data() { +inline void AudioCollectionResponse_CoverArt::clear_data() { data_.Clear(); } -inline const ::std::string& CoverArt::data(int index) const { +inline const ::std::string& AudioCollectionResponse_CoverArt::data(int index) const { return data_.Get(index); } -inline ::std::string* CoverArt::mutable_data(int index) { +inline ::std::string* AudioCollectionResponse_CoverArt::mutable_data(int index) { return data_.Mutable(index); } -inline void CoverArt::set_data(int index, const ::std::string& value) { +inline void AudioCollectionResponse_CoverArt::set_data(int index, const ::std::string& value) { data_.Mutable(index)->assign(value); } -inline void CoverArt::set_data(int index, const char* value) { +inline void AudioCollectionResponse_CoverArt::set_data(int index, const char* value) { data_.Mutable(index)->assign(value); } -inline void CoverArt::set_data(int index, const void* value, size_t size) { +inline void AudioCollectionResponse_CoverArt::set_data(int index, const void* value, size_t size) { data_.Mutable(index)->assign( reinterpret_cast(value), size); } -inline ::std::string* CoverArt::add_data() { +inline ::std::string* AudioCollectionResponse_CoverArt::add_data() { return data_.Add(); } -inline void CoverArt::add_data(const ::std::string& value) { +inline void AudioCollectionResponse_CoverArt::add_data(const ::std::string& value) { data_.Add()->assign(value); } -inline void CoverArt::add_data(const char* value) { +inline void AudioCollectionResponse_CoverArt::add_data(const char* value) { data_.Add()->assign(value); } -inline void CoverArt::add_data(const void* value, size_t size) { +inline void AudioCollectionResponse_CoverArt::add_data(const void* value, size_t size) { data_.Add()->assign(reinterpret_cast(value), size); } inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -CoverArt::data() const { +AudioCollectionResponse_CoverArt::data() const { return data_; } inline ::google::protobuf::RepeatedPtrField< ::std::string>* -CoverArt::mutable_data() { +AudioCollectionResponse_CoverArt::mutable_data() { return &data_; } // ------------------------------------------------------------------- -// Artist +// AudioCollectionResponse_Artist // required string name = 1; -inline bool Artist::has_name() const { +inline bool AudioCollectionResponse_Artist::has_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void Artist::set_has_name() { +inline void AudioCollectionResponse_Artist::set_has_name() { _has_bits_[0] |= 0x00000001u; } -inline void Artist::clear_has_name() { +inline void AudioCollectionResponse_Artist::clear_has_name() { _has_bits_[0] &= ~0x00000001u; } -inline void Artist::clear_name() { +inline void AudioCollectionResponse_Artist::clear_name() { if (name_ != &::google::protobuf::internal::kEmptyString) { name_->clear(); } clear_has_name(); } -inline const ::std::string& Artist::name() const { +inline const ::std::string& AudioCollectionResponse_Artist::name() const { return *name_; } -inline void Artist::set_name(const ::std::string& value) { +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 Artist::set_name(const char* 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 Artist::set_name(const char* value, size_t size) { +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* Artist::mutable_name() { +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* Artist::release_name() { +inline ::std::string* AudioCollectionResponse_Artist::release_name() { clear_has_name(); if (name_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -3546,7 +3341,7 @@ inline ::std::string* Artist::release_name() { return temp; } } -inline void Artist::set_allocated_name(::std::string* name) { +inline void AudioCollectionResponse_Artist::set_allocated_name(::std::string* name) { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } @@ -3560,79 +3355,79 @@ inline void Artist::set_allocated_name(::std::string* name) { } // required uint32 nb_releases = 2; -inline bool Artist::has_nb_releases() const { +inline bool AudioCollectionResponse_Artist::has_nb_releases() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void Artist::set_has_nb_releases() { +inline void AudioCollectionResponse_Artist::set_has_nb_releases() { _has_bits_[0] |= 0x00000002u; } -inline void Artist::clear_has_nb_releases() { +inline void AudioCollectionResponse_Artist::clear_has_nb_releases() { _has_bits_[0] &= ~0x00000002u; } -inline void Artist::clear_nb_releases() { +inline void AudioCollectionResponse_Artist::clear_nb_releases() { nb_releases_ = 0u; clear_has_nb_releases(); } -inline ::google::protobuf::uint32 Artist::nb_releases() const { +inline ::google::protobuf::uint32 AudioCollectionResponse_Artist::nb_releases() const { return nb_releases_; } -inline void Artist::set_nb_releases(::google::protobuf::uint32 value) { +inline void AudioCollectionResponse_Artist::set_nb_releases(::google::protobuf::uint32 value) { set_has_nb_releases(); nb_releases_ = value; } // ------------------------------------------------------------------- -// Release +// AudioCollectionResponse_Release // required string name = 1; -inline bool Release::has_name() const { +inline bool AudioCollectionResponse_Release::has_name() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void Release::set_has_name() { +inline void AudioCollectionResponse_Release::set_has_name() { _has_bits_[0] |= 0x00000001u; } -inline void Release::clear_has_name() { +inline void AudioCollectionResponse_Release::clear_has_name() { _has_bits_[0] &= ~0x00000001u; } -inline void Release::clear_name() { +inline void AudioCollectionResponse_Release::clear_name() { if (name_ != &::google::protobuf::internal::kEmptyString) { name_->clear(); } clear_has_name(); } -inline const ::std::string& Release::name() const { +inline const ::std::string& AudioCollectionResponse_Release::name() const { return *name_; } -inline void Release::set_name(const ::std::string& value) { +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 Release::set_name(const char* 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 Release::set_name(const char* value, size_t size) { +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* Release::mutable_name() { +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* Release::release_name() { +inline ::std::string* AudioCollectionResponse_Release::release_name() { clear_has_name(); if (name_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -3642,7 +3437,7 @@ inline ::std::string* Release::release_name() { return temp; } } -inline void Release::set_allocated_name(::std::string* name) { +inline void AudioCollectionResponse_Release::set_allocated_name(::std::string* name) { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } @@ -3656,78 +3451,78 @@ inline void Release::set_allocated_name(::std::string* name) { } // required uint32 nb_tracks = 2; -inline bool Release::has_nb_tracks() const { +inline bool AudioCollectionResponse_Release::has_nb_tracks() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void Release::set_has_nb_tracks() { +inline void AudioCollectionResponse_Release::set_has_nb_tracks() { _has_bits_[0] |= 0x00000002u; } -inline void Release::clear_has_nb_tracks() { +inline void AudioCollectionResponse_Release::clear_has_nb_tracks() { _has_bits_[0] &= ~0x00000002u; } -inline void Release::clear_nb_tracks() { +inline void AudioCollectionResponse_Release::clear_nb_tracks() { nb_tracks_ = 0u; clear_has_nb_tracks(); } -inline ::google::protobuf::uint32 Release::nb_tracks() const { +inline ::google::protobuf::uint32 AudioCollectionResponse_Release::nb_tracks() const { return nb_tracks_; } -inline void Release::set_nb_tracks(::google::protobuf::uint32 value) { +inline void AudioCollectionResponse_Release::set_nb_tracks(::google::protobuf::uint32 value) { set_has_nb_tracks(); nb_tracks_ = value; } // required uint32 duration_secs = 3; -inline bool Release::has_duration_secs() const { +inline bool AudioCollectionResponse_Release::has_duration_secs() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void Release::set_has_duration_secs() { +inline void AudioCollectionResponse_Release::set_has_duration_secs() { _has_bits_[0] |= 0x00000004u; } -inline void Release::clear_has_duration_secs() { +inline void AudioCollectionResponse_Release::clear_has_duration_secs() { _has_bits_[0] &= ~0x00000004u; } -inline void Release::clear_duration_secs() { +inline void AudioCollectionResponse_Release::clear_duration_secs() { duration_secs_ = 0u; clear_has_duration_secs(); } -inline ::google::protobuf::uint32 Release::duration_secs() const { +inline ::google::protobuf::uint32 AudioCollectionResponse_Release::duration_secs() const { return duration_secs_; } -inline void Release::set_duration_secs(::google::protobuf::uint32 value) { +inline void AudioCollectionResponse_Release::set_duration_secs(::google::protobuf::uint32 value) { set_has_duration_secs(); duration_secs_ = value; } -// optional .CoverArt coverArt = 4; -inline bool Release::has_coverart() const { +// optional .Remote.AudioCollectionResponse.CoverArt coverArt = 4; +inline bool AudioCollectionResponse_Release::has_coverart() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void Release::set_has_coverart() { +inline void AudioCollectionResponse_Release::set_has_coverart() { _has_bits_[0] |= 0x00000008u; } -inline void Release::clear_has_coverart() { +inline void AudioCollectionResponse_Release::clear_has_coverart() { _has_bits_[0] &= ~0x00000008u; } -inline void Release::clear_coverart() { - if (coverart_ != NULL) coverart_->::CoverArt::Clear(); +inline void AudioCollectionResponse_Release::clear_coverart() { + if (coverart_ != NULL) coverart_->::Remote::AudioCollectionResponse_CoverArt::Clear(); clear_has_coverart(); } -inline const ::CoverArt& Release::coverart() const { +inline const ::Remote::AudioCollectionResponse_CoverArt& AudioCollectionResponse_Release::coverart() const { return coverart_ != NULL ? *coverart_ : *default_instance_->coverart_; } -inline ::CoverArt* Release::mutable_coverart() { +inline ::Remote::AudioCollectionResponse_CoverArt* AudioCollectionResponse_Release::mutable_coverart() { set_has_coverart(); - if (coverart_ == NULL) coverart_ = new ::CoverArt; + if (coverart_ == NULL) coverart_ = new ::Remote::AudioCollectionResponse_CoverArt; return coverart_; } -inline ::CoverArt* Release::release_coverart() { +inline ::Remote::AudioCollectionResponse_CoverArt* AudioCollectionResponse_Release::release_coverart() { clear_has_coverart(); - ::CoverArt* temp = coverart_; + ::Remote::AudioCollectionResponse_CoverArt* temp = coverart_; coverart_ = NULL; return temp; } -inline void Release::set_allocated_coverart(::CoverArt* coverart) { +inline void AudioCollectionResponse_Release::set_allocated_coverart(::Remote::AudioCollectionResponse_CoverArt* coverart) { delete coverart_; coverart_ = coverart; if (coverart) { @@ -3739,122 +3534,122 @@ inline void Release::set_allocated_coverart(::CoverArt* coverart) { // ------------------------------------------------------------------- -// Track +// AudioCollectionResponse_Track // required int64 media_id = 1; -inline bool Track::has_media_id() const { +inline bool AudioCollectionResponse_Track::has_media_id() const { return (_has_bits_[0] & 0x00000001u) != 0; } -inline void Track::set_has_media_id() { +inline void AudioCollectionResponse_Track::set_has_media_id() { _has_bits_[0] |= 0x00000001u; } -inline void Track::clear_has_media_id() { +inline void AudioCollectionResponse_Track::clear_has_media_id() { _has_bits_[0] &= ~0x00000001u; } -inline void Track::clear_media_id() { +inline void AudioCollectionResponse_Track::clear_media_id() { media_id_ = GOOGLE_LONGLONG(0); clear_has_media_id(); } -inline ::google::protobuf::int64 Track::media_id() const { +inline ::google::protobuf::int64 AudioCollectionResponse_Track::media_id() const { return media_id_; } -inline void Track::set_media_id(::google::protobuf::int64 value) { +inline void AudioCollectionResponse_Track::set_media_id(::google::protobuf::int64 value) { set_has_media_id(); media_id_ = value; } // optional uint32 disc_number = 2; -inline bool Track::has_disc_number() const { +inline bool AudioCollectionResponse_Track::has_disc_number() const { return (_has_bits_[0] & 0x00000002u) != 0; } -inline void Track::set_has_disc_number() { +inline void AudioCollectionResponse_Track::set_has_disc_number() { _has_bits_[0] |= 0x00000002u; } -inline void Track::clear_has_disc_number() { +inline void AudioCollectionResponse_Track::clear_has_disc_number() { _has_bits_[0] &= ~0x00000002u; } -inline void Track::clear_disc_number() { +inline void AudioCollectionResponse_Track::clear_disc_number() { disc_number_ = 0u; clear_has_disc_number(); } -inline ::google::protobuf::uint32 Track::disc_number() const { +inline ::google::protobuf::uint32 AudioCollectionResponse_Track::disc_number() const { return disc_number_; } -inline void Track::set_disc_number(::google::protobuf::uint32 value) { +inline void AudioCollectionResponse_Track::set_disc_number(::google::protobuf::uint32 value) { set_has_disc_number(); disc_number_ = value; } // optional uint32 track_number = 3; -inline bool Track::has_track_number() const { +inline bool AudioCollectionResponse_Track::has_track_number() const { return (_has_bits_[0] & 0x00000004u) != 0; } -inline void Track::set_has_track_number() { +inline void AudioCollectionResponse_Track::set_has_track_number() { _has_bits_[0] |= 0x00000004u; } -inline void Track::clear_has_track_number() { +inline void AudioCollectionResponse_Track::clear_has_track_number() { _has_bits_[0] &= ~0x00000004u; } -inline void Track::clear_track_number() { +inline void AudioCollectionResponse_Track::clear_track_number() { track_number_ = 0u; clear_has_track_number(); } -inline ::google::protobuf::uint32 Track::track_number() const { +inline ::google::protobuf::uint32 AudioCollectionResponse_Track::track_number() const { return track_number_; } -inline void Track::set_track_number(::google::protobuf::uint32 value) { +inline void AudioCollectionResponse_Track::set_track_number(::google::protobuf::uint32 value) { set_has_track_number(); track_number_ = value; } // optional string artist = 4; -inline bool Track::has_artist() const { +inline bool AudioCollectionResponse_Track::has_artist() const { return (_has_bits_[0] & 0x00000008u) != 0; } -inline void Track::set_has_artist() { +inline void AudioCollectionResponse_Track::set_has_artist() { _has_bits_[0] |= 0x00000008u; } -inline void Track::clear_has_artist() { +inline void AudioCollectionResponse_Track::clear_has_artist() { _has_bits_[0] &= ~0x00000008u; } -inline void Track::clear_artist() { +inline void AudioCollectionResponse_Track::clear_artist() { if (artist_ != &::google::protobuf::internal::kEmptyString) { artist_->clear(); } clear_has_artist(); } -inline const ::std::string& Track::artist() const { +inline const ::std::string& AudioCollectionResponse_Track::artist() const { return *artist_; } -inline void Track::set_artist(const ::std::string& value) { +inline void AudioCollectionResponse_Track::set_artist(const ::std::string& value) { set_has_artist(); if (artist_ == &::google::protobuf::internal::kEmptyString) { artist_ = new ::std::string; } artist_->assign(value); } -inline void Track::set_artist(const char* value) { +inline void AudioCollectionResponse_Track::set_artist(const char* value) { set_has_artist(); if (artist_ == &::google::protobuf::internal::kEmptyString) { artist_ = new ::std::string; } artist_->assign(value); } -inline void Track::set_artist(const char* value, size_t size) { +inline void AudioCollectionResponse_Track::set_artist(const char* value, size_t size) { set_has_artist(); if (artist_ == &::google::protobuf::internal::kEmptyString) { artist_ = new ::std::string; } artist_->assign(reinterpret_cast(value), size); } -inline ::std::string* Track::mutable_artist() { +inline ::std::string* AudioCollectionResponse_Track::mutable_artist() { set_has_artist(); if (artist_ == &::google::protobuf::internal::kEmptyString) { artist_ = new ::std::string; } return artist_; } -inline ::std::string* Track::release_artist() { +inline ::std::string* AudioCollectionResponse_Track::release_artist() { clear_has_artist(); if (artist_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -3864,7 +3659,7 @@ inline ::std::string* Track::release_artist() { return temp; } } -inline void Track::set_allocated_artist(::std::string* artist) { +inline void AudioCollectionResponse_Track::set_allocated_artist(::std::string* artist) { if (artist_ != &::google::protobuf::internal::kEmptyString) { delete artist_; } @@ -3878,53 +3673,53 @@ inline void Track::set_allocated_artist(::std::string* artist) { } // optional string release = 5; -inline bool Track::has_release() const { +inline bool AudioCollectionResponse_Track::has_release() const { return (_has_bits_[0] & 0x00000010u) != 0; } -inline void Track::set_has_release() { +inline void AudioCollectionResponse_Track::set_has_release() { _has_bits_[0] |= 0x00000010u; } -inline void Track::clear_has_release() { +inline void AudioCollectionResponse_Track::clear_has_release() { _has_bits_[0] &= ~0x00000010u; } -inline void Track::clear_release() { +inline void AudioCollectionResponse_Track::clear_release() { if (release_ != &::google::protobuf::internal::kEmptyString) { release_->clear(); } clear_has_release(); } -inline const ::std::string& Track::release() const { +inline const ::std::string& AudioCollectionResponse_Track::release() const { return *release_; } -inline void Track::set_release(const ::std::string& value) { +inline void AudioCollectionResponse_Track::set_release(const ::std::string& value) { set_has_release(); if (release_ == &::google::protobuf::internal::kEmptyString) { release_ = new ::std::string; } release_->assign(value); } -inline void Track::set_release(const char* value) { +inline void AudioCollectionResponse_Track::set_release(const char* value) { set_has_release(); if (release_ == &::google::protobuf::internal::kEmptyString) { release_ = new ::std::string; } release_->assign(value); } -inline void Track::set_release(const char* value, size_t size) { +inline void AudioCollectionResponse_Track::set_release(const char* value, size_t size) { set_has_release(); if (release_ == &::google::protobuf::internal::kEmptyString) { release_ = new ::std::string; } release_->assign(reinterpret_cast(value), size); } -inline ::std::string* Track::mutable_release() { +inline ::std::string* AudioCollectionResponse_Track::mutable_release() { set_has_release(); if (release_ == &::google::protobuf::internal::kEmptyString) { release_ = new ::std::string; } return release_; } -inline ::std::string* Track::release_release() { +inline ::std::string* AudioCollectionResponse_Track::release_release() { clear_has_release(); if (release_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -3934,7 +3729,7 @@ inline ::std::string* Track::release_release() { return temp; } } -inline void Track::set_allocated_release(::std::string* release) { +inline void AudioCollectionResponse_Track::set_allocated_release(::std::string* release) { if (release_ != &::google::protobuf::internal::kEmptyString) { delete release_; } @@ -3948,53 +3743,53 @@ inline void Track::set_allocated_release(::std::string* release) { } // required string name = 6; -inline bool Track::has_name() const { +inline bool AudioCollectionResponse_Track::has_name() const { return (_has_bits_[0] & 0x00000020u) != 0; } -inline void Track::set_has_name() { +inline void AudioCollectionResponse_Track::set_has_name() { _has_bits_[0] |= 0x00000020u; } -inline void Track::clear_has_name() { +inline void AudioCollectionResponse_Track::clear_has_name() { _has_bits_[0] &= ~0x00000020u; } -inline void Track::clear_name() { +inline void AudioCollectionResponse_Track::clear_name() { if (name_ != &::google::protobuf::internal::kEmptyString) { name_->clear(); } clear_has_name(); } -inline const ::std::string& Track::name() const { +inline const ::std::string& AudioCollectionResponse_Track::name() const { return *name_; } -inline void Track::set_name(const ::std::string& value) { +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 Track::set_name(const char* 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 Track::set_name(const char* value, size_t size) { +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* Track::mutable_name() { +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* Track::release_name() { +inline ::std::string* AudioCollectionResponse_Track::release_name() { clear_has_name(); if (name_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -4004,7 +3799,7 @@ inline ::std::string* Track::release_name() { return temp; } } -inline void Track::set_allocated_name(::std::string* name) { +inline void AudioCollectionResponse_Track::set_allocated_name(::std::string* name) { if (name_ != &::google::protobuf::internal::kEmptyString) { delete name_; } @@ -4018,75 +3813,75 @@ inline void Track::set_allocated_name(::std::string* name) { } // required uint32 duration_secs = 7; -inline bool Track::has_duration_secs() const { +inline bool AudioCollectionResponse_Track::has_duration_secs() const { return (_has_bits_[0] & 0x00000040u) != 0; } -inline void Track::set_has_duration_secs() { +inline void AudioCollectionResponse_Track::set_has_duration_secs() { _has_bits_[0] |= 0x00000040u; } -inline void Track::clear_has_duration_secs() { +inline void AudioCollectionResponse_Track::clear_has_duration_secs() { _has_bits_[0] &= ~0x00000040u; } -inline void Track::clear_duration_secs() { +inline void AudioCollectionResponse_Track::clear_duration_secs() { duration_secs_ = 0u; clear_has_duration_secs(); } -inline ::google::protobuf::uint32 Track::duration_secs() const { +inline ::google::protobuf::uint32 AudioCollectionResponse_Track::duration_secs() const { return duration_secs_; } -inline void Track::set_duration_secs(::google::protobuf::uint32 value) { +inline void AudioCollectionResponse_Track::set_duration_secs(::google::protobuf::uint32 value) { set_has_duration_secs(); duration_secs_ = value; } // optional string release_date = 8; -inline bool Track::has_release_date() const { +inline bool AudioCollectionResponse_Track::has_release_date() const { return (_has_bits_[0] & 0x00000080u) != 0; } -inline void Track::set_has_release_date() { +inline void AudioCollectionResponse_Track::set_has_release_date() { _has_bits_[0] |= 0x00000080u; } -inline void Track::clear_has_release_date() { +inline void AudioCollectionResponse_Track::clear_has_release_date() { _has_bits_[0] &= ~0x00000080u; } -inline void Track::clear_release_date() { +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& Track::release_date() const { +inline const ::std::string& AudioCollectionResponse_Track::release_date() const { return *release_date_; } -inline void Track::set_release_date(const ::std::string& value) { +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 Track::set_release_date(const char* 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 Track::set_release_date(const char* value, size_t size) { +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* Track::mutable_release_date() { +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* Track::release_release_date() { +inline ::std::string* AudioCollectionResponse_Track::release_release_date() { clear_has_release_date(); if (release_date_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -4096,7 +3891,7 @@ inline ::std::string* Track::release_release_date() { return temp; } } -inline void Track::set_allocated_release_date(::std::string* release_date) { +inline void AudioCollectionResponse_Track::set_allocated_release_date(::std::string* release_date) { if (release_date_ != &::google::protobuf::internal::kEmptyString) { delete release_date_; } @@ -4110,53 +3905,53 @@ inline void Track::set_allocated_release_date(::std::string* release_date) { } // optional string original_release_date = 9; -inline bool Track::has_original_release_date() const { +inline bool AudioCollectionResponse_Track::has_original_release_date() const { return (_has_bits_[0] & 0x00000100u) != 0; } -inline void Track::set_has_original_release_date() { +inline void AudioCollectionResponse_Track::set_has_original_release_date() { _has_bits_[0] |= 0x00000100u; } -inline void Track::clear_has_original_release_date() { +inline void AudioCollectionResponse_Track::clear_has_original_release_date() { _has_bits_[0] &= ~0x00000100u; } -inline void Track::clear_original_release_date() { +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& Track::original_release_date() const { +inline const ::std::string& AudioCollectionResponse_Track::original_release_date() const { return *original_release_date_; } -inline void Track::set_original_release_date(const ::std::string& value) { +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 Track::set_original_release_date(const char* 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 Track::set_original_release_date(const char* value, size_t size) { +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* Track::mutable_original_release_date() { +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* Track::release_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; @@ -4166,7 +3961,7 @@ inline ::std::string* Track::release_original_release_date() { return temp; } } -inline void Track::set_allocated_original_release_date(::std::string* original_release_date) { +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_; } @@ -4180,97 +3975,97 @@ inline void Track::set_allocated_original_release_date(::std::string* original_r } // repeated string genres = 10; -inline int Track::genres_size() const { +inline int AudioCollectionResponse_Track::genres_size() const { return genres_.size(); } -inline void Track::clear_genres() { +inline void AudioCollectionResponse_Track::clear_genres() { genres_.Clear(); } -inline const ::std::string& Track::genres(int index) const { +inline const ::std::string& AudioCollectionResponse_Track::genres(int index) const { return genres_.Get(index); } -inline ::std::string* Track::mutable_genres(int index) { +inline ::std::string* AudioCollectionResponse_Track::mutable_genres(int index) { return genres_.Mutable(index); } -inline void Track::set_genres(int index, const ::std::string& value) { +inline void AudioCollectionResponse_Track::set_genres(int index, const ::std::string& value) { genres_.Mutable(index)->assign(value); } -inline void Track::set_genres(int index, const char* value) { +inline void AudioCollectionResponse_Track::set_genres(int index, const char* value) { genres_.Mutable(index)->assign(value); } -inline void Track::set_genres(int index, const char* value, size_t size) { +inline void AudioCollectionResponse_Track::set_genres(int index, const char* value, size_t size) { genres_.Mutable(index)->assign( reinterpret_cast(value), size); } -inline ::std::string* Track::add_genres() { +inline ::std::string* AudioCollectionResponse_Track::add_genres() { return genres_.Add(); } -inline void Track::add_genres(const ::std::string& value) { +inline void AudioCollectionResponse_Track::add_genres(const ::std::string& value) { genres_.Add()->assign(value); } -inline void Track::add_genres(const char* value) { +inline void AudioCollectionResponse_Track::add_genres(const char* value) { genres_.Add()->assign(value); } -inline void Track::add_genres(const char* value, size_t size) { +inline void AudioCollectionResponse_Track::add_genres(const char* value, size_t size) { genres_.Add()->assign(reinterpret_cast(value), size); } inline const ::google::protobuf::RepeatedPtrField< ::std::string>& -Track::genres() const { +AudioCollectionResponse_Track::genres() const { return genres_; } inline ::google::protobuf::RepeatedPtrField< ::std::string>* -Track::mutable_genres() { +AudioCollectionResponse_Track::mutable_genres() { return &genres_; } // optional bytes coverArt = 11; -inline bool Track::has_coverart() const { +inline bool AudioCollectionResponse_Track::has_coverart() const { return (_has_bits_[0] & 0x00000400u) != 0; } -inline void Track::set_has_coverart() { +inline void AudioCollectionResponse_Track::set_has_coverart() { _has_bits_[0] |= 0x00000400u; } -inline void Track::clear_has_coverart() { +inline void AudioCollectionResponse_Track::clear_has_coverart() { _has_bits_[0] &= ~0x00000400u; } -inline void Track::clear_coverart() { +inline void AudioCollectionResponse_Track::clear_coverart() { if (coverart_ != &::google::protobuf::internal::kEmptyString) { coverart_->clear(); } clear_has_coverart(); } -inline const ::std::string& Track::coverart() const { +inline const ::std::string& AudioCollectionResponse_Track::coverart() const { return *coverart_; } -inline void Track::set_coverart(const ::std::string& value) { +inline void AudioCollectionResponse_Track::set_coverart(const ::std::string& value) { set_has_coverart(); if (coverart_ == &::google::protobuf::internal::kEmptyString) { coverart_ = new ::std::string; } coverart_->assign(value); } -inline void Track::set_coverart(const char* value) { +inline void AudioCollectionResponse_Track::set_coverart(const char* value) { set_has_coverart(); if (coverart_ == &::google::protobuf::internal::kEmptyString) { coverart_ = new ::std::string; } coverart_->assign(value); } -inline void Track::set_coverart(const void* value, size_t size) { +inline void AudioCollectionResponse_Track::set_coverart(const void* value, size_t size) { set_has_coverart(); if (coverart_ == &::google::protobuf::internal::kEmptyString) { coverart_ = new ::std::string; } coverart_->assign(reinterpret_cast(value), size); } -inline ::std::string* Track::mutable_coverart() { +inline ::std::string* AudioCollectionResponse_Track::mutable_coverart() { set_has_coverart(); if (coverart_ == &::google::protobuf::internal::kEmptyString) { coverart_ = new ::std::string; } return coverart_; } -inline ::std::string* Track::release_coverart() { +inline ::std::string* AudioCollectionResponse_Track::release_coverart() { clear_has_coverart(); if (coverart_ == &::google::protobuf::internal::kEmptyString) { return NULL; @@ -4280,7 +4075,7 @@ inline ::std::string* Track::release_coverart() { return temp; } } -inline void Track::set_allocated_coverart(::std::string* coverart) { +inline void AudioCollectionResponse_Track::set_allocated_coverart(::std::string* coverart) { if (coverart_ != &::google::protobuf::internal::kEmptyString) { delete coverart_; } @@ -4293,20 +4088,239 @@ inline void Track::set_allocated_coverart(::std::string* coverart) { } } +// ------------------------------------------------------------------- + +// AudioCollectionResponse + +// required .Remote.Error error = 1; +inline bool AudioCollectionResponse::has_error() const { + return (_has_bits_[0] & 0x00000001u) != 0; +} +inline void AudioCollectionResponse::set_has_error() { + _has_bits_[0] |= 0x00000001u; +} +inline void AudioCollectionResponse::clear_has_error() { + _has_bits_[0] &= ~0x00000001u; +} +inline void AudioCollectionResponse::clear_error() { + if (error_ != NULL) error_->::Remote::Error::Clear(); + clear_has_error(); +} +inline const ::Remote::Error& AudioCollectionResponse::error() const { + return error_ != NULL ? *error_ : *default_instance_->error_; +} +inline ::Remote::Error* AudioCollectionResponse::mutable_error() { + set_has_error(); + if (error_ == NULL) error_ = new ::Remote::Error; + return error_; +} +inline ::Remote::Error* AudioCollectionResponse::release_error() { + clear_has_error(); + ::Remote::Error* temp = error_; + error_ = NULL; + return temp; +} +inline void AudioCollectionResponse::set_allocated_error(::Remote::Error* error) { + delete error_; + error_ = error; + if (error) { + set_has_error(); + } else { + clear_has_error(); + } +} + +// optional .Remote.AudioCollectionResponse.Type type = 2; +inline bool AudioCollectionResponse::has_type() const { + return (_has_bits_[0] & 0x00000002u) != 0; +} +inline void AudioCollectionResponse::set_has_type() { + _has_bits_[0] |= 0x00000002u; +} +inline void AudioCollectionResponse::clear_has_type() { + _has_bits_[0] &= ~0x00000002u; +} +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.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(); + } +} + // @@protoc_insertion_point(namespace_scope) +} // namespace Remote + #ifndef SWIG namespace google { namespace protobuf { template <> -inline const EnumDescriptor* GetEnumDescriptor< ::CollectionRequest_Type>() { - return ::CollectionRequest_Type_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::Remote::AudioCollectionRequest_Type>() { + return ::Remote::AudioCollectionRequest_Type_descriptor(); } template <> -inline const EnumDescriptor* GetEnumDescriptor< ::CollectionResponse_Type>() { - return ::CollectionResponse_Type_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::Remote::AudioCollectionResponse_Type>() { + return ::Remote::AudioCollectionResponse_Type_descriptor(); } } // namespace google diff --git a/remote/messages/common.pb.cc b/remote/messages/common.pb.cc index ae7eaf49..eacb49b8 100644 --- a/remote/messages/common.pb.cc +++ b/remote/messages/common.pb.cc @@ -16,6 +16,8 @@ #include // @@protoc_insertion_point(includes) +namespace Remote { + namespace { const ::google::protobuf::Descriptor* Error_descriptor_ = NULL; @@ -77,8 +79,8 @@ void protobuf_AddDesc_common_2eproto() { GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\014common.proto\"\'\n\005Error\022\r\n\005error\030\001 \002(\010\022\017" - "\n\007message\030\002 \001(\t", 55); + "\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(); @@ -359,4 +361,6 @@ void Error::Swap(Error* other) { // @@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 index 4819347a..eceeeaad 100644 --- a/remote/messages/common.pb.h +++ b/remote/messages/common.pb.h @@ -26,6 +26,8 @@ #include // @@protoc_insertion_point(includes) +namespace Remote { + // Internal implementation detail -- do not call these. void protobuf_AddDesc_common_2eproto(); void protobuf_AssignDesc_common_2eproto(); @@ -108,7 +110,7 @@ class Error : public ::google::protobuf::Message { inline ::std::string* release_message(); inline void set_allocated_message(::std::string* message); - // @@protoc_insertion_point(class_scope:Error) + // @@protoc_insertion_point(class_scope:Remote.Error) private: inline void set_has_error(); inline void clear_has_error(); @@ -232,6 +234,8 @@ inline void Error::set_allocated_message(::std::string* message) { // @@protoc_insertion_point(namespace_scope) +} // namespace Remote + #ifndef SWIG namespace google { namespace protobuf { diff --git a/remote/messages/media.pb.cc b/remote/messages/media.pb.cc index 7bb89d5a..fd32a038 100644 --- a/remote/messages/media.pb.cc +++ b/remote/messages/media.pb.cc @@ -16,6 +16,8 @@ #include // @@protoc_insertion_point(includes) +namespace Remote { + namespace { const ::google::protobuf::Descriptor* MediaRequest_descriptor_ = NULL; @@ -203,28 +205,29 @@ void protobuf_AddDesc_media_2eproto() { already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; - ::protobuf_AddDesc_common_2eproto(); + ::Remote::protobuf_AddDesc_common_2eproto(); ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( - "\n\013media.proto\032\014common.proto\"\376\003\n\014MediaReq" - "uest\022(\n\014request_type\030\001 \002(\0162\022.MediaReques" - "t.Type\022&\n\007prepare\030\002 \001(\0132\025.MediaRequest.P" - "repare\022\'\n\010get_part\030\003 \001(\0132\025.MediaRequest." - "GetPart\022*\n\tterminate\030\004 \001(\0132\027.MediaReques" - "t.Terminate\032\311\001\n\007Prepare\022\n\n\002id\030\001 \002(\003\022\023\n\013o" - "ffset_secs\030\002 \002(\r\022\036\n\ncodec_type\030\003 \001(\0162\n.C" - "odecType\022\025\n\raudio_bitrate\030\004 \001(\r\022\025\n\rvideo" - "_bitrate\030\005 \001(\r\022\030\n\020audio_stream_idx\030\006 \001(\r" - "\022\030\n\020video_stream_idx\030\007 \001(\r\022\033\n\023subtitle_s" - "tream_idx\030\010 \001(\r\032&\n\007GetPart\022\033\n\023requested_" - "data_size\030\001 \002(\r\032\013\n\tTerminate\"F\n\004Type\022\024\n\020" - "TypeMediaPrepare\020\001\022\020\n\014TypeMediaGet\020\002\022\026\n\022" - "TypeMediaTerminate\020\003\"\305\001\n\rMediaResponse\022\025" - "\n\005error\030\001 \002(\0132\006.Error\022*\n\rresponse_type\030\002" - " \002(\0162\023.MediaResponse.Type\022&\n\004part\030\003 \001(\0132" - "\030.MediaResponse.MediaPart\032.\n\tMediaPart\022\023" - "\n\013byte_offset\030\001 \002(\004\022\014\n\004data\030\002 \003(\014\"\031\n\004Typ" - "e\022\021\n\rTypeMediaPart\020\001*\035\n\tCodecType\022\020\n\014Cod" - "ecTypeOGG\020\001", 771); + "\n\013media.proto\022\006Remote\032\014common.proto\"\241\004\n\014" + "MediaRequest\022/\n\014request_type\030\001 \002(\0162\031.Rem" + "ote.MediaRequest.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\t" + "terminate\030\004 \001(\0132\036.Remote.MediaRequest.Te" + "rminate\032\320\001\n\007Prepare\022\n\n\002id\030\001 \002(\003\022\023\n\013offse" + "t_secs\030\002 \002(\r\022%\n\ncodec_type\030\003 \001(\0162\021.Remot" + "e.CodecType\022\025\n\raudio_bitrate\030\004 \001(\r\022\025\n\rvi" + "deo_bitrate\030\005 \001(\r\022\030\n\020audio_stream_idx\030\006 " + "\001(\r\022\030\n\020video_stream_idx\030\007 \001(\r\022\033\n\023subtitl" + "e_stream_idx\030\010 \001(\r\032&\n\007GetPart\022\033\n\023request" + "ed_data_size\030\001 \002(\r\032\013\n\tTerminate\"F\n\004Type\022" + "\024\n\020TypeMediaPrepare\020\001\022\020\n\014TypeMediaGet\020\002\022" + "\026\n\022TypeMediaTerminate\020\003\"\332\001\n\rMediaRespons" + "e\022\034\n\005error\030\001 \002(\0132\r.Remote.Error\0221\n\rrespo" + "nse_type\030\002 \002(\0162\032.Remote.MediaResponse.Ty" + "pe\022-\n\004part\030\003 \001(\0132\037.Remote.MediaResponse." + "MediaPart\032.\n\tMediaPart\022\023\n\013byte_offset\030\001 " + "\002(\004\022\014\n\004data\030\002 \003(\014\"\031\n\004Type\022\021\n\rTypeMediaPa" + "rt\020\001*\035\n\tCodecType\022\020\n\014CodecTypeOGG\020\001", 835); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "media.proto", &protobuf_RegisterTypes); MediaRequest::default_instance_ = new MediaRequest(); @@ -407,7 +410,7 @@ bool MediaRequest_Prepare::MergePartialFromCodedStream( break; } - // optional .CodecType codec_type = 3; + // optional .Remote.CodecType codec_type = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { @@ -416,8 +419,8 @@ bool MediaRequest_Prepare::MergePartialFromCodedStream( DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - if (::CodecType_IsValid(value)) { - set_codec_type(static_cast< ::CodecType >(value)); + if (::Remote::CodecType_IsValid(value)) { + set_codec_type(static_cast< ::Remote::CodecType >(value)); } else { mutable_unknown_fields()->AddVarint(3, value); } @@ -536,7 +539,7 @@ void MediaRequest_Prepare::SerializeWithCachedSizes( ::google::protobuf::internal::WireFormatLite::WriteUInt32(2, this->offset_secs(), output); } - // optional .CodecType codec_type = 3; + // optional .Remote.CodecType codec_type = 3; if (has_codec_type()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 3, this->codec_type(), output); @@ -585,7 +588,7 @@ void MediaRequest_Prepare::SerializeWithCachedSizes( target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(2, this->offset_secs(), target); } - // optional .CodecType codec_type = 3; + // optional .Remote.CodecType codec_type = 3; if (has_codec_type()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 3, this->codec_type(), target); @@ -641,7 +644,7 @@ int MediaRequest_Prepare::ByteSize() const { this->offset_secs()); } - // optional .CodecType codec_type = 3; + // optional .Remote.CodecType codec_type = 3; if (has_codec_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->codec_type()); @@ -1160,9 +1163,9 @@ MediaRequest::MediaRequest() } void MediaRequest::InitAsDefaultInstance() { - prepare_ = const_cast< ::MediaRequest_Prepare*>(&::MediaRequest_Prepare::default_instance()); - get_part_ = const_cast< ::MediaRequest_GetPart*>(&::MediaRequest_GetPart::default_instance()); - terminate_ = const_cast< ::MediaRequest_Terminate*>(&::MediaRequest_Terminate::default_instance()); + 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) @@ -1217,13 +1220,13 @@ void MediaRequest::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { request_type_ = 1; if (has_prepare()) { - if (prepare_ != NULL) prepare_->::MediaRequest_Prepare::Clear(); + if (prepare_ != NULL) prepare_->::Remote::MediaRequest_Prepare::Clear(); } if (has_get_part()) { - if (get_part_ != NULL) get_part_->::MediaRequest_GetPart::Clear(); + if (get_part_ != NULL) get_part_->::Remote::MediaRequest_GetPart::Clear(); } if (has_terminate()) { - if (terminate_ != NULL) terminate_->::MediaRequest_Terminate::Clear(); + if (terminate_ != NULL) terminate_->::Remote::MediaRequest_Terminate::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -1236,7 +1239,7 @@ bool MediaRequest::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .MediaRequest.Type request_type = 1; + // required .Remote.MediaRequest.Type request_type = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { @@ -1244,8 +1247,8 @@ bool MediaRequest::MergePartialFromCodedStream( DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - if (::MediaRequest_Type_IsValid(value)) { - set_request_type(static_cast< ::MediaRequest_Type >(value)); + if (::Remote::MediaRequest_Type_IsValid(value)) { + set_request_type(static_cast< ::Remote::MediaRequest_Type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } @@ -1256,7 +1259,7 @@ bool MediaRequest::MergePartialFromCodedStream( break; } - // optional .MediaRequest.Prepare prepare = 2; + // optional .Remote.MediaRequest.Prepare prepare = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -1270,7 +1273,7 @@ bool MediaRequest::MergePartialFromCodedStream( break; } - // optional .MediaRequest.GetPart get_part = 3; + // optional .Remote.MediaRequest.GetPart get_part = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -1284,7 +1287,7 @@ bool MediaRequest::MergePartialFromCodedStream( break; } - // optional .MediaRequest.Terminate terminate = 4; + // optional .Remote.MediaRequest.Terminate terminate = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -1316,25 +1319,25 @@ bool MediaRequest::MergePartialFromCodedStream( void MediaRequest::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // required .MediaRequest.Type request_type = 1; + // required .Remote.MediaRequest.Type request_type = 1; if (has_request_type()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->request_type(), output); } - // optional .MediaRequest.Prepare prepare = 2; + // optional .Remote.MediaRequest.Prepare prepare = 2; if (has_prepare()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->prepare(), output); } - // optional .MediaRequest.GetPart get_part = 3; + // optional .Remote.MediaRequest.GetPart get_part = 3; if (has_get_part()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->get_part(), output); } - // optional .MediaRequest.Terminate terminate = 4; + // optional .Remote.MediaRequest.Terminate terminate = 4; if (has_terminate()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->terminate(), output); @@ -1348,27 +1351,27 @@ void MediaRequest::SerializeWithCachedSizes( ::google::protobuf::uint8* MediaRequest::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // required .MediaRequest.Type request_type = 1; + // required .Remote.MediaRequest.Type request_type = 1; if (has_request_type()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->request_type(), target); } - // optional .MediaRequest.Prepare prepare = 2; + // optional .Remote.MediaRequest.Prepare prepare = 2; if (has_prepare()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 2, this->prepare(), target); } - // optional .MediaRequest.GetPart get_part = 3; + // optional .Remote.MediaRequest.GetPart get_part = 3; if (has_get_part()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 3, this->get_part(), target); } - // optional .MediaRequest.Terminate terminate = 4; + // optional .Remote.MediaRequest.Terminate terminate = 4; if (has_terminate()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -1386,27 +1389,27 @@ int MediaRequest::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .MediaRequest.Type request_type = 1; + // required .Remote.MediaRequest.Type request_type = 1; if (has_request_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->request_type()); } - // optional .MediaRequest.Prepare prepare = 2; + // optional .Remote.MediaRequest.Prepare prepare = 2; if (has_prepare()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->prepare()); } - // optional .MediaRequest.GetPart get_part = 3; + // optional .Remote.MediaRequest.GetPart get_part = 3; if (has_get_part()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->get_part()); } - // optional .MediaRequest.Terminate terminate = 4; + // optional .Remote.MediaRequest.Terminate terminate = 4; if (has_terminate()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -1444,13 +1447,13 @@ void MediaRequest::MergeFrom(const MediaRequest& from) { set_request_type(from.request_type()); } if (from.has_prepare()) { - mutable_prepare()->::MediaRequest_Prepare::MergeFrom(from.prepare()); + mutable_prepare()->::Remote::MediaRequest_Prepare::MergeFrom(from.prepare()); } if (from.has_get_part()) { - mutable_get_part()->::MediaRequest_GetPart::MergeFrom(from.get_part()); + mutable_get_part()->::Remote::MediaRequest_GetPart::MergeFrom(from.get_part()); } if (from.has_terminate()) { - mutable_terminate()->::MediaRequest_Terminate::MergeFrom(from.terminate()); + mutable_terminate()->::Remote::MediaRequest_Terminate::MergeFrom(from.terminate()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); @@ -1781,8 +1784,8 @@ MediaResponse::MediaResponse() } void MediaResponse::InitAsDefaultInstance() { - error_ = const_cast< ::Error*>(&::Error::default_instance()); - part_ = const_cast< ::MediaResponse_MediaPart*>(&::MediaResponse_MediaPart::default_instance()); + error_ = const_cast< ::Remote::Error*>(&::Remote::Error::default_instance()); + part_ = const_cast< ::Remote::MediaResponse_MediaPart*>(&::Remote::MediaResponse_MediaPart::default_instance()); } MediaResponse::MediaResponse(const MediaResponse& from) @@ -1834,11 +1837,11 @@ MediaResponse* MediaResponse::New() const { void MediaResponse::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (has_error()) { - if (error_ != NULL) error_->::Error::Clear(); + if (error_ != NULL) error_->::Remote::Error::Clear(); } response_type_ = 1; if (has_part()) { - if (part_ != NULL) part_->::MediaResponse_MediaPart::Clear(); + if (part_ != NULL) part_->::Remote::MediaResponse_MediaPart::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -1851,7 +1854,7 @@ bool MediaResponse::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .Error error = 1; + // required .Remote.Error error = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -1864,7 +1867,7 @@ bool MediaResponse::MergePartialFromCodedStream( break; } - // required .MediaResponse.Type response_type = 2; + // required .Remote.MediaResponse.Type response_type = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { @@ -1873,8 +1876,8 @@ bool MediaResponse::MergePartialFromCodedStream( DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - if (::MediaResponse_Type_IsValid(value)) { - set_response_type(static_cast< ::MediaResponse_Type >(value)); + if (::Remote::MediaResponse_Type_IsValid(value)) { + set_response_type(static_cast< ::Remote::MediaResponse_Type >(value)); } else { mutable_unknown_fields()->AddVarint(2, value); } @@ -1885,7 +1888,7 @@ bool MediaResponse::MergePartialFromCodedStream( break; } - // optional .MediaResponse.MediaPart part = 3; + // optional .Remote.MediaResponse.MediaPart part = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -1917,19 +1920,19 @@ bool MediaResponse::MergePartialFromCodedStream( void MediaResponse::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // required .Error error = 1; + // required .Remote.Error error = 1; if (has_error()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 1, this->error(), output); } - // required .MediaResponse.Type response_type = 2; + // required .Remote.MediaResponse.Type response_type = 2; if (has_response_type()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 2, this->response_type(), output); } - // optional .MediaResponse.MediaPart part = 3; + // optional .Remote.MediaResponse.MediaPart part = 3; if (has_part()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 3, this->part(), output); @@ -1943,20 +1946,20 @@ void MediaResponse::SerializeWithCachedSizes( ::google::protobuf::uint8* MediaResponse::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // required .Error error = 1; + // required .Remote.Error error = 1; if (has_error()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 1, this->error(), target); } - // required .MediaResponse.Type response_type = 2; + // required .Remote.MediaResponse.Type response_type = 2; if (has_response_type()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 2, this->response_type(), target); } - // optional .MediaResponse.MediaPart part = 3; + // optional .Remote.MediaResponse.MediaPart part = 3; if (has_part()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -1974,20 +1977,20 @@ int MediaResponse::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .Error error = 1; + // required .Remote.Error error = 1; if (has_error()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->error()); } - // required .MediaResponse.Type response_type = 2; + // required .Remote.MediaResponse.Type response_type = 2; if (has_response_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->response_type()); } - // optional .MediaResponse.MediaPart part = 3; + // optional .Remote.MediaResponse.MediaPart part = 3; if (has_part()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -2022,13 +2025,13 @@ void MediaResponse::MergeFrom(const MediaResponse& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_error()) { - mutable_error()->::Error::MergeFrom(from.error()); + mutable_error()->::Remote::Error::MergeFrom(from.error()); } if (from.has_response_type()) { set_response_type(from.response_type()); } if (from.has_part()) { - mutable_part()->::MediaResponse_MediaPart::MergeFrom(from.part()); + mutable_part()->::Remote::MediaResponse_MediaPart::MergeFrom(from.part()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); @@ -2080,4 +2083,6 @@ void MediaResponse::Swap(MediaResponse* other) { // @@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 index efb0c103..05c1f95e 100644 --- a/remote/messages/media.pb.h +++ b/remote/messages/media.pb.h @@ -28,6 +28,8 @@ #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(); @@ -166,12 +168,12 @@ class MediaRequest_Prepare : public ::google::protobuf::Message { inline ::google::protobuf::uint32 offset_secs() const; inline void set_offset_secs(::google::protobuf::uint32 value); - // optional .CodecType codec_type = 3; + // optional .Remote.CodecType codec_type = 3; inline bool has_codec_type() const; inline void clear_codec_type(); static const int kCodecTypeFieldNumber = 3; - inline ::CodecType codec_type() const; - inline void set_codec_type(::CodecType value); + inline ::Remote::CodecType codec_type() const; + inline void set_codec_type(::Remote::CodecType value); // optional uint32 audio_bitrate = 4; inline bool has_audio_bitrate() const; @@ -208,7 +210,7 @@ class MediaRequest_Prepare : public ::google::protobuf::Message { inline ::google::protobuf::uint32 subtitle_stream_idx() const; inline void set_subtitle_stream_idx(::google::protobuf::uint32 value); - // @@protoc_insertion_point(class_scope:MediaRequest.Prepare) + // @@protoc_insertion_point(class_scope:Remote.MediaRequest.Prepare) private: inline void set_has_id(); inline void clear_has_id(); @@ -311,7 +313,7 @@ class MediaRequest_GetPart : public ::google::protobuf::Message { inline ::google::protobuf::uint32 requested_data_size() const; inline void set_requested_data_size(::google::protobuf::uint32 value); - // @@protoc_insertion_point(class_scope:MediaRequest.GetPart) + // @@protoc_insertion_point(class_scope:Remote.MediaRequest.GetPart) private: inline void set_has_requested_data_size(); inline void clear_has_requested_data_size(); @@ -386,7 +388,7 @@ class MediaRequest_Terminate : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // @@protoc_insertion_point(class_scope:MediaRequest.Terminate) + // @@protoc_insertion_point(class_scope:Remote.MediaRequest.Terminate) private: ::google::protobuf::UnknownFieldSet _unknown_fields_; @@ -487,41 +489,41 @@ class MediaRequest : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // required .MediaRequest.Type request_type = 1; + // required .Remote.MediaRequest.Type request_type = 1; inline bool has_request_type() const; inline void clear_request_type(); static const int kRequestTypeFieldNumber = 1; - inline ::MediaRequest_Type request_type() const; - inline void set_request_type(::MediaRequest_Type value); + inline ::Remote::MediaRequest_Type request_type() const; + inline void set_request_type(::Remote::MediaRequest_Type value); - // optional .MediaRequest.Prepare prepare = 2; + // optional .Remote.MediaRequest.Prepare prepare = 2; inline bool has_prepare() const; inline void clear_prepare(); static const int kPrepareFieldNumber = 2; - inline const ::MediaRequest_Prepare& prepare() const; - inline ::MediaRequest_Prepare* mutable_prepare(); - inline ::MediaRequest_Prepare* release_prepare(); - inline void set_allocated_prepare(::MediaRequest_Prepare* prepare); + 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 .MediaRequest.GetPart get_part = 3; + // 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 ::MediaRequest_GetPart& get_part() const; - inline ::MediaRequest_GetPart* mutable_get_part(); - inline ::MediaRequest_GetPart* release_get_part(); - inline void set_allocated_get_part(::MediaRequest_GetPart* get_part); + 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 .MediaRequest.Terminate terminate = 4; + // optional .Remote.MediaRequest.Terminate terminate = 4; inline bool has_terminate() const; inline void clear_terminate(); static const int kTerminateFieldNumber = 4; - inline const ::MediaRequest_Terminate& terminate() const; - inline ::MediaRequest_Terminate* mutable_terminate(); - inline ::MediaRequest_Terminate* release_terminate(); - inline void set_allocated_terminate(::MediaRequest_Terminate* terminate); + 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:MediaRequest) + // @@protoc_insertion_point(class_scope:Remote.MediaRequest) private: inline void set_has_request_type(); inline void clear_has_request_type(); @@ -534,9 +536,9 @@ class MediaRequest : public ::google::protobuf::Message { ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::MediaRequest_Prepare* prepare_; - ::MediaRequest_GetPart* get_part_; - ::MediaRequest_Terminate* terminate_; + ::Remote::MediaRequest_Prepare* prepare_; + ::Remote::MediaRequest_GetPart* get_part_; + ::Remote::MediaRequest_Terminate* terminate_; int request_type_; mutable int _cached_size_; @@ -628,7 +630,7 @@ class MediaResponse_MediaPart : public ::google::protobuf::Message { inline const ::google::protobuf::RepeatedPtrField< ::std::string>& data() const; inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_data(); - // @@protoc_insertion_point(class_scope:MediaResponse.MediaPart) + // @@protoc_insertion_point(class_scope:Remote.MediaResponse.MediaPart) private: inline void set_has_byte_offset(); inline void clear_has_byte_offset(); @@ -729,32 +731,32 @@ class MediaResponse : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // required .Error error = 1; + // required .Remote.Error error = 1; inline bool has_error() const; inline void clear_error(); static const int kErrorFieldNumber = 1; - inline const ::Error& error() const; - inline ::Error* mutable_error(); - inline ::Error* release_error(); - inline void set_allocated_error(::Error* error); + inline const ::Remote::Error& error() const; + inline ::Remote::Error* mutable_error(); + inline ::Remote::Error* release_error(); + inline void set_allocated_error(::Remote::Error* error); - // required .MediaResponse.Type response_type = 2; + // required .Remote.MediaResponse.Type response_type = 2; inline bool has_response_type() const; inline void clear_response_type(); static const int kResponseTypeFieldNumber = 2; - inline ::MediaResponse_Type response_type() const; - inline void set_response_type(::MediaResponse_Type value); + inline ::Remote::MediaResponse_Type response_type() const; + inline void set_response_type(::Remote::MediaResponse_Type value); - // optional .MediaResponse.MediaPart part = 3; + // optional .Remote.MediaResponse.MediaPart part = 3; inline bool has_part() const; inline void clear_part(); static const int kPartFieldNumber = 3; - inline const ::MediaResponse_MediaPart& part() const; - inline ::MediaResponse_MediaPart* mutable_part(); - inline ::MediaResponse_MediaPart* release_part(); - inline void set_allocated_part(::MediaResponse_MediaPart* part); + inline const ::Remote::MediaResponse_MediaPart& part() const; + inline ::Remote::MediaResponse_MediaPart* mutable_part(); + inline ::Remote::MediaResponse_MediaPart* release_part(); + inline void set_allocated_part(::Remote::MediaResponse_MediaPart* part); - // @@protoc_insertion_point(class_scope:MediaResponse) + // @@protoc_insertion_point(class_scope:Remote.MediaResponse) private: inline void set_has_error(); inline void clear_has_error(); @@ -765,8 +767,8 @@ class MediaResponse : public ::google::protobuf::Message { ::google::protobuf::UnknownFieldSet _unknown_fields_; - ::Error* error_; - ::MediaResponse_MediaPart* part_; + ::Remote::Error* error_; + ::Remote::MediaResponse_MediaPart* part_; int response_type_; mutable int _cached_size_; @@ -830,7 +832,7 @@ inline void MediaRequest_Prepare::set_offset_secs(::google::protobuf::uint32 val offset_secs_ = value; } -// optional .CodecType codec_type = 3; +// optional .Remote.CodecType codec_type = 3; inline bool MediaRequest_Prepare::has_codec_type() const { return (_has_bits_[0] & 0x00000004u) != 0; } @@ -844,11 +846,11 @@ inline void MediaRequest_Prepare::clear_codec_type() { codec_type_ = 1; clear_has_codec_type(); } -inline ::CodecType MediaRequest_Prepare::codec_type() const { - return static_cast< ::CodecType >(codec_type_); +inline ::Remote::CodecType MediaRequest_Prepare::codec_type() const { + return static_cast< ::Remote::CodecType >(codec_type_); } -inline void MediaRequest_Prepare::set_codec_type(::CodecType value) { - assert(::CodecType_IsValid(value)); +inline void MediaRequest_Prepare::set_codec_type(::Remote::CodecType value) { + assert(::Remote::CodecType_IsValid(value)); set_has_codec_type(); codec_type_ = value; } @@ -997,7 +999,7 @@ inline void MediaRequest_GetPart::set_requested_data_size(::google::protobuf::ui // MediaRequest -// required .MediaRequest.Type request_type = 1; +// required .Remote.MediaRequest.Type request_type = 1; inline bool MediaRequest::has_request_type() const { return (_has_bits_[0] & 0x00000001u) != 0; } @@ -1011,16 +1013,16 @@ inline void MediaRequest::clear_request_type() { request_type_ = 1; clear_has_request_type(); } -inline ::MediaRequest_Type MediaRequest::request_type() const { - return static_cast< ::MediaRequest_Type >(request_type_); +inline ::Remote::MediaRequest_Type MediaRequest::request_type() const { + return static_cast< ::Remote::MediaRequest_Type >(request_type_); } -inline void MediaRequest::set_request_type(::MediaRequest_Type value) { - assert(::MediaRequest_Type_IsValid(value)); +inline void MediaRequest::set_request_type(::Remote::MediaRequest_Type value) { + assert(::Remote::MediaRequest_Type_IsValid(value)); set_has_request_type(); request_type_ = value; } -// optional .MediaRequest.Prepare prepare = 2; +// optional .Remote.MediaRequest.Prepare prepare = 2; inline bool MediaRequest::has_prepare() const { return (_has_bits_[0] & 0x00000002u) != 0; } @@ -1031,24 +1033,24 @@ inline void MediaRequest::clear_has_prepare() { _has_bits_[0] &= ~0x00000002u; } inline void MediaRequest::clear_prepare() { - if (prepare_ != NULL) prepare_->::MediaRequest_Prepare::Clear(); + if (prepare_ != NULL) prepare_->::Remote::MediaRequest_Prepare::Clear(); clear_has_prepare(); } -inline const ::MediaRequest_Prepare& MediaRequest::prepare() const { +inline const ::Remote::MediaRequest_Prepare& MediaRequest::prepare() const { return prepare_ != NULL ? *prepare_ : *default_instance_->prepare_; } -inline ::MediaRequest_Prepare* MediaRequest::mutable_prepare() { +inline ::Remote::MediaRequest_Prepare* MediaRequest::mutable_prepare() { set_has_prepare(); - if (prepare_ == NULL) prepare_ = new ::MediaRequest_Prepare; + if (prepare_ == NULL) prepare_ = new ::Remote::MediaRequest_Prepare; return prepare_; } -inline ::MediaRequest_Prepare* MediaRequest::release_prepare() { +inline ::Remote::MediaRequest_Prepare* MediaRequest::release_prepare() { clear_has_prepare(); - ::MediaRequest_Prepare* temp = prepare_; + ::Remote::MediaRequest_Prepare* temp = prepare_; prepare_ = NULL; return temp; } -inline void MediaRequest::set_allocated_prepare(::MediaRequest_Prepare* prepare) { +inline void MediaRequest::set_allocated_prepare(::Remote::MediaRequest_Prepare* prepare) { delete prepare_; prepare_ = prepare; if (prepare) { @@ -1058,7 +1060,7 @@ inline void MediaRequest::set_allocated_prepare(::MediaRequest_Prepare* prepare) } } -// optional .MediaRequest.GetPart get_part = 3; +// optional .Remote.MediaRequest.GetPart get_part = 3; inline bool MediaRequest::has_get_part() const { return (_has_bits_[0] & 0x00000004u) != 0; } @@ -1069,24 +1071,24 @@ inline void MediaRequest::clear_has_get_part() { _has_bits_[0] &= ~0x00000004u; } inline void MediaRequest::clear_get_part() { - if (get_part_ != NULL) get_part_->::MediaRequest_GetPart::Clear(); + if (get_part_ != NULL) get_part_->::Remote::MediaRequest_GetPart::Clear(); clear_has_get_part(); } -inline const ::MediaRequest_GetPart& MediaRequest::get_part() const { +inline const ::Remote::MediaRequest_GetPart& MediaRequest::get_part() const { return get_part_ != NULL ? *get_part_ : *default_instance_->get_part_; } -inline ::MediaRequest_GetPart* MediaRequest::mutable_get_part() { +inline ::Remote::MediaRequest_GetPart* MediaRequest::mutable_get_part() { set_has_get_part(); - if (get_part_ == NULL) get_part_ = new ::MediaRequest_GetPart; + if (get_part_ == NULL) get_part_ = new ::Remote::MediaRequest_GetPart; return get_part_; } -inline ::MediaRequest_GetPart* MediaRequest::release_get_part() { +inline ::Remote::MediaRequest_GetPart* MediaRequest::release_get_part() { clear_has_get_part(); - ::MediaRequest_GetPart* temp = get_part_; + ::Remote::MediaRequest_GetPart* temp = get_part_; get_part_ = NULL; return temp; } -inline void MediaRequest::set_allocated_get_part(::MediaRequest_GetPart* get_part) { +inline void MediaRequest::set_allocated_get_part(::Remote::MediaRequest_GetPart* get_part) { delete get_part_; get_part_ = get_part; if (get_part) { @@ -1096,7 +1098,7 @@ inline void MediaRequest::set_allocated_get_part(::MediaRequest_GetPart* get_par } } -// optional .MediaRequest.Terminate terminate = 4; +// optional .Remote.MediaRequest.Terminate terminate = 4; inline bool MediaRequest::has_terminate() const { return (_has_bits_[0] & 0x00000008u) != 0; } @@ -1107,24 +1109,24 @@ inline void MediaRequest::clear_has_terminate() { _has_bits_[0] &= ~0x00000008u; } inline void MediaRequest::clear_terminate() { - if (terminate_ != NULL) terminate_->::MediaRequest_Terminate::Clear(); + if (terminate_ != NULL) terminate_->::Remote::MediaRequest_Terminate::Clear(); clear_has_terminate(); } -inline const ::MediaRequest_Terminate& MediaRequest::terminate() const { +inline const ::Remote::MediaRequest_Terminate& MediaRequest::terminate() const { return terminate_ != NULL ? *terminate_ : *default_instance_->terminate_; } -inline ::MediaRequest_Terminate* MediaRequest::mutable_terminate() { +inline ::Remote::MediaRequest_Terminate* MediaRequest::mutable_terminate() { set_has_terminate(); - if (terminate_ == NULL) terminate_ = new ::MediaRequest_Terminate; + if (terminate_ == NULL) terminate_ = new ::Remote::MediaRequest_Terminate; return terminate_; } -inline ::MediaRequest_Terminate* MediaRequest::release_terminate() { +inline ::Remote::MediaRequest_Terminate* MediaRequest::release_terminate() { clear_has_terminate(); - ::MediaRequest_Terminate* temp = terminate_; + ::Remote::MediaRequest_Terminate* temp = terminate_; terminate_ = NULL; return temp; } -inline void MediaRequest::set_allocated_terminate(::MediaRequest_Terminate* terminate) { +inline void MediaRequest::set_allocated_terminate(::Remote::MediaRequest_Terminate* terminate) { delete terminate_; terminate_ = terminate; if (terminate) { @@ -1208,7 +1210,7 @@ MediaResponse_MediaPart::mutable_data() { // MediaResponse -// required .Error error = 1; +// required .Remote.Error error = 1; inline bool MediaResponse::has_error() const { return (_has_bits_[0] & 0x00000001u) != 0; } @@ -1219,24 +1221,24 @@ inline void MediaResponse::clear_has_error() { _has_bits_[0] &= ~0x00000001u; } inline void MediaResponse::clear_error() { - if (error_ != NULL) error_->::Error::Clear(); + if (error_ != NULL) error_->::Remote::Error::Clear(); clear_has_error(); } -inline const ::Error& MediaResponse::error() const { +inline const ::Remote::Error& MediaResponse::error() const { return error_ != NULL ? *error_ : *default_instance_->error_; } -inline ::Error* MediaResponse::mutable_error() { +inline ::Remote::Error* MediaResponse::mutable_error() { set_has_error(); - if (error_ == NULL) error_ = new ::Error; + if (error_ == NULL) error_ = new ::Remote::Error; return error_; } -inline ::Error* MediaResponse::release_error() { +inline ::Remote::Error* MediaResponse::release_error() { clear_has_error(); - ::Error* temp = error_; + ::Remote::Error* temp = error_; error_ = NULL; return temp; } -inline void MediaResponse::set_allocated_error(::Error* error) { +inline void MediaResponse::set_allocated_error(::Remote::Error* error) { delete error_; error_ = error; if (error) { @@ -1246,7 +1248,7 @@ inline void MediaResponse::set_allocated_error(::Error* error) { } } -// required .MediaResponse.Type response_type = 2; +// required .Remote.MediaResponse.Type response_type = 2; inline bool MediaResponse::has_response_type() const { return (_has_bits_[0] & 0x00000002u) != 0; } @@ -1260,16 +1262,16 @@ inline void MediaResponse::clear_response_type() { response_type_ = 1; clear_has_response_type(); } -inline ::MediaResponse_Type MediaResponse::response_type() const { - return static_cast< ::MediaResponse_Type >(response_type_); +inline ::Remote::MediaResponse_Type MediaResponse::response_type() const { + return static_cast< ::Remote::MediaResponse_Type >(response_type_); } -inline void MediaResponse::set_response_type(::MediaResponse_Type value) { - assert(::MediaResponse_Type_IsValid(value)); +inline void MediaResponse::set_response_type(::Remote::MediaResponse_Type value) { + assert(::Remote::MediaResponse_Type_IsValid(value)); set_has_response_type(); response_type_ = value; } -// optional .MediaResponse.MediaPart part = 3; +// optional .Remote.MediaResponse.MediaPart part = 3; inline bool MediaResponse::has_part() const { return (_has_bits_[0] & 0x00000004u) != 0; } @@ -1280,24 +1282,24 @@ inline void MediaResponse::clear_has_part() { _has_bits_[0] &= ~0x00000004u; } inline void MediaResponse::clear_part() { - if (part_ != NULL) part_->::MediaResponse_MediaPart::Clear(); + if (part_ != NULL) part_->::Remote::MediaResponse_MediaPart::Clear(); clear_has_part(); } -inline const ::MediaResponse_MediaPart& MediaResponse::part() const { +inline const ::Remote::MediaResponse_MediaPart& MediaResponse::part() const { return part_ != NULL ? *part_ : *default_instance_->part_; } -inline ::MediaResponse_MediaPart* MediaResponse::mutable_part() { +inline ::Remote::MediaResponse_MediaPart* MediaResponse::mutable_part() { set_has_part(); - if (part_ == NULL) part_ = new ::MediaResponse_MediaPart; + if (part_ == NULL) part_ = new ::Remote::MediaResponse_MediaPart; return part_; } -inline ::MediaResponse_MediaPart* MediaResponse::release_part() { +inline ::Remote::MediaResponse_MediaPart* MediaResponse::release_part() { clear_has_part(); - ::MediaResponse_MediaPart* temp = part_; + ::Remote::MediaResponse_MediaPart* temp = part_; part_ = NULL; return temp; } -inline void MediaResponse::set_allocated_part(::MediaResponse_MediaPart* part) { +inline void MediaResponse::set_allocated_part(::Remote::MediaResponse_MediaPart* part) { delete part_; part_ = part; if (part) { @@ -1310,21 +1312,23 @@ inline void MediaResponse::set_allocated_part(::MediaResponse_MediaPart* part) { // @@protoc_insertion_point(namespace_scope) +} // namespace Remote + #ifndef SWIG namespace google { namespace protobuf { template <> -inline const EnumDescriptor* GetEnumDescriptor< ::MediaRequest_Type>() { - return ::MediaRequest_Type_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaRequest_Type>() { + return ::Remote::MediaRequest_Type_descriptor(); } template <> -inline const EnumDescriptor* GetEnumDescriptor< ::MediaResponse_Type>() { - return ::MediaResponse_Type_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::Remote::MediaResponse_Type>() { + return ::Remote::MediaResponse_Type_descriptor(); } template <> -inline const EnumDescriptor* GetEnumDescriptor< ::CodecType>() { - return ::CodecType_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::Remote::CodecType>() { + return ::Remote::CodecType_descriptor(); } } // namespace google diff --git a/remote/messages/messages.pb.cc b/remote/messages/messages.pb.cc index 691724ef..1099ae30 100644 --- a/remote/messages/messages.pb.cc +++ b/remote/messages/messages.pb.cc @@ -16,6 +16,8 @@ #include // @@protoc_insertion_point(includes) +namespace Remote { + namespace { const ::google::protobuf::Descriptor* ClientMessage_descriptor_ = NULL; @@ -40,7 +42,7 @@ void protobuf_AssignDesc_messages_2eproto() { 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, collection_request_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientMessage, audio_collection_request_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ClientMessage, media_request_), }; ClientMessage_reflection_ = @@ -59,7 +61,7 @@ void protobuf_AssignDesc_messages_2eproto() { 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, collection_response_), + GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMessage, audio_collection_response_), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ServerMessage, media_response_), }; ServerMessage_reflection_ = @@ -107,26 +109,28 @@ void protobuf_AddDesc_messages_2eproto() { already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; - ::protobuf_AddDesc_common_2eproto(); - ::protobuf_AddDesc_auth_2eproto(); - ::protobuf_AddDesc_collection_2eproto(); - ::protobuf_AddDesc_media_2eproto(); + ::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\032\014common.proto\032\nauth.pro" - "to\032\020collection.proto\032\013media.proto\"\356\001\n\rCl" - "ientMessage\022!\n\004type\030\001 \002(\0162\023.ClientMessag" - "e.Type\022\"\n\014auth_request\030\002 \001(\0132\014.AuthReque" - "st\022.\n\022collection_request\030\003 \001(\0132\022.Collect" - "ionRequest\022$\n\rmedia_request\030\004 \001(\0132\r.Medi" - "aRequest\"@\n\004Type\022\017\n\013AuthRequest\020\001\022\025\n\021Col" - "lectionRequest\020\002\022\020\n\014MediaRequest\020\003\"\367\001\n\rS" - "erverMessage\022!\n\004type\030\001 \002(\0162\023.ServerMessa" - "ge.Type\022$\n\rauth_response\030\002 \001(\0132\r.AuthRes" - "ponse\0220\n\023collection_response\030\003 \001(\0132\023.Col" - "lectionResponse\022&\n\016media_response\030\004 \001(\0132" - "\016.MediaResponse\"C\n\004Type\022\020\n\014AuthResponse\020" - "\001\022\026\n\022CollectionResponse\020\002\022\021\n\rMediaRespon" - "se\020\003", 564); + "\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\027AduioCollectionResponse\020" + "\002\022\021\n\rMediaResponse\020\003", 660); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "messages.proto", &protobuf_RegisterTypes); ClientMessage::default_instance_ = new ClientMessage(); @@ -162,7 +166,7 @@ bool ClientMessage_Type_IsValid(int value) { #ifndef _MSC_VER const ClientMessage_Type ClientMessage::AuthRequest; -const ClientMessage_Type ClientMessage::CollectionRequest; +const ClientMessage_Type ClientMessage::AudioCollectionRequest; const ClientMessage_Type ClientMessage::MediaRequest; const ClientMessage_Type ClientMessage::Type_MIN; const ClientMessage_Type ClientMessage::Type_MAX; @@ -171,7 +175,7 @@ const int ClientMessage::Type_ARRAYSIZE; #ifndef _MSC_VER const int ClientMessage::kTypeFieldNumber; const int ClientMessage::kAuthRequestFieldNumber; -const int ClientMessage::kCollectionRequestFieldNumber; +const int ClientMessage::kAudioCollectionRequestFieldNumber; const int ClientMessage::kMediaRequestFieldNumber; #endif // !_MSC_VER @@ -181,9 +185,9 @@ ClientMessage::ClientMessage() } void ClientMessage::InitAsDefaultInstance() { - auth_request_ = const_cast< ::AuthRequest*>(&::AuthRequest::default_instance()); - collection_request_ = const_cast< ::CollectionRequest*>(&::CollectionRequest::default_instance()); - media_request_ = const_cast< ::MediaRequest*>(&::MediaRequest::default_instance()); + 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) @@ -196,7 +200,7 @@ void ClientMessage::SharedCtor() { _cached_size_ = 0; type_ = 1; auth_request_ = NULL; - collection_request_ = NULL; + audio_collection_request_ = NULL; media_request_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -208,7 +212,7 @@ ClientMessage::~ClientMessage() { void ClientMessage::SharedDtor() { if (this != default_instance_) { delete auth_request_; - delete collection_request_; + delete audio_collection_request_; delete media_request_; } } @@ -238,13 +242,13 @@ void ClientMessage::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { type_ = 1; if (has_auth_request()) { - if (auth_request_ != NULL) auth_request_->::AuthRequest::Clear(); + if (auth_request_ != NULL) auth_request_->::Remote::AuthRequest::Clear(); } - if (has_collection_request()) { - if (collection_request_ != NULL) collection_request_->::CollectionRequest::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_->::MediaRequest::Clear(); + if (media_request_ != NULL) media_request_->::Remote::MediaRequest::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -257,7 +261,7 @@ bool ClientMessage::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .ClientMessage.Type type = 1; + // required .Remote.ClientMessage.Type type = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { @@ -265,8 +269,8 @@ bool ClientMessage::MergePartialFromCodedStream( DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - if (::ClientMessage_Type_IsValid(value)) { - set_type(static_cast< ::ClientMessage_Type >(value)); + if (::Remote::ClientMessage_Type_IsValid(value)) { + set_type(static_cast< ::Remote::ClientMessage_Type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } @@ -277,7 +281,7 @@ bool ClientMessage::MergePartialFromCodedStream( break; } - // optional .AuthRequest auth_request = 2; + // optional .Remote.AuthRequest auth_request = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -287,17 +291,17 @@ bool ClientMessage::MergePartialFromCodedStream( } else { goto handle_uninterpreted; } - if (input->ExpectTag(26)) goto parse_collection_request; + if (input->ExpectTag(26)) goto parse_audio_collection_request; break; } - // optional .CollectionRequest collection_request = 3; + // optional .Remote.AudioCollectionRequest audio_collection_request = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_collection_request: + parse_audio_collection_request: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_collection_request())); + input, mutable_audio_collection_request())); } else { goto handle_uninterpreted; } @@ -305,7 +309,7 @@ bool ClientMessage::MergePartialFromCodedStream( break; } - // optional .MediaRequest media_request = 4; + // optional .Remote.MediaRequest media_request = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -337,25 +341,25 @@ bool ClientMessage::MergePartialFromCodedStream( void ClientMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // required .ClientMessage.Type type = 1; + // required .Remote.ClientMessage.Type type = 1; if (has_type()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->type(), output); } - // optional .AuthRequest auth_request = 2; + // optional .Remote.AuthRequest auth_request = 2; if (has_auth_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->auth_request(), output); } - // optional .CollectionRequest collection_request = 3; - if (has_collection_request()) { + // optional .Remote.AudioCollectionRequest audio_collection_request = 3; + if (has_audio_collection_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->collection_request(), output); + 3, this->audio_collection_request(), output); } - // optional .MediaRequest media_request = 4; + // optional .Remote.MediaRequest media_request = 4; if (has_media_request()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->media_request(), output); @@ -369,27 +373,27 @@ void ClientMessage::SerializeWithCachedSizes( ::google::protobuf::uint8* ClientMessage::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // required .ClientMessage.Type type = 1; + // required .Remote.ClientMessage.Type type = 1; if (has_type()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->type(), target); } - // optional .AuthRequest auth_request = 2; + // optional .Remote.AuthRequest auth_request = 2; if (has_auth_request()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 2, this->auth_request(), target); } - // optional .CollectionRequest collection_request = 3; - if (has_collection_request()) { + // optional .Remote.AudioCollectionRequest audio_collection_request = 3; + if (has_audio_collection_request()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( - 3, this->collection_request(), target); + 3, this->audio_collection_request(), target); } - // optional .MediaRequest media_request = 4; + // optional .Remote.MediaRequest media_request = 4; if (has_media_request()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -407,27 +411,27 @@ int ClientMessage::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .ClientMessage.Type type = 1; + // required .Remote.ClientMessage.Type type = 1; if (has_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); } - // optional .AuthRequest auth_request = 2; + // optional .Remote.AuthRequest auth_request = 2; if (has_auth_request()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->auth_request()); } - // optional .CollectionRequest collection_request = 3; - if (has_collection_request()) { + // optional .Remote.AudioCollectionRequest audio_collection_request = 3; + if (has_audio_collection_request()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->collection_request()); + this->audio_collection_request()); } - // optional .MediaRequest media_request = 4; + // optional .Remote.MediaRequest media_request = 4; if (has_media_request()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -465,13 +469,13 @@ void ClientMessage::MergeFrom(const ClientMessage& from) { set_type(from.type()); } if (from.has_auth_request()) { - mutable_auth_request()->::AuthRequest::MergeFrom(from.auth_request()); + mutable_auth_request()->::Remote::AuthRequest::MergeFrom(from.auth_request()); } - if (from.has_collection_request()) { - mutable_collection_request()->::CollectionRequest::MergeFrom(from.collection_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()->::MediaRequest::MergeFrom(from.media_request()); + mutable_media_request()->::Remote::MediaRequest::MergeFrom(from.media_request()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); @@ -495,8 +499,8 @@ bool ClientMessage::IsInitialized() const { if (has_auth_request()) { if (!this->auth_request().IsInitialized()) return false; } - if (has_collection_request()) { - if (!this->collection_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; @@ -508,7 +512,7 @@ void ClientMessage::Swap(ClientMessage* other) { if (other != this) { std::swap(type_, other->type_); std::swap(auth_request_, other->auth_request_); - std::swap(collection_request_, other->collection_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_); @@ -544,7 +548,7 @@ bool ServerMessage_Type_IsValid(int value) { #ifndef _MSC_VER const ServerMessage_Type ServerMessage::AuthResponse; -const ServerMessage_Type ServerMessage::CollectionResponse; +const ServerMessage_Type ServerMessage::AduioCollectionResponse; const ServerMessage_Type ServerMessage::MediaResponse; const ServerMessage_Type ServerMessage::Type_MIN; const ServerMessage_Type ServerMessage::Type_MAX; @@ -553,7 +557,7 @@ const int ServerMessage::Type_ARRAYSIZE; #ifndef _MSC_VER const int ServerMessage::kTypeFieldNumber; const int ServerMessage::kAuthResponseFieldNumber; -const int ServerMessage::kCollectionResponseFieldNumber; +const int ServerMessage::kAudioCollectionResponseFieldNumber; const int ServerMessage::kMediaResponseFieldNumber; #endif // !_MSC_VER @@ -563,9 +567,9 @@ ServerMessage::ServerMessage() } void ServerMessage::InitAsDefaultInstance() { - auth_response_ = const_cast< ::AuthResponse*>(&::AuthResponse::default_instance()); - collection_response_ = const_cast< ::CollectionResponse*>(&::CollectionResponse::default_instance()); - media_response_ = const_cast< ::MediaResponse*>(&::MediaResponse::default_instance()); + 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) @@ -578,7 +582,7 @@ void ServerMessage::SharedCtor() { _cached_size_ = 0; type_ = 1; auth_response_ = NULL; - collection_response_ = NULL; + audio_collection_response_ = NULL; media_response_ = NULL; ::memset(_has_bits_, 0, sizeof(_has_bits_)); } @@ -590,7 +594,7 @@ ServerMessage::~ServerMessage() { void ServerMessage::SharedDtor() { if (this != default_instance_) { delete auth_response_; - delete collection_response_; + delete audio_collection_response_; delete media_response_; } } @@ -620,13 +624,13 @@ void ServerMessage::Clear() { if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { type_ = 1; if (has_auth_response()) { - if (auth_response_ != NULL) auth_response_->::AuthResponse::Clear(); + if (auth_response_ != NULL) auth_response_->::Remote::AuthResponse::Clear(); } - if (has_collection_response()) { - if (collection_response_ != NULL) collection_response_->::CollectionResponse::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_->::MediaResponse::Clear(); + if (media_response_ != NULL) media_response_->::Remote::MediaResponse::Clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); @@ -639,7 +643,7 @@ bool ServerMessage::MergePartialFromCodedStream( ::google::protobuf::uint32 tag; while ((tag = input->ReadTag()) != 0) { switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { - // required .ServerMessage.Type type = 1; + // required .Remote.ServerMessage.Type type = 1; case 1: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) { @@ -647,8 +651,8 @@ bool ServerMessage::MergePartialFromCodedStream( DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive< int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>( input, &value))); - if (::ServerMessage_Type_IsValid(value)) { - set_type(static_cast< ::ServerMessage_Type >(value)); + if (::Remote::ServerMessage_Type_IsValid(value)) { + set_type(static_cast< ::Remote::ServerMessage_Type >(value)); } else { mutable_unknown_fields()->AddVarint(1, value); } @@ -659,7 +663,7 @@ bool ServerMessage::MergePartialFromCodedStream( break; } - // optional .AuthResponse auth_response = 2; + // optional .Remote.AuthResponse auth_response = 2; case 2: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -669,17 +673,17 @@ bool ServerMessage::MergePartialFromCodedStream( } else { goto handle_uninterpreted; } - if (input->ExpectTag(26)) goto parse_collection_response; + if (input->ExpectTag(26)) goto parse_audio_collection_response; break; } - // optional .CollectionResponse collection_response = 3; + // optional .Remote.AudioCollectionResponse audio_collection_response = 3; case 3: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { - parse_collection_response: + parse_audio_collection_response: DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual( - input, mutable_collection_response())); + input, mutable_audio_collection_response())); } else { goto handle_uninterpreted; } @@ -687,7 +691,7 @@ bool ServerMessage::MergePartialFromCodedStream( break; } - // optional .MediaResponse media_response = 4; + // optional .Remote.MediaResponse media_response = 4; case 4: { if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) { @@ -719,25 +723,25 @@ bool ServerMessage::MergePartialFromCodedStream( void ServerMessage::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { - // required .ServerMessage.Type type = 1; + // required .Remote.ServerMessage.Type type = 1; if (has_type()) { ::google::protobuf::internal::WireFormatLite::WriteEnum( 1, this->type(), output); } - // optional .AuthResponse auth_response = 2; + // optional .Remote.AuthResponse auth_response = 2; if (has_auth_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 2, this->auth_response(), output); } - // optional .CollectionResponse collection_response = 3; - if (has_collection_response()) { + // optional .Remote.AudioCollectionResponse audio_collection_response = 3; + if (has_audio_collection_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( - 3, this->collection_response(), output); + 3, this->audio_collection_response(), output); } - // optional .MediaResponse media_response = 4; + // optional .Remote.MediaResponse media_response = 4; if (has_media_response()) { ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray( 4, this->media_response(), output); @@ -751,27 +755,27 @@ void ServerMessage::SerializeWithCachedSizes( ::google::protobuf::uint8* ServerMessage::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { - // required .ServerMessage.Type type = 1; + // required .Remote.ServerMessage.Type type = 1; if (has_type()) { target = ::google::protobuf::internal::WireFormatLite::WriteEnumToArray( 1, this->type(), target); } - // optional .AuthResponse auth_response = 2; + // optional .Remote.AuthResponse auth_response = 2; if (has_auth_response()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( 2, this->auth_response(), target); } - // optional .CollectionResponse collection_response = 3; - if (has_collection_response()) { + // optional .Remote.AudioCollectionResponse audio_collection_response = 3; + if (has_audio_collection_response()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( - 3, this->collection_response(), target); + 3, this->audio_collection_response(), target); } - // optional .MediaResponse media_response = 4; + // optional .Remote.MediaResponse media_response = 4; if (has_media_response()) { target = ::google::protobuf::internal::WireFormatLite:: WriteMessageNoVirtualToArray( @@ -789,27 +793,27 @@ int ServerMessage::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { - // required .ServerMessage.Type type = 1; + // required .Remote.ServerMessage.Type type = 1; if (has_type()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::EnumSize(this->type()); } - // optional .AuthResponse auth_response = 2; + // optional .Remote.AuthResponse auth_response = 2; if (has_auth_response()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( this->auth_response()); } - // optional .CollectionResponse collection_response = 3; - if (has_collection_response()) { + // optional .Remote.AudioCollectionResponse audio_collection_response = 3; + if (has_audio_collection_response()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( - this->collection_response()); + this->audio_collection_response()); } - // optional .MediaResponse media_response = 4; + // optional .Remote.MediaResponse media_response = 4; if (has_media_response()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual( @@ -847,13 +851,13 @@ void ServerMessage::MergeFrom(const ServerMessage& from) { set_type(from.type()); } if (from.has_auth_response()) { - mutable_auth_response()->::AuthResponse::MergeFrom(from.auth_response()); + mutable_auth_response()->::Remote::AuthResponse::MergeFrom(from.auth_response()); } - if (from.has_collection_response()) { - mutable_collection_response()->::CollectionResponse::MergeFrom(from.collection_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()->::MediaResponse::MergeFrom(from.media_response()); + mutable_media_response()->::Remote::MediaResponse::MergeFrom(from.media_response()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); @@ -877,8 +881,8 @@ bool ServerMessage::IsInitialized() const { if (has_auth_response()) { if (!this->auth_response().IsInitialized()) return false; } - if (has_collection_response()) { - if (!this->collection_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; @@ -890,7 +894,7 @@ void ServerMessage::Swap(ServerMessage* other) { if (other != this) { std::swap(type_, other->type_); std::swap(auth_response_, other->auth_response_); - std::swap(collection_response_, other->collection_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_); @@ -909,4 +913,6 @@ void ServerMessage::Swap(ServerMessage* other) { // @@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 index a921b6a0..aedbb447 100644 --- a/remote/messages/messages.pb.h +++ b/remote/messages/messages.pb.h @@ -31,6 +31,8 @@ #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(); @@ -41,7 +43,7 @@ class ServerMessage; enum ClientMessage_Type { ClientMessage_Type_AuthRequest = 1, - ClientMessage_Type_CollectionRequest = 2, + ClientMessage_Type_AudioCollectionRequest = 2, ClientMessage_Type_MediaRequest = 3 }; bool ClientMessage_Type_IsValid(int value); @@ -61,7 +63,7 @@ inline bool ClientMessage_Type_Parse( } enum ServerMessage_Type { ServerMessage_Type_AuthResponse = 1, - ServerMessage_Type_CollectionResponse = 2, + ServerMessage_Type_AduioCollectionResponse = 2, ServerMessage_Type_MediaResponse = 3 }; bool ServerMessage_Type_IsValid(int value); @@ -135,7 +137,7 @@ class ClientMessage : public ::google::protobuf::Message { typedef ClientMessage_Type Type; static const Type AuthRequest = ClientMessage_Type_AuthRequest; - static const Type CollectionRequest = ClientMessage_Type_CollectionRequest; + 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); @@ -160,56 +162,56 @@ class ClientMessage : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // required .ClientMessage.Type type = 1; + // required .Remote.ClientMessage.Type type = 1; inline bool has_type() const; inline void clear_type(); static const int kTypeFieldNumber = 1; - inline ::ClientMessage_Type type() const; - inline void set_type(::ClientMessage_Type value); + inline ::Remote::ClientMessage_Type type() const; + inline void set_type(::Remote::ClientMessage_Type value); - // optional .AuthRequest auth_request = 2; + // optional .Remote.AuthRequest auth_request = 2; inline bool has_auth_request() const; inline void clear_auth_request(); static const int kAuthRequestFieldNumber = 2; - inline const ::AuthRequest& auth_request() const; - inline ::AuthRequest* mutable_auth_request(); - inline ::AuthRequest* release_auth_request(); - inline void set_allocated_auth_request(::AuthRequest* auth_request); + 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 .CollectionRequest collection_request = 3; - inline bool has_collection_request() const; - inline void clear_collection_request(); - static const int kCollectionRequestFieldNumber = 3; - inline const ::CollectionRequest& collection_request() const; - inline ::CollectionRequest* mutable_collection_request(); - inline ::CollectionRequest* release_collection_request(); - inline void set_allocated_collection_request(::CollectionRequest* collection_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 .MediaRequest media_request = 4; + // optional .Remote.MediaRequest media_request = 4; inline bool has_media_request() const; inline void clear_media_request(); static const int kMediaRequestFieldNumber = 4; - inline const ::MediaRequest& media_request() const; - inline ::MediaRequest* mutable_media_request(); - inline ::MediaRequest* release_media_request(); - inline void set_allocated_media_request(::MediaRequest* media_request); + 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:ClientMessage) + // @@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_collection_request(); - inline void clear_has_collection_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_; - ::AuthRequest* auth_request_; - ::CollectionRequest* collection_request_; - ::MediaRequest* media_request_; + ::Remote::AuthRequest* auth_request_; + ::Remote::AudioCollectionRequest* audio_collection_request_; + ::Remote::MediaRequest* media_request_; int type_; mutable int _cached_size_; @@ -278,7 +280,7 @@ class ServerMessage : public ::google::protobuf::Message { typedef ServerMessage_Type Type; static const Type AuthResponse = ServerMessage_Type_AuthResponse; - static const Type CollectionResponse = ServerMessage_Type_CollectionResponse; + static const Type AduioCollectionResponse = ServerMessage_Type_AduioCollectionResponse; static const Type MediaResponse = ServerMessage_Type_MediaResponse; static inline bool Type_IsValid(int value) { return ServerMessage_Type_IsValid(value); @@ -303,56 +305,56 @@ class ServerMessage : public ::google::protobuf::Message { // accessors ------------------------------------------------------- - // required .ServerMessage.Type type = 1; + // required .Remote.ServerMessage.Type type = 1; inline bool has_type() const; inline void clear_type(); static const int kTypeFieldNumber = 1; - inline ::ServerMessage_Type type() const; - inline void set_type(::ServerMessage_Type value); + inline ::Remote::ServerMessage_Type type() const; + inline void set_type(::Remote::ServerMessage_Type value); - // optional .AuthResponse auth_response = 2; + // optional .Remote.AuthResponse auth_response = 2; inline bool has_auth_response() const; inline void clear_auth_response(); static const int kAuthResponseFieldNumber = 2; - inline const ::AuthResponse& auth_response() const; - inline ::AuthResponse* mutable_auth_response(); - inline ::AuthResponse* release_auth_response(); - inline void set_allocated_auth_response(::AuthResponse* auth_response); + 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 .CollectionResponse collection_response = 3; - inline bool has_collection_response() const; - inline void clear_collection_response(); - static const int kCollectionResponseFieldNumber = 3; - inline const ::CollectionResponse& collection_response() const; - inline ::CollectionResponse* mutable_collection_response(); - inline ::CollectionResponse* release_collection_response(); - inline void set_allocated_collection_response(::CollectionResponse* collection_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 .MediaResponse media_response = 4; + // optional .Remote.MediaResponse media_response = 4; inline bool has_media_response() const; inline void clear_media_response(); static const int kMediaResponseFieldNumber = 4; - inline const ::MediaResponse& media_response() const; - inline ::MediaResponse* mutable_media_response(); - inline ::MediaResponse* release_media_response(); - inline void set_allocated_media_response(::MediaResponse* media_response); + 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:ServerMessage) + // @@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_collection_response(); - inline void clear_has_collection_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_; - ::AuthResponse* auth_response_; - ::CollectionResponse* collection_response_; - ::MediaResponse* media_response_; + ::Remote::AuthResponse* auth_response_; + ::Remote::AudioCollectionResponse* audio_collection_response_; + ::Remote::MediaResponse* media_response_; int type_; mutable int _cached_size_; @@ -372,7 +374,7 @@ class ServerMessage : public ::google::protobuf::Message { // ClientMessage -// required .ClientMessage.Type type = 1; +// required .Remote.ClientMessage.Type type = 1; inline bool ClientMessage::has_type() const { return (_has_bits_[0] & 0x00000001u) != 0; } @@ -386,16 +388,16 @@ inline void ClientMessage::clear_type() { type_ = 1; clear_has_type(); } -inline ::ClientMessage_Type ClientMessage::type() const { - return static_cast< ::ClientMessage_Type >(type_); +inline ::Remote::ClientMessage_Type ClientMessage::type() const { + return static_cast< ::Remote::ClientMessage_Type >(type_); } -inline void ClientMessage::set_type(::ClientMessage_Type value) { - assert(::ClientMessage_Type_IsValid(value)); +inline void ClientMessage::set_type(::Remote::ClientMessage_Type value) { + assert(::Remote::ClientMessage_Type_IsValid(value)); set_has_type(); type_ = value; } -// optional .AuthRequest auth_request = 2; +// optional .Remote.AuthRequest auth_request = 2; inline bool ClientMessage::has_auth_request() const { return (_has_bits_[0] & 0x00000002u) != 0; } @@ -406,24 +408,24 @@ inline void ClientMessage::clear_has_auth_request() { _has_bits_[0] &= ~0x00000002u; } inline void ClientMessage::clear_auth_request() { - if (auth_request_ != NULL) auth_request_->::AuthRequest::Clear(); + if (auth_request_ != NULL) auth_request_->::Remote::AuthRequest::Clear(); clear_has_auth_request(); } -inline const ::AuthRequest& ClientMessage::auth_request() const { +inline const ::Remote::AuthRequest& ClientMessage::auth_request() const { return auth_request_ != NULL ? *auth_request_ : *default_instance_->auth_request_; } -inline ::AuthRequest* ClientMessage::mutable_auth_request() { +inline ::Remote::AuthRequest* ClientMessage::mutable_auth_request() { set_has_auth_request(); - if (auth_request_ == NULL) auth_request_ = new ::AuthRequest; + if (auth_request_ == NULL) auth_request_ = new ::Remote::AuthRequest; return auth_request_; } -inline ::AuthRequest* ClientMessage::release_auth_request() { +inline ::Remote::AuthRequest* ClientMessage::release_auth_request() { clear_has_auth_request(); - ::AuthRequest* temp = auth_request_; + ::Remote::AuthRequest* temp = auth_request_; auth_request_ = NULL; return temp; } -inline void ClientMessage::set_allocated_auth_request(::AuthRequest* auth_request) { +inline void ClientMessage::set_allocated_auth_request(::Remote::AuthRequest* auth_request) { delete auth_request_; auth_request_ = auth_request; if (auth_request) { @@ -433,45 +435,45 @@ inline void ClientMessage::set_allocated_auth_request(::AuthRequest* auth_reques } } -// optional .CollectionRequest collection_request = 3; -inline bool ClientMessage::has_collection_request() const { +// 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_collection_request() { +inline void ClientMessage::set_has_audio_collection_request() { _has_bits_[0] |= 0x00000004u; } -inline void ClientMessage::clear_has_collection_request() { +inline void ClientMessage::clear_has_audio_collection_request() { _has_bits_[0] &= ~0x00000004u; } -inline void ClientMessage::clear_collection_request() { - if (collection_request_ != NULL) collection_request_->::CollectionRequest::Clear(); - clear_has_collection_request(); +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 ::CollectionRequest& ClientMessage::collection_request() const { - return collection_request_ != NULL ? *collection_request_ : *default_instance_->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 ::CollectionRequest* ClientMessage::mutable_collection_request() { - set_has_collection_request(); - if (collection_request_ == NULL) collection_request_ = new ::CollectionRequest; - return 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 ::CollectionRequest* ClientMessage::release_collection_request() { - clear_has_collection_request(); - ::CollectionRequest* temp = collection_request_; - collection_request_ = NULL; +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_collection_request(::CollectionRequest* collection_request) { - delete collection_request_; - collection_request_ = collection_request; - if (collection_request) { - set_has_collection_request(); +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_collection_request(); + clear_has_audio_collection_request(); } } -// optional .MediaRequest media_request = 4; +// optional .Remote.MediaRequest media_request = 4; inline bool ClientMessage::has_media_request() const { return (_has_bits_[0] & 0x00000008u) != 0; } @@ -482,24 +484,24 @@ inline void ClientMessage::clear_has_media_request() { _has_bits_[0] &= ~0x00000008u; } inline void ClientMessage::clear_media_request() { - if (media_request_ != NULL) media_request_->::MediaRequest::Clear(); + if (media_request_ != NULL) media_request_->::Remote::MediaRequest::Clear(); clear_has_media_request(); } -inline const ::MediaRequest& ClientMessage::media_request() const { +inline const ::Remote::MediaRequest& ClientMessage::media_request() const { return media_request_ != NULL ? *media_request_ : *default_instance_->media_request_; } -inline ::MediaRequest* ClientMessage::mutable_media_request() { +inline ::Remote::MediaRequest* ClientMessage::mutable_media_request() { set_has_media_request(); - if (media_request_ == NULL) media_request_ = new ::MediaRequest; + if (media_request_ == NULL) media_request_ = new ::Remote::MediaRequest; return media_request_; } -inline ::MediaRequest* ClientMessage::release_media_request() { +inline ::Remote::MediaRequest* ClientMessage::release_media_request() { clear_has_media_request(); - ::MediaRequest* temp = media_request_; + ::Remote::MediaRequest* temp = media_request_; media_request_ = NULL; return temp; } -inline void ClientMessage::set_allocated_media_request(::MediaRequest* media_request) { +inline void ClientMessage::set_allocated_media_request(::Remote::MediaRequest* media_request) { delete media_request_; media_request_ = media_request; if (media_request) { @@ -513,7 +515,7 @@ inline void ClientMessage::set_allocated_media_request(::MediaRequest* media_req // ServerMessage -// required .ServerMessage.Type type = 1; +// required .Remote.ServerMessage.Type type = 1; inline bool ServerMessage::has_type() const { return (_has_bits_[0] & 0x00000001u) != 0; } @@ -527,16 +529,16 @@ inline void ServerMessage::clear_type() { type_ = 1; clear_has_type(); } -inline ::ServerMessage_Type ServerMessage::type() const { - return static_cast< ::ServerMessage_Type >(type_); +inline ::Remote::ServerMessage_Type ServerMessage::type() const { + return static_cast< ::Remote::ServerMessage_Type >(type_); } -inline void ServerMessage::set_type(::ServerMessage_Type value) { - assert(::ServerMessage_Type_IsValid(value)); +inline void ServerMessage::set_type(::Remote::ServerMessage_Type value) { + assert(::Remote::ServerMessage_Type_IsValid(value)); set_has_type(); type_ = value; } -// optional .AuthResponse auth_response = 2; +// optional .Remote.AuthResponse auth_response = 2; inline bool ServerMessage::has_auth_response() const { return (_has_bits_[0] & 0x00000002u) != 0; } @@ -547,24 +549,24 @@ inline void ServerMessage::clear_has_auth_response() { _has_bits_[0] &= ~0x00000002u; } inline void ServerMessage::clear_auth_response() { - if (auth_response_ != NULL) auth_response_->::AuthResponse::Clear(); + if (auth_response_ != NULL) auth_response_->::Remote::AuthResponse::Clear(); clear_has_auth_response(); } -inline const ::AuthResponse& ServerMessage::auth_response() const { +inline const ::Remote::AuthResponse& ServerMessage::auth_response() const { return auth_response_ != NULL ? *auth_response_ : *default_instance_->auth_response_; } -inline ::AuthResponse* ServerMessage::mutable_auth_response() { +inline ::Remote::AuthResponse* ServerMessage::mutable_auth_response() { set_has_auth_response(); - if (auth_response_ == NULL) auth_response_ = new ::AuthResponse; + if (auth_response_ == NULL) auth_response_ = new ::Remote::AuthResponse; return auth_response_; } -inline ::AuthResponse* ServerMessage::release_auth_response() { +inline ::Remote::AuthResponse* ServerMessage::release_auth_response() { clear_has_auth_response(); - ::AuthResponse* temp = auth_response_; + ::Remote::AuthResponse* temp = auth_response_; auth_response_ = NULL; return temp; } -inline void ServerMessage::set_allocated_auth_response(::AuthResponse* auth_response) { +inline void ServerMessage::set_allocated_auth_response(::Remote::AuthResponse* auth_response) { delete auth_response_; auth_response_ = auth_response; if (auth_response) { @@ -574,45 +576,45 @@ inline void ServerMessage::set_allocated_auth_response(::AuthResponse* auth_resp } } -// optional .CollectionResponse collection_response = 3; -inline bool ServerMessage::has_collection_response() const { +// 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_collection_response() { +inline void ServerMessage::set_has_audio_collection_response() { _has_bits_[0] |= 0x00000004u; } -inline void ServerMessage::clear_has_collection_response() { +inline void ServerMessage::clear_has_audio_collection_response() { _has_bits_[0] &= ~0x00000004u; } -inline void ServerMessage::clear_collection_response() { - if (collection_response_ != NULL) collection_response_->::CollectionResponse::Clear(); - clear_has_collection_response(); +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 ::CollectionResponse& ServerMessage::collection_response() const { - return collection_response_ != NULL ? *collection_response_ : *default_instance_->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 ::CollectionResponse* ServerMessage::mutable_collection_response() { - set_has_collection_response(); - if (collection_response_ == NULL) collection_response_ = new ::CollectionResponse; - return 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 ::CollectionResponse* ServerMessage::release_collection_response() { - clear_has_collection_response(); - ::CollectionResponse* temp = collection_response_; - collection_response_ = NULL; +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_collection_response(::CollectionResponse* collection_response) { - delete collection_response_; - collection_response_ = collection_response; - if (collection_response) { - set_has_collection_response(); +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_collection_response(); + clear_has_audio_collection_response(); } } -// optional .MediaResponse media_response = 4; +// optional .Remote.MediaResponse media_response = 4; inline bool ServerMessage::has_media_response() const { return (_has_bits_[0] & 0x00000008u) != 0; } @@ -623,24 +625,24 @@ inline void ServerMessage::clear_has_media_response() { _has_bits_[0] &= ~0x00000008u; } inline void ServerMessage::clear_media_response() { - if (media_response_ != NULL) media_response_->::MediaResponse::Clear(); + if (media_response_ != NULL) media_response_->::Remote::MediaResponse::Clear(); clear_has_media_response(); } -inline const ::MediaResponse& ServerMessage::media_response() const { +inline const ::Remote::MediaResponse& ServerMessage::media_response() const { return media_response_ != NULL ? *media_response_ : *default_instance_->media_response_; } -inline ::MediaResponse* ServerMessage::mutable_media_response() { +inline ::Remote::MediaResponse* ServerMessage::mutable_media_response() { set_has_media_response(); - if (media_response_ == NULL) media_response_ = new ::MediaResponse; + if (media_response_ == NULL) media_response_ = new ::Remote::MediaResponse; return media_response_; } -inline ::MediaResponse* ServerMessage::release_media_response() { +inline ::Remote::MediaResponse* ServerMessage::release_media_response() { clear_has_media_response(); - ::MediaResponse* temp = media_response_; + ::Remote::MediaResponse* temp = media_response_; media_response_ = NULL; return temp; } -inline void ServerMessage::set_allocated_media_response(::MediaResponse* media_response) { +inline void ServerMessage::set_allocated_media_response(::Remote::MediaResponse* media_response) { delete media_response_; media_response_ = media_response; if (media_response) { @@ -653,17 +655,19 @@ inline void ServerMessage::set_allocated_media_response(::MediaResponse* media_r // @@protoc_insertion_point(namespace_scope) +} // namespace Remote + #ifndef SWIG namespace google { namespace protobuf { template <> -inline const EnumDescriptor* GetEnumDescriptor< ::ClientMessage_Type>() { - return ::ClientMessage_Type_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::Remote::ClientMessage_Type>() { + return ::Remote::ClientMessage_Type_descriptor(); } template <> -inline const EnumDescriptor* GetEnumDescriptor< ::ServerMessage_Type>() { - return ::ServerMessage_Type_descriptor(); +inline const EnumDescriptor* GetEnumDescriptor< ::Remote::ServerMessage_Type>() { + return ::Remote::ServerMessage_Type_descriptor(); } } // namespace google diff --git a/remote/proto/auth.proto b/remote/proto/auth.proto index 74fb95b3..b432d44c 100644 --- a/remote/proto/auth.proto +++ b/remote/proto/auth.proto @@ -1,5 +1,7 @@ import "common.proto"; +package Remote; + message AuthRequest { required string user_name = 1; diff --git a/remote/proto/collection.proto b/remote/proto/collection.proto index 072fe2be..db34fd81 100644 --- a/remote/proto/collection.proto +++ b/remote/proto/collection.proto @@ -1,6 +1,8 @@ import "common.proto"; -message CollectionRequest +package Remote; + +message AudioCollectionRequest { message GetGenreList @@ -61,8 +63,80 @@ message CollectionRequest } -message CollectionResponse +message AudioCollectionResponse { + message GenreList + { + required bool last = 1; // More messages follow if last = 0 + repeated Genre genres = 2; + } + + message ArtistList + { + required bool last = 1; // More messages follow if last = 0 + repeated Artist artists = 2; + } + + message ReleaseList + { + required bool last = 1; // More messages follow if last = 0 + repeated Release releases = 2; + } + + message TrackList + { + required bool last = 1; // More messages follow if last = 0 + repeated Track tracks = 2; + } + + message Genre + { + required string name = 1; + } + + message CoverArt + { + optional string mime_type = 1; + repeated bytes data = 2; + } + + message Artist + { + required string name = 1; + required uint32 nb_releases = 2; + } + + message Release + { + required string name = 1; + + required uint32 nb_tracks = 2; + required uint32 duration_secs = 3; + + optional CoverArt coverArt = 4; + } + + message Track + { + required int64 media_id = 1; + optional uint32 disc_number = 2; + optional uint32 track_number = 3; + + optional string artist = 4; + optional string release = 5; + + required string name = 6; + + required uint32 duration_secs = 7; + + optional string release_date = 8; + optional string original_release_date = 9; + + repeated string genres = 10; + + optional bytes coverArt = 11; + } + enum Type { TypeGenreList = 1; TypeArtistList = 2; @@ -80,77 +154,6 @@ message CollectionResponse optional TrackList track_list = 6; } -message GenreList -{ - required bool last = 1; // More messages follow if last = 0 - repeated Genre genres = 2; -} - -message ArtistList -{ - required bool last = 1; // More messages follow if last = 0 - repeated Artist artists = 2; -} - -message ReleaseList -{ - required bool last = 1; // More messages follow if last = 0 - repeated Release releases = 2; -} - -message TrackList -{ - required bool last = 1; // More messages follow if last = 0 - repeated Track tracks = 2; -} - -message Genre -{ - required string name = 1; -} - -message CoverArt -{ - optional string mime_type = 1; - repeated bytes data = 2; -} - -message Artist -{ - required string name = 1; - required uint32 nb_releases = 2; -} - -message Release -{ - required string name = 1; - - required uint32 nb_tracks = 2; - required uint32 duration_secs = 3; - - optional CoverArt coverArt = 4; -} - -message Track -{ - required int64 media_id = 1; - optional uint32 disc_number = 2; - optional uint32 track_number = 3; - - optional string artist = 4; - optional string release = 5; - - required string name = 6; - - required uint32 duration_secs = 7; - - optional string release_date = 8; - optional string original_release_date = 9; - - repeated string genres = 10; - - optional bytes coverArt = 11; -} diff --git a/remote/proto/common.proto b/remote/proto/common.proto index 1bb18909..a4f35ec4 100644 --- a/remote/proto/common.proto +++ b/remote/proto/common.proto @@ -1,4 +1,6 @@ +package Remote; + message Error { required bool error = 1; diff --git a/remote/proto/media.proto b/remote/proto/media.proto index 99e6c7c7..0e5eccfe 100644 --- a/remote/proto/media.proto +++ b/remote/proto/media.proto @@ -1,5 +1,7 @@ import "common.proto"; +package Remote; + enum CodecType { CodecTypeOGG = 1; diff --git a/remote/proto/messages.proto b/remote/proto/messages.proto index 51181eaf..d46d3add 100644 --- a/remote/proto/messages.proto +++ b/remote/proto/messages.proto @@ -3,20 +3,22 @@ import "auth.proto"; import "collection.proto"; import "media.proto"; +package Remote; + message ClientMessage { enum Type { AuthRequest = 1; - CollectionRequest = 2; + AudioCollectionRequest = 2; MediaRequest = 3; } required Type type = 1; - optional AuthRequest auth_request = 2; - optional CollectionRequest collection_request = 3; - optional MediaRequest media_request = 4; + optional AuthRequest auth_request = 2; + optional AudioCollectionRequest audio_collection_request = 3; + optional MediaRequest media_request = 4; } @@ -25,15 +27,15 @@ message ServerMessage enum Type { AuthResponse = 1; - CollectionResponse = 2; + AduioCollectionResponse = 2; MediaResponse = 3; } required Type type = 1; - optional AuthResponse auth_response = 2; - optional CollectionResponse collection_response = 3; - optional MediaResponse media_response = 4; + optional AuthResponse auth_response = 2; + optional AudioCollectionResponse audio_collection_response = 3; + optional MediaResponse media_response = 4; } diff --git a/test/Makefile.am b/test/Makefile.am index 1bf7ac61..8b07f6b0 100644 --- a/test/Makefile.am +++ b/test/Makefile.am @@ -10,6 +10,11 @@ remote_SOURCES = \ $(top_srcdir)/remote/server/RequestHandler.cpp \ $(top_srcdir)/remote/server/ConnectionManager.cpp \ $(top_srcdir)/remote/server/Connection.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)/database/Artist.cpp \ $(top_srcdir)/database/Genre.cpp \ $(top_srcdir)/database/Release.cpp \ diff --git a/test/Makefile.in b/test/Makefile.in index d0988f44..1bad117c 100644 --- a/test/Makefile.in +++ b/test/Makefile.in @@ -121,10 +121,13 @@ am_remote_OBJECTS = remote-RemoteClientServer.$(OBJEXT) \ remote-TestDatabase.$(OBJEXT) remote-Server.$(OBJEXT) \ remote-RequestHandler.$(OBJEXT) \ remote-ConnectionManager.$(OBJEXT) remote-Connection.$(OBJEXT) \ - remote-Artist.$(OBJEXT) remote-Genre.$(OBJEXT) \ - remote-Release.$(OBJEXT) remote-Track.$(OBJEXT) \ - remote-DatabaseHandler.$(OBJEXT) remote-Path.$(OBJEXT) \ - remote-Video.$(OBJEXT) remote-Checksum.$(OBJEXT) + remote-auth.pb.$(OBJEXT) remote-collection.pb.$(OBJEXT) \ + remote-common.pb.$(OBJEXT) remote-media.pb.$(OBJEXT) \ + remote-messages.pb.$(OBJEXT) remote-Artist.$(OBJEXT) \ + remote-Genre.$(OBJEXT) remote-Release.$(OBJEXT) \ + remote-Track.$(OBJEXT) remote-DatabaseHandler.$(OBJEXT) \ + remote-Path.$(OBJEXT) remote-Video.$(OBJEXT) \ + remote-Checksum.$(OBJEXT) remote_OBJECTS = $(am_remote_OBJECTS) remote_LDADD = $(LDADD) remote_LINK = $(CXXLD) $(remote_CXXFLAGS) $(CXXFLAGS) $(AM_LDFLAGS) \ @@ -496,6 +499,11 @@ remote_SOURCES = \ $(top_srcdir)/remote/server/RequestHandler.cpp \ $(top_srcdir)/remote/server/ConnectionManager.cpp \ $(top_srcdir)/remote/server/Connection.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)/database/Artist.cpp \ $(top_srcdir)/database/Genre.cpp \ $(top_srcdir)/database/Release.cpp \ @@ -538,7 +546,7 @@ sql_query_CXXFLAGS = -std=c++11 -Wall -Wextra -I$(top_srcdir) all: all-am .SUFFIXES: -.SUFFIXES: .cpp .log .o .obj .test .test$(EXEEXT) .trs +.SUFFIXES: .cc .cpp .log .o .obj .test .test$(EXEEXT) .trs $(srcdir)/Makefile.in: $(srcdir)/Makefile.am $(am__configure_deps) @for dep in $?; do \ case '$(am__configure_deps)' in \ @@ -627,17 +635,22 @@ distclean-compile: @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote-TestDatabase.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote-Track.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote-Video.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote-auth.pb.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote-collection.pb.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote-common.pb.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote-media.pb.Po@am__quote@ +@AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/remote-messages.pb.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sql_query-CheckSqlQuery.Po@am__quote@ @AMDEP_TRUE@@am__include@ @am__quote@./$(DEPDIR)/sql_query-SqlQuery.Po@am__quote@ -.cpp.o: +.cc.o: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< -.cpp.obj: +.cc.obj: @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po @AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ @@ -980,6 +993,76 @@ remote-Connection.obj: $(top_srcdir)/remote/server/Connection.cpp @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-Connection.obj `if test -f '$(top_srcdir)/remote/server/Connection.cpp'; then $(CYGPATH_W) '$(top_srcdir)/remote/server/Connection.cpp'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/server/Connection.cpp'; fi` +remote-auth.pb.o: $(top_srcdir)/remote/messages/auth.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-auth.pb.o -MD -MP -MF $(DEPDIR)/remote-auth.pb.Tpo -c -o remote-auth.pb.o `test -f '$(top_srcdir)/remote/messages/auth.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/auth.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-auth.pb.Tpo $(DEPDIR)/remote-auth.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/auth.pb.cc' object='remote-auth.pb.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-auth.pb.o `test -f '$(top_srcdir)/remote/messages/auth.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/auth.pb.cc + +remote-auth.pb.obj: $(top_srcdir)/remote/messages/auth.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-auth.pb.obj -MD -MP -MF $(DEPDIR)/remote-auth.pb.Tpo -c -o remote-auth.pb.obj `if test -f '$(top_srcdir)/remote/messages/auth.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/auth.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/auth.pb.cc'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-auth.pb.Tpo $(DEPDIR)/remote-auth.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/auth.pb.cc' object='remote-auth.pb.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-auth.pb.obj `if test -f '$(top_srcdir)/remote/messages/auth.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/auth.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/auth.pb.cc'; fi` + +remote-collection.pb.o: $(top_srcdir)/remote/messages/collection.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-collection.pb.o -MD -MP -MF $(DEPDIR)/remote-collection.pb.Tpo -c -o remote-collection.pb.o `test -f '$(top_srcdir)/remote/messages/collection.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/collection.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-collection.pb.Tpo $(DEPDIR)/remote-collection.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/collection.pb.cc' object='remote-collection.pb.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-collection.pb.o `test -f '$(top_srcdir)/remote/messages/collection.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/collection.pb.cc + +remote-collection.pb.obj: $(top_srcdir)/remote/messages/collection.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-collection.pb.obj -MD -MP -MF $(DEPDIR)/remote-collection.pb.Tpo -c -o remote-collection.pb.obj `if test -f '$(top_srcdir)/remote/messages/collection.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/collection.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/collection.pb.cc'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-collection.pb.Tpo $(DEPDIR)/remote-collection.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/collection.pb.cc' object='remote-collection.pb.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-collection.pb.obj `if test -f '$(top_srcdir)/remote/messages/collection.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/collection.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/collection.pb.cc'; fi` + +remote-common.pb.o: $(top_srcdir)/remote/messages/common.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-common.pb.o -MD -MP -MF $(DEPDIR)/remote-common.pb.Tpo -c -o remote-common.pb.o `test -f '$(top_srcdir)/remote/messages/common.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/common.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-common.pb.Tpo $(DEPDIR)/remote-common.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/common.pb.cc' object='remote-common.pb.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-common.pb.o `test -f '$(top_srcdir)/remote/messages/common.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/common.pb.cc + +remote-common.pb.obj: $(top_srcdir)/remote/messages/common.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-common.pb.obj -MD -MP -MF $(DEPDIR)/remote-common.pb.Tpo -c -o remote-common.pb.obj `if test -f '$(top_srcdir)/remote/messages/common.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/common.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/common.pb.cc'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-common.pb.Tpo $(DEPDIR)/remote-common.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/common.pb.cc' object='remote-common.pb.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-common.pb.obj `if test -f '$(top_srcdir)/remote/messages/common.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/common.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/common.pb.cc'; fi` + +remote-media.pb.o: $(top_srcdir)/remote/messages/media.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-media.pb.o -MD -MP -MF $(DEPDIR)/remote-media.pb.Tpo -c -o remote-media.pb.o `test -f '$(top_srcdir)/remote/messages/media.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/media.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-media.pb.Tpo $(DEPDIR)/remote-media.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/media.pb.cc' object='remote-media.pb.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-media.pb.o `test -f '$(top_srcdir)/remote/messages/media.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/media.pb.cc + +remote-media.pb.obj: $(top_srcdir)/remote/messages/media.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-media.pb.obj -MD -MP -MF $(DEPDIR)/remote-media.pb.Tpo -c -o remote-media.pb.obj `if test -f '$(top_srcdir)/remote/messages/media.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/media.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/media.pb.cc'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-media.pb.Tpo $(DEPDIR)/remote-media.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/media.pb.cc' object='remote-media.pb.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-media.pb.obj `if test -f '$(top_srcdir)/remote/messages/media.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/media.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/media.pb.cc'; fi` + +remote-messages.pb.o: $(top_srcdir)/remote/messages/messages.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-messages.pb.o -MD -MP -MF $(DEPDIR)/remote-messages.pb.Tpo -c -o remote-messages.pb.o `test -f '$(top_srcdir)/remote/messages/messages.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/messages.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-messages.pb.Tpo $(DEPDIR)/remote-messages.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/messages.pb.cc' object='remote-messages.pb.o' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-messages.pb.o `test -f '$(top_srcdir)/remote/messages/messages.pb.cc' || echo '$(srcdir)/'`$(top_srcdir)/remote/messages/messages.pb.cc + +remote-messages.pb.obj: $(top_srcdir)/remote/messages/messages.pb.cc +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-messages.pb.obj -MD -MP -MF $(DEPDIR)/remote-messages.pb.Tpo -c -o remote-messages.pb.obj `if test -f '$(top_srcdir)/remote/messages/messages.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/messages.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/messages.pb.cc'; fi` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-messages.pb.Tpo $(DEPDIR)/remote-messages.pb.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$(top_srcdir)/remote/messages/messages.pb.cc' object='remote-messages.pb.obj' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -c -o remote-messages.pb.obj `if test -f '$(top_srcdir)/remote/messages/messages.pb.cc'; then $(CYGPATH_W) '$(top_srcdir)/remote/messages/messages.pb.cc'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/remote/messages/messages.pb.cc'; fi` + remote-Artist.o: $(top_srcdir)/database/Artist.cpp @am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(remote_CXXFLAGS) $(CXXFLAGS) -MT remote-Artist.o -MD -MP -MF $(DEPDIR)/remote-Artist.Tpo -c -o remote-Artist.o `test -f '$(top_srcdir)/database/Artist.cpp' || echo '$(srcdir)/'`$(top_srcdir)/database/Artist.cpp @am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/remote-Artist.Tpo $(DEPDIR)/remote-Artist.Po @@ -1120,6 +1203,20 @@ sql_query-SqlQuery.obj: $(top_srcdir)/database/SqlQuery.cpp @AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ @am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXX) $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(sql_query_CXXFLAGS) $(CXXFLAGS) -c -o sql_query-SqlQuery.obj `if test -f '$(top_srcdir)/database/SqlQuery.cpp'; then $(CYGPATH_W) '$(top_srcdir)/database/SqlQuery.cpp'; else $(CYGPATH_W) '$(srcdir)/$(top_srcdir)/database/SqlQuery.cpp'; fi` +.cpp.o: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ $< +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ $< + +.cpp.obj: +@am__fastdepCXX_TRUE@ $(AM_V_CXX)$(CXXCOMPILE) -MT $@ -MD -MP -MF $(DEPDIR)/$*.Tpo -c -o $@ `$(CYGPATH_W) '$<'` +@am__fastdepCXX_TRUE@ $(AM_V_at)$(am__mv) $(DEPDIR)/$*.Tpo $(DEPDIR)/$*.Po +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ $(AM_V_CXX)source='$<' object='$@' libtool=no @AMDEPBACKSLASH@ +@AMDEP_TRUE@@am__fastdepCXX_FALSE@ DEPDIR=$(DEPDIR) $(CXXDEPMODE) $(depcomp) @AMDEPBACKSLASH@ +@am__fastdepCXX_FALSE@ $(AM_V_CXX@am__nodep@)$(CXXCOMPILE) -c -o $@ `$(CYGPATH_W) '$<'` + ID: $(am__tagged_files) $(am__define_uniq_tagged_files); mkid -fID $$unique tags: tags-am diff --git a/test/RemoteClientServer.cpp b/test/RemoteClientServer.cpp index ec8ed61e..86ad3dc1 100644 --- a/test/RemoteClientServer.cpp +++ b/test/RemoteClientServer.cpp @@ -6,12 +6,12 @@ #include #include "remote/server/Server.hpp" +#include "remote/messages/Header.hpp" +#include "remote/messages/messages.pb.h" #include "TestDatabase.hpp" - - // Ugly class for testing purposes class TestServer { @@ -54,12 +54,83 @@ class TestClient _socket.connect(endpoint); } + void getArtists(std::vector& artists) + { + + + } + private: + void sendMsg(const ::google::protobuf::Message& message) + { + + // Serialize message + std::string outputStr; + if (message.SerializeToString(&outputStr)) + { + // Send message header + std::array headerBuffer; + + // Generate header content + { + Remote::Header header; + header.setSize(outputStr.size()); + header.to_buffer(headerBuffer); + } + + boost::asio::write(_socket, boost::asio::buffer(headerBuffer)); + + // Send serialized message + boost::asio::write(_socket, boost::asio::buffer(outputStr)); + } + else + { + std::cerr << "Cannot serialize message!" << std::endl; + throw std::runtime_error("message.SerializeToString failed!"); + } + + } + + void recvMsg(::google::protobuf::Message& message) + { + boost::asio::streambuf messageStreamBuffer; + std::istream responseStream(&response); + + boost::asio::read(_socket, + messageStreamBuffer, + boost::asio::transfer_exactly(Remote::Header::size)); + + bool error; + Remote::Header header (Remote::Header::from_buffer(headerBuffer, error)); + if (error) + throw std::runtime_error("Cannot read header from buffer!"); + + if (header.getSize() > _inputBuffer.size()) + throw std::runtime_error("Input buffer too small!"); + + // Read in a stream buffer + { + boost::asio::streambuf response; + boost::asio::read(_socket, + response, + boost::asio::transfer_exactly(header.getSize())); + + + if (!message.ParseFromIstream(&responseStream)) + throw std::runtime_error("message.ParseFromIstream failed!"); + } + } + boost::asio::io_service _ioService; boost::asio::ip::tcp::socket _socket; + + boost::streambuf _inputStreamBuf; + + std::array _inputBuffer; + }; @@ -76,7 +147,8 @@ int main(int argc, char* argv[]) TestClient client( boost::asio::ip::tcp::endpoint( boost::asio::ip::address_v4::loopback(), 5080)); // TODO get some data - + std::vector artists; + client.getArtists(artists); testServer.stop();