Class: ShowcaseV3
- Inherits:
-
Object
- Object
- ShowcaseV3
- 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
- PRODUCTLIST =
1
- CONTINUATIONTOKEN =
2
- TOTALSIZE =
3
- SHOWCASETYPE =
4
- PRODUCTTYPE =
5
- SUBTYPE =
6
- DEMOGRAPHICTYPE =
7
- FIELDS =
{ PRODUCTLIST => {:type => ::Thrift::Types::LIST, :name => 'productList', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ProductSearchSummary}}, CONTINUATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'continuationToken'}, TOTALSIZE => {:type => ::Thrift::Types::I64, :name => 'totalSize'}, SHOWCASETYPE => {:type => ::Thrift::Types::I32, :name => 'showcaseType', :enum_class => ::P0_a_a_b_a_a_w2}, PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_a_b_a_a_t1}, SUBTYPE => {:type => ::Thrift::Types::I32, :name => 'subType', :enum_class => ::P0_a_a_b_a_a_t3}, DEMOGRAPHICTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'demographicType', :class => ::DemographicType} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
10658 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10658 def struct_fields; FIELDS; end |
#validate ⇒ Object
10660 10661 10662 10663 10664 10665 10666 10667 10668 10669 10670 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10660 def validate unless @showcaseType.nil? || ::P0_a_a_b_a_a_w2::VALID_VALUES.include?(@showcaseType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field showcaseType!') end 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 @subType.nil? || ::P0_a_a_b_a_a_t3::VALID_VALUES.include?(@subType) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field subType!') end end |