Google Cloud Translation v3 API - Class DocumentInputConfig (3.6.0)

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

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

A document translation request input config.

Inheritance

object > DocumentInputConfig

Namespace

Google.Cloud.Translate.V3

Assembly

Google.Cloud.Translate.V3.dll

Constructors

DocumentInputConfig()

public DocumentInputConfig()

DocumentInputConfig(DocumentInputConfig)

public DocumentInputConfig(DocumentInputConfig other)
Parameter
NameDescription
otherDocumentInputConfig

Properties

Content

public ByteString Content { get; set; }

Document's content represented as a stream of bytes.

Property Value
TypeDescription
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
TypeDescription
GcsSource

HasContent

public bool HasContent { get; }

Gets whether the "content" field is set

Property Value
TypeDescription
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
TypeDescription
string

SourceCase

public DocumentInputConfig.SourceOneofCase SourceCase { get; }
Property Value
TypeDescription
DocumentInputConfigSourceOneofCase