3.11.0 (latest) 3.10.0 3.9.0 3.8.0 3.7.0 3.6.0 3.5.0 3.4.0 3.3.0 3.2.0 3.1.0 3.0.0 2.4.0 2.3.0 2.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](https://learn.microsoft.com/dotnet/api/system.object) \> DocumentTranslation

## Implements

[IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.md.txt)[DocumentTranslation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentTranslation.md.txt), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DocumentTranslation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentTranslation.md.txt), [IDeepCloneable](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.md.txt)[DocumentTranslation](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentTranslation.md.txt), [IBufferMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.md.txt), [IMessage](https://docs.cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.md.txt)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.Translate.V3](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.md.txt)

## Assembly

Google.Cloud.Translate.V3.dll

## Constructors

### DocumentTranslation()

    public DocumentTranslation()

### DocumentTranslation(DocumentTranslation)

    public DocumentTranslation(DocumentTranslation other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `DocumentTranslation` |

## 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** ||
|---|---|
| **Type** | **Description** |
| `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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### MimeType

    public string MimeType { get; set; }

The translated document's mime type.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `string` |   |