Skip to content

Commit db9a5c1

Browse files
feat: Automated regeneration of translate v3beta1 client (googleapis#21123)
Auto-created at 2024-12-22 10:15:50 +0000 using the toys pull request generator.
1 parent ccf2d21 commit db9a5c1

File tree

6 files changed

+24
-5
lines changed

6 files changed

+24
-5
lines changed

api_names_out.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -333119,6 +333119,7 @@
333119333119
"/translate:v3beta1/TranslateDocumentResponse/glossaryDocumentTranslation": glossary_document_translation
333120333120
"/translate:v3beta1/TranslateDocumentResponse/model": model
333121333121
"/translate:v3beta1/TranslateTextGlossaryConfig": translate_text_glossary_config
333122+
"/translate:v3beta1/TranslateTextGlossaryConfig/contextualTranslationEnabled": contextual_translation_enabled
333122333123
"/translate:v3beta1/TranslateTextGlossaryConfig/glossary": glossary
333123333124
"/translate:v3beta1/TranslateTextGlossaryConfig/ignoreCase": ignore_case
333124333125
"/translate:v3beta1/TranslateTextRequest": translate_text_request

generated/google-apis-translate_v3beta1/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Release history for google-apis-translate_v3beta1
22

3+
### v0.34.0 (2024-12-22)
4+
5+
* Regenerated from discovery document revision 20241218
6+
* Regenerated using generator version 0.15.1
7+
38
### v0.33.0 (2024-05-19)
49

510
* Regenerated using generator version 0.15.0

generated/google-apis-translate_v3beta1/lib/google/apis/translate_v3beta1/classes.rb

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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`

generated/google-apis-translate_v3beta1/lib/google/apis/translate_v3beta1/gem_version.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,13 +16,13 @@ module Google
1616
module Apis
1717
module TranslateV3beta1
1818
# Version of the google-apis-translate_v3beta1 gem
19-
GEM_VERSION = "0.33.0"
19+
GEM_VERSION = "0.34.0"
2020

2121
# Version of the code generator used to generate this client
22-
GENERATOR_VERSION = "0.15.0"
22+
GENERATOR_VERSION = "0.15.1"
2323

2424
# Revision of the discovery document this client was generated from
25-
REVISION = "20230922"
25+
REVISION = "20241218"
2626
end
2727
end
2828
end

generated/google-apis-translate_v3beta1/lib/google/apis/translate_v3beta1/representations.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -532,6 +532,7 @@ class Representation < Google::Apis::Core::JsonRepresentation
532532
class TranslateTextGlossaryConfig
533533
# @private
534534
class Representation < Google::Apis::Core::JsonRepresentation
535+
property :contextual_translation_enabled, as: 'contextualTranslationEnabled'
535536
property :glossary, as: 'glossary'
536537
property :ignore_case, as: 'ignoreCase'
537538
end

generated/google-apis-translate_v3beta1/lib/google/apis/translate_v3beta1/service.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -655,8 +655,8 @@ def list_project_location_glossaries(parent, filter: nil, page_size: nil, page_t
655655
# Clients can use Operations.GetOperation or other methods to check whether the
656656
# cancellation succeeded or whether the operation completed despite cancellation.
657657
# On successful cancellation, the operation is not deleted; instead, it becomes
658-
# an operation with an Operation.error value with a google.rpc.Status.code of 1,
659-
# corresponding to `Code.CANCELLED`.
658+
# an operation with an Operation.error value with a google.rpc.Status.code of `1`
659+
# , corresponding to `Code.CANCELLED`.
660660
# @param [String] name
661661
# The name of the operation resource to be cancelled.
662662
# @param [Google::Apis::TranslateV3beta1::CancelOperationRequest] cancel_operation_request_object

0 commit comments

Comments
 (0)