Class: Google::Cloud::DocumentAI::V1beta3::Document::Translation

Inherits:
Object
  • Object
show all
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

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.

Returns:



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.

Returns:



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.

Returns:



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.

Returns:

  • (::String)

    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