class Google::Apis::TranslateV3::BatchTranslateTextRequest
The batch translation request.
Attributes
Optional. Glossaries to be applied for translation. It's keyed by target language code. Corresponds to the JSON property `glossaries` @return [Hash<String,Google::Apis::TranslateV3::TranslateTextGlossaryConfig>]
Required. Input configurations. The total number of files matched should be <=
-
The total content size should be <= 100M Unicode codepoints. The files
must use UTF-8 encoding. Corresponds to the JSON property `inputConfigs` @return [Array<Google::Apis::TranslateV3::InputConfig>]
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 cloud.google.com/translate/docs/advanced/ labels for more information. Corresponds to the JSON property `labels` @return [Hash<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. Corresponds to the JSON property `models` @return [Hash<String,String>]
Output configuration for BatchTranslateText request. Corresponds to the JSON property `outputConfig` @return [Google::Apis::TranslateV3::OutputConfig]
Required. Source language code. Corresponds to the JSON property `sourceLanguageCode` @return [String]
Required. Specify up to 10 language codes here. Corresponds to the JSON property `targetLanguageCodes` @return [Array<String>]
Public Class Methods
# File lib/google/apis/translate_v3/classes.rb, line 79 def initialize(**args) update!(**args) end
Public Instance Methods
Update properties of this object
# File lib/google/apis/translate_v3/classes.rb, line 84 def update!(**args) @glossaries = args[:glossaries] if args.key?(:glossaries) @input_configs = args[:input_configs] if args.key?(:input_configs) @labels = args[:labels] if args.key?(:labels) @models = args[:models] if args.key?(:models) @output_config = args[:output_config] if args.key?(:output_config) @source_language_code = args[:source_language_code] if args.key?(:source_language_code) @target_language_codes = args[:target_language_codes] if args.key?(:target_language_codes) end