Class: ProductSummaryForAutoSuggest

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

ID =
1
VERSION =
2
NAME =
3
STICKERRESOURCETYPE =
4
SUGGESTVERSION =
5
POPUPLAYER =
6
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  VERSION => {:type => ::Thrift::Types::I64, :name => 'version'},
  NAME => {:type => ::Thrift::Types::STRING, :name => 'name'},
  STICKERRESOURCETYPE => {:type => ::Thrift::Types::I32, :name => 'stickerResourceType', :enum_class => ::J0_a_a_b_a_a_g3},
  SUGGESTVERSION => {:type => ::Thrift::Types::I64, :name => 'suggestVersion'},
  POPUPLAYER => {:type => ::Thrift::Types::I32, :name => 'popupLayer', :enum_class => ::J0_a_a_b_a_a_m1}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



10845
10846
10847
10848
10849
10850
10851
10852
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10845

def validate
  unless @stickerResourceType.nil? || ::J0_a_a_b_a_a_g3::VALID_VALUES.include?(@stickerResourceType)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field stickerResourceType!')
  end
  unless @popupLayer.nil? || ::J0_a_a_b_a_a_m1::VALID_VALUES.include?(@popupLayer)
    raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field popupLayer!')
  end
end