Class: Google::Apis::LanguageV1::ClassifyTextRequest

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/language_v1/classes.rb,
lib/google/apis/language_v1/representations.rb,
lib/google/apis/language_v1/representations.rb

Overview

The document classification request message.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ClassifyTextRequest

Returns a new instance of ClassifyTextRequest.



404
405
406
# File 'lib/google/apis/language_v1/classes.rb', line 404

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#classification_model_optionsGoogle::Apis::LanguageV1::ClassificationModelOptions

Model options available for classification requests. Corresponds to the JSON property classificationModelOptions



396
397
398
# File 'lib/google/apis/language_v1/classes.rb', line 396

def classification_model_options
  @classification_model_options
end

#documentGoogle::Apis::LanguageV1::Document

########################################################## # Represents

the input to API methods. Corresponds to the JSON property document



402
403
404
# File 'lib/google/apis/language_v1/classes.rb', line 402

def document
  @document
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



409
410
411
412
# File 'lib/google/apis/language_v1/classes.rb', line 409

def update!(**args)
  @classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options)
  @document = args[:document] if args.key?(:document)
end