public sealed class DocumentInputConfig : IMessage<DocumentInputConfig>, IEquatable<DocumentInputConfig>, IDeepCloneable<DocumentInputConfig>, IBufferMessage, IMessageReference documentation and code samples for the Google Cloud Translation v3 API class DocumentInputConfig.
A document translation request input config.
Implements
IMessageDocumentInputConfig, IEquatableDocumentInputConfig, IDeepCloneableDocumentInputConfig, IBufferMessage, IMessageNamespace
Google.Cloud.Translate.V3Assembly
Google.Cloud.Translate.V3.dll
Constructors
DocumentInputConfig()
public DocumentInputConfig()DocumentInputConfig(DocumentInputConfig)
public DocumentInputConfig(DocumentInputConfig other)| Parameter | |
|---|---|
| Name | Description |
other |
DocumentInputConfig |
Properties
Content
public ByteString Content { get; set; }Document's content represented as a stream of bytes.
| Property Value | |
|---|---|
| Type | Description |
ByteString |
|
GcsSource
public GcsSource GcsSource { get; set; }Google Cloud Storage location. This must be a single file. For example: gs://example_bucket/example_file.pdf
| Property Value | |
|---|---|
| Type | Description |
GcsSource |
|
HasContent
public bool HasContent { get; }Gets whether the "content" field is set
| Property Value | |
|---|---|
| Type | Description |
bool |
|
MimeType
public string MimeType { get; set; }Specifies the input document's mime_type.
If not specified it will be determined using the file extension for gcs_source provided files. For a file provided through bytes content the mime_type must be provided. Currently supported mime types are:
- application/pdf
- application/vnd.openxmlformats-officedocument.wordprocessingml.document
- application/vnd.openxmlformats-officedocument.presentationml.presentation
- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet
| Property Value | |
|---|---|
| Type | Description |
string |
|
SourceCase
public DocumentInputConfig.SourceOneofCase SourceCase { get; }| Property Value | |
|---|---|
| Type | Description |
DocumentInputConfigSourceOneofCase |
|