Class: GetRecommendationRequest
- Inherits:
-
Object
- Object
- GetRecommendationRequest
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/linerb/gen-rb/takagi_chan_types.rb,
lib/linerb/gen-rb/takagi_chan_types.rb
Constant Summary collapse
- CONTINUATIONTOKEN =
1
- LIMIT =
2
- PRODUCTTYPE =
3
- RECOMMENDATIONTYPE =
4
- PRODUCTID =
5
- SUBTYPES =
6
- SHOULDSHUFFLE =
7
- INCLUDESTICKERIDS =
8
- SHOPFILTER =
9
- FIELDS =
{ CONTINUATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'continuationToken'}, LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}, PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_a_b_a_a_t1}, RECOMMENDATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'recommendationType', :enum_class => ::P0_a_a_b_a_a_m2}, PRODUCTID => {:type => ::Thrift::Types::STRING, :name => 'productId'}, SUBTYPES => {:type => ::Thrift::Types::SET, :name => 'subtypes', :element => {:type => ::Thrift::Types::I32, :enum_class => ::P0_a_a_b_a_a_t3}}, SHOULDSHUFFLE => {:type => ::Thrift::Types::BOOL, :name => 'shouldShuffle'}, INCLUDESTICKERIDS => {:type => ::Thrift::Types::BOOL, :name => 'includeStickerIds'}, SHOPFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'shopFilter', :class => ::ShopFilter} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
12103 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12103 def struct_fields; FIELDS; end |
#validate ⇒ Object
12105 12106 12107 12108 12109 12110 12111 12112 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 12105 def validate unless @productType.nil? || ::P0_a_a_b_a_a_t1::VALID_VALUES.include?(@productType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field productType!') end unless @recommendationType.nil? || ::P0_a_a_b_a_a_m2::VALID_VALUES.include?(@recommendationType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field recommendationType!') end end |