Class: Google::Cloud::DocumentAI::V1beta3::Document::Translation
- Inherits:
-
Object
- Object
- Google::Cloud::DocumentAI::V1beta3::Document::Translation
- Extended by:
- Protobuf::MessageExts::ClassMethods
- Includes:
- Protobuf::MessageExts
- Defined in:
- proto_docs/google/cloud/documentai/v1beta3/document.rb
Overview
A translation of the text segment.
Instance Attribute Summary collapse
-
#language_code ⇒ ::String
The BCP-47 language code, such as "en-US" or "sr-Latn".
-
#provenance ⇒ ::Array<::Google::Cloud::DocumentAI::V1beta3::Document::Provenance>
The history of this annotation.
-
#text_anchor ⇒ ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Provenance of the translation.
-
#translated_text ⇒ ::String
Text translated into the target language.
Instance Attribute Details
#language_code ⇒ ::String
Returns The BCP-47 language code, such as "en-US" or "sr-Latn". For more information, see http://www.unicode.org/reports/tr35/#Unicode_locale_identifier.
612 613 614 615 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 612 class Translation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#provenance ⇒ ::Array<::Google::Cloud::DocumentAI::V1beta3::Document::Provenance>
Returns The history of this annotation.
612 613 614 615 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 612 class Translation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#text_anchor ⇒ ::Google::Cloud::DocumentAI::V1beta3::Document::TextAnchor
Returns Provenance of the translation.
Text anchor indexing into the Document.text. There can only be a
single TextAnchor.text_segments
element. If the start and
end index of the text segment are the same, the text change is inserted
before that index.
612 613 614 615 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 612 class Translation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |
#translated_text ⇒ ::String
Returns Text translated into the target language.
612 613 614 615 |
# File 'proto_docs/google/cloud/documentai/v1beta3/document.rb', line 612 class Translation include ::Google::Protobuf::MessageExts extend ::Google::Protobuf::MessageExts::ClassMethods end |