Class: Google::Cloud::Translate::V3::TranslateDocumentResponse

Inherits:
Object
  • Object
show all
Extended by:
Protobuf::MessageExts::ClassMethods
Includes:
Protobuf::MessageExts
Defined in:
proto_docs/google/cloud/translate/v3/translation_service.rb

Overview

A translated document response message.

Instance Attribute Summary collapse

Instance Attribute Details

#document_translation::Google::Cloud::Translate::V3::DocumentTranslation

Returns Translated document.

Returns:



743
744
745
746
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 743

class TranslateDocumentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#glossary_config::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig

Returns The glossary_config used for this translation.

Returns:



743
744
745
746
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 743

class TranslateDocumentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#glossary_document_translation::Google::Cloud::Translate::V3::DocumentTranslation

Returns The document's translation output if a glossary is provided in the request. This can be the same as [TranslateDocumentResponse.document_translation] if no glossary terms apply.

Returns:



743
744
745
746
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 743

class TranslateDocumentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end

#model::String

Returns Only present when 'model' is present in the request. 'model' is normalized to have a project number.

For example: If the 'model' field in TranslateDocumentRequest is: projects/{project-id}/locations/{location-id}/models/general/nmt then model here would be normalized to projects/{project-number}/locations/{location-id}/models/general/nmt.

Returns:

  • (::String)

    Only present when 'model' is present in the request. 'model' is normalized to have a project number.

    For example: If the 'model' field in TranslateDocumentRequest is: projects/{project-id}/locations/{location-id}/models/general/nmt then model here would be normalized to projects/{project-number}/locations/{location-id}/models/general/nmt.



743
744
745
746
# File 'proto_docs/google/cloud/translate/v3/translation_service.rb', line 743

class TranslateDocumentResponse
  include ::Google::Protobuf::MessageExts
  extend ::Google::Protobuf::MessageExts::ClassMethods
end