Google Cloud Translation v3 API - Class TranslateDocumentResponse (3.6.0)

public sealed class TranslateDocumentResponse : IMessage<TranslateDocumentResponse>, IEquatable<TranslateDocumentResponse>, IDeepCloneable<TranslateDocumentResponse>, IBufferMessage, IMessage

Reference documentation and code samples for the Google Cloud Translation v3 API class TranslateDocumentResponse.

A translated document response message.

Inheritance

object > TranslateDocumentResponse

Namespace

Google.Cloud.Translate.V3

Assembly

Google.Cloud.Translate.V3.dll

Constructors

TranslateDocumentResponse()

public TranslateDocumentResponse()

TranslateDocumentResponse(TranslateDocumentResponse)

public TranslateDocumentResponse(TranslateDocumentResponse other)
Parameter
NameDescription
otherTranslateDocumentResponse

Properties

DocumentTranslation

public DocumentTranslation DocumentTranslation { get; set; }

Translated document.

Property Value
TypeDescription
DocumentTranslation

GlossaryConfig

public TranslateTextGlossaryConfig GlossaryConfig { get; set; }

The glossary_config used for this translation.

Property Value
TypeDescription
TranslateTextGlossaryConfig

GlossaryDocumentTranslation

public DocumentTranslation GlossaryDocumentTranslation { get; set; }

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.

Property Value
TypeDescription
DocumentTranslation

Model

public string Model { get; set; }

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.

Property Value
TypeDescription
string