Class: ShowcaseV3

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

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 => ::J0_a_a_b_a_a_c3},
  PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::J0_a_a_b_a_a_z1},
  SUBTYPE => {:type => ::Thrift::Types::I32, :name => 'subType', :enum_class => ::J0_a_a_b_a_a_y3},
  DEMOGRAPHICTYPE => {:type => ::Thrift::Types::STRUCT, :name => 'demographicType', :class => ::DemographicType}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



9930
9931
9932
9933
9934
9935
9936
9937
9938
9939
9940
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 9930

def validate
  unless @showcaseType.nil? || ::J0_a_a_b_a_a_c3::VALID_VALUES.include?(@showcaseType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field showcaseType!')
  end
  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 @subType.nil? || ::J0_a_a_b_a_a_y3::VALID_VALUES.include?(@subType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field subType!')
  end
end