Cloud Translation V3 API - Class Google::Cloud::Translate::V3::TranslateDocumentResponse (v1.3.0)

Reference documentation and code samples for the Cloud Translation V3 API class Google::Cloud::Translate::V3::TranslateDocumentResponse.

A translated document response message.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#document_translation

def document_translation() -> ::Google::Cloud::Translate::V3::DocumentTranslation
Returns

#document_translation=

def document_translation=(value) -> ::Google::Cloud::Translate::V3::DocumentTranslation
Parameter
Returns

#glossary_config

def glossary_config() -> ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig
Returns

#glossary_config=

def glossary_config=(value) -> ::Google::Cloud::Translate::V3::TranslateTextGlossaryConfig
Parameter
Returns

#glossary_document_translation

def glossary_document_translation() -> ::Google::Cloud::Translate::V3::DocumentTranslation
Returns

#glossary_document_translation=

def glossary_document_translation=(value) -> ::Google::Cloud::Translate::V3::DocumentTranslation
Parameter
Returns

#model

def model() -> ::String
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.

#model=

def model=(value) -> ::String
Parameter
  • value (::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.

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.