public sealed class DocumentInputConfig : IMessage<DocumentInputConfig>, IEquatable<DocumentInputConfig>, IDeepCloneable<DocumentInputConfig>, IBufferMessage, IMessage
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 \u003ccode\u003eDocumentInputConfig\u003c/code\u003e class is used for configuring input for document translation requests in version 3.0.0 of the Google Cloud Translate API.\u003c/p\u003e\n"],["\u003cp\u003eIt supports multiple document versions, with the latest version being 3.9.0, and provides links to documentation for each.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e interfaces, and inherits from \u003ccode\u003eObject\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eDocumentInputConfig\u003c/code\u003e has properties for \u003ccode\u003eContent\u003c/code\u003e (document's content as bytes), \u003ccode\u003eGcsSource\u003c/code\u003e (Google Cloud Storage location), \u003ccode\u003eMimeType\u003c/code\u003e (document's MIME type), and \u003ccode\u003eSourceCase\u003c/code\u003e (identifies which source is used).\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eMimeType\u003c/code\u003e must be specified when providing the document through \u003ccode\u003eContent\u003c/code\u003e, but can be inferred when utilizing \u003ccode\u003eGcsSource\u003c/code\u003e, and supports types such as \u003ccode\u003eapplication/pdf\u003c/code\u003e, \u003ccode\u003eapplication/vnd.openxmlformats-officedocument.wordprocessingml.document\u003c/code\u003e, and others.\u003c/p\u003e\n"]]],[],null,[]]