Class: Google::Cloud::Language::V2::AnnotateTextRequest
- Inherits:
-
Object
- Object
- Google::Cloud::Language::V2::AnnotateTextRequest
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/language/v2/language_service.rb
Overview
The request message for the text annotation API, which can perform multiple analysis types in one call.
Defined Under Namespace
Classes: Features
Instance Attribute Summary collapse
-
#document ⇒ ::Google::Cloud::Language::V2::Document
Required.
-
#encoding_type ⇒ ::Google::Cloud::Language::V2::EncodingType
The encoding type used by the API to calculate offsets.
-
#features ⇒ ::Google::Cloud::Language::V2::AnnotateTextRequest::Features
Required.
Instance Attribute Details
#document ⇒ ::Google::Cloud::Language::V2::Document
Returns Required. Input document.
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 434 class AnnotateTextRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # All available features. # Setting each one to true will enable that specific analysis for the input. # @!attribute [rw] extract_entities # @return [::Boolean] # Optional. Extract entities. # @!attribute [rw] extract_document_sentiment # @return [::Boolean] # Optional. Extract document-level sentiment. # @!attribute [rw] classify_text # @return [::Boolean] # Optional. Classify the full document into categories. # @!attribute [rw] moderate_text # @return [::Boolean] # Optional. Moderate the document for harmful and sensitive categories. class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#encoding_type ⇒ ::Google::Cloud::Language::V2::EncodingType
Returns The encoding type used by the API to calculate offsets.
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 434 class AnnotateTextRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # All available features. # Setting each one to true will enable that specific analysis for the input. # @!attribute [rw] extract_entities # @return [::Boolean] # Optional. Extract entities. # @!attribute [rw] extract_document_sentiment # @return [::Boolean] # Optional. Extract document-level sentiment. # @!attribute [rw] classify_text # @return [::Boolean] # Optional. Classify the full document into categories. # @!attribute [rw] moderate_text # @return [::Boolean] # Optional. Moderate the document for harmful and sensitive categories. class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |
#features ⇒ ::Google::Cloud::Language::V2::AnnotateTextRequest::Features
Returns Required. The enabled features.
434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 434 class AnnotateTextRequest include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods # All available features. # Setting each one to true will enable that specific analysis for the input. # @!attribute [rw] extract_entities # @return [::Boolean] # Optional. Extract entities. # @!attribute [rw] extract_document_sentiment # @return [::Boolean] # Optional. Extract document-level sentiment. # @!attribute [rw] classify_text # @return [::Boolean] # Optional. Classify the full document into categories. # @!attribute [rw] moderate_text # @return [::Boolean] # Optional. Moderate the document for harmful and sensitive categories. class Features include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end end |