Class: SearchResultItem

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
TYPE =
2
ITEM =
3
TITLE =
4
SUB1 =
5
SUB2 =
6
ICONURL =
7
8
9
DISPLAYTEMPLATE =
10
ADDITIONALINFO =
11
FIELDS =
{
  ID => {:type => ::Thrift::Types::STRING, :name => 'id'},
  TYPE => {:type => ::Thrift::Types::I32, :name => 'type'},
  ITEM => {:type => ::Thrift::Types::STRUCT, :name => 'item', :class => ::SearchItemUnion},
  TITLE => {:type => ::Thrift::Types::STRING, :name => 'title', :optional => true},
  SUB1 => {:type => ::Thrift::Types::STRING, :name => 'sub1', :optional => true},
  SUB2 => {:type => ::Thrift::Types::STRING, :name => 'sub2', :optional => true},
  ICONURL => {:type => ::Thrift::Types::STRING, :name => 'iconUrl', :optional => true},
  TITLELINK => {:type => ::Thrift::Types::STRING, :name => 'titleLink', :optional => true},
  ICONLINK => {:type => ::Thrift::Types::STRING, :name => 'iconLink', :optional => true},
  DISPLAYTEMPLATE => {:type => ::Thrift::Types::STRING, :name => 'displayTemplate', :optional => true},
  ADDITIONALINFO => {:type => ::Thrift::Types::LIST, :name => 'additionalInfo', :element => {:type => ::Thrift::Types::STRUCT, :class => ::AdditionalInfoItem}, :optional => true}
}

Instance Method Summary collapse

Instance Method Details

#struct_fieldsObject



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

def struct_fields; FIELDS; end

#validateObject



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

def validate
end