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.8.0 is the version being documented.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocumentInputConfig\u003c/code\u003e is a class used to configure input for document translation requests, inheriting from \u003ccode\u003eobject\u003c/code\u003e and implementing multiple interfaces like \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"],["\u003cp\u003eThis class allows for specifying document content either directly via \u003ccode\u003eContent\u003c/code\u003e as a \u003ccode\u003eByteString\u003c/code\u003e or by providing a Google Cloud Storage location through \u003ccode\u003eGcsSource\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eMimeType\u003c/code\u003e is a crucial property, requiring specification when providing document content through \u003ccode\u003eContent\u003c/code\u003e, but will be determined by the file extension if using \u003ccode\u003eGcsSource\u003c/code\u003e, with support for common document formats like PDF, DOCX, PPTX, and XLSX.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows you to create instances either with no argument, or with another instance of \u003ccode\u003eDocumentInputConfig\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,[]]