google-apis-translate_v3 0.21.0 → 0.23.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: 731e80c6826f0fda43c38c76c1195dad4487df9fb5645462294a3263ab0ad83b
|
4
|
+
data.tar.gz: 2d5d2daf1b14ae1e33e6d89c2d92b999ef664b75b2f3b8911d565f5d2b2f0b26
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 619137681f025a8f30e7e54b3c89d705a6c7de75bcb788843b0e28cd034379c592e48b48e0bfd645564fa99876ee6a787f0b80d2d6383a4754dba2b7eadeba44
|
7
|
+
data.tar.gz: fc08b03b1337ac234cab27ad3b062b0acc7e43c2b81395be1ab44438ac4d55c8c6edc7802440e7b5212a54745ae3844ef8851407c19d4a1d67d1561f20f208b2
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,15 @@
|
|
1
1
|
# Release history for google-apis-translate_v3
|
2
2
|
|
3
|
+
### v0.23.0 (2023-02-15)
|
4
|
+
|
5
|
+
* Regenerated from discovery document revision 20230210
|
6
|
+
* Regenerated using generator version 0.12.0
|
7
|
+
|
8
|
+
### v0.22.0 (2023-01-15)
|
9
|
+
|
10
|
+
* Regenerated from discovery document revision 20230106
|
11
|
+
* Regenerated using generator version 0.11.1
|
12
|
+
|
3
13
|
### v0.21.0 (2022-10-27)
|
4
14
|
|
5
15
|
* Regenerated from discovery document revision 20221021
|
@@ -64,6 +64,14 @@ module Google
|
|
64
64
|
class BatchTranslateDocumentRequest
|
65
65
|
include Google::Apis::Core::Hashable
|
66
66
|
|
67
|
+
# Optional. This flag is to support user customized attribution. If not provided,
|
68
|
+
# the default is `Machine Translated by Google`. Customized attribution should
|
69
|
+
# follow rules in https://cloud.google.com/translate/attribution#
|
70
|
+
# attribution_and_logos
|
71
|
+
# Corresponds to the JSON property `customizedAttribution`
|
72
|
+
# @return [String]
|
73
|
+
attr_accessor :customized_attribution
|
74
|
+
|
67
75
|
# Optional.
|
68
76
|
# Corresponds to the JSON property `formatConversions`
|
69
77
|
# @return [Hash<String,String>]
|
@@ -117,6 +125,7 @@ module Google
|
|
117
125
|
|
118
126
|
# Update properties of this object
|
119
127
|
def update!(**args)
|
128
|
+
@customized_attribution = args[:customized_attribution] if args.key?(:customized_attribution)
|
120
129
|
@format_conversions = args[:format_conversions] if args.key?(:format_conversions)
|
121
130
|
@glossaries = args[:glossaries] if args.key?(:glossaries)
|
122
131
|
@input_configs = args[:input_configs] if args.key?(:input_configs)
|
@@ -210,6 +219,120 @@ module Google
|
|
210
219
|
end
|
211
220
|
end
|
212
221
|
|
222
|
+
# A dataset that hosts the examples (sentence pairs) used for translation models.
|
223
|
+
class Dataset
|
224
|
+
include Google::Apis::Core::Hashable
|
225
|
+
|
226
|
+
# Output only. Timestamp when this dataset was created.
|
227
|
+
# Corresponds to the JSON property `createTime`
|
228
|
+
# @return [String]
|
229
|
+
attr_accessor :create_time
|
230
|
+
|
231
|
+
# The name of the dataset to show in the interface. The name can be up to 32
|
232
|
+
# characters long and can consist only of ASCII Latin letters A-Z and a-z,
|
233
|
+
# underscores (_), and ASCII digits 0-9.
|
234
|
+
# Corresponds to the JSON property `displayName`
|
235
|
+
# @return [String]
|
236
|
+
attr_accessor :display_name
|
237
|
+
|
238
|
+
# Output only. The number of examples in the dataset.
|
239
|
+
# Corresponds to the JSON property `exampleCount`
|
240
|
+
# @return [Fixnum]
|
241
|
+
attr_accessor :example_count
|
242
|
+
|
243
|
+
# The resource name of the dataset, in form of `projects/`project-number-or-id`/
|
244
|
+
# locations/`location_id`/datasets/`dataset_id``
|
245
|
+
# Corresponds to the JSON property `name`
|
246
|
+
# @return [String]
|
247
|
+
attr_accessor :name
|
248
|
+
|
249
|
+
# The BCP-47 language code of the source language.
|
250
|
+
# Corresponds to the JSON property `sourceLanguageCode`
|
251
|
+
# @return [String]
|
252
|
+
attr_accessor :source_language_code
|
253
|
+
|
254
|
+
# The BCP-47 language code of the target language.
|
255
|
+
# Corresponds to the JSON property `targetLanguageCode`
|
256
|
+
# @return [String]
|
257
|
+
attr_accessor :target_language_code
|
258
|
+
|
259
|
+
# Output only. Number of test examples (sentence pairs).
|
260
|
+
# Corresponds to the JSON property `testExampleCount`
|
261
|
+
# @return [Fixnum]
|
262
|
+
attr_accessor :test_example_count
|
263
|
+
|
264
|
+
# Output only. Number of training examples (sentence pairs).
|
265
|
+
# Corresponds to the JSON property `trainExampleCount`
|
266
|
+
# @return [Fixnum]
|
267
|
+
attr_accessor :train_example_count
|
268
|
+
|
269
|
+
# Output only. Timestamp when this dataset was last updated.
|
270
|
+
# Corresponds to the JSON property `updateTime`
|
271
|
+
# @return [String]
|
272
|
+
attr_accessor :update_time
|
273
|
+
|
274
|
+
# Output only. Number of validation examples (sentence pairs).
|
275
|
+
# Corresponds to the JSON property `validateExampleCount`
|
276
|
+
# @return [Fixnum]
|
277
|
+
attr_accessor :validate_example_count
|
278
|
+
|
279
|
+
def initialize(**args)
|
280
|
+
update!(**args)
|
281
|
+
end
|
282
|
+
|
283
|
+
# Update properties of this object
|
284
|
+
def update!(**args)
|
285
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
286
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
287
|
+
@example_count = args[:example_count] if args.key?(:example_count)
|
288
|
+
@name = args[:name] if args.key?(:name)
|
289
|
+
@source_language_code = args[:source_language_code] if args.key?(:source_language_code)
|
290
|
+
@target_language_code = args[:target_language_code] if args.key?(:target_language_code)
|
291
|
+
@test_example_count = args[:test_example_count] if args.key?(:test_example_count)
|
292
|
+
@train_example_count = args[:train_example_count] if args.key?(:train_example_count)
|
293
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
294
|
+
@validate_example_count = args[:validate_example_count] if args.key?(:validate_example_count)
|
295
|
+
end
|
296
|
+
end
|
297
|
+
|
298
|
+
# Input configuration for datasets.
|
299
|
+
class DatasetInputConfig
|
300
|
+
include Google::Apis::Core::Hashable
|
301
|
+
|
302
|
+
# Files containing the sentence pairs to be imported to the dataset.
|
303
|
+
# Corresponds to the JSON property `inputFiles`
|
304
|
+
# @return [Array<Google::Apis::TranslateV3::InputFile>]
|
305
|
+
attr_accessor :input_files
|
306
|
+
|
307
|
+
def initialize(**args)
|
308
|
+
update!(**args)
|
309
|
+
end
|
310
|
+
|
311
|
+
# Update properties of this object
|
312
|
+
def update!(**args)
|
313
|
+
@input_files = args[:input_files] if args.key?(:input_files)
|
314
|
+
end
|
315
|
+
end
|
316
|
+
|
317
|
+
# Output configuration for datasets.
|
318
|
+
class DatasetOutputConfig
|
319
|
+
include Google::Apis::Core::Hashable
|
320
|
+
|
321
|
+
# The Google Cloud Storage location for the output content.
|
322
|
+
# Corresponds to the JSON property `gcsDestination`
|
323
|
+
# @return [Google::Apis::TranslateV3::GcsOutputDestination]
|
324
|
+
attr_accessor :gcs_destination
|
325
|
+
|
326
|
+
def initialize(**args)
|
327
|
+
update!(**args)
|
328
|
+
end
|
329
|
+
|
330
|
+
# Update properties of this object
|
331
|
+
def update!(**args)
|
332
|
+
@gcs_destination = args[:gcs_destination] if args.key?(:gcs_destination)
|
333
|
+
end
|
334
|
+
end
|
335
|
+
|
213
336
|
# The request message for language detection.
|
214
337
|
class DetectLanguageRequest
|
215
338
|
include Google::Apis::Core::Hashable
|
@@ -286,7 +409,7 @@ module Google
|
|
286
409
|
# @return [Float]
|
287
410
|
attr_accessor :confidence
|
288
411
|
|
289
|
-
# The BCP-47 language code of source content in the request, detected
|
412
|
+
# The BCP-47 language code of the source content in the request, detected
|
290
413
|
# automatically.
|
291
414
|
# Corresponds to the JSON property `languageCode`
|
292
415
|
# @return [String]
|
@@ -424,6 +547,64 @@ module Google
|
|
424
547
|
end
|
425
548
|
end
|
426
549
|
|
550
|
+
# A sentence pair.
|
551
|
+
class Example
|
552
|
+
include Google::Apis::Core::Hashable
|
553
|
+
|
554
|
+
# Output only. The resource name of the example, in form of `projects/`project-
|
555
|
+
# number-or-id`/locations/`location_id`/datasets/`dataset_id`/examples/`
|
556
|
+
# example_id`'
|
557
|
+
# Corresponds to the JSON property `name`
|
558
|
+
# @return [String]
|
559
|
+
attr_accessor :name
|
560
|
+
|
561
|
+
# Sentence in source language.
|
562
|
+
# Corresponds to the JSON property `sourceText`
|
563
|
+
# @return [String]
|
564
|
+
attr_accessor :source_text
|
565
|
+
|
566
|
+
# Sentence in target language.
|
567
|
+
# Corresponds to the JSON property `targetText`
|
568
|
+
# @return [String]
|
569
|
+
attr_accessor :target_text
|
570
|
+
|
571
|
+
# Output only. Usage of the sentence pair. Options are TRAIN|VALIDATION|TEST.
|
572
|
+
# Corresponds to the JSON property `usage`
|
573
|
+
# @return [String]
|
574
|
+
attr_accessor :usage
|
575
|
+
|
576
|
+
def initialize(**args)
|
577
|
+
update!(**args)
|
578
|
+
end
|
579
|
+
|
580
|
+
# Update properties of this object
|
581
|
+
def update!(**args)
|
582
|
+
@name = args[:name] if args.key?(:name)
|
583
|
+
@source_text = args[:source_text] if args.key?(:source_text)
|
584
|
+
@target_text = args[:target_text] if args.key?(:target_text)
|
585
|
+
@usage = args[:usage] if args.key?(:usage)
|
586
|
+
end
|
587
|
+
end
|
588
|
+
|
589
|
+
# Request message for ExportData.
|
590
|
+
class ExportDataRequest
|
591
|
+
include Google::Apis::Core::Hashable
|
592
|
+
|
593
|
+
# Output configuration for datasets.
|
594
|
+
# Corresponds to the JSON property `outputConfig`
|
595
|
+
# @return [Google::Apis::TranslateV3::DatasetOutputConfig]
|
596
|
+
attr_accessor :output_config
|
597
|
+
|
598
|
+
def initialize(**args)
|
599
|
+
update!(**args)
|
600
|
+
end
|
601
|
+
|
602
|
+
# Update properties of this object
|
603
|
+
def update!(**args)
|
604
|
+
@output_config = args[:output_config] if args.key?(:output_config)
|
605
|
+
end
|
606
|
+
end
|
607
|
+
|
427
608
|
# The Google Cloud Storage location for the output content.
|
428
609
|
class GcsDestination
|
429
610
|
include Google::Apis::Core::Hashable
|
@@ -447,6 +628,46 @@ module Google
|
|
447
628
|
end
|
448
629
|
end
|
449
630
|
|
631
|
+
# The Google Cloud Storage location for the input content.
|
632
|
+
class GcsInputSource
|
633
|
+
include Google::Apis::Core::Hashable
|
634
|
+
|
635
|
+
# Required. Source data URI. For example, `gs://my_bucket/my_object`.
|
636
|
+
# Corresponds to the JSON property `inputUri`
|
637
|
+
# @return [String]
|
638
|
+
attr_accessor :input_uri
|
639
|
+
|
640
|
+
def initialize(**args)
|
641
|
+
update!(**args)
|
642
|
+
end
|
643
|
+
|
644
|
+
# Update properties of this object
|
645
|
+
def update!(**args)
|
646
|
+
@input_uri = args[:input_uri] if args.key?(:input_uri)
|
647
|
+
end
|
648
|
+
end
|
649
|
+
|
650
|
+
# The Google Cloud Storage location for the output content.
|
651
|
+
class GcsOutputDestination
|
652
|
+
include Google::Apis::Core::Hashable
|
653
|
+
|
654
|
+
# Required. Google Cloud Storage URI to output directory. For example, `gs://
|
655
|
+
# bucket/directory`. The requesting user must have write permission to the
|
656
|
+
# bucket. The directory will be created if it doesn't exist.
|
657
|
+
# Corresponds to the JSON property `outputUriPrefix`
|
658
|
+
# @return [String]
|
659
|
+
attr_accessor :output_uri_prefix
|
660
|
+
|
661
|
+
def initialize(**args)
|
662
|
+
update!(**args)
|
663
|
+
end
|
664
|
+
|
665
|
+
# Update properties of this object
|
666
|
+
def update!(**args)
|
667
|
+
@output_uri_prefix = args[:output_uri_prefix] if args.key?(:output_uri_prefix)
|
668
|
+
end
|
669
|
+
end
|
670
|
+
|
450
671
|
# The Google Cloud Storage location for the input content.
|
451
672
|
class GcsSource
|
452
673
|
include Google::Apis::Core::Hashable
|
@@ -466,7 +687,7 @@ module Google
|
|
466
687
|
end
|
467
688
|
end
|
468
689
|
|
469
|
-
# Represents a glossary built from user
|
690
|
+
# Represents a glossary built from user-provided data.
|
470
691
|
class Glossary
|
471
692
|
include Google::Apis::Core::Hashable
|
472
693
|
|
@@ -659,6 +880,25 @@ module Google
|
|
659
880
|
end
|
660
881
|
end
|
661
882
|
|
883
|
+
# Request message for ImportData.
|
884
|
+
class ImportDataRequest
|
885
|
+
include Google::Apis::Core::Hashable
|
886
|
+
|
887
|
+
# Input configuration for datasets.
|
888
|
+
# Corresponds to the JSON property `inputConfig`
|
889
|
+
# @return [Google::Apis::TranslateV3::DatasetInputConfig]
|
890
|
+
attr_accessor :input_config
|
891
|
+
|
892
|
+
def initialize(**args)
|
893
|
+
update!(**args)
|
894
|
+
end
|
895
|
+
|
896
|
+
# Update properties of this object
|
897
|
+
def update!(**args)
|
898
|
+
@input_config = args[:input_config] if args.key?(:input_config)
|
899
|
+
end
|
900
|
+
end
|
901
|
+
|
662
902
|
# Input configuration for BatchTranslateText request.
|
663
903
|
class InputConfig
|
664
904
|
include Google::Apis::Core::Hashable
|
@@ -686,6 +926,32 @@ module Google
|
|
686
926
|
end
|
687
927
|
end
|
688
928
|
|
929
|
+
# An input file.
|
930
|
+
class InputFile
|
931
|
+
include Google::Apis::Core::Hashable
|
932
|
+
|
933
|
+
# The Google Cloud Storage location for the input content.
|
934
|
+
# Corresponds to the JSON property `gcsSource`
|
935
|
+
# @return [Google::Apis::TranslateV3::GcsInputSource]
|
936
|
+
attr_accessor :gcs_source
|
937
|
+
|
938
|
+
# Optional. Usage of the file contents. Options are TRAIN|VALIDATION|TEST, or
|
939
|
+
# UNASSIGNED (by default) for auto split.
|
940
|
+
# Corresponds to the JSON property `usage`
|
941
|
+
# @return [String]
|
942
|
+
attr_accessor :usage
|
943
|
+
|
944
|
+
def initialize(**args)
|
945
|
+
update!(**args)
|
946
|
+
end
|
947
|
+
|
948
|
+
# Update properties of this object
|
949
|
+
def update!(**args)
|
950
|
+
@gcs_source = args[:gcs_source] if args.key?(:gcs_source)
|
951
|
+
@usage = args[:usage] if args.key?(:usage)
|
952
|
+
end
|
953
|
+
end
|
954
|
+
|
689
955
|
# Used with unidirectional glossaries.
|
690
956
|
class LanguageCodePair
|
691
957
|
include Google::Apis::Core::Hashable
|
@@ -734,6 +1000,58 @@ module Google
|
|
734
1000
|
end
|
735
1001
|
end
|
736
1002
|
|
1003
|
+
# Response message for ListDatasets.
|
1004
|
+
class ListDatasetsResponse
|
1005
|
+
include Google::Apis::Core::Hashable
|
1006
|
+
|
1007
|
+
# The datasets read.
|
1008
|
+
# Corresponds to the JSON property `datasets`
|
1009
|
+
# @return [Array<Google::Apis::TranslateV3::Dataset>]
|
1010
|
+
attr_accessor :datasets
|
1011
|
+
|
1012
|
+
# A token to retrieve next page of results. Pass this token to the page_token
|
1013
|
+
# field in the ListDatasetsRequest to obtain the corresponding page.
|
1014
|
+
# Corresponds to the JSON property `nextPageToken`
|
1015
|
+
# @return [String]
|
1016
|
+
attr_accessor :next_page_token
|
1017
|
+
|
1018
|
+
def initialize(**args)
|
1019
|
+
update!(**args)
|
1020
|
+
end
|
1021
|
+
|
1022
|
+
# Update properties of this object
|
1023
|
+
def update!(**args)
|
1024
|
+
@datasets = args[:datasets] if args.key?(:datasets)
|
1025
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1026
|
+
end
|
1027
|
+
end
|
1028
|
+
|
1029
|
+
# Response message for ListExamples.
|
1030
|
+
class ListExamplesResponse
|
1031
|
+
include Google::Apis::Core::Hashable
|
1032
|
+
|
1033
|
+
# The sentence pairs.
|
1034
|
+
# Corresponds to the JSON property `examples`
|
1035
|
+
# @return [Array<Google::Apis::TranslateV3::Example>]
|
1036
|
+
attr_accessor :examples
|
1037
|
+
|
1038
|
+
# A token to retrieve next page of results. Pass this token to the page_token
|
1039
|
+
# field in the ListExamplesRequest to obtain the corresponding page.
|
1040
|
+
# Corresponds to the JSON property `nextPageToken`
|
1041
|
+
# @return [String]
|
1042
|
+
attr_accessor :next_page_token
|
1043
|
+
|
1044
|
+
def initialize(**args)
|
1045
|
+
update!(**args)
|
1046
|
+
end
|
1047
|
+
|
1048
|
+
# Update properties of this object
|
1049
|
+
def update!(**args)
|
1050
|
+
@examples = args[:examples] if args.key?(:examples)
|
1051
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1052
|
+
end
|
1053
|
+
end
|
1054
|
+
|
737
1055
|
# Response message for ListGlossaries.
|
738
1056
|
class ListGlossariesResponse
|
739
1057
|
include Google::Apis::Core::Hashable
|
@@ -812,6 +1130,32 @@ module Google
|
|
812
1130
|
end
|
813
1131
|
end
|
814
1132
|
|
1133
|
+
# Response message for ListModels.
|
1134
|
+
class ListModelsResponse
|
1135
|
+
include Google::Apis::Core::Hashable
|
1136
|
+
|
1137
|
+
# The models read.
|
1138
|
+
# Corresponds to the JSON property `models`
|
1139
|
+
# @return [Array<Google::Apis::TranslateV3::Model>]
|
1140
|
+
attr_accessor :models
|
1141
|
+
|
1142
|
+
# A token to retrieve next page of results. Pass this token to the page_token
|
1143
|
+
# field in the ListModelsRequest to obtain the corresponding page.
|
1144
|
+
# Corresponds to the JSON property `nextPageToken`
|
1145
|
+
# @return [String]
|
1146
|
+
attr_accessor :next_page_token
|
1147
|
+
|
1148
|
+
def initialize(**args)
|
1149
|
+
update!(**args)
|
1150
|
+
end
|
1151
|
+
|
1152
|
+
# Update properties of this object
|
1153
|
+
def update!(**args)
|
1154
|
+
@models = args[:models] if args.key?(:models)
|
1155
|
+
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
|
1156
|
+
end
|
1157
|
+
end
|
1158
|
+
|
815
1159
|
# The response message for Operations.ListOperations.
|
816
1160
|
class ListOperationsResponse
|
817
1161
|
include Google::Apis::Core::Hashable
|
@@ -884,6 +1228,91 @@ module Google
|
|
884
1228
|
end
|
885
1229
|
end
|
886
1230
|
|
1231
|
+
# A trained translation model.
|
1232
|
+
class Model
|
1233
|
+
include Google::Apis::Core::Hashable
|
1234
|
+
|
1235
|
+
# Output only. Timestamp when the model resource was created, which is also when
|
1236
|
+
# the training started.
|
1237
|
+
# Corresponds to the JSON property `createTime`
|
1238
|
+
# @return [String]
|
1239
|
+
attr_accessor :create_time
|
1240
|
+
|
1241
|
+
# The dataset from which the model is trained, in form of `projects/`project-
|
1242
|
+
# number-or-id`/locations/`location_id`/datasets/`dataset_id``
|
1243
|
+
# Corresponds to the JSON property `dataset`
|
1244
|
+
# @return [String]
|
1245
|
+
attr_accessor :dataset
|
1246
|
+
|
1247
|
+
# Output only. Timestamp when the model training finished and ready to be used
|
1248
|
+
# for translation.
|
1249
|
+
# Corresponds to the JSON property `deployTime`
|
1250
|
+
# @return [String]
|
1251
|
+
attr_accessor :deploy_time
|
1252
|
+
|
1253
|
+
# The name of the model to show in the interface. The name can be up to 32
|
1254
|
+
# characters long and can consist only of ASCII Latin letters A-Z and a-z,
|
1255
|
+
# underscores (_), and ASCII digits 0-9.
|
1256
|
+
# Corresponds to the JSON property `displayName`
|
1257
|
+
# @return [String]
|
1258
|
+
attr_accessor :display_name
|
1259
|
+
|
1260
|
+
# The resource name of the model, in form of `projects/`project-number-or-id`/
|
1261
|
+
# locations/`location_id`/models/`model_id``
|
1262
|
+
# Corresponds to the JSON property `name`
|
1263
|
+
# @return [String]
|
1264
|
+
attr_accessor :name
|
1265
|
+
|
1266
|
+
# Output only. The BCP-47 language code of the source language.
|
1267
|
+
# Corresponds to the JSON property `sourceLanguageCode`
|
1268
|
+
# @return [String]
|
1269
|
+
attr_accessor :source_language_code
|
1270
|
+
|
1271
|
+
# Output only. The BCP-47 language code of the target language.
|
1272
|
+
# Corresponds to the JSON property `targetLanguageCode`
|
1273
|
+
# @return [String]
|
1274
|
+
attr_accessor :target_language_code
|
1275
|
+
|
1276
|
+
# Output only. Number of examples (sentence pairs) used to test the model.
|
1277
|
+
# Corresponds to the JSON property `testExampleCount`
|
1278
|
+
# @return [Fixnum]
|
1279
|
+
attr_accessor :test_example_count
|
1280
|
+
|
1281
|
+
# Output only. Number of examples (sentence pairs) used to train the model.
|
1282
|
+
# Corresponds to the JSON property `trainExampleCount`
|
1283
|
+
# @return [Fixnum]
|
1284
|
+
attr_accessor :train_example_count
|
1285
|
+
|
1286
|
+
# Output only. Timestamp when this model was last updated.
|
1287
|
+
# Corresponds to the JSON property `updateTime`
|
1288
|
+
# @return [String]
|
1289
|
+
attr_accessor :update_time
|
1290
|
+
|
1291
|
+
# Output only. Number of examples (sentence pairs) used to validate the model.
|
1292
|
+
# Corresponds to the JSON property `validateExampleCount`
|
1293
|
+
# @return [Fixnum]
|
1294
|
+
attr_accessor :validate_example_count
|
1295
|
+
|
1296
|
+
def initialize(**args)
|
1297
|
+
update!(**args)
|
1298
|
+
end
|
1299
|
+
|
1300
|
+
# Update properties of this object
|
1301
|
+
def update!(**args)
|
1302
|
+
@create_time = args[:create_time] if args.key?(:create_time)
|
1303
|
+
@dataset = args[:dataset] if args.key?(:dataset)
|
1304
|
+
@deploy_time = args[:deploy_time] if args.key?(:deploy_time)
|
1305
|
+
@display_name = args[:display_name] if args.key?(:display_name)
|
1306
|
+
@name = args[:name] if args.key?(:name)
|
1307
|
+
@source_language_code = args[:source_language_code] if args.key?(:source_language_code)
|
1308
|
+
@target_language_code = args[:target_language_code] if args.key?(:target_language_code)
|
1309
|
+
@test_example_count = args[:test_example_count] if args.key?(:test_example_count)
|
1310
|
+
@train_example_count = args[:train_example_count] if args.key?(:train_example_count)
|
1311
|
+
@update_time = args[:update_time] if args.key?(:update_time)
|
1312
|
+
@validate_example_count = args[:validate_example_count] if args.key?(:validate_example_count)
|
1313
|
+
end
|
1314
|
+
end
|
1315
|
+
|
887
1316
|
# This resource represents a long-running operation that is the result of a
|
888
1317
|
# network API call.
|
889
1318
|
class Operation
|
@@ -1009,7 +1438,7 @@ module Google
|
|
1009
1438
|
class SupportedLanguage
|
1010
1439
|
include Google::Apis::Core::Hashable
|
1011
1440
|
|
1012
|
-
# Human
|
1441
|
+
# Human-readable name of the language localized in the display language
|
1013
1442
|
# specified in the request.
|
1014
1443
|
# Corresponds to the JSON property `displayName`
|
1015
1444
|
# @return [String]
|
@@ -1017,18 +1446,18 @@ module Google
|
|
1017
1446
|
|
1018
1447
|
# Supported language code, generally consisting of its ISO 639-1 identifier, for
|
1019
1448
|
# example, 'en', 'ja'. In certain cases, BCP-47 codes including language and
|
1020
|
-
# region identifiers are returned (for example, 'zh-TW' and 'zh-CN')
|
1449
|
+
# region identifiers are returned (for example, 'zh-TW' and 'zh-CN').
|
1021
1450
|
# Corresponds to the JSON property `languageCode`
|
1022
1451
|
# @return [String]
|
1023
1452
|
attr_accessor :language_code
|
1024
1453
|
|
1025
|
-
# Can be used as source language.
|
1454
|
+
# Can be used as a source language.
|
1026
1455
|
# Corresponds to the JSON property `supportSource`
|
1027
1456
|
# @return [Boolean]
|
1028
1457
|
attr_accessor :support_source
|
1029
1458
|
alias_method :support_source?, :support_source
|
1030
1459
|
|
1031
|
-
# Can be used as target language.
|
1460
|
+
# Can be used as a target language.
|
1032
1461
|
# Corresponds to the JSON property `supportTarget`
|
1033
1462
|
# @return [Boolean]
|
1034
1463
|
attr_accessor :support_target
|
@@ -1089,8 +1518,16 @@ module Google
|
|
1089
1518
|
# @return [Google::Apis::TranslateV3::DocumentOutputConfig]
|
1090
1519
|
attr_accessor :document_output_config
|
1091
1520
|
|
1092
|
-
#
|
1093
|
-
#
|
1521
|
+
# Optional. If true, use the text removal server to remove the shadow text on
|
1522
|
+
# background image for native pdf translation. Shadow removal feature can only
|
1523
|
+
# be enabled when is_translate_native_pdf_only: false && pdf_native_only: false
|
1524
|
+
# Corresponds to the JSON property `enableShadowRemovalNativePdf`
|
1525
|
+
# @return [Boolean]
|
1526
|
+
attr_accessor :enable_shadow_removal_native_pdf
|
1527
|
+
alias_method :enable_shadow_removal_native_pdf?, :enable_shadow_removal_native_pdf
|
1528
|
+
|
1529
|
+
# Configures which glossary is used for a specific target language and defines
|
1530
|
+
# options for applying that glossary.
|
1094
1531
|
# Corresponds to the JSON property `glossaryConfig`
|
1095
1532
|
# @return [Google::Apis::TranslateV3::TranslateTextGlossaryConfig]
|
1096
1533
|
attr_accessor :glossary_config
|
@@ -1147,6 +1584,7 @@ module Google
|
|
1147
1584
|
@customized_attribution = args[:customized_attribution] if args.key?(:customized_attribution)
|
1148
1585
|
@document_input_config = args[:document_input_config] if args.key?(:document_input_config)
|
1149
1586
|
@document_output_config = args[:document_output_config] if args.key?(:document_output_config)
|
1587
|
+
@enable_shadow_removal_native_pdf = args[:enable_shadow_removal_native_pdf] if args.key?(:enable_shadow_removal_native_pdf)
|
1150
1588
|
@glossary_config = args[:glossary_config] if args.key?(:glossary_config)
|
1151
1589
|
@is_translate_native_pdf_only = args[:is_translate_native_pdf_only] if args.key?(:is_translate_native_pdf_only)
|
1152
1590
|
@labels = args[:labels] if args.key?(:labels)
|
@@ -1165,8 +1603,8 @@ module Google
|
|
1165
1603
|
# @return [Google::Apis::TranslateV3::DocumentTranslation]
|
1166
1604
|
attr_accessor :document_translation
|
1167
1605
|
|
1168
|
-
# Configures which glossary
|
1169
|
-
#
|
1606
|
+
# Configures which glossary is used for a specific target language and defines
|
1607
|
+
# options for applying that glossary.
|
1170
1608
|
# Corresponds to the JSON property `glossaryConfig`
|
1171
1609
|
# @return [Google::Apis::TranslateV3::TranslateTextGlossaryConfig]
|
1172
1610
|
attr_accessor :glossary_config
|
@@ -1198,19 +1636,19 @@ module Google
|
|
1198
1636
|
end
|
1199
1637
|
end
|
1200
1638
|
|
1201
|
-
# Configures which glossary
|
1202
|
-
#
|
1639
|
+
# Configures which glossary is used for a specific target language and defines
|
1640
|
+
# options for applying that glossary.
|
1203
1641
|
class TranslateTextGlossaryConfig
|
1204
1642
|
include Google::Apis::Core::Hashable
|
1205
1643
|
|
1206
1644
|
# Required. The `glossary` to be applied for this translation. The format
|
1207
|
-
# depends on glossary: - User
|
1645
|
+
# depends on the glossary: - User-provided custom glossary: `projects/`project-
|
1208
1646
|
# number-or-id`/locations/`location-id`/glossaries/`glossary-id``
|
1209
1647
|
# Corresponds to the JSON property `glossary`
|
1210
1648
|
# @return [String]
|
1211
1649
|
attr_accessor :glossary
|
1212
1650
|
|
1213
|
-
# Optional. Indicates match is case
|
1651
|
+
# Optional. Indicates match is case insensitive. The default value is `false` if
|
1214
1652
|
# missing.
|
1215
1653
|
# Corresponds to the JSON property `ignoreCase`
|
1216
1654
|
# @return [Boolean]
|
@@ -1233,14 +1671,14 @@ module Google
|
|
1233
1671
|
include Google::Apis::Core::Hashable
|
1234
1672
|
|
1235
1673
|
# Required. The content of the input in string format. We recommend the total
|
1236
|
-
# content be less than
|
1237
|
-
# BatchTranslateText for larger text.
|
1674
|
+
# content be less than 30,000 codepoints. The max length of this field is 1024.
|
1675
|
+
# Use BatchTranslateText for larger text.
|
1238
1676
|
# Corresponds to the JSON property `contents`
|
1239
1677
|
# @return [Array<String>]
|
1240
1678
|
attr_accessor :contents
|
1241
1679
|
|
1242
|
-
# Configures which glossary
|
1243
|
-
#
|
1680
|
+
# Configures which glossary is used for a specific target language and defines
|
1681
|
+
# options for applying that glossary.
|
1244
1682
|
# Corresponds to the JSON property `glossaryConfig`
|
1245
1683
|
# @return [Google::Apis::TranslateV3::TranslateTextGlossaryConfig]
|
1246
1684
|
attr_accessor :glossary_config
|
@@ -1343,8 +1781,8 @@ module Google
|
|
1343
1781
|
# @return [String]
|
1344
1782
|
attr_accessor :detected_language_code
|
1345
1783
|
|
1346
|
-
# Configures which glossary
|
1347
|
-
#
|
1784
|
+
# Configures which glossary is used for a specific target language and defines
|
1785
|
+
# options for applying that glossary.
|
1348
1786
|
# Corresponds to the JSON property `glossaryConfig`
|
1349
1787
|
# @return [Google::Apis::TranslateV3::TranslateTextGlossaryConfig]
|
1350
1788
|
attr_accessor :glossary_config
|
@@ -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.23.0"
|
20
20
|
|
21
21
|
# Version of the code generator used to generate this client
|
22
|
-
GENERATOR_VERSION = "0.
|
22
|
+
GENERATOR_VERSION = "0.12.0"
|
23
23
|
|
24
24
|
# Revision of the discovery document this client was generated from
|
25
|
-
REVISION = "
|
25
|
+
REVISION = "20230210"
|
26
26
|
end
|
27
27
|
end
|
28
28
|
end
|