@@ -988,6 +988,7 @@ class TranslateDocumentRequest
988988 attr_accessor :enable_shadow_removal_native_pdf
989989 alias_method :enable_shadow_removal_native_pdf? , :enable_shadow_removal_native_pdf
990990
991+ # -----------------------------------------------------------------------------
991992 # Configures which glossary should be used for a specific target language, and
992993 # defines options for applying that glossary.
993994 # Corresponds to the JSON property `glossaryConfig`
@@ -1066,6 +1067,7 @@ class TranslateDocumentResponse
10661067 # @return [Google::Apis::TranslateV3beta1::DocumentTranslation]
10671068 attr_accessor :document_translation
10681069
1070+ # -----------------------------------------------------------------------------
10691071 # Configures which glossary should be used for a specific target language, and
10701072 # defines options for applying that glossary.
10711073 # Corresponds to the JSON property `glossaryConfig`
@@ -1099,11 +1101,18 @@ def update!(**args)
10991101 end
11001102 end
11011103
1104+ # -----------------------------------------------------------------------------
11021105 # Configures which glossary should be used for a specific target language, and
11031106 # defines options for applying that glossary.
11041107 class TranslateTextGlossaryConfig
11051108 include Google ::Apis ::Core ::Hashable
11061109
1110+ # Optional. If set to true, the glossary will be used for contextual translation.
1111+ # Corresponds to the JSON property `contextualTranslationEnabled`
1112+ # @return [Boolean]
1113+ attr_accessor :contextual_translation_enabled
1114+ alias_method :contextual_translation_enabled? , :contextual_translation_enabled
1115+
11071116 # Required. Specifies the glossary used for this translation. Use this format:
11081117 # projects/*/locations/*/glossaries/*
11091118 # Corresponds to the JSON property `glossary`
@@ -1123,6 +1132,7 @@ def initialize(**args)
11231132
11241133 # Update properties of this object
11251134 def update! ( **args )
1135+ @contextual_translation_enabled = args [ :contextual_translation_enabled ] if args . key? ( :contextual_translation_enabled )
11261136 @glossary = args [ :glossary ] if args . key? ( :glossary )
11271137 @ignore_case = args [ :ignore_case ] if args . key? ( :ignore_case )
11281138 end
@@ -1139,6 +1149,7 @@ class TranslateTextRequest
11391149 # @return [Array<String>]
11401150 attr_accessor :contents
11411151
1152+ # -----------------------------------------------------------------------------
11421153 # Configures which glossary should be used for a specific target language, and
11431154 # defines options for applying that glossary.
11441155 # Corresponds to the JSON property `glossaryConfig`
@@ -1243,6 +1254,7 @@ class Translation
12431254 # @return [String]
12441255 attr_accessor :detected_language_code
12451256
1257+ # -----------------------------------------------------------------------------
12461258 # Configures which glossary should be used for a specific target language, and
12471259 # defines options for applying that glossary.
12481260 # Corresponds to the JSON property `glossaryConfig`
0 commit comments