Google Cloud Translation v3 API - Class DocumentTranslation (3.2.0)

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

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

A translated document message.

Inheritance

object > DocumentTranslation

Namespace

GoogleCloudGoogle.Cloud.TranslateV3

Assembly

Google.Cloud.Translate.V3.dll

Constructors

DocumentTranslation()

public DocumentTranslation()

DocumentTranslation(DocumentTranslation)

public DocumentTranslation(DocumentTranslation other)
Parameter
NameDescription
otherDocumentTranslation

Properties

ByteStreamOutputs

public RepeatedField<ByteString> ByteStreamOutputs { get; }

The array of translated documents. It is expected to be size 1 for now. We may produce multiple translated documents in the future for other type of file formats.

Property Value
TypeDescription
RepeatedFieldByteString

DetectedLanguageCode

public string DetectedLanguageCode { get; set; }

The detected language for the input document. If the user did not provide the source language for the input document, this field will have the language code automatically detected. If the source language was passed, auto-detection of the language does not occur and this field is empty.

Property Value
TypeDescription
string

MimeType

public string MimeType { get; set; }

The translated document's mime type.

Property Value
TypeDescription
string