pub struct BatchTranslateTextRequest {
pub glossaries: Option<HashMap<String, TranslateTextGlossaryConfig>>,
pub input_configs: Option<Vec<InputConfig>>,
pub labels: Option<HashMap<String, String>>,
pub models: Option<HashMap<String, String>>,
pub output_config: Option<OutputConfig>,
pub source_language_code: Option<String>,
pub target_language_codes: Option<Vec<String>>,
}Expand description
The batch translation request.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- locations batch translate text projects (request)
Fields§
§glossaries: Option<HashMap<String, TranslateTextGlossaryConfig>>Optional. Glossaries to be applied for translation. It’s keyed by target language code.
input_configs: Option<Vec<InputConfig>>Required. Input configurations. The total number of files matched should be <= 100. The total content size should be <= 100M Unicode codepoints. The files must use UTF-8 encoding.
labels: Option<HashMap<String, String>>Optional. The labels with user-defined metadata for the request. Label keys and values can be no longer than 63 characters (Unicode codepoints), can only contain lowercase letters, numeric characters, underscores and dashes. International characters are allowed. Label values are optional. Label keys must start with a letter. See https://cloud.google.com/translate/docs/advanced/labels for more information.
models: Option<HashMap<String, String>>Optional. The models to use for translation. Map’s key is target language code. Map’s value is model name. Value can be a built-in general model, or an AutoML Translation model. The value format depends on model type: - AutoML Translation models: projects/{project-number-or-id}/locations/{location-id}/models/{model-id} - General (built-in) models: projects/{project-number-or-id}/locations/{location-id}/models/general/nmt, If the map is empty or a specific model is not requested for a language pair, then default google model (nmt) is used.
output_config: Option<OutputConfig>Required. Output configuration. If 2 input configs match to the same file (that is, same input path), we don’t generate output for duplicate inputs.
source_language_code: Option<String>Required. Source language code.
target_language_codes: Option<Vec<String>>Required. Specify up to 10 language codes here.
Trait Implementations§
Source§impl Clone for BatchTranslateTextRequest
impl Clone for BatchTranslateTextRequest
Source§fn clone(&self) -> BatchTranslateTextRequest
fn clone(&self) -> BatchTranslateTextRequest
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more