Enum googapis::google::cloud::translation::v3::input_config::Source [−][src]
pub enum Source {
GcsSource(GcsSource),
}
Expand description
Required. Specify the input.
Variants
GcsSource(GcsSource)
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.
Tuple Fields of GcsSource
0: GcsSource
Implementations
Trait Implementations
Auto Trait Implementations
impl RefUnwindSafe for Source
impl UnwindSafe for Source
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more