google-cloud-translate-v3 1.3.0 → 1.4.1
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 +4 -4
- data/README.md +1 -1
- data/lib/google/cloud/translate/v3/translation_service/client.rb +13 -2
- data/lib/google/cloud/translate/v3/translation_service/operations.rb +9 -2
- data/lib/google/cloud/translate/v3/translation_service/rest/client.rb +12 -1
- data/lib/google/cloud/translate/v3/translation_service/rest/operations.rb +8 -1
- data/lib/google/cloud/translate/v3/version.rb +1 -1
- data/proto_docs/google/api/client.rb +14 -0
- data/proto_docs/google/cloud/translate/v3/adaptive_mt.rb +4 -0
- data/proto_docs/google/cloud/translate/v3/common.rb +4 -0
- data/proto_docs/google/cloud/translate/v3/translation_service.rb +8 -0
- data/proto_docs/google/longrunning/operations.rb +4 -0
- metadata +6 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8bc64855068aafa4ab78db22d11b0b7093248362cb5e0c54ba7f749ba3856f03
|
4
|
+
data.tar.gz: 22c5d5adf99305ae608babb3d60cd3cc891d842b8b46b8c7d1fcdba49d76b135
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 53637d27d2df2e4d94df6bd2e63e9dd9f860397b14c0cbb297095714870f9efaf4677664fede49bda817e933263bdfbdce1e5f72346df19de235d6745b868d44
|
7
|
+
data.tar.gz: 16c964c3f0763e5e8e359d2fe334e8f0437058329fab56f86890793b4d23d71f1bf32e040c2f65e75b05bfa7a372ae9235e179c5edf89cebafe21c8a679fa831
|
data/README.md
CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
|
|
86
86
|
|
87
87
|
## Supported Ruby Versions
|
88
88
|
|
89
|
-
This library is supported on Ruby
|
89
|
+
This library is supported on Ruby 3.0+.
|
90
90
|
|
91
91
|
Google provides official support for Ruby versions that are actively supported
|
92
92
|
by Ruby Core—that is, Ruby versions that are either in normal maintenance or
|
@@ -3186,9 +3186,13 @@ module Google
|
|
3186
3186
|
# `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}`
|
3187
3187
|
# @param file_input_source [::Google::Cloud::Translate::V3::FileInputSource, ::Hash]
|
3188
3188
|
# Inline file source.
|
3189
|
+
#
|
3190
|
+
# Note: The following fields are mutually exclusive: `file_input_source`, `gcs_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
3189
3191
|
# @param gcs_input_source [::Google::Cloud::Translate::V3::GcsInputSource, ::Hash]
|
3190
3192
|
# Google Cloud Storage file source.
|
3191
3193
|
#
|
3194
|
+
# Note: The following fields are mutually exclusive: `gcs_input_source`, `file_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
3195
|
+
#
|
3192
3196
|
# @yield [response, operation] Access the result along with the RPC operation
|
3193
3197
|
# @yieldparam response [::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse]
|
3194
3198
|
# @yieldparam operation [::GRPC::ActiveCall::Operation]
|
@@ -4176,6 +4180,13 @@ module Google
|
|
4176
4180
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
4177
4181
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
4178
4182
|
# * (`nil`) indicating no credentials
|
4183
|
+
#
|
4184
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
4185
|
+
# external source for authentication to Google Cloud, you must validate it before
|
4186
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
4187
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
4188
|
+
# For more information, refer to [Validate credential configurations from external
|
4189
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
4179
4190
|
# @return [::Object]
|
4180
4191
|
# @!attribute [rw] scope
|
4181
4192
|
# The OAuth scopes
|
@@ -4230,8 +4241,8 @@ module Google
|
|
4230
4241
|
|
4231
4242
|
config_attr :endpoint, nil, ::String, nil
|
4232
4243
|
config_attr :credentials, nil do |value|
|
4233
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
4234
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
4244
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
4245
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
4235
4246
|
allowed.any? { |klass| klass === value }
|
4236
4247
|
end
|
4237
4248
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -648,6 +648,13 @@ module Google
|
|
648
648
|
# * (`GRPC::Core::Channel`) a gRPC channel with included credentials
|
649
649
|
# * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
|
650
650
|
# * (`nil`) indicating no credentials
|
651
|
+
#
|
652
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
653
|
+
# external source for authentication to Google Cloud, you must validate it before
|
654
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
655
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
656
|
+
# For more information, refer to [Validate credential configurations from external
|
657
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
651
658
|
# @return [::Object]
|
652
659
|
# @!attribute [rw] scope
|
653
660
|
# The OAuth scopes
|
@@ -702,8 +709,8 @@ module Google
|
|
702
709
|
|
703
710
|
config_attr :endpoint, nil, ::String, nil
|
704
711
|
config_attr :credentials, nil do |value|
|
705
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
706
|
-
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC
|
712
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
713
|
+
allowed += [::GRPC::Core::Channel, ::GRPC::Core::ChannelCredentials] if defined? ::GRPC::Core::Channel
|
707
714
|
allowed.any? { |klass| klass === value }
|
708
715
|
end
|
709
716
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -2984,8 +2984,12 @@ module Google
|
|
2984
2984
|
# `projects/{project-number-or-id}/locations/{location_id}/adaptiveMtDatasets/{dataset}`
|
2985
2985
|
# @param file_input_source [::Google::Cloud::Translate::V3::FileInputSource, ::Hash]
|
2986
2986
|
# Inline file source.
|
2987
|
+
#
|
2988
|
+
# Note: The following fields are mutually exclusive: `file_input_source`, `gcs_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
2987
2989
|
# @param gcs_input_source [::Google::Cloud::Translate::V3::GcsInputSource, ::Hash]
|
2988
2990
|
# Google Cloud Storage file source.
|
2991
|
+
#
|
2992
|
+
# Note: The following fields are mutually exclusive: `gcs_input_source`, `file_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
2989
2993
|
# @yield [result, operation] Access the result along with the TransportOperation object
|
2990
2994
|
# @yieldparam result [::Google::Cloud::Translate::V3::ImportAdaptiveMtFileResponse]
|
2991
2995
|
# @yieldparam operation [::Gapic::Rest::TransportOperation]
|
@@ -3902,6 +3906,13 @@ module Google
|
|
3902
3906
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
3903
3907
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
3904
3908
|
# * (`nil`) indicating no credentials
|
3909
|
+
#
|
3910
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
3911
|
+
# external source for authentication to Google Cloud, you must validate it before
|
3912
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
3913
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
3914
|
+
# For more information, refer to [Validate credential configurations from external
|
3915
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
3905
3916
|
# @return [::Object]
|
3906
3917
|
# @!attribute [rw] scope
|
3907
3918
|
# The OAuth scopes
|
@@ -3949,7 +3960,7 @@ module Google
|
|
3949
3960
|
|
3950
3961
|
config_attr :endpoint, nil, ::String, nil
|
3951
3962
|
config_attr :credentials, nil do |value|
|
3952
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
3963
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
3953
3964
|
allowed.any? { |klass| klass === value }
|
3954
3965
|
end
|
3955
3966
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -601,6 +601,13 @@ module Google
|
|
601
601
|
# * (`Signet::OAuth2::Client`) A signet oauth2 client object
|
602
602
|
# (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
|
603
603
|
# * (`nil`) indicating no credentials
|
604
|
+
#
|
605
|
+
# Warning: If you accept a credential configuration (JSON file or Hash) from an
|
606
|
+
# external source for authentication to Google Cloud, you must validate it before
|
607
|
+
# providing it to a Google API client library. Providing an unvalidated credential
|
608
|
+
# configuration to Google APIs can compromise the security of your systems and data.
|
609
|
+
# For more information, refer to [Validate credential configurations from external
|
610
|
+
# sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
|
604
611
|
# @return [::Object]
|
605
612
|
# @!attribute [rw] scope
|
606
613
|
# The OAuth scopes
|
@@ -648,7 +655,7 @@ module Google
|
|
648
655
|
|
649
656
|
config_attr :endpoint, nil, ::String, nil
|
650
657
|
config_attr :credentials, nil do |value|
|
651
|
-
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Signet::OAuth2::Client, nil]
|
658
|
+
allowed = [::String, ::Hash, ::Proc, ::Symbol, ::Google::Auth::Credentials, ::Google::Auth::BaseClient, ::Signet::OAuth2::Client, nil]
|
652
659
|
allowed.any? { |klass| klass === value }
|
653
660
|
end
|
654
661
|
config_attr :scope, nil, ::String, ::Array, nil
|
@@ -221,6 +221,12 @@ module Google
|
|
221
221
|
# Pythonic which are included in `protobuf>=5.29.x`. This feature will be
|
222
222
|
# enabled by default 1 month after launching the feature in preview
|
223
223
|
# packages.
|
224
|
+
# @!attribute [rw] unversioned_package_disabled
|
225
|
+
# @return [::Boolean]
|
226
|
+
# Disables generation of an unversioned Python package for this client
|
227
|
+
# library. This means that the module names will need to be versioned in
|
228
|
+
# import statements. For example `import google.cloud.library_v2` instead
|
229
|
+
# of `import google.cloud.library`.
|
224
230
|
class ExperimentalFeatures
|
225
231
|
include ::Google::Protobuf::MessageExts
|
226
232
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -409,6 +415,14 @@ module Google
|
|
409
415
|
# @return [::Array<::String>]
|
410
416
|
# An allowlist of the fully qualified names of RPCs that should be included
|
411
417
|
# on public client surfaces.
|
418
|
+
# @!attribute [rw] generate_omitted_as_internal
|
419
|
+
# @return [::Boolean]
|
420
|
+
# Setting this to true indicates to the client generators that methods
|
421
|
+
# that would be excluded from the generation should instead be generated
|
422
|
+
# in a way that indicates these methods should not be consumed by
|
423
|
+
# end users. How this is expressed is up to individual language
|
424
|
+
# implementations to decide. Some examples may be: added annotations,
|
425
|
+
# obfuscated identifiers, or other language idiomatic patterns.
|
412
426
|
class SelectiveGapicGeneration
|
413
427
|
include ::Google::Protobuf::MessageExts
|
414
428
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -288,9 +288,13 @@ module Google
|
|
288
288
|
# @!attribute [rw] file_input_source
|
289
289
|
# @return [::Google::Cloud::Translate::V3::FileInputSource]
|
290
290
|
# Inline file source.
|
291
|
+
#
|
292
|
+
# Note: The following fields are mutually exclusive: `file_input_source`, `gcs_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
291
293
|
# @!attribute [rw] gcs_input_source
|
292
294
|
# @return [::Google::Cloud::Translate::V3::GcsInputSource]
|
293
295
|
# Google Cloud Storage file source.
|
296
|
+
#
|
297
|
+
# Note: The following fields are mutually exclusive: `gcs_input_source`, `file_input_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
294
298
|
class ImportAdaptiveMtFileRequest
|
295
299
|
include ::Google::Protobuf::MessageExts
|
296
300
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
@@ -65,9 +65,13 @@ module Google
|
|
65
65
|
# @!attribute [rw] terms_pair
|
66
66
|
# @return [::Google::Cloud::Translate::V3::GlossaryEntry::GlossaryTermsPair]
|
67
67
|
# Used for an unidirectional glossary.
|
68
|
+
#
|
69
|
+
# Note: The following fields are mutually exclusive: `terms_pair`, `terms_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
68
70
|
# @!attribute [rw] terms_set
|
69
71
|
# @return [::Google::Cloud::Translate::V3::GlossaryEntry::GlossaryTermsSet]
|
70
72
|
# Used for an equivalent term sets glossary.
|
73
|
+
#
|
74
|
+
# Note: The following fields are mutually exclusive: `terms_set`, `terms_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
71
75
|
# @!attribute [rw] description
|
72
76
|
# @return [::String]
|
73
77
|
# Describes the glossary entry.
|
@@ -512,10 +512,14 @@ module Google
|
|
512
512
|
# @!attribute [rw] content
|
513
513
|
# @return [::String]
|
514
514
|
# Document's content represented as a stream of bytes.
|
515
|
+
#
|
516
|
+
# Note: The following fields are mutually exclusive: `content`, `gcs_source`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
515
517
|
# @!attribute [rw] gcs_source
|
516
518
|
# @return [::Google::Cloud::Translate::V3::GcsSource]
|
517
519
|
# Google Cloud Storage location. This must be a single file.
|
518
520
|
# For example: gs://example_bucket/example_file.pdf
|
521
|
+
#
|
522
|
+
# Note: The following fields are mutually exclusive: `gcs_source`, `content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
519
523
|
# @!attribute [rw] mime_type
|
520
524
|
# @return [::String]
|
521
525
|
# Specifies the input document's mime_type.
|
@@ -950,9 +954,13 @@ module Google
|
|
950
954
|
# @!attribute [rw] language_pair
|
951
955
|
# @return [::Google::Cloud::Translate::V3::Glossary::LanguageCodePair]
|
952
956
|
# Used with unidirectional glossaries.
|
957
|
+
#
|
958
|
+
# Note: The following fields are mutually exclusive: `language_pair`, `language_codes_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
953
959
|
# @!attribute [rw] language_codes_set
|
954
960
|
# @return [::Google::Cloud::Translate::V3::Glossary::LanguageCodesSet]
|
955
961
|
# Used with equivalent term set glossaries.
|
962
|
+
#
|
963
|
+
# Note: The following fields are mutually exclusive: `language_codes_set`, `language_pair`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
956
964
|
# @!attribute [rw] input_config
|
957
965
|
# @return [::Google::Cloud::Translate::V3::GlossaryInputConfig]
|
958
966
|
# Required. Provides examples to build the glossary from.
|
@@ -40,6 +40,8 @@ module Google
|
|
40
40
|
# @!attribute [rw] error
|
41
41
|
# @return [::Google::Rpc::Status]
|
42
42
|
# The error result of the operation in case of failure or cancellation.
|
43
|
+
#
|
44
|
+
# Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
43
45
|
# @!attribute [rw] response
|
44
46
|
# @return [::Google::Protobuf::Any]
|
45
47
|
# The normal, successful response of the operation. If the original
|
@@ -50,6 +52,8 @@ module Google
|
|
50
52
|
# is the original method name. For example, if the original method name
|
51
53
|
# is `TakeSnapshot()`, the inferred response type is
|
52
54
|
# `TakeSnapshotResponse`.
|
55
|
+
#
|
56
|
+
# Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
|
53
57
|
class Operation
|
54
58
|
include ::Google::Protobuf::MessageExts
|
55
59
|
extend ::Google::Protobuf::MessageExts::ClassMethods
|
metadata
CHANGED
@@ -1,14 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: google-cloud-translate-v3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Google LLC
|
8
|
-
autorequire:
|
9
8
|
bindir: bin
|
10
9
|
cert_chain: []
|
11
|
-
date:
|
10
|
+
date: 1980-01-02 00:00:00.000000000 Z
|
12
11
|
dependencies:
|
13
12
|
- !ruby/object:Gem::Dependency
|
14
13
|
name: gapic-common
|
@@ -16,7 +15,7 @@ dependencies:
|
|
16
15
|
requirements:
|
17
16
|
- - ">="
|
18
17
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
18
|
+
version: 0.25.0
|
20
19
|
- - "<"
|
21
20
|
- !ruby/object:Gem::Version
|
22
21
|
version: 2.a
|
@@ -26,7 +25,7 @@ dependencies:
|
|
26
25
|
requirements:
|
27
26
|
- - ">="
|
28
27
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
28
|
+
version: 0.25.0
|
30
29
|
- - "<"
|
31
30
|
- !ruby/object:Gem::Version
|
32
31
|
version: 2.a
|
@@ -137,7 +136,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
|
|
137
136
|
licenses:
|
138
137
|
- Apache-2.0
|
139
138
|
metadata: {}
|
140
|
-
post_install_message:
|
141
139
|
rdoc_options: []
|
142
140
|
require_paths:
|
143
141
|
- lib
|
@@ -145,15 +143,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
145
143
|
requirements:
|
146
144
|
- - ">="
|
147
145
|
- !ruby/object:Gem::Version
|
148
|
-
version: '
|
146
|
+
version: '3.0'
|
149
147
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
150
148
|
requirements:
|
151
149
|
- - ">="
|
152
150
|
- !ruby/object:Gem::Version
|
153
151
|
version: '0'
|
154
152
|
requirements: []
|
155
|
-
rubygems_version: 3.
|
156
|
-
signing_key:
|
153
|
+
rubygems_version: 3.6.8
|
157
154
|
specification_version: 4
|
158
155
|
summary: Integrates text translation into your website or application.
|
159
156
|
test_files: []
|