Required. Google Cloud Storage location for the source input.
This can be a single file (for example,
gs://translation-test/input.tsv) or a wildcard (for example,
gs://translation-test/*). If a file extension is .tsv, it can
contain either one or two columns. The first column (optional) is the id
of the text request. If the first column is missing, we use the row
number (0-based) from the input file as the ID in the output file. The
second column is the actual text to be
translated. We recommend each row be <= 10K Unicode codepoints,
otherwise an error might be returned.
Note that the input tsv must be RFC 4180 compliant.
You could use https://github.com/Clever/csvlint to check potential
formatting errors in your tsv file.
csvlint --delimiter='\t' your_input_file.tsv
The other supported file extensions are .txt or .html, which is
treated as a single large chunk of text.
Optional. Can be "text/plain" or "text/html".
For .tsv, "text/html" is used if mime_type is missing.
For .html, this field must be "text/html" or empty.
For .txt, this field must be "text/plain" or empty.
[[["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\u003eInputConfig\u003c/code\u003e class is part of the Google Cloud Translation v3 API, designed for configuring input data for batch text translation requests, with the latest being version 3.9.0.\u003c/p\u003e\n"],["\u003cp\u003eThis class can be used for specifying the source of the input data, supporting either single files or wildcards from Google Cloud Storage locations, with the supported file extensions being \u003ccode\u003e.tsv\u003c/code\u003e, \u003ccode\u003e.txt\u003c/code\u003e, or \u003ccode\u003e.html\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInputConfig\u003c/code\u003e can implement multiple 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"],["\u003cp\u003eThe \u003ccode\u003eInputConfig\u003c/code\u003e class includes properties like \u003ccode\u003eGcsSource\u003c/code\u003e to specify the Google Cloud Storage location and \u003ccode\u003eMimeType\u003c/code\u003e to indicate the content type, allowing for configuration of whether the file is \u003ccode\u003etext/plain\u003c/code\u003e or \u003ccode\u003etext/html\u003c/code\u003e.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eSourceCase\u003c/code\u003e property indicates the type of input source being used within the \u003ccode\u003eInputConfig\u003c/code\u003e object.\u003c/p\u003e\n"]]],[],null,[]]