google-apis-translate_v3 0.32.0 → 0.33.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: 1cb80a0b53d828c45db73470214d59d6d3f0b22e0568346b3f7721cf97bf2946
4
- data.tar.gz: 86936a03b28a10876b7de206daa475fe18af4954356100a869ebed197dc1dd4c
3
+ metadata.gz: 86d8685773044ef371f582702eb2e3f0e2c073d21c09de4c7ffe05b46a4d0b1f
4
+ data.tar.gz: a5b5545f526d55b4eb38b5e95ab641e7d1c6f6058a8aeb0c9da0561c59d1fc5d
5
5
  SHA512:
6
- metadata.gz: 1edba2f0ef52464eaafe8b04255a96d7f06c666c51a6c682a30853d00952f8b9c1bcbdc347031c9411d36d71406cf112923697212ecf37dbf89b37982cb07543
7
- data.tar.gz: fd40e5910f98c8d162d11e171d9cd00be81c4886fb0396d77a2bbb71be23d35634e2d21f1153e3085823365424111bee366eb25fde4144288480bdba3fdfcc69
6
+ metadata.gz: 9c21acb2067d8e7ae7911bf53921c9f79dcec85307e0dedabea46b9d54a6c717f93d8ad6f05d0af4fa97d712719f3d8bd7202ed580e3f113f98941be702793fd
7
+ data.tar.gz: 87f1f2defd90707d1935707833133835c746b9f588f697236ee2b12bacd05672af5715d8cec160689e0eb06da8a6fb239c33fd4f5bc38d9d47f95ac2fa3c346d
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Release history for google-apis-translate_v3
2
2
 
3
+ ### v0.33.0 (2023-12-10)
4
+
5
+ * Regenerated from discovery document revision 20231201
6
+
3
7
  ### v0.32.0 (2023-10-01)
4
8
 
5
9
  * Regenerated from discovery document revision 20230922
@@ -22,6 +22,224 @@ module Google
22
22
  module Apis
23
23
  module TranslateV3
24
24
 
25
+ # An Adaptive MT Dataset.
26
+ class AdaptiveMtDataset
27
+ include Google::Apis::Core::Hashable
28
+
29
+ # Output only. Timestamp when this dataset was created.
30
+ # Corresponds to the JSON property `createTime`
31
+ # @return [String]
32
+ attr_accessor :create_time
33
+
34
+ # The name of the dataset to show in the interface. The name can be up to 32
35
+ # characters long and can consist only of ASCII Latin letters A-Z and a-z,
36
+ # underscores (_), and ASCII digits 0-9.
37
+ # Corresponds to the JSON property `displayName`
38
+ # @return [String]
39
+ attr_accessor :display_name
40
+
41
+ # The number of examples in the dataset.
42
+ # Corresponds to the JSON property `exampleCount`
43
+ # @return [Fixnum]
44
+ attr_accessor :example_count
45
+
46
+ # Required. The resource name of the dataset, in form of `projects/`project-
47
+ # number-or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset_id``
48
+ # Corresponds to the JSON property `name`
49
+ # @return [String]
50
+ attr_accessor :name
51
+
52
+ # The BCP-47 language code of the source language.
53
+ # Corresponds to the JSON property `sourceLanguageCode`
54
+ # @return [String]
55
+ attr_accessor :source_language_code
56
+
57
+ # The BCP-47 language code of the target language.
58
+ # Corresponds to the JSON property `targetLanguageCode`
59
+ # @return [String]
60
+ attr_accessor :target_language_code
61
+
62
+ # Output only. Timestamp when this dataset was last updated.
63
+ # Corresponds to the JSON property `updateTime`
64
+ # @return [String]
65
+ attr_accessor :update_time
66
+
67
+ def initialize(**args)
68
+ update!(**args)
69
+ end
70
+
71
+ # Update properties of this object
72
+ def update!(**args)
73
+ @create_time = args[:create_time] if args.key?(:create_time)
74
+ @display_name = args[:display_name] if args.key?(:display_name)
75
+ @example_count = args[:example_count] if args.key?(:example_count)
76
+ @name = args[:name] if args.key?(:name)
77
+ @source_language_code = args[:source_language_code] if args.key?(:source_language_code)
78
+ @target_language_code = args[:target_language_code] if args.key?(:target_language_code)
79
+ @update_time = args[:update_time] if args.key?(:update_time)
80
+ end
81
+ end
82
+
83
+ # An AdaptiveMtFile.
84
+ class AdaptiveMtFile
85
+ include Google::Apis::Core::Hashable
86
+
87
+ # Output only. Timestamp when this file was created.
88
+ # Corresponds to the JSON property `createTime`
89
+ # @return [String]
90
+ attr_accessor :create_time
91
+
92
+ # The file's display name.
93
+ # Corresponds to the JSON property `displayName`
94
+ # @return [String]
95
+ attr_accessor :display_name
96
+
97
+ # The number of entries that the file contains.
98
+ # Corresponds to the JSON property `entryCount`
99
+ # @return [Fixnum]
100
+ attr_accessor :entry_count
101
+
102
+ # Required. The resource name of the file, in form of `projects/`project-number-
103
+ # or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset`/files/`file``
104
+ # Corresponds to the JSON property `name`
105
+ # @return [String]
106
+ attr_accessor :name
107
+
108
+ # Output only. Timestamp when this file was last updated.
109
+ # Corresponds to the JSON property `updateTime`
110
+ # @return [String]
111
+ attr_accessor :update_time
112
+
113
+ def initialize(**args)
114
+ update!(**args)
115
+ end
116
+
117
+ # Update properties of this object
118
+ def update!(**args)
119
+ @create_time = args[:create_time] if args.key?(:create_time)
120
+ @display_name = args[:display_name] if args.key?(:display_name)
121
+ @entry_count = args[:entry_count] if args.key?(:entry_count)
122
+ @name = args[:name] if args.key?(:name)
123
+ @update_time = args[:update_time] if args.key?(:update_time)
124
+ end
125
+ end
126
+
127
+ # An AdaptiveMt sentence entry.
128
+ class AdaptiveMtSentence
129
+ include Google::Apis::Core::Hashable
130
+
131
+ # Output only. Timestamp when this sentence was created.
132
+ # Corresponds to the JSON property `createTime`
133
+ # @return [String]
134
+ attr_accessor :create_time
135
+
136
+ # Required. The resource name of the file, in form of `projects/`project-number-
137
+ # or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset`/files/`file`/
138
+ # sentences/`sentence``
139
+ # Corresponds to the JSON property `name`
140
+ # @return [String]
141
+ attr_accessor :name
142
+
143
+ # Required. The source sentence.
144
+ # Corresponds to the JSON property `sourceSentence`
145
+ # @return [String]
146
+ attr_accessor :source_sentence
147
+
148
+ # Required. The target sentence.
149
+ # Corresponds to the JSON property `targetSentence`
150
+ # @return [String]
151
+ attr_accessor :target_sentence
152
+
153
+ # Output only. Timestamp when this sentence was last updated.
154
+ # Corresponds to the JSON property `updateTime`
155
+ # @return [String]
156
+ attr_accessor :update_time
157
+
158
+ def initialize(**args)
159
+ update!(**args)
160
+ end
161
+
162
+ # Update properties of this object
163
+ def update!(**args)
164
+ @create_time = args[:create_time] if args.key?(:create_time)
165
+ @name = args[:name] if args.key?(:name)
166
+ @source_sentence = args[:source_sentence] if args.key?(:source_sentence)
167
+ @target_sentence = args[:target_sentence] if args.key?(:target_sentence)
168
+ @update_time = args[:update_time] if args.key?(:update_time)
169
+ end
170
+ end
171
+
172
+ # The request for sending an AdaptiveMt translation query.
173
+ class AdaptiveMtTranslateRequest
174
+ include Google::Apis::Core::Hashable
175
+
176
+ # Required. The content of the input in string format. For now only one sentence
177
+ # per request is supported.
178
+ # Corresponds to the JSON property `content`
179
+ # @return [Array<String>]
180
+ attr_accessor :content
181
+
182
+ # Required. The resource name for the dataset to use for adaptive MT. `projects/`
183
+ # project`/locations/`location-id`/adaptiveMtDatasets/`dataset``
184
+ # Corresponds to the JSON property `dataset`
185
+ # @return [String]
186
+ attr_accessor :dataset
187
+
188
+ def initialize(**args)
189
+ update!(**args)
190
+ end
191
+
192
+ # Update properties of this object
193
+ def update!(**args)
194
+ @content = args[:content] if args.key?(:content)
195
+ @dataset = args[:dataset] if args.key?(:dataset)
196
+ end
197
+ end
198
+
199
+ # An AdaptiveMtTranslate response.
200
+ class AdaptiveMtTranslateResponse
201
+ include Google::Apis::Core::Hashable
202
+
203
+ # Output only. The translation's language code.
204
+ # Corresponds to the JSON property `languageCode`
205
+ # @return [String]
206
+ attr_accessor :language_code
207
+
208
+ # Output only. The translation.
209
+ # Corresponds to the JSON property `translations`
210
+ # @return [Array<Google::Apis::TranslateV3::AdaptiveMtTranslation>]
211
+ attr_accessor :translations
212
+
213
+ def initialize(**args)
214
+ update!(**args)
215
+ end
216
+
217
+ # Update properties of this object
218
+ def update!(**args)
219
+ @language_code = args[:language_code] if args.key?(:language_code)
220
+ @translations = args[:translations] if args.key?(:translations)
221
+ end
222
+ end
223
+
224
+ # An AdaptiveMt translation.
225
+ class AdaptiveMtTranslation
226
+ include Google::Apis::Core::Hashable
227
+
228
+ # Output only. The translated text.
229
+ # Corresponds to the JSON property `translatedText`
230
+ # @return [String]
231
+ attr_accessor :translated_text
232
+
233
+ def initialize(**args)
234
+ update!(**args)
235
+ end
236
+
237
+ # Update properties of this object
238
+ def update!(**args)
239
+ @translated_text = args[:translated_text] if args.key?(:translated_text)
240
+ end
241
+ end
242
+
25
243
  # Input configuration for BatchTranslateDocument request.
26
244
  class BatchDocumentInputConfig
27
245
  include Google::Apis::Core::Hashable
@@ -626,6 +844,38 @@ module Google
626
844
  end
627
845
  end
628
846
 
847
+ # An inlined file.
848
+ class FileInputSource
849
+ include Google::Apis::Core::Hashable
850
+
851
+ # Required. The file's byte contents.
852
+ # Corresponds to the JSON property `content`
853
+ # NOTE: Values are automatically base64 encoded/decoded in the client library.
854
+ # @return [String]
855
+ attr_accessor :content
856
+
857
+ # Required. The file's display name.
858
+ # Corresponds to the JSON property `displayName`
859
+ # @return [String]
860
+ attr_accessor :display_name
861
+
862
+ # Required. The file's mime type.
863
+ # Corresponds to the JSON property `mimeType`
864
+ # @return [String]
865
+ attr_accessor :mime_type
866
+
867
+ def initialize(**args)
868
+ update!(**args)
869
+ end
870
+
871
+ # Update properties of this object
872
+ def update!(**args)
873
+ @content = args[:content] if args.key?(:content)
874
+ @display_name = args[:display_name] if args.key?(:display_name)
875
+ @mime_type = args[:mime_type] if args.key?(:mime_type)
876
+ end
877
+ end
878
+
629
879
  # The Google Cloud Storage location for the output content.
630
880
  class GcsDestination
631
881
  include Google::Apis::Core::Hashable
@@ -901,6 +1151,50 @@ module Google
901
1151
  end
902
1152
  end
903
1153
 
1154
+ # The request for importing an AdaptiveMt file along with its sentences.
1155
+ class ImportAdaptiveMtFileRequest
1156
+ include Google::Apis::Core::Hashable
1157
+
1158
+ # An inlined file.
1159
+ # Corresponds to the JSON property `fileInputSource`
1160
+ # @return [Google::Apis::TranslateV3::FileInputSource]
1161
+ attr_accessor :file_input_source
1162
+
1163
+ # The Google Cloud Storage location for the input content.
1164
+ # Corresponds to the JSON property `gcsInputSource`
1165
+ # @return [Google::Apis::TranslateV3::GcsInputSource]
1166
+ attr_accessor :gcs_input_source
1167
+
1168
+ def initialize(**args)
1169
+ update!(**args)
1170
+ end
1171
+
1172
+ # Update properties of this object
1173
+ def update!(**args)
1174
+ @file_input_source = args[:file_input_source] if args.key?(:file_input_source)
1175
+ @gcs_input_source = args[:gcs_input_source] if args.key?(:gcs_input_source)
1176
+ end
1177
+ end
1178
+
1179
+ # The response for importing an AdaptiveMtFile
1180
+ class ImportAdaptiveMtFileResponse
1181
+ include Google::Apis::Core::Hashable
1182
+
1183
+ # An AdaptiveMtFile.
1184
+ # Corresponds to the JSON property `adaptiveMtFile`
1185
+ # @return [Google::Apis::TranslateV3::AdaptiveMtFile]
1186
+ attr_accessor :adaptive_mt_file
1187
+
1188
+ def initialize(**args)
1189
+ update!(**args)
1190
+ end
1191
+
1192
+ # Update properties of this object
1193
+ def update!(**args)
1194
+ @adaptive_mt_file = args[:adaptive_mt_file] if args.key?(:adaptive_mt_file)
1195
+ end
1196
+ end
1197
+
904
1198
  # Request message for ImportData.
905
1199
  class ImportDataRequest
906
1200
  include Google::Apis::Core::Hashable
@@ -1021,6 +1315,85 @@ module Google
1021
1315
  end
1022
1316
  end
1023
1317
 
1318
+ # A list of AdaptiveMtDatasets.
1319
+ class ListAdaptiveMtDatasetsResponse
1320
+ include Google::Apis::Core::Hashable
1321
+
1322
+ # Output only. A list of Adaptive MT datasets.
1323
+ # Corresponds to the JSON property `adaptiveMtDatasets`
1324
+ # @return [Array<Google::Apis::TranslateV3::AdaptiveMtDataset>]
1325
+ attr_accessor :adaptive_mt_datasets
1326
+
1327
+ # Optional. A token to retrieve a page of results. Pass this value in the [
1328
+ # ListAdaptiveMtDatasetsRequest.page_token] field in the subsequent call to `
1329
+ # ListAdaptiveMtDatasets` method to retrieve the next page of results.
1330
+ # Corresponds to the JSON property `nextPageToken`
1331
+ # @return [String]
1332
+ attr_accessor :next_page_token
1333
+
1334
+ def initialize(**args)
1335
+ update!(**args)
1336
+ end
1337
+
1338
+ # Update properties of this object
1339
+ def update!(**args)
1340
+ @adaptive_mt_datasets = args[:adaptive_mt_datasets] if args.key?(:adaptive_mt_datasets)
1341
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1342
+ end
1343
+ end
1344
+
1345
+ # The response for listing all AdaptiveMt files under a given dataset.
1346
+ class ListAdaptiveMtFilesResponse
1347
+ include Google::Apis::Core::Hashable
1348
+
1349
+ # Output only. The Adaptive MT files.
1350
+ # Corresponds to the JSON property `adaptiveMtFiles`
1351
+ # @return [Array<Google::Apis::TranslateV3::AdaptiveMtFile>]
1352
+ attr_accessor :adaptive_mt_files
1353
+
1354
+ # Optional. A token to retrieve a page of results. Pass this value in the
1355
+ # ListAdaptiveMtFilesRequest.page_token field in the subsequent call to `
1356
+ # ListAdaptiveMtFiles` method to retrieve the next page of results.
1357
+ # Corresponds to the JSON property `nextPageToken`
1358
+ # @return [String]
1359
+ attr_accessor :next_page_token
1360
+
1361
+ def initialize(**args)
1362
+ update!(**args)
1363
+ end
1364
+
1365
+ # Update properties of this object
1366
+ def update!(**args)
1367
+ @adaptive_mt_files = args[:adaptive_mt_files] if args.key?(:adaptive_mt_files)
1368
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1369
+ end
1370
+ end
1371
+
1372
+ # List AdaptiveMt sentences response.
1373
+ class ListAdaptiveMtSentencesResponse
1374
+ include Google::Apis::Core::Hashable
1375
+
1376
+ # Output only. The list of AdaptiveMtSentences.
1377
+ # Corresponds to the JSON property `adaptiveMtSentences`
1378
+ # @return [Array<Google::Apis::TranslateV3::AdaptiveMtSentence>]
1379
+ attr_accessor :adaptive_mt_sentences
1380
+
1381
+ # Optional.
1382
+ # Corresponds to the JSON property `nextPageToken`
1383
+ # @return [String]
1384
+ attr_accessor :next_page_token
1385
+
1386
+ def initialize(**args)
1387
+ update!(**args)
1388
+ end
1389
+
1390
+ # Update properties of this object
1391
+ def update!(**args)
1392
+ @adaptive_mt_sentences = args[:adaptive_mt_sentences] if args.key?(:adaptive_mt_sentences)
1393
+ @next_page_token = args[:next_page_token] if args.key?(:next_page_token)
1394
+ end
1395
+ end
1396
+
1024
1397
  # Response message for ListDatasets.
1025
1398
  class ListDatasetsResponse
1026
1399
  include Google::Apis::Core::Hashable
@@ -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.32.0"
19
+ GEM_VERSION = "0.33.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 = "20230922"
25
+ REVISION = "20231201"
26
26
  end
27
27
  end
28
28
  end
@@ -22,6 +22,42 @@ module Google
22
22
  module Apis
23
23
  module TranslateV3
24
24
 
25
+ class AdaptiveMtDataset
26
+ class Representation < Google::Apis::Core::JsonRepresentation; end
27
+
28
+ include Google::Apis::Core::JsonObjectSupport
29
+ end
30
+
31
+ class AdaptiveMtFile
32
+ class Representation < Google::Apis::Core::JsonRepresentation; end
33
+
34
+ include Google::Apis::Core::JsonObjectSupport
35
+ end
36
+
37
+ class AdaptiveMtSentence
38
+ class Representation < Google::Apis::Core::JsonRepresentation; end
39
+
40
+ include Google::Apis::Core::JsonObjectSupport
41
+ end
42
+
43
+ class AdaptiveMtTranslateRequest
44
+ class Representation < Google::Apis::Core::JsonRepresentation; end
45
+
46
+ include Google::Apis::Core::JsonObjectSupport
47
+ end
48
+
49
+ class AdaptiveMtTranslateResponse
50
+ class Representation < Google::Apis::Core::JsonRepresentation; end
51
+
52
+ include Google::Apis::Core::JsonObjectSupport
53
+ end
54
+
55
+ class AdaptiveMtTranslation
56
+ class Representation < Google::Apis::Core::JsonRepresentation; end
57
+
58
+ include Google::Apis::Core::JsonObjectSupport
59
+ end
60
+
25
61
  class BatchDocumentInputConfig
26
62
  class Representation < Google::Apis::Core::JsonRepresentation; end
27
63
 
@@ -124,6 +160,12 @@ module Google
124
160
  include Google::Apis::Core::JsonObjectSupport
125
161
  end
126
162
 
163
+ class FileInputSource
164
+ class Representation < Google::Apis::Core::JsonRepresentation; end
165
+
166
+ include Google::Apis::Core::JsonObjectSupport
167
+ end
168
+
127
169
  class GcsDestination
128
170
  class Representation < Google::Apis::Core::JsonRepresentation; end
129
171
 
@@ -184,6 +226,18 @@ module Google
184
226
  include Google::Apis::Core::JsonObjectSupport
185
227
  end
186
228
 
229
+ class ImportAdaptiveMtFileRequest
230
+ class Representation < Google::Apis::Core::JsonRepresentation; end
231
+
232
+ include Google::Apis::Core::JsonObjectSupport
233
+ end
234
+
235
+ class ImportAdaptiveMtFileResponse
236
+ class Representation < Google::Apis::Core::JsonRepresentation; end
237
+
238
+ include Google::Apis::Core::JsonObjectSupport
239
+ end
240
+
187
241
  class ImportDataRequest
188
242
  class Representation < Google::Apis::Core::JsonRepresentation; end
189
243
 
@@ -214,6 +268,24 @@ module Google
214
268
  include Google::Apis::Core::JsonObjectSupport
215
269
  end
216
270
 
271
+ class ListAdaptiveMtDatasetsResponse
272
+ class Representation < Google::Apis::Core::JsonRepresentation; end
273
+
274
+ include Google::Apis::Core::JsonObjectSupport
275
+ end
276
+
277
+ class ListAdaptiveMtFilesResponse
278
+ class Representation < Google::Apis::Core::JsonRepresentation; end
279
+
280
+ include Google::Apis::Core::JsonObjectSupport
281
+ end
282
+
283
+ class ListAdaptiveMtSentencesResponse
284
+ class Representation < Google::Apis::Core::JsonRepresentation; end
285
+
286
+ include Google::Apis::Core::JsonObjectSupport
287
+ end
288
+
217
289
  class ListDatasetsResponse
218
290
  class Representation < Google::Apis::Core::JsonRepresentation; end
219
291
 
@@ -364,6 +436,65 @@ module Google
364
436
  include Google::Apis::Core::JsonObjectSupport
365
437
  end
366
438
 
439
+ class AdaptiveMtDataset
440
+ # @private
441
+ class Representation < Google::Apis::Core::JsonRepresentation
442
+ property :create_time, as: 'createTime'
443
+ property :display_name, as: 'displayName'
444
+ property :example_count, as: 'exampleCount'
445
+ property :name, as: 'name'
446
+ property :source_language_code, as: 'sourceLanguageCode'
447
+ property :target_language_code, as: 'targetLanguageCode'
448
+ property :update_time, as: 'updateTime'
449
+ end
450
+ end
451
+
452
+ class AdaptiveMtFile
453
+ # @private
454
+ class Representation < Google::Apis::Core::JsonRepresentation
455
+ property :create_time, as: 'createTime'
456
+ property :display_name, as: 'displayName'
457
+ property :entry_count, as: 'entryCount'
458
+ property :name, as: 'name'
459
+ property :update_time, as: 'updateTime'
460
+ end
461
+ end
462
+
463
+ class AdaptiveMtSentence
464
+ # @private
465
+ class Representation < Google::Apis::Core::JsonRepresentation
466
+ property :create_time, as: 'createTime'
467
+ property :name, as: 'name'
468
+ property :source_sentence, as: 'sourceSentence'
469
+ property :target_sentence, as: 'targetSentence'
470
+ property :update_time, as: 'updateTime'
471
+ end
472
+ end
473
+
474
+ class AdaptiveMtTranslateRequest
475
+ # @private
476
+ class Representation < Google::Apis::Core::JsonRepresentation
477
+ collection :content, as: 'content'
478
+ property :dataset, as: 'dataset'
479
+ end
480
+ end
481
+
482
+ class AdaptiveMtTranslateResponse
483
+ # @private
484
+ class Representation < Google::Apis::Core::JsonRepresentation
485
+ property :language_code, as: 'languageCode'
486
+ collection :translations, as: 'translations', class: Google::Apis::TranslateV3::AdaptiveMtTranslation, decorator: Google::Apis::TranslateV3::AdaptiveMtTranslation::Representation
487
+
488
+ end
489
+ end
490
+
491
+ class AdaptiveMtTranslation
492
+ # @private
493
+ class Representation < Google::Apis::Core::JsonRepresentation
494
+ property :translated_text, as: 'translatedText'
495
+ end
496
+ end
497
+
367
498
  class BatchDocumentInputConfig
368
499
  # @private
369
500
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -531,6 +662,15 @@ module Google
531
662
  end
532
663
  end
533
664
 
665
+ class FileInputSource
666
+ # @private
667
+ class Representation < Google::Apis::Core::JsonRepresentation
668
+ property :content, :base64 => true, as: 'content'
669
+ property :display_name, as: 'displayName'
670
+ property :mime_type, as: 'mimeType'
671
+ end
672
+ end
673
+
534
674
  class GcsDestination
535
675
  # @private
536
676
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -622,6 +762,24 @@ module Google
622
762
  end
623
763
  end
624
764
 
765
+ class ImportAdaptiveMtFileRequest
766
+ # @private
767
+ class Representation < Google::Apis::Core::JsonRepresentation
768
+ property :file_input_source, as: 'fileInputSource', class: Google::Apis::TranslateV3::FileInputSource, decorator: Google::Apis::TranslateV3::FileInputSource::Representation
769
+
770
+ property :gcs_input_source, as: 'gcsInputSource', class: Google::Apis::TranslateV3::GcsInputSource, decorator: Google::Apis::TranslateV3::GcsInputSource::Representation
771
+
772
+ end
773
+ end
774
+
775
+ class ImportAdaptiveMtFileResponse
776
+ # @private
777
+ class Representation < Google::Apis::Core::JsonRepresentation
778
+ property :adaptive_mt_file, as: 'adaptiveMtFile', class: Google::Apis::TranslateV3::AdaptiveMtFile, decorator: Google::Apis::TranslateV3::AdaptiveMtFile::Representation
779
+
780
+ end
781
+ end
782
+
625
783
  class ImportDataRequest
626
784
  # @private
627
785
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -663,6 +821,33 @@ module Google
663
821
  end
664
822
  end
665
823
 
824
+ class ListAdaptiveMtDatasetsResponse
825
+ # @private
826
+ class Representation < Google::Apis::Core::JsonRepresentation
827
+ collection :adaptive_mt_datasets, as: 'adaptiveMtDatasets', class: Google::Apis::TranslateV3::AdaptiveMtDataset, decorator: Google::Apis::TranslateV3::AdaptiveMtDataset::Representation
828
+
829
+ property :next_page_token, as: 'nextPageToken'
830
+ end
831
+ end
832
+
833
+ class ListAdaptiveMtFilesResponse
834
+ # @private
835
+ class Representation < Google::Apis::Core::JsonRepresentation
836
+ collection :adaptive_mt_files, as: 'adaptiveMtFiles', class: Google::Apis::TranslateV3::AdaptiveMtFile, decorator: Google::Apis::TranslateV3::AdaptiveMtFile::Representation
837
+
838
+ property :next_page_token, as: 'nextPageToken'
839
+ end
840
+ end
841
+
842
+ class ListAdaptiveMtSentencesResponse
843
+ # @private
844
+ class Representation < Google::Apis::Core::JsonRepresentation
845
+ collection :adaptive_mt_sentences, as: 'adaptiveMtSentences', class: Google::Apis::TranslateV3::AdaptiveMtSentence, decorator: Google::Apis::TranslateV3::AdaptiveMtSentence::Representation
846
+
847
+ property :next_page_token, as: 'nextPageToken'
848
+ end
849
+ end
850
+
666
851
  class ListDatasetsResponse
667
852
  # @private
668
853
  class Representation < Google::Apis::Core::JsonRepresentation
@@ -211,6 +211,40 @@ module Google
211
211
  execute_or_queue_command(command, &block)
212
212
  end
213
213
 
214
+ # Translate text using Adaptive MT.
215
+ # @param [String] parent
216
+ # Required. Location to make a regional call. Format: `projects/`project-number-
217
+ # or-id`/locations/`location-id``.
218
+ # @param [Google::Apis::TranslateV3::AdaptiveMtTranslateRequest] adaptive_mt_translate_request_object
219
+ # @param [String] fields
220
+ # Selector specifying which fields to include in a partial response.
221
+ # @param [String] quota_user
222
+ # Available to use for quota purposes for server-side applications. Can be any
223
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
224
+ # @param [Google::Apis::RequestOptions] options
225
+ # Request-specific options
226
+ #
227
+ # @yield [result, err] Result & error if block supplied
228
+ # @yieldparam result [Google::Apis::TranslateV3::AdaptiveMtTranslateResponse] parsed result object
229
+ # @yieldparam err [StandardError] error object if request failed
230
+ #
231
+ # @return [Google::Apis::TranslateV3::AdaptiveMtTranslateResponse]
232
+ #
233
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
234
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
235
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
236
+ def adaptive_location_mt_translate(parent, adaptive_mt_translate_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
237
+ command = make_simple_command(:post, 'v3/{+parent}:adaptiveMtTranslate', options)
238
+ command.request_representation = Google::Apis::TranslateV3::AdaptiveMtTranslateRequest::Representation
239
+ command.request_object = adaptive_mt_translate_request_object
240
+ command.response_representation = Google::Apis::TranslateV3::AdaptiveMtTranslateResponse::Representation
241
+ command.response_class = Google::Apis::TranslateV3::AdaptiveMtTranslateResponse
242
+ command.params['parent'] = parent unless parent.nil?
243
+ command.query['fields'] = fields unless fields.nil?
244
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
245
+ execute_or_queue_command(command, &block)
246
+ end
247
+
214
248
  # Translates a large volume of document in asynchronous batch mode. This
215
249
  # function provides real-time output as the inputs are being processed. If
216
250
  # caller cancels a request, the partial results (for an input file, it's all or
@@ -568,6 +602,370 @@ module Google
568
602
  execute_or_queue_command(command, &block)
569
603
  end
570
604
 
605
+ # Creates an Adaptive MT dataset.
606
+ # @param [String] parent
607
+ # Required. Name of the parent project. In form of `projects/`project-number-or-
608
+ # id`/locations/`location-id``
609
+ # @param [Google::Apis::TranslateV3::AdaptiveMtDataset] adaptive_mt_dataset_object
610
+ # @param [String] fields
611
+ # Selector specifying which fields to include in a partial response.
612
+ # @param [String] quota_user
613
+ # Available to use for quota purposes for server-side applications. Can be any
614
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
615
+ # @param [Google::Apis::RequestOptions] options
616
+ # Request-specific options
617
+ #
618
+ # @yield [result, err] Result & error if block supplied
619
+ # @yieldparam result [Google::Apis::TranslateV3::AdaptiveMtDataset] parsed result object
620
+ # @yieldparam err [StandardError] error object if request failed
621
+ #
622
+ # @return [Google::Apis::TranslateV3::AdaptiveMtDataset]
623
+ #
624
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
625
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
626
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
627
+ def create_project_location_adaptive_mt_dataset(parent, adaptive_mt_dataset_object = nil, fields: nil, quota_user: nil, options: nil, &block)
628
+ command = make_simple_command(:post, 'v3/{+parent}/adaptiveMtDatasets', options)
629
+ command.request_representation = Google::Apis::TranslateV3::AdaptiveMtDataset::Representation
630
+ command.request_object = adaptive_mt_dataset_object
631
+ command.response_representation = Google::Apis::TranslateV3::AdaptiveMtDataset::Representation
632
+ command.response_class = Google::Apis::TranslateV3::AdaptiveMtDataset
633
+ command.params['parent'] = parent unless parent.nil?
634
+ command.query['fields'] = fields unless fields.nil?
635
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
636
+ execute_or_queue_command(command, &block)
637
+ end
638
+
639
+ # Deletes an Adaptive MT dataset, including all its entries and associated
640
+ # metadata.
641
+ # @param [String] name
642
+ # Required. Name of the dataset. In the form of `projects/`project-number-or-id`/
643
+ # locations/`location-id`/adaptiveMtDatasets/`adaptive-mt-dataset-id``
644
+ # @param [String] fields
645
+ # Selector specifying which fields to include in a partial response.
646
+ # @param [String] quota_user
647
+ # Available to use for quota purposes for server-side applications. Can be any
648
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
649
+ # @param [Google::Apis::RequestOptions] options
650
+ # Request-specific options
651
+ #
652
+ # @yield [result, err] Result & error if block supplied
653
+ # @yieldparam result [Google::Apis::TranslateV3::Empty] parsed result object
654
+ # @yieldparam err [StandardError] error object if request failed
655
+ #
656
+ # @return [Google::Apis::TranslateV3::Empty]
657
+ #
658
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
659
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
660
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
661
+ def delete_project_location_adaptive_mt_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
662
+ command = make_simple_command(:delete, 'v3/{+name}', options)
663
+ command.response_representation = Google::Apis::TranslateV3::Empty::Representation
664
+ command.response_class = Google::Apis::TranslateV3::Empty
665
+ command.params['name'] = name unless name.nil?
666
+ command.query['fields'] = fields unless fields.nil?
667
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
668
+ execute_or_queue_command(command, &block)
669
+ end
670
+
671
+ # Gets the Adaptive MT dataset.
672
+ # @param [String] name
673
+ # Required. Name of the dataset. In the form of `projects/`project-number-or-id`/
674
+ # locations/`location-id`/adaptiveMtDatasets/`adaptive-mt-dataset-id``
675
+ # @param [String] fields
676
+ # Selector specifying which fields to include in a partial response.
677
+ # @param [String] quota_user
678
+ # Available to use for quota purposes for server-side applications. Can be any
679
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
680
+ # @param [Google::Apis::RequestOptions] options
681
+ # Request-specific options
682
+ #
683
+ # @yield [result, err] Result & error if block supplied
684
+ # @yieldparam result [Google::Apis::TranslateV3::AdaptiveMtDataset] parsed result object
685
+ # @yieldparam err [StandardError] error object if request failed
686
+ #
687
+ # @return [Google::Apis::TranslateV3::AdaptiveMtDataset]
688
+ #
689
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
690
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
691
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
692
+ def get_project_location_adaptive_mt_dataset(name, fields: nil, quota_user: nil, options: nil, &block)
693
+ command = make_simple_command(:get, 'v3/{+name}', options)
694
+ command.response_representation = Google::Apis::TranslateV3::AdaptiveMtDataset::Representation
695
+ command.response_class = Google::Apis::TranslateV3::AdaptiveMtDataset
696
+ command.params['name'] = name unless name.nil?
697
+ command.query['fields'] = fields unless fields.nil?
698
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
699
+ execute_or_queue_command(command, &block)
700
+ end
701
+
702
+ # Imports an AdaptiveMtFile and adds all of its sentences into the
703
+ # AdaptiveMtDataset.
704
+ # @param [String] parent
705
+ # Required. The resource name of the file, in form of `projects/`project-number-
706
+ # or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset``
707
+ # @param [Google::Apis::TranslateV3::ImportAdaptiveMtFileRequest] import_adaptive_mt_file_request_object
708
+ # @param [String] fields
709
+ # Selector specifying which fields to include in a partial response.
710
+ # @param [String] quota_user
711
+ # Available to use for quota purposes for server-side applications. Can be any
712
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
713
+ # @param [Google::Apis::RequestOptions] options
714
+ # Request-specific options
715
+ #
716
+ # @yield [result, err] Result & error if block supplied
717
+ # @yieldparam result [Google::Apis::TranslateV3::ImportAdaptiveMtFileResponse] parsed result object
718
+ # @yieldparam err [StandardError] error object if request failed
719
+ #
720
+ # @return [Google::Apis::TranslateV3::ImportAdaptiveMtFileResponse]
721
+ #
722
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
723
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
724
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
725
+ def import_adaptive_mt_dataset_adaptive_mt_file(parent, import_adaptive_mt_file_request_object = nil, fields: nil, quota_user: nil, options: nil, &block)
726
+ command = make_simple_command(:post, 'v3/{+parent}:importAdaptiveMtFile', options)
727
+ command.request_representation = Google::Apis::TranslateV3::ImportAdaptiveMtFileRequest::Representation
728
+ command.request_object = import_adaptive_mt_file_request_object
729
+ command.response_representation = Google::Apis::TranslateV3::ImportAdaptiveMtFileResponse::Representation
730
+ command.response_class = Google::Apis::TranslateV3::ImportAdaptiveMtFileResponse
731
+ command.params['parent'] = parent unless parent.nil?
732
+ command.query['fields'] = fields unless fields.nil?
733
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
734
+ execute_or_queue_command(command, &block)
735
+ end
736
+
737
+ # Lists all Adaptive MT datasets for which the caller has read permission.
738
+ # @param [String] parent
739
+ # Required. The resource name of the project from which to list the Adaptive MT
740
+ # datasets. `projects/`project-number-or-id`/locations/`location-id``
741
+ # @param [String] filter
742
+ # Optional. An expression for filtering the results of the request. Filter is
743
+ # not supported yet.
744
+ # @param [Fixnum] page_size
745
+ # Optional. Requested page size. The server may return fewer results than
746
+ # requested. If unspecified, the server picks an appropriate default.
747
+ # @param [String] page_token
748
+ # Optional. A token identifying a page of results the server should return.
749
+ # Typically, this is the value of ListAdaptiveMtDatasetsResponse.next_page_token
750
+ # returned from the previous call to `ListAdaptiveMtDatasets` method. The first
751
+ # page is returned if `page_token`is empty or missing.
752
+ # @param [String] fields
753
+ # Selector specifying which fields to include in a partial response.
754
+ # @param [String] quota_user
755
+ # Available to use for quota purposes for server-side applications. Can be any
756
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
757
+ # @param [Google::Apis::RequestOptions] options
758
+ # Request-specific options
759
+ #
760
+ # @yield [result, err] Result & error if block supplied
761
+ # @yieldparam result [Google::Apis::TranslateV3::ListAdaptiveMtDatasetsResponse] parsed result object
762
+ # @yieldparam err [StandardError] error object if request failed
763
+ #
764
+ # @return [Google::Apis::TranslateV3::ListAdaptiveMtDatasetsResponse]
765
+ #
766
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
767
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
768
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
769
+ def list_project_location_adaptive_mt_datasets(parent, filter: nil, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
770
+ command = make_simple_command(:get, 'v3/{+parent}/adaptiveMtDatasets', options)
771
+ command.response_representation = Google::Apis::TranslateV3::ListAdaptiveMtDatasetsResponse::Representation
772
+ command.response_class = Google::Apis::TranslateV3::ListAdaptiveMtDatasetsResponse
773
+ command.params['parent'] = parent unless parent.nil?
774
+ command.query['filter'] = filter unless filter.nil?
775
+ command.query['pageSize'] = page_size unless page_size.nil?
776
+ command.query['pageToken'] = page_token unless page_token.nil?
777
+ command.query['fields'] = fields unless fields.nil?
778
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
779
+ execute_or_queue_command(command, &block)
780
+ end
781
+
782
+ # Deletes an AdaptiveMtFile along with its sentences.
783
+ # @param [String] name
784
+ # Required. The resource name of the file to delete, in form of `projects/`
785
+ # project-number-or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset`/
786
+ # files/`file``
787
+ # @param [String] fields
788
+ # Selector specifying which fields to include in a partial response.
789
+ # @param [String] quota_user
790
+ # Available to use for quota purposes for server-side applications. Can be any
791
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
792
+ # @param [Google::Apis::RequestOptions] options
793
+ # Request-specific options
794
+ #
795
+ # @yield [result, err] Result & error if block supplied
796
+ # @yieldparam result [Google::Apis::TranslateV3::Empty] parsed result object
797
+ # @yieldparam err [StandardError] error object if request failed
798
+ #
799
+ # @return [Google::Apis::TranslateV3::Empty]
800
+ #
801
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
802
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
803
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
804
+ def delete_project_location_adaptive_mt_dataset_adaptive_mt_file(name, fields: nil, quota_user: nil, options: nil, &block)
805
+ command = make_simple_command(:delete, 'v3/{+name}', options)
806
+ command.response_representation = Google::Apis::TranslateV3::Empty::Representation
807
+ command.response_class = Google::Apis::TranslateV3::Empty
808
+ command.params['name'] = name unless name.nil?
809
+ command.query['fields'] = fields unless fields.nil?
810
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
811
+ execute_or_queue_command(command, &block)
812
+ end
813
+
814
+ # Gets and AdaptiveMtFile
815
+ # @param [String] name
816
+ # Required. The resource name of the file, in form of `projects/`project-number-
817
+ # or-id`/locations/`location_id`/adaptiveMtDatasets/`dataset`/files/`file``
818
+ # @param [String] fields
819
+ # Selector specifying which fields to include in a partial response.
820
+ # @param [String] quota_user
821
+ # Available to use for quota purposes for server-side applications. Can be any
822
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
823
+ # @param [Google::Apis::RequestOptions] options
824
+ # Request-specific options
825
+ #
826
+ # @yield [result, err] Result & error if block supplied
827
+ # @yieldparam result [Google::Apis::TranslateV3::AdaptiveMtFile] parsed result object
828
+ # @yieldparam err [StandardError] error object if request failed
829
+ #
830
+ # @return [Google::Apis::TranslateV3::AdaptiveMtFile]
831
+ #
832
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
833
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
834
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
835
+ def get_project_location_adaptive_mt_dataset_adaptive_mt_file(name, fields: nil, quota_user: nil, options: nil, &block)
836
+ command = make_simple_command(:get, 'v3/{+name}', options)
837
+ command.response_representation = Google::Apis::TranslateV3::AdaptiveMtFile::Representation
838
+ command.response_class = Google::Apis::TranslateV3::AdaptiveMtFile
839
+ command.params['name'] = name unless name.nil?
840
+ command.query['fields'] = fields unless fields.nil?
841
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
842
+ execute_or_queue_command(command, &block)
843
+ end
844
+
845
+ # Lists all AdaptiveMtFiles associated to an AdaptiveMtDataset.
846
+ # @param [String] parent
847
+ # Required. The resource name of the project from which to list the Adaptive MT
848
+ # files. `projects/`project`/locations/`location`/adaptiveMtDatasets/`dataset``
849
+ # @param [Fixnum] page_size
850
+ # Optional.
851
+ # @param [String] page_token
852
+ # Optional. A token identifying a page of results the server should return.
853
+ # Typically, this is the value of ListAdaptiveMtFilesResponse.next_page_token
854
+ # returned from the previous call to `ListAdaptiveMtFiles` method. The first
855
+ # page is returned if `page_token`is empty or missing.
856
+ # @param [String] fields
857
+ # Selector specifying which fields to include in a partial response.
858
+ # @param [String] quota_user
859
+ # Available to use for quota purposes for server-side applications. Can be any
860
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
861
+ # @param [Google::Apis::RequestOptions] options
862
+ # Request-specific options
863
+ #
864
+ # @yield [result, err] Result & error if block supplied
865
+ # @yieldparam result [Google::Apis::TranslateV3::ListAdaptiveMtFilesResponse] parsed result object
866
+ # @yieldparam err [StandardError] error object if request failed
867
+ #
868
+ # @return [Google::Apis::TranslateV3::ListAdaptiveMtFilesResponse]
869
+ #
870
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
871
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
872
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
873
+ def list_project_location_adaptive_mt_dataset_adaptive_mt_files(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
874
+ command = make_simple_command(:get, 'v3/{+parent}/adaptiveMtFiles', options)
875
+ command.response_representation = Google::Apis::TranslateV3::ListAdaptiveMtFilesResponse::Representation
876
+ command.response_class = Google::Apis::TranslateV3::ListAdaptiveMtFilesResponse
877
+ command.params['parent'] = parent unless parent.nil?
878
+ command.query['pageSize'] = page_size unless page_size.nil?
879
+ command.query['pageToken'] = page_token unless page_token.nil?
880
+ command.query['fields'] = fields unless fields.nil?
881
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
882
+ execute_or_queue_command(command, &block)
883
+ end
884
+
885
+ # Lists all AdaptiveMtSentences under a given file/dataset.
886
+ # @param [String] parent
887
+ # Required. The resource name of the project from which to list the Adaptive MT
888
+ # files. The following format lists all sentences under a file. `projects/`
889
+ # project`/locations/`location`/adaptiveMtDatasets/`dataset`/adaptiveMtFiles/`
890
+ # file`` The following format lists all sentences within a dataset. `projects/`
891
+ # project`/locations/`location`/adaptiveMtDatasets/`dataset``
892
+ # @param [Fixnum] page_size
893
+ # @param [String] page_token
894
+ # A token identifying a page of results the server should return. Typically,
895
+ # this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned
896
+ # from the previous call to `ListTranslationMemories` method. The first page is
897
+ # returned if `page_token` is empty or missing.
898
+ # @param [String] fields
899
+ # Selector specifying which fields to include in a partial response.
900
+ # @param [String] quota_user
901
+ # Available to use for quota purposes for server-side applications. Can be any
902
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
903
+ # @param [Google::Apis::RequestOptions] options
904
+ # Request-specific options
905
+ #
906
+ # @yield [result, err] Result & error if block supplied
907
+ # @yieldparam result [Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse] parsed result object
908
+ # @yieldparam err [StandardError] error object if request failed
909
+ #
910
+ # @return [Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse]
911
+ #
912
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
913
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
914
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
915
+ def list_project_location_adaptive_mt_dataset_adaptive_mt_file_adaptive_mt_sentences(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
916
+ command = make_simple_command(:get, 'v3/{+parent}/adaptiveMtSentences', options)
917
+ command.response_representation = Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse::Representation
918
+ command.response_class = Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse
919
+ command.params['parent'] = parent unless parent.nil?
920
+ command.query['pageSize'] = page_size unless page_size.nil?
921
+ command.query['pageToken'] = page_token unless page_token.nil?
922
+ command.query['fields'] = fields unless fields.nil?
923
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
924
+ execute_or_queue_command(command, &block)
925
+ end
926
+
927
+ # Lists all AdaptiveMtSentences under a given file/dataset.
928
+ # @param [String] parent
929
+ # Required. The resource name of the project from which to list the Adaptive MT
930
+ # files. The following format lists all sentences under a file. `projects/`
931
+ # project`/locations/`location`/adaptiveMtDatasets/`dataset`/adaptiveMtFiles/`
932
+ # file`` The following format lists all sentences within a dataset. `projects/`
933
+ # project`/locations/`location`/adaptiveMtDatasets/`dataset``
934
+ # @param [Fixnum] page_size
935
+ # @param [String] page_token
936
+ # A token identifying a page of results the server should return. Typically,
937
+ # this is the value of ListAdaptiveMtSentencesRequest.next_page_token returned
938
+ # from the previous call to `ListTranslationMemories` method. The first page is
939
+ # returned if `page_token` is empty or missing.
940
+ # @param [String] fields
941
+ # Selector specifying which fields to include in a partial response.
942
+ # @param [String] quota_user
943
+ # Available to use for quota purposes for server-side applications. Can be any
944
+ # arbitrary string assigned to a user, but should not exceed 40 characters.
945
+ # @param [Google::Apis::RequestOptions] options
946
+ # Request-specific options
947
+ #
948
+ # @yield [result, err] Result & error if block supplied
949
+ # @yieldparam result [Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse] parsed result object
950
+ # @yieldparam err [StandardError] error object if request failed
951
+ #
952
+ # @return [Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse]
953
+ #
954
+ # @raise [Google::Apis::ServerError] An error occurred on the server and the request can be retried
955
+ # @raise [Google::Apis::ClientError] The request is invalid and should not be retried without modification
956
+ # @raise [Google::Apis::AuthorizationError] Authorization is required
957
+ def list_project_location_adaptive_mt_dataset_adaptive_mt_sentences(parent, page_size: nil, page_token: nil, fields: nil, quota_user: nil, options: nil, &block)
958
+ command = make_simple_command(:get, 'v3/{+parent}/adaptiveMtSentences', options)
959
+ command.response_representation = Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse::Representation
960
+ command.response_class = Google::Apis::TranslateV3::ListAdaptiveMtSentencesResponse
961
+ command.params['parent'] = parent unless parent.nil?
962
+ command.query['pageSize'] = page_size unless page_size.nil?
963
+ command.query['pageToken'] = page_token unless page_token.nil?
964
+ command.query['fields'] = fields unless fields.nil?
965
+ command.query['quotaUser'] = quota_user unless quota_user.nil?
966
+ execute_or_queue_command(command, &block)
967
+ end
968
+
571
969
  # Creates a Dataset.
572
970
  # @param [String] parent
573
971
  # Required. The project name.
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.32.0
4
+ version: 0.33.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-10-01 00:00:00.000000000 Z
11
+ date: 2023-12-10 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.32.0
61
+ documentation_uri: https://googleapis.dev/ruby/google-apis-translate_v3/v0.33.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: []