google-apis-translate_v3 0.23.0 → 0.25.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5f9e5ece4622f303a7d8b7c34edb1f447112a14241f8b840835e17b3fea7ee45
|
4
|
+
data.tar.gz: 2535b051c6e2b45d25b304554b4785bf51f55384c7f7111aa82c48afd6864961
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 46a1a897d4c80208171ab7ea18f03cb8c06da24889d193d3a8b10d7889950290f4c33c843167ffae07489b9b7e1d7616185b38fcbd93f60fc81ba3f500e15988
|
7
|
+
data.tar.gz: 8db12582994595b8cbafca62f6393ece960459352065131c703e82f30899f2776c847a7be8f4168878a2331cb2170c6933b141f8f8e329dfa21f506ed9f55e43
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-translate_v3
|
2
2
|
|
3
|
+
### v0.25.0 (2023-03-12)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230303
|
6
|
+
|
7
|
+
### v0.24.0 (2023-03-05)
|
8
|
+
|
9
|
+
* Regenerated from discovery document revision 20230224
|
10
|
+
|
3
11
|
### v0.23.0 (2023-02-15)
|
4
12
|
|
5
13
|
* Regenerated from discovery document revision 20230210
|
@@ -72,6 +72,14 @@ module Google
|
|
72
72
|
# @return [String]
|
73
73
|
attr_accessor :customized_attribution
|
74
74
|
|
75
|
+
# Optional. If true, use the text removal server to remove the shadow text on
|
76
|
+
# background image for native pdf translation. Shadow removal feature can only
|
77
|
+
# be enabled when is_translate_native_pdf_only: false && pdf_native_only: false
|
78
|
+
# Corresponds to the JSON property `enableShadowRemovalNativePdf`
|
79
|
+
# @return [Boolean]
|
80
|
+
attr_accessor :enable_shadow_removal_native_pdf
|
81
|
+
alias_method :enable_shadow_removal_native_pdf?, :enable_shadow_removal_native_pdf
|
82
|
+
|
75
83
|
# Optional.
|
76
84
|
# Corresponds to the JSON property `formatConversions`
|
77
85
|
# @return [Hash<String,String>]
|
@@ -106,14 +114,14 @@ module Google
|
|
106
114
|
# @return [Google::Apis::TranslateV3::BatchDocumentOutputConfig]
|
107
115
|
attr_accessor :output_config
|
108
116
|
|
109
|
-
# Required. The
|
110
|
-
# "en-US" or "sr-Latn". Supported language codes are listed in [
|
111
|
-
# Support](https://cloud.google.com/translate/docs/languages).
|
117
|
+
# Required. The ISO-639 language code of the input document if known, for
|
118
|
+
# example, "en-US" or "sr-Latn". Supported language codes are listed in [
|
119
|
+
# Language Support](https://cloud.google.com/translate/docs/languages).
|
112
120
|
# Corresponds to the JSON property `sourceLanguageCode`
|
113
121
|
# @return [String]
|
114
122
|
attr_accessor :source_language_code
|
115
123
|
|
116
|
-
# Required. The
|
124
|
+
# Required. The ISO-639 language code to use for translation of the input
|
117
125
|
# document. Specify up to 10 language codes here.
|
118
126
|
# Corresponds to the JSON property `targetLanguageCodes`
|
119
127
|
# @return [Array<String>]
|
@@ -126,6 +134,7 @@ module Google
|
|
126
134
|
# Update properties of this object
|
127
135
|
def update!(**args)
|
128
136
|
@customized_attribution = args[:customized_attribution] if args.key?(:customized_attribution)
|
137
|
+
@enable_shadow_removal_native_pdf = args[:enable_shadow_removal_native_pdf] if args.key?(:enable_shadow_removal_native_pdf)
|
129
138
|
@format_conversions = args[:format_conversions] if args.key?(:format_conversions)
|
130
139
|
@glossaries = args[:glossaries] if args.key?(:glossaries)
|
131
140
|
@input_configs = args[:input_configs] if args.key?(:input_configs)
|
@@ -409,7 +418,7 @@ module Google
|
|
409
418
|
# @return [Float]
|
410
419
|
attr_accessor :confidence
|
411
420
|
|
412
|
-
# The
|
421
|
+
# The ISO-639 language code of the source content in the request, detected
|
413
422
|
# automatically.
|
414
423
|
# Corresponds to the JSON property `languageCode`
|
415
424
|
# @return [String]
|
@@ -956,14 +965,14 @@ module Google
|
|
956
965
|
class LanguageCodePair
|
957
966
|
include Google::Apis::Core::Hashable
|
958
967
|
|
959
|
-
# Required. The
|
968
|
+
# Required. The ISO-639 language code of the input text, for example, "en-US".
|
960
969
|
# Expected to be an exact match for GlossaryTerm.language_code.
|
961
970
|
# Corresponds to the JSON property `sourceLanguageCode`
|
962
971
|
# @return [String]
|
963
972
|
attr_accessor :source_language_code
|
964
973
|
|
965
|
-
# Required. The
|
966
|
-
# . Expected to be an exact match for GlossaryTerm.language_code.
|
974
|
+
# Required. The ISO-639 language code for translation output, for example, "zh-
|
975
|
+
# CN". Expected to be an exact match for GlossaryTerm.language_code.
|
967
976
|
# Corresponds to the JSON property `targetLanguageCode`
|
968
977
|
# @return [String]
|
969
978
|
attr_accessor :target_language_code
|
@@ -983,9 +992,9 @@ module Google
|
|
983
992
|
class LanguageCodesSet
|
984
993
|
include Google::Apis::Core::Hashable
|
985
994
|
|
986
|
-
# The
|
987
|
-
# unique. The list contains at least two entries. Expected to be an exact
|
988
|
-
# for GlossaryTerm.language_code.
|
995
|
+
# The ISO-639 language code(s) for terms defined in the glossary. All entries
|
996
|
+
# are unique. The list contains at least two entries. Expected to be an exact
|
997
|
+
# match for GlossaryTerm.language_code.
|
989
998
|
# Corresponds to the JSON property `languageCodes`
|
990
999
|
# @return [Array<String>]
|
991
1000
|
attr_accessor :language_codes
|
@@ -1445,7 +1454,7 @@ module Google
|
|
1445
1454
|
attr_accessor :display_name
|
1446
1455
|
|
1447
1456
|
# Supported language code, generally consisting of its ISO 639-1 identifier, for
|
1448
|
-
# example, 'en', 'ja'. In certain cases,
|
1457
|
+
# example, 'en', 'ja'. In certain cases, ISO-639 codes including language and
|
1449
1458
|
# region identifiers are returned (for example, 'zh-TW' and 'zh-CN').
|
1450
1459
|
# Corresponds to the JSON property `languageCode`
|
1451
1460
|
# @return [String]
|
@@ -1559,17 +1568,17 @@ module Google
|
|
1559
1568
|
# @return [String]
|
1560
1569
|
attr_accessor :model
|
1561
1570
|
|
1562
|
-
# Optional. The
|
1563
|
-
# "en-US" or "sr-Latn". Supported language codes are listed in Language
|
1564
|
-
# If the source language isn't specified, the API attempts to identify
|
1565
|
-
# source language automatically and returns the source language within the
|
1571
|
+
# Optional. The ISO-639 language code of the input document if known, for
|
1572
|
+
# example, "en-US" or "sr-Latn". Supported language codes are listed in Language
|
1573
|
+
# Support. If the source language isn't specified, the API attempts to identify
|
1574
|
+
# the source language automatically and returns the source language within the
|
1566
1575
|
# response. Source language must be specified if the request contains a glossary
|
1567
1576
|
# or a custom model.
|
1568
1577
|
# Corresponds to the JSON property `sourceLanguageCode`
|
1569
1578
|
# @return [String]
|
1570
1579
|
attr_accessor :source_language_code
|
1571
1580
|
|
1572
|
-
# Required. The
|
1581
|
+
# Required. The ISO-639 language code to use for translation of the input
|
1573
1582
|
# document, set to one of the language codes listed in Language Support.
|
1574
1583
|
# Corresponds to the JSON property `targetLanguageCode`
|
1575
1584
|
# @return [String]
|
@@ -1710,7 +1719,7 @@ module Google
|
|
1710
1719
|
# @return [String]
|
1711
1720
|
attr_accessor :model
|
1712
1721
|
|
1713
|
-
# Optional. The
|
1722
|
+
# Optional. The ISO-639 language code of the input text if known, for example, "
|
1714
1723
|
# en-US" or "sr-Latn". Supported language codes are listed in Language Support.
|
1715
1724
|
# If the source language isn't specified, the API attempts to identify the
|
1716
1725
|
# source language automatically and returns the source language within the
|
@@ -1719,7 +1728,7 @@ module Google
|
|
1719
1728
|
# @return [String]
|
1720
1729
|
attr_accessor :source_language_code
|
1721
1730
|
|
1722
|
-
# Required. The
|
1731
|
+
# Required. The ISO-639 language code to use for translation of the input text,
|
1723
1732
|
# set to one of the language codes listed in Language Support.
|
1724
1733
|
# Corresponds to the JSON property `targetLanguageCode`
|
1725
1734
|
# @return [String]
|
@@ -1773,7 +1782,7 @@ module Google
|
|
1773
1782
|
class Translation
|
1774
1783
|
include Google::Apis::Core::Hashable
|
1775
1784
|
|
1776
|
-
# The
|
1785
|
+
# The ISO-639 language code of source text in the initial request, detected
|
1777
1786
|
# automatically, if no source language was passed within the initial request. If
|
1778
1787
|
# the source language was passed, auto-detection of the language does not occur
|
1779
1788
|
# and this field is empty.
|
@@ -16,13 +16,13 @@ module Google
|
|
16
16
|
module Apis
|
17
17
|
module TranslateV3
|
18
18
|
# Version of the google-apis-translate_v3 gem
|
19
|
-
GEM_VERSION = "0.
|
19
|
+
GEM_VERSION = "0.25.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
22
|
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230303"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -360,6 +360,7 @@ module Google
|
|
360
360
|
# @private
|
361
361
|
class Representation < Google::Apis::Core::JsonRepresentation
|
362
362
|
property :customized_attribution, as: 'customizedAttribution'
|
363
|
+
property :enable_shadow_removal_native_pdf, as: 'enableShadowRemovalNativePdf'
|
363
364
|
hash :format_conversions, as: 'formatConversions'
|
364
365
|
hash :glossaries, as: 'glossaries', class: Google::Apis::TranslateV3::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3::TranslateTextGlossaryConfig::Representation
|
365
366
|
|
@@ -1342,13 +1342,7 @@ module Google
|
|
1342
1342
|
end
|
1343
1343
|
|
1344
1344
|
# Lists operations that match the specified filter in the request. If the server
|
1345
|
-
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1346
|
-
# binding allows API services to override the binding to use different resource
|
1347
|
-
# name schemes, such as `users/*/operations`. To override the binding, API
|
1348
|
-
# services can add a binding such as `"/v1/`name=users/*`/operations"` to their
|
1349
|
-
# service configuration. For backwards compatibility, the default name includes
|
1350
|
-
# the operations collection id, however overriding users must ensure the name
|
1351
|
-
# binding is the parent resource, without the operations collection id.
|
1345
|
+
# doesn't support this method, it returns `UNIMPLEMENTED`.
|
1352
1346
|
# @param [String] name
|
1353
1347
|
# The name of the operation's parent resource.
|
1354
1348
|
# @param [String] filter
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-apis-translate_v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.25.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-03-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -58,7 +58,7 @@ licenses:
|
|
58
58
|
metadata:
|
59
59
|
bug_tracker_uri: https://github.com/googleapis/google-api-ruby-client/issues
|
60
60
|
changelog_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3/CHANGELOG.md
|
61
|
-
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.
|
61
|
+
documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.25.0
|
62
62
|
source_code_uri: https://github.com/googleapis/google-api-ruby-client/tree/main/generated/google-apis-translate_v3
|
63
63
|
post_install_message:
|
64
64
|
rdoc_options: []
|