generated/google/apis/translate_v3beta1/classes.rb in google-api-client-0.31.0 vs generated/google/apis/translate_v3beta1/classes.rb in google-api-client-0.32.0

- old
+ new

@@ -43,24 +43,24 @@ # 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://goo.gl/xmQnxf for more information on and examples of labels. + # See https://cloud.google.com/translate/docs/labels for more information. # Corresponds to the JSON property `labels` # @return [Hash<String,String>] attr_accessor :labels # 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-id`/locations/`location-id`/models/`model-id`` + # `projects/`project-number-or-id`/locations/`location-id`/models/`model-id`` # - General (built-in) models: - # `projects/`project-id`/locations/`location-id`/models/general/nmt`, - # `projects/`project-id`/locations/`location-id`/models/general/base` + # `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`, + # `projects/`project-number-or-id`/locations/`location-id`/models/general/base` # 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>] attr_accessor :models @@ -121,11 +121,11 @@ # 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://goo.gl/xmQnxf for more information on and examples of labels. + # See https://cloud.google.com/translate/docs/labels for more information. # Corresponds to the JSON property `labels` # @return [Hash<String,String>] attr_accessor :labels # Optional. The format of the source text, for example, "text/html", @@ -134,15 +134,15 @@ # @return [String] attr_accessor :mime_type # Optional. The language detection model to be used. # Format: - # `projects/`project-id`/locations/`location-id`/models/language-detection/` - # model-id`` + # `projects/`project-number-or-id`/locations/`location-id`/models/language- + # detection/`model-id`` # Only one language detection model is currently supported: - # `projects/`project-id`/locations/`location-id`/models/language-detection/ - # default`. + # `projects/`project-number-or-id`/locations/`location-id`/models/language- + # detection/default`. # If not specified, the default model is used. # Corresponds to the JSON property `model` # @return [String] attr_accessor :model @@ -292,11 +292,12 @@ # Corresponds to the JSON property `languagePair` # @return [Google::Apis::TranslateV3beta1::LanguageCodePair] attr_accessor :language_pair # Required. The resource name of the glossary. Glossary names have the form - # `projects/`project-id`/locations/`location-id`/glossaries/`glossary-id``. + # `projects/`project-number-or-id`/locations/`location-id`/glossaries/`glossary- + # id``. # Corresponds to the JSON property `name` # @return [String] attr_accessor :name # Output only. When CreateGlossary was called. @@ -774,11 +775,11 @@ # 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://goo.gl/xmQnxf for more information on and examples of labels. + # See https://cloud.google.com/translate/docs/labels for more information. # Corresponds to the JSON property `labels` # @return [Hash<String,String>] attr_accessor :labels # Optional. The format of the source text, for example, "text/html", @@ -788,17 +789,17 @@ attr_accessor :mime_type # Optional. The `model` type requested for this translation. # The format depends on model type: # - AutoML Translation models: - # `projects/`project-id`/locations/`location-id`/models/`model-id`` + # `projects/`project-number-or-id`/locations/`location-id`/models/`model-id`` # - General (built-in) models: - # `projects/`project-id`/locations/`location-id`/models/general/nmt`, - # `projects/`project-id`/locations/`location-id`/models/general/base` + # `projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`, + # `projects/`project-number-or-id`/locations/`location-id`/models/general/base` # For global (non-regionalized) requests, use `location-id` `global`. # For example, - # `projects/`project-id`/locations/global/models/general/nmt`. + # `projects/`project-number-or-id`/locations/global/models/general/nmt`. # If missing, the system decides which google base model to use. # Corresponds to the JSON property `model` # @return [String] attr_accessor :model @@ -881,10 +882,15 @@ # Corresponds to the JSON property `glossaryConfig` # @return [Google::Apis::TranslateV3beta1::TranslateTextGlossaryConfig] attr_accessor :glossary_config # Only present when `model` is present in the request. - # This is same as `model` provided in the request. + # `model` here is normalized to have project number. + # For example: + # If the `model` requested in TranslationTextRequest is + # `projects/`project-id`/locations/`location-id`/models/general/nmt` then + # `model` here would be normalized to + # `projects/`project-number`/locations/`location-id`/models/general/nmt`. # Corresponds to the JSON property `model` # @return [String] attr_accessor :model # Text translated into the target language.