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.
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 412 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.
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 412 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.
412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 |
# File 'proto_docs/google/cloud/language/v2/language_service.rb', line 412 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 |