google-cloud-media_translation-v1beta1 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 565a1fbb457e931a667578c02209b28d430e2f6b3379044b170a2b93dc31041a
4
- data.tar.gz: 072e033830edb980b4924dfeabf887fc5e116728d8da2744578e14d208f17aae
3
+ metadata.gz: 56583c9e663369515513dd29f3534e3a439d58d89ede1060d56457763fb7b0db
4
+ data.tar.gz: 46db844c9c88e15551b2dbdeee206b75b3090c369cc886e27617fbe0e278d667
5
5
  SHA512:
6
- metadata.gz: 4aa37b0ea0543e1b7108e25ee8f9b6b5f317efbd3dcb603a6fb1e7adcb3262d72910cc885d475dfc283a1c272aaa26884cfe180830710241273a086cc35d125f
7
- data.tar.gz: 836cc35682fcc5e4eb674a4426c5d1b37ef884a3e9696da6104f33b73b44f16016c67d4001dc40f8d9026904fd2f8df9896ea97a648e5a9ff6ed12047083dbf9
6
+ metadata.gz: 1978e12874fd9f39dcb1ebe65f3d075f67bc85b72d31075ad64d32e5d71c8f2ff15fa7b9248f882d742844aa08b9ff30044551139a51f757f04ec9ef0aa3bb19
7
+ data.tar.gz: e005affeefd6ff61558c0e3e37811e997fc21bdbc6117fb998f1a201ce36093f03a16a1633d74700c1dc15feef1c2a271a0ff67c83b7f8f690d9b5fe831ec41a
@@ -39,13 +39,12 @@ module Google
39
39
  # See {::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client::Configuration}
40
40
  # for a description of the configuration fields.
41
41
  #
42
- # ## Example
42
+ # @example
43
43
  #
44
- # To modify the configuration for all SpeechTranslationService clients:
45
- #
46
- # ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.configure do |config|
47
- # config.timeout = 10.0
48
- # end
44
+ # # Modify the configuration for all SpeechTranslationService clients
45
+ # ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.configure do |config|
46
+ # config.timeout = 10.0
47
+ # end
49
48
  #
50
49
  # @yield [config] Configure the Client client.
51
50
  # @yieldparam config [Client::Configuration]
@@ -99,19 +98,15 @@ module Google
99
98
  ##
100
99
  # Create a new SpeechTranslationService client object.
101
100
  #
102
- # ## Examples
103
- #
104
- # To create a new SpeechTranslationService client with the default
105
- # configuration:
101
+ # @example
106
102
  #
107
- # client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new
103
+ # # Create a client using the default configuration
104
+ # client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new
108
105
  #
109
- # To create a new SpeechTranslationService client with a custom
110
- # configuration:
111
- #
112
- # client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new do |config|
113
- # config.timeout = 10.0
114
- # end
106
+ # # Create a client using a custom configuration
107
+ # client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new do |config|
108
+ # config.timeout = 10.0
109
+ # end
115
110
  #
116
111
  # @yield [config] Configure the SpeechTranslationService client.
117
112
  # @yieldparam config [Client::Configuration]
@@ -131,10 +126,9 @@ module Google
131
126
 
132
127
  # Create credentials
133
128
  credentials = @config.credentials
134
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
129
+ # Use self-signed JWT if the endpoint is unchanged from default,
135
130
  # but only if the default endpoint does not have a region prefix.
136
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
137
- @config.endpoint == Client.configure.endpoint &&
131
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
138
132
  !@config.endpoint.split(".").first.include?("-")
139
133
  credentials ||= Credentials.default scope: @config.scope,
140
134
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -197,7 +191,9 @@ module Google
197
191
  options.apply_defaults timeout: @config.rpcs.streaming_translate_speech.timeout,
198
192
  metadata: metadata,
199
193
  retry_policy: @config.rpcs.streaming_translate_speech.retry_policy
200
- options.apply_defaults metadata: @config.metadata,
194
+
195
+ options.apply_defaults timeout: @config.timeout,
196
+ metadata: @config.metadata,
201
197
  retry_policy: @config.retry_policy
202
198
 
203
199
  @speech_translation_service_stub.call_rpc :streaming_translate_speech, request, options: options do |response, operation|
@@ -221,22 +217,21 @@ module Google
221
217
  # Configuration can be applied globally to all clients, or to a single client
222
218
  # on construction.
223
219
  #
224
- # # Examples
225
- #
226
- # To modify the global config, setting the timeout for streaming_translate_speech
227
- # to 20 seconds, and all remaining timeouts to 10 seconds:
228
- #
229
- # ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.configure do |config|
230
- # config.timeout = 10.0
231
- # config.rpcs.streaming_translate_speech.timeout = 20.0
232
- # end
233
- #
234
- # To apply the above configuration only to a new client:
235
- #
236
- # client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new do |config|
237
- # config.timeout = 10.0
238
- # config.rpcs.streaming_translate_speech.timeout = 20.0
239
- # end
220
+ # @example
221
+ #
222
+ # # Modify the global config, setting the timeout for
223
+ # # streaming_translate_speech to 20 seconds,
224
+ # # and all remaining timeouts to 10 seconds.
225
+ # ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.configure do |config|
226
+ # config.timeout = 10.0
227
+ # config.rpcs.streaming_translate_speech.timeout = 20.0
228
+ # end
229
+ #
230
+ # # Apply the above configuration only to a new client.
231
+ # client = ::Google::Cloud::MediaTranslation::V1beta1::SpeechTranslationService::Client.new do |config|
232
+ # config.timeout = 10.0
233
+ # config.rpcs.streaming_translate_speech.timeout = 20.0
234
+ # end
240
235
  #
241
236
  # @!attribute [rw] endpoint
242
237
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module MediaTranslation
23
23
  module V1beta1
24
- VERSION = "0.4.2"
24
+ VERSION = "0.4.3"
25
25
  end
26
26
  end
27
27
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-media_translation-v1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.2
4
+ version: 0.4.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-07-12 00:00:00.000000000 Z
11
+ date: 2021-08-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common
@@ -16,7 +16,7 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '0.5'
19
+ version: '0.7'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
22
  version: 2.a
@@ -26,7 +26,7 @@ dependencies:
26
26
  requirements:
27
27
  - - ">="
28
28
  - !ruby/object:Gem::Version
29
- version: '0.5'
29
+ version: '0.7'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a