Class: Relevanced::MultiGetTextSimilarity_args
- Inherits:
-
Object
- Object
- Relevanced::MultiGetTextSimilarity_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen-rb/relevanced.rb
Constant Summary collapse
- CENTROIDIDS =
1
- TEXT =
2
- LANG =
3
- FIELDS =
{ CENTROIDIDS => {:type => ::Thrift::Types::LIST, :name => 'centroidIds', :element => {:type => ::Thrift::Types::STRING}}, TEXT => {:type => ::Thrift::Types::STRING, :name => 'text'}, LANG => {:type => ::Thrift::Types::I32, :name => 'lang', :enum_class => ::Language} }
Instance Method Summary collapse
Instance Method Details
#struct_fields ⇒ Object
1065 |
# File 'lib/gen-rb/relevanced.rb', line 1065 def struct_fields; FIELDS; end |
#validate ⇒ Object
1067 1068 1069 1070 1071 |
# File 'lib/gen-rb/relevanced.rb', line 1067 def validate unless @lang.nil? || ::Language::VALID_VALUES.include?(@lang) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field lang!') end end |