Class: AutoSuggestionShowcaseRequest

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

PRODUCTTYPE =
1
SUGGESTIONTYPE =
2
FIELDS =
{
  PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::J0_a_a_b_a_a_z1},
  SUGGESTIONTYPE => {:type => ::Thrift::Types::I32, :name => 'suggestionType', :enum_class => ::J0_a_a_b_a_a_b4}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



10813
10814
10815
10816
10817
10818
10819
10820
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 10813

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