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.
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:
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides reference information for the \u003ccode\u003eDocumentInputConfig\u003c/code\u003e class within the Google Cloud Translation v3 API, which is used to configure the input for document translation requests.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version of the \u003ccode\u003eDocumentInputConfig\u003c/code\u003e class is 3.9.0, and documentation is available for versions ranging from 2.2.0 to 3.9.0.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocumentInputConfig\u003c/code\u003e allows specifying the input document either as a stream of bytes (\u003ccode\u003eContent\u003c/code\u003e) or via a Google Cloud Storage location (\u003ccode\u003eGcsSource\u003c/code\u003e).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMimeType\u003c/code\u003e property is used to specify the document type, which is required for byte content and otherwise determined by the file extension for files from a \u003ccode\u003eGcsSource\u003c/code\u003e location.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eDocumentInputConfig\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Google Cloud Translation v3 API - Class DocumentInputConfig (3.9.0)\n\nVersion latestkeyboard_arrow_down\n\n- [3.9.0 (latest)](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.8.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.8.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.7.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.7.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.6.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.6.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.5.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.5.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.4.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.3.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.2.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.1.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.1.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [3.0.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/3.0.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [2.4.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.4.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [2.3.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.3.0/Google.Cloud.Translate.V3.DocumentInputConfig)\n- [2.2.0](/dotnet/docs/reference/Google.Cloud.Translate.V3/2.2.0/Google.Cloud.Translate.V3.DocumentInputConfig) \n\n public sealed class DocumentInputConfig : IMessage\u003cDocumentInputConfig\u003e, IEquatable\u003cDocumentInputConfig\u003e, IDeepCloneable\u003cDocumentInputConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Google Cloud Translation v3 API class DocumentInputConfig.\n\nA document translation request input config. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DocumentInputConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[DocumentInputConfig](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentInputConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DocumentInputConfig](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentInputConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[DocumentInputConfig](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3.DocumentInputConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Translate.V3](/dotnet/docs/reference/Google.Cloud.Translate.V3/latest/Google.Cloud.Translate.V3)\n\nAssembly\n--------\n\nGoogle.Cloud.Translate.V3.dll\n\nConstructors\n------------\n\n### DocumentInputConfig()\n\n public DocumentInputConfig()\n\n### DocumentInputConfig(DocumentInputConfig)\n\n public DocumentInputConfig(DocumentInputConfig other)\n\nProperties\n----------\n\n### Content\n\n public ByteString Content { get; set; }\n\nDocument's content represented as a stream of bytes.\n\n### GcsSource\n\n public GcsSource GcsSource { get; set; }\n\nGoogle Cloud Storage location. This must be a single file.\nFor example: gs://example_bucket/example_file.pdf\n\n### HasContent\n\n public bool HasContent { get; }\n\nGets whether the \"content\" field is set\n\n### MimeType\n\n public string MimeType { get; set; }\n\nSpecifies the input document's mime_type.\n\nIf not specified it will be determined using the file extension for\ngcs_source provided files. For a file provided through bytes content the\nmime_type must be provided.\nCurrently supported mime types are:\n\n- application/pdf\n- application/vnd.openxmlformats-officedocument.wordprocessingml.document\n- application/vnd.openxmlformats-officedocument.presentationml.presentation\n- application/vnd.openxmlformats-officedocument.spreadsheetml.sheet\n\n### SourceCase\n\n public DocumentInputConfig.SourceOneofCase SourceCase { get; }"]]