Class: WiMP::Gen::ArtistMetaData
- Inherits:
-
Object
- Object
- WiMP::Gen::ArtistMetaData
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- ARTISTID =
1
- ARTISTNAME =
2
- ARTISTBIOGRAPHY =
3
- SIMILARARTISTS =
4
- RELATEDARTISTS =
5
- ARTISTLINKS =
6
- FIELDS =
{ ARTISTID => {:type => ::Thrift::Types::I32, :name => 'artistId'}, ARTISTNAME => {:type => ::Thrift::Types::STRING, :name => 'artistName'}, ARTISTBIOGRAPHY => {:type => ::Thrift::Types::STRUCT, :name => 'artistBiography', :class => ::WiMP::Gen::ArtistBiography}, SIMILARARTISTS => {:type => ::Thrift::Types::STRUCT, :name => 'similarArtists', :class => ::WiMP::Gen::SimilarArtistList}, RELATEDARTISTS => {:type => ::Thrift::Types::STRUCT, :name => 'relatedArtists', :class => ::WiMP::Gen::RelatedArtistList}, ARTISTLINKS => {:type => ::Thrift::Types::STRUCT, :name => 'artistLinks', :class => ::WiMP::Gen::ArtistLinkList} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
789 |
# File 'lib/gen/services_types.rb', line 789 def struct_fields; FIELDS; end |
#validate ⇒ Object
791 792 793 794 795 796 797 798 |
# File 'lib/gen/services_types.rb', line 791 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistId is unset!') unless @artistId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistName is unset!') unless @artistName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistBiography is unset!') unless @artistBiography raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field similarArtists is unset!') unless @similarArtists raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field relatedArtists is unset!') unless @relatedArtists raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field artistLinks is unset!') unless @artistLinks end |