Class: GetRecommendationRequest

Inherits:
Object
  • Object
show all
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 => ::J0_a_a_b_a_a_z1},
  RECOMMENDATIONTYPE => {:type => ::Thrift::Types::I32, :name => 'recommendationType', :enum_class => ::J0_a_a_b_a_a_s2},
  PRODUCTID => {:type => ::Thrift::Types::STRING, :name => 'productId'},
  SUBTYPES => {:type => ::Thrift::Types::SET, :name => 'subtypes', :element => {:type => ::Thrift::Types::I32, :enum_class => ::J0_a_a_b_a_a_y3}},
  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_fieldsObject



11079
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11079

def struct_fields; FIELDS; end

#validateObject



11081
11082
11083
11084
11085
11086
11087
11088
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11081

def validate
  unless @productType.nil? || ::J0_a_a_b_a_a_z1::VALID_VALUES.include?(@productType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field productType!')
  end
  unless @recommendationType.nil? || ::J0_a_a_b_a_a_s2::VALID_VALUES.include?(@recommendationType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field recommendationType!')
  end
end