Class: Relevanced::GetTextSimilarity_args
- Inherits:
-
Object
- Object
- Relevanced::GetTextSimilarity_args
- Includes:
- Thrift::Struct, Thrift::Struct_Union
- Defined in:
- lib/gen-rb/relevanced.rb
Constant Summary collapse
- CENTROIDID =
1
- TEXT =
2
- LANG =
3
- FIELDS =
{ CENTROIDID => {:type => ::Thrift::Types::STRING, :name => 'centroidId'}, 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
1024 |
# File 'lib/gen-rb/relevanced.rb', line 1024 def struct_fields; FIELDS; end |
#validate ⇒ Object
1026 1027 1028 1029 1030 |
# File 'lib/gen-rb/relevanced.rb', line 1026 def validate unless @lang.nil? || ::Language::VALID_VALUES.include?(@lang) raise ::Thrift::ProtocolException.new(::Thrift::ProtocolException::UNKNOWN, 'Invalid value of field lang!') end end |