Class: ShowcaseRequest
- Inherits:
-
Object
- Object
- ShowcaseRequest
- 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
- PRODUCTTYPE =
1
- SHOWCASETYPE =
2
- SUBTYPE =
3
- CONTINUATIONTOKEN =
4
- LIMIT =
5
- PRODUCTRESOURCETYPES =
6
- DEMOGRAPHICTYPE =
7
- FIELDS =
{ PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_a_b_a_a_t1}, SHOWCASETYPE => {:type => ::Thrift::Types::I32, :name => 'showcaseType', :enum_class => ::P0_a_a_b_a_a_w2}, SUBTYPE => {:type => ::Thrift::Types::I32, :name => 'subType', :enum_class => ::P0_a_a_b_a_a_t3}, CONTINUATIONTOKEN => {:type => ::Thrift::Types::STRING, :name => 'continuationToken'}, LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'}, PRODUCTRESOURCETYPES => {:type => ::Thrift::Types::SET, :name => 'productResourceTypes', :element => {:type => ::Thrift::Types::STRUCT, :class => ::ProductResourceType}}, DEMOGRAPHICTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'demographicType', :class => ::DemographicType} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
10573 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10573 def struct_fields; FIELDS; end |
#validate ⇒ Object
10575 10576 10577 10578 10579 10580 10581 10582 10583 10584 10585 |
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10575 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 @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 @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 |