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 => ::P0_a_a_b_a_a_a3},
  SUGGESTVERSION => {:type => ::Thrift::Types::I64, :name => 'suggestVersion'},
  POPUPLAYER => {:type => ::Thrift::Types::I32, :name => 'popupLayer', :enum_class => ::P0_a_a_b_a_a_g1}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



11909
11910
11911
11912
11913
11914
11915
11916
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11909

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