google-apis-translate_v3 0.36.0 → 0.38.0
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e3db06b567e946f4c03a6c97f84c799448194f4d3d516dec008f0ff99948318
|
4
|
+
data.tar.gz: 943ac95a373160fe602c5d8fd3daef8252f0e24c3317ff9b63c704868dec8258
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b724160a8590107b4411762317766b8623e152816f563230e7cf631b1dec17fef32cf7c4ad9d9a0b8f993655b4b15c683015793412d0be00fd11feea883396aa
|
7
|
+
data.tar.gz: 512d431e3950bf0331b2277e1132f298ae1351e79f221afbb1cb40decbc40a59915661ceedcd9169f20d8f617fe56bebef0a1a8990919f80e88355420ef09462
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,13 @@
|
|
1
1
|
# Release history for google-apis-translate_v3
|
2
2
|
|
3
|
+
### v0.38.0 (2024-07-25)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20240718
|
6
|
+
|
7
|
+
### v0.37.0 (2024-05-19)
|
8
|
+
|
9
|
+
* Regenerated using generator version 0.15.0
|
10
|
+
|
3
11
|
### v0.36.0 (2024-02-23)
|
4
12
|
|
5
13
|
* Unspecified changes
|
@@ -174,8 +174,7 @@ module Google
|
|
174
174
|
class AdaptiveMtTranslateRequest
|
175
175
|
include Google::Apis::Core::Hashable
|
176
176
|
|
177
|
-
# Required. The content of the input in string format.
|
178
|
-
# per request is supported.
|
177
|
+
# Required. The content of the input in string format.
|
179
178
|
# Corresponds to the JSON property `content`
|
180
179
|
# @return [Array<String>]
|
181
180
|
attr_accessor :content
|
@@ -186,6 +185,17 @@ module Google
|
|
186
185
|
# @return [String]
|
187
186
|
attr_accessor :dataset
|
188
187
|
|
188
|
+
# Configures which glossary is used for a specific target language and defines
|
189
|
+
# options for applying that glossary.
|
190
|
+
# Corresponds to the JSON property `glossaryConfig`
|
191
|
+
# @return [Google::Apis::TranslateV3::TranslateTextGlossaryConfig]
|
192
|
+
attr_accessor :glossary_config
|
193
|
+
|
194
|
+
# Message of caller-provided reference configuration.
|
195
|
+
# Corresponds to the JSON property `referenceSentenceConfig`
|
196
|
+
# @return [Google::Apis::TranslateV3::ReferenceSentenceConfig]
|
197
|
+
attr_accessor :reference_sentence_config
|
198
|
+
|
189
199
|
def initialize(**args)
|
190
200
|
update!(**args)
|
191
201
|
end
|
@@ -194,6 +204,8 @@ module Google
|
|
194
204
|
def update!(**args)
|
195
205
|
@content = args[:content] if args.key?(:content)
|
196
206
|
@dataset = args[:dataset] if args.key?(:dataset)
|
207
|
+
@glossary_config = args[:glossary_config] if args.key?(:glossary_config)
|
208
|
+
@reference_sentence_config = args[:reference_sentence_config] if args.key?(:reference_sentence_config)
|
197
209
|
end
|
198
210
|
end
|
199
211
|
|
@@ -201,6 +213,12 @@ module Google
|
|
201
213
|
class AdaptiveMtTranslateResponse
|
202
214
|
include Google::Apis::Core::Hashable
|
203
215
|
|
216
|
+
# Text translation response if a glossary is provided in the request. This could
|
217
|
+
# be the same as 'translation' above if no terms apply.
|
218
|
+
# Corresponds to the JSON property `glossaryTranslations`
|
219
|
+
# @return [Array<Google::Apis::TranslateV3::AdaptiveMtTranslation>]
|
220
|
+
attr_accessor :glossary_translations
|
221
|
+
|
204
222
|
# Output only. The translation's language code.
|
205
223
|
# Corresponds to the JSON property `languageCode`
|
206
224
|
# @return [String]
|
@@ -217,6 +235,7 @@ module Google
|
|
217
235
|
|
218
236
|
# Update properties of this object
|
219
237
|
def update!(**args)
|
238
|
+
@glossary_translations = args[:glossary_translations] if args.key?(:glossary_translations)
|
220
239
|
@language_code = args[:language_code] if args.key?(:language_code)
|
221
240
|
@translations = args[:translations] if args.key?(:translations)
|
222
241
|
end
|
@@ -1031,7 +1050,7 @@ module Google
|
|
1031
1050
|
# @return [String]
|
1032
1051
|
attr_accessor :description
|
1033
1052
|
|
1034
|
-
#
|
1053
|
+
# Identifier. The resource name of the entry. Format: "projects/*/locations/*/
|
1035
1054
|
# glossaries/*/glossaryEntries/*"
|
1036
1055
|
# Corresponds to the JSON property `name`
|
1037
1056
|
# @return [String]
|
@@ -1782,6 +1801,83 @@ module Google
|
|
1782
1801
|
end
|
1783
1802
|
end
|
1784
1803
|
|
1804
|
+
# Message of caller-provided reference configuration.
|
1805
|
+
class ReferenceSentenceConfig
|
1806
|
+
include Google::Apis::Core::Hashable
|
1807
|
+
|
1808
|
+
# Reference sentences pair lists. Each list will be used as the references to
|
1809
|
+
# translate the sentence under "content" field at the corresponding index.
|
1810
|
+
# Length of the list is required to be equal to the length of "content" field.
|
1811
|
+
# Corresponds to the JSON property `referenceSentencePairLists`
|
1812
|
+
# @return [Array<Google::Apis::TranslateV3::ReferenceSentencePairList>]
|
1813
|
+
attr_accessor :reference_sentence_pair_lists
|
1814
|
+
|
1815
|
+
# Source language code.
|
1816
|
+
# Corresponds to the JSON property `sourceLanguageCode`
|
1817
|
+
# @return [String]
|
1818
|
+
attr_accessor :source_language_code
|
1819
|
+
|
1820
|
+
# Target language code.
|
1821
|
+
# Corresponds to the JSON property `targetLanguageCode`
|
1822
|
+
# @return [String]
|
1823
|
+
attr_accessor :target_language_code
|
1824
|
+
|
1825
|
+
def initialize(**args)
|
1826
|
+
update!(**args)
|
1827
|
+
end
|
1828
|
+
|
1829
|
+
# Update properties of this object
|
1830
|
+
def update!(**args)
|
1831
|
+
@reference_sentence_pair_lists = args[:reference_sentence_pair_lists] if args.key?(:reference_sentence_pair_lists)
|
1832
|
+
@source_language_code = args[:source_language_code] if args.key?(:source_language_code)
|
1833
|
+
@target_language_code = args[:target_language_code] if args.key?(:target_language_code)
|
1834
|
+
end
|
1835
|
+
end
|
1836
|
+
|
1837
|
+
# A pair of sentences used as reference in source and target languages.
|
1838
|
+
class ReferenceSentencePair
|
1839
|
+
include Google::Apis::Core::Hashable
|
1840
|
+
|
1841
|
+
# Source sentence in the sentence pair.
|
1842
|
+
# Corresponds to the JSON property `sourceSentence`
|
1843
|
+
# @return [String]
|
1844
|
+
attr_accessor :source_sentence
|
1845
|
+
|
1846
|
+
# Target sentence in the sentence pair.
|
1847
|
+
# Corresponds to the JSON property `targetSentence`
|
1848
|
+
# @return [String]
|
1849
|
+
attr_accessor :target_sentence
|
1850
|
+
|
1851
|
+
def initialize(**args)
|
1852
|
+
update!(**args)
|
1853
|
+
end
|
1854
|
+
|
1855
|
+
# Update properties of this object
|
1856
|
+
def update!(**args)
|
1857
|
+
@source_sentence = args[:source_sentence] if args.key?(:source_sentence)
|
1858
|
+
@target_sentence = args[:target_sentence] if args.key?(:target_sentence)
|
1859
|
+
end
|
1860
|
+
end
|
1861
|
+
|
1862
|
+
# A list of reference sentence pairs.
|
1863
|
+
class ReferenceSentencePairList
|
1864
|
+
include Google::Apis::Core::Hashable
|
1865
|
+
|
1866
|
+
# Reference sentence pairs.
|
1867
|
+
# Corresponds to the JSON property `referenceSentencePairs`
|
1868
|
+
# @return [Array<Google::Apis::TranslateV3::ReferenceSentencePair>]
|
1869
|
+
attr_accessor :reference_sentence_pairs
|
1870
|
+
|
1871
|
+
def initialize(**args)
|
1872
|
+
update!(**args)
|
1873
|
+
end
|
1874
|
+
|
1875
|
+
# Update properties of this object
|
1876
|
+
def update!(**args)
|
1877
|
+
@reference_sentence_pairs = args[:reference_sentence_pairs] if args.key?(:reference_sentence_pairs)
|
1878
|
+
end
|
1879
|
+
end
|
1880
|
+
|
1785
1881
|
# A single romanization response.
|
1786
1882
|
class Romanization
|
1787
1883
|
include Google::Apis::Core::Hashable
|
@@ -2173,10 +2269,12 @@ module Google
|
|
2173
2269
|
# Optional. The `model` type requested for this translation. The format depends
|
2174
2270
|
# on model type: - AutoML Translation models: `projects/`project-number-or-id`/
|
2175
2271
|
# locations/`location-id`/models/`model-id`` - General (built-in) models: `
|
2176
|
-
# projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`,
|
2177
|
-
#
|
2178
|
-
#
|
2179
|
-
#
|
2272
|
+
# projects/`project-number-or-id`/locations/`location-id`/models/general/nmt`, -
|
2273
|
+
# Translation LLM models: `projects/`project-number-or-id`/locations/`location-
|
2274
|
+
# id`/models/general/translation-llm`, For global (non-regionalized) requests,
|
2275
|
+
# use `location-id` `global`. For example, `projects/`project-number-or-id`/
|
2276
|
+
# locations/global/models/general/nmt`. If not provided, the default Google
|
2277
|
+
# model (NMT) will be used
|
2180
2278
|
# Corresponds to the JSON property `model`
|
2181
2279
|
# @return [String]
|
2182
2280
|
attr_accessor :model
|
@@ -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.38.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.15.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20240718"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|
@@ -352,6 +352,24 @@ module Google
|
|
352
352
|
include Google::Apis::Core::JsonObjectSupport
|
353
353
|
end
|
354
354
|
|
355
|
+
class ReferenceSentenceConfig
|
356
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
|
+
|
358
|
+
include Google::Apis::Core::JsonObjectSupport
|
359
|
+
end
|
360
|
+
|
361
|
+
class ReferenceSentencePair
|
362
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
363
|
+
|
364
|
+
include Google::Apis::Core::JsonObjectSupport
|
365
|
+
end
|
366
|
+
|
367
|
+
class ReferenceSentencePairList
|
368
|
+
class Representation < Google::Apis::Core::JsonRepresentation; end
|
369
|
+
|
370
|
+
include Google::Apis::Core::JsonObjectSupport
|
371
|
+
end
|
372
|
+
|
355
373
|
class Romanization
|
356
374
|
class Representation < Google::Apis::Core::JsonRepresentation; end
|
357
375
|
|
@@ -476,12 +494,18 @@ module Google
|
|
476
494
|
class Representation < Google::Apis::Core::JsonRepresentation
|
477
495
|
collection :content, as: 'content'
|
478
496
|
property :dataset, as: 'dataset'
|
497
|
+
property :glossary_config, as: 'glossaryConfig', class: Google::Apis::TranslateV3::TranslateTextGlossaryConfig, decorator: Google::Apis::TranslateV3::TranslateTextGlossaryConfig::Representation
|
498
|
+
|
499
|
+
property :reference_sentence_config, as: 'referenceSentenceConfig', class: Google::Apis::TranslateV3::ReferenceSentenceConfig, decorator: Google::Apis::TranslateV3::ReferenceSentenceConfig::Representation
|
500
|
+
|
479
501
|
end
|
480
502
|
end
|
481
503
|
|
482
504
|
class AdaptiveMtTranslateResponse
|
483
505
|
# @private
|
484
506
|
class Representation < Google::Apis::Core::JsonRepresentation
|
507
|
+
collection :glossary_translations, as: 'glossaryTranslations', class: Google::Apis::TranslateV3::AdaptiveMtTranslation, decorator: Google::Apis::TranslateV3::AdaptiveMtTranslation::Representation
|
508
|
+
|
485
509
|
property :language_code, as: 'languageCode'
|
486
510
|
collection :translations, as: 'translations', class: Google::Apis::TranslateV3::AdaptiveMtTranslation, decorator: Google::Apis::TranslateV3::AdaptiveMtTranslation::Representation
|
487
511
|
|
@@ -958,6 +982,32 @@ module Google
|
|
958
982
|
end
|
959
983
|
end
|
960
984
|
|
985
|
+
class ReferenceSentenceConfig
|
986
|
+
# @private
|
987
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
988
|
+
collection :reference_sentence_pair_lists, as: 'referenceSentencePairLists', class: Google::Apis::TranslateV3::ReferenceSentencePairList, decorator: Google::Apis::TranslateV3::ReferenceSentencePairList::Representation
|
989
|
+
|
990
|
+
property :source_language_code, as: 'sourceLanguageCode'
|
991
|
+
property :target_language_code, as: 'targetLanguageCode'
|
992
|
+
end
|
993
|
+
end
|
994
|
+
|
995
|
+
class ReferenceSentencePair
|
996
|
+
# @private
|
997
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
998
|
+
property :source_sentence, as: 'sourceSentence'
|
999
|
+
property :target_sentence, as: 'targetSentence'
|
1000
|
+
end
|
1001
|
+
end
|
1002
|
+
|
1003
|
+
class ReferenceSentencePairList
|
1004
|
+
# @private
|
1005
|
+
class Representation < Google::Apis::Core::JsonRepresentation
|
1006
|
+
collection :reference_sentence_pairs, as: 'referenceSentencePairs', class: Google::Apis::TranslateV3::ReferenceSentencePair, decorator: Google::Apis::TranslateV3::ReferenceSentencePair::Representation
|
1007
|
+
|
1008
|
+
end
|
1009
|
+
end
|
1010
|
+
|
961
1011
|
class Romanization
|
962
1012
|
# @private
|
963
1013
|
class Representation < Google::Apis::Core::JsonRepresentation
|
@@ -1540,7 +1540,7 @@ module Google
|
|
1540
1540
|
|
1541
1541
|
# Updates a glossary entry.
|
1542
1542
|
# @param [String] name
|
1543
|
-
#
|
1543
|
+
# Identifier. The resource name of the entry. Format: "projects/*/locations/*/
|
1544
1544
|
# glossaries/*/glossaryEntries/*"
|
1545
1545
|
# @param [Google::Apis::TranslateV3::GlossaryEntry] glossary_entry_object
|
1546
1546
|
# @param [String] fields
|
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.38.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: 2024-
|
11
|
+
date: 2024-07-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: google-apis-core
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.15.0
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: 2.a
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
29
|
+
version: 0.15.0
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 2.a
|
@@ -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.38.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: []
|