Class: WiMP::Gen::RecordLabel
- Inherits:
-
Object
- Object
- WiMP::Gen::RecordLabel
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen/services_types.rb
Constant Summary collapse
- RECORDLABELNAME =
1
- RECORDLABELID =
2
- RECORDPROVIDER =
3
- RECORDPROVIDERID =
4
- RECORDSUBLABEL =
5
- RECORDSUBLABELID =
6
- FIELDS =
{ RECORDLABELNAME => {:type => ::Thrift::Types::STRING, :name => 'recordLabelName'}, RECORDLABELID => {:type => ::Thrift::Types::I32, :name => 'recordLabelId'}, RECORDPROVIDER => {:type => ::Thrift::Types::STRING, :name => 'recordProvider'}, RECORDPROVIDERID => {:type => ::Thrift::Types::I32, :name => 'recordProviderId'}, RECORDSUBLABEL => {:type => ::Thrift::Types::STRING, :name => 'recordSubLabel'}, RECORDSUBLABELID => {:type => ::Thrift::Types::I32, :name => 'recordSubLabelId'} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
206 |
# File 'lib/gen/services_types.rb', line 206 def struct_fields; FIELDS; end |
#validate ⇒ Object
208 209 210 211 212 213 214 215 |
# File 'lib/gen/services_types.rb', line 208 def validate raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recordLabelName is unset!') unless @recordLabelName raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recordLabelId is unset!') unless @recordLabelId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recordProvider is unset!') unless @recordProvider raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recordProviderId is unset!') unless @recordProviderId raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recordSubLabel is unset!') unless @recordSubLabel raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Required field recordSubLabelId is unset!') unless @recordSubLabelId end |