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
916 |
# File 'lib/gen-rb/relevanced.rb', line 916 def struct_fields; FIELDS; end |
#validate ⇒ Object
918 919 920 921 922 |
# File 'lib/gen-rb/relevanced.rb', line 918 def validate unless @lang.nil? || ::Language::VALID_VALUES.include?(@lang) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field lang!') end end |