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\u003eThe latest version available for the Google Cloud Translation v3 API's \u003ccode\u003eDocumentInputConfig\u003c/code\u003e is 3.9.0, while version 3.5.0 is the version being documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocumentInputConfig\u003c/code\u003e is a class used for configuring input for document translation requests, as part of the Google Cloud Translation v3 API.\u003c/p\u003e\n"],["\u003cp\u003eThis class, \u003ccode\u003eDocumentInputConfig\u003c/code\u003e, supports providing document content either directly as a stream of bytes via the Content property or by referencing a file in Google Cloud Storage via the \u003ccode\u003eGcsSource\u003c/code\u003e property.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMimeType\u003c/code\u003e property can be used to specify the document's type, which is required for content provided directly as bytes and otherwise inferred from the file extension, with supported types including PDF and various Microsoft Office formats.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocumentInputConfig\u003c/code\u003e 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, and inherits from \u003ccode\u003eobject\u003c/code\u003e, showcasing its integration within the .NET ecosystem and Google Cloud Protobuf structures.\u003c/p\u003e\n"]]],[],null,[]]