Class: Google::Apis::LanguageV1beta2::ClassifyTextRequest
- Inherits:
-
Object
- Object
- Google::Apis::LanguageV1beta2::ClassifyTextRequest
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/language_v1beta2/classes.rb,
lib/google/apis/language_v1beta2/representations.rb,
lib/google/apis/language_v1beta2/representations.rb
Overview
The document classification request message.
Instance Attribute Summary collapse
-
#classification_model_options ⇒ Google::Apis::LanguageV1beta2::ClassificationModelOptions
Model options available for classification requests.
-
#document ⇒ Google::Apis::LanguageV1beta2::Document
Represents the input to API methods.
Instance Method Summary collapse
-
#initialize(**args) ⇒ ClassifyTextRequest
constructor
A new instance of ClassifyTextRequest.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ ClassifyTextRequest
Returns a new instance of ClassifyTextRequest.
500 501 502 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 500 def initialize(**args) update!(**args) end |
Instance Attribute Details
#classification_model_options ⇒ Google::Apis::LanguageV1beta2::ClassificationModelOptions
Model options available for classification requests.
Corresponds to the JSON property classificationModelOptions
493 494 495 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 493 def @classification_model_options end |
#document ⇒ Google::Apis::LanguageV1beta2::Document
Represents the input to API methods.
Corresponds to the JSON property document
498 499 500 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 498 def document @document end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
505 506 507 508 |
# File 'lib/google/apis/language_v1beta2/classes.rb', line 505 def update!(**args) @classification_model_options = args[:classification_model_options] if args.key?(:classification_model_options) @document = args[:document] if args.key?(:document) end |