Class: ProductListByAuthorRequest

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
AUTHORID =
2
OFFSET =
3
LIMIT =
4
SHOPFILTER =
5
INCLUDESTICKERIDS =
6
FIELDS =
{
  PRODUCTTYPE => {:type => ::Thrift::Types::I32, :name => 'productType', :enum_class => ::P0_a_a_b_a_a_t1},
  AUTHORID => {:type => ::Thrift::Types::STRING, :name => 'authorId'},
  OFFSET => {:type => ::Thrift::Types::I32, :name => 'offset'},
  LIMIT => {:type => ::Thrift::Types::I32, :name => 'limit'},
  SHOPFILTER => {:type => ::Thrift::Types::STRUCT, :name => 'shopFilter', :class => ::ShopFilter},
  INCLUDESTICKERIDS => {:type => ::Thrift::Types::BOOL, :name => 'includeStickerIds'}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



11534
11535
11536
11537
11538
# File 'lib/linerb/gen-rb/takagi_chan_types.rb', line 11534

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
end