google-cloud-speech-v1p1beta1 0.10.0 → 0.10.1

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: 0b0c8424ec1d4fc884eb071411ecfa273cbdb01fe0637d8f215e1bf2bf4459af
4
- data.tar.gz: b279dd715988dc71c00443def08ddfd4d3e9c430754448e916c9703751ad3531
3
+ metadata.gz: 20f63757c8cfc052d0d74875c69ce42acf77cec45a59c35f332dad3625fa5c24
4
+ data.tar.gz: 79923a57f03488321d859a7d0b132b51c1d38948aade2ab4ad6f94e6c262b772
5
5
  SHA512:
6
- metadata.gz: bff979172f1a527f0b9b9420210fefbf49a473642e175e928f45fc18be43718c323e5e447cb51a596873b7a852306c501cdda68f5dd2a72c54aad1b8178dc794
7
- data.tar.gz: 1b2acf8a9a19aa9a166b94674df26d624939a6a67e2967b72a6898d7e58a5d773036e60ad892e294c7904dee9b6ebf7db65ebc2aa8557d0a90e721b51091197b
6
+ metadata.gz: bde0d60815c6a4cf07e3b42796fddc514fde3dace61b49ba4c48a0ee34d7fe79d748eab0e80c265e07aa7614a887c2e0d5519cdae186f71a8fe0f4dcdf8db857
7
+ data.tar.gz: 23e2cb90679b48e9cdacd61508ff9cee7089bec5760c90e8c9c503175ff591b385340236d7d2e74b61f113f2401e9feb91911e459940e7ebe3d19993d85a6430
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Speech::V1p1beta1::Adaptation::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all Adaptation clients:
47
- #
48
- # ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Adaptation clients
47
+ # ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -94,19 +93,15 @@ module Google
94
93
  ##
95
94
  # Create a new Adaptation client object.
96
95
  #
97
- # ## Examples
98
- #
99
- # To create a new Adaptation client with the default
100
- # configuration:
101
- #
102
- # client = ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.new
96
+ # @example
103
97
  #
104
- # To create a new Adaptation client with a custom
105
- # configuration:
98
+ # # Create a client using the default configuration
99
+ # client = ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.new
106
100
  #
107
- # client = ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.new do |config|
108
- # config.timeout = 10.0
109
- # end
101
+ # # Create a client using a custom configuration
102
+ # client = ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.new do |config|
103
+ # config.timeout = 10.0
104
+ # end
110
105
  #
111
106
  # @yield [config] Configure the Adaptation client.
112
107
  # @yieldparam config [Client::Configuration]
@@ -126,10 +121,9 @@ module Google
126
121
 
127
122
  # Create credentials
128
123
  credentials = @config.credentials
129
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
124
+ # Use self-signed JWT if the endpoint is unchanged from default,
130
125
  # but only if the default endpoint does not have a region prefix.
131
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
132
- @config.endpoint == Client.configure.endpoint &&
126
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
133
127
  !@config.endpoint.split(".").first.include?("-")
134
128
  credentials ||= Credentials.default scope: @config.scope,
135
129
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -217,7 +211,9 @@ module Google
217
211
  options.apply_defaults timeout: @config.rpcs.create_phrase_set.timeout,
218
212
  metadata: metadata,
219
213
  retry_policy: @config.rpcs.create_phrase_set.retry_policy
220
- options.apply_defaults metadata: @config.metadata,
214
+
215
+ options.apply_defaults timeout: @config.timeout,
216
+ metadata: @config.metadata,
221
217
  retry_policy: @config.retry_policy
222
218
 
223
219
  @adaptation_stub.call_rpc :create_phrase_set, request, options: options do |response, operation|
@@ -285,7 +281,9 @@ module Google
285
281
  options.apply_defaults timeout: @config.rpcs.get_phrase_set.timeout,
286
282
  metadata: metadata,
287
283
  retry_policy: @config.rpcs.get_phrase_set.retry_policy
288
- options.apply_defaults metadata: @config.metadata,
284
+
285
+ options.apply_defaults timeout: @config.timeout,
286
+ metadata: @config.metadata,
289
287
  retry_policy: @config.retry_policy
290
288
 
291
289
  @adaptation_stub.call_rpc :get_phrase_set, request, options: options do |response, operation|
@@ -364,7 +362,9 @@ module Google
364
362
  options.apply_defaults timeout: @config.rpcs.list_phrase_set.timeout,
365
363
  metadata: metadata,
366
364
  retry_policy: @config.rpcs.list_phrase_set.retry_policy
367
- options.apply_defaults metadata: @config.metadata,
365
+
366
+ options.apply_defaults timeout: @config.timeout,
367
+ metadata: @config.metadata,
368
368
  retry_policy: @config.retry_policy
369
369
 
370
370
  @adaptation_stub.call_rpc :list_phrase_set, request, options: options do |response, operation|
@@ -437,7 +437,9 @@ module Google
437
437
  options.apply_defaults timeout: @config.rpcs.update_phrase_set.timeout,
438
438
  metadata: metadata,
439
439
  retry_policy: @config.rpcs.update_phrase_set.retry_policy
440
- options.apply_defaults metadata: @config.metadata,
440
+
441
+ options.apply_defaults timeout: @config.timeout,
442
+ metadata: @config.metadata,
441
443
  retry_policy: @config.retry_policy
442
444
 
443
445
  @adaptation_stub.call_rpc :update_phrase_set, request, options: options do |response, operation|
@@ -505,7 +507,9 @@ module Google
505
507
  options.apply_defaults timeout: @config.rpcs.delete_phrase_set.timeout,
506
508
  metadata: metadata,
507
509
  retry_policy: @config.rpcs.delete_phrase_set.retry_policy
508
- options.apply_defaults metadata: @config.metadata,
510
+
511
+ options.apply_defaults timeout: @config.timeout,
512
+ metadata: @config.metadata,
509
513
  retry_policy: @config.retry_policy
510
514
 
511
515
  @adaptation_stub.call_rpc :delete_phrase_set, request, options: options do |response, operation|
@@ -581,7 +585,9 @@ module Google
581
585
  options.apply_defaults timeout: @config.rpcs.create_custom_class.timeout,
582
586
  metadata: metadata,
583
587
  retry_policy: @config.rpcs.create_custom_class.retry_policy
584
- options.apply_defaults metadata: @config.metadata,
588
+
589
+ options.apply_defaults timeout: @config.timeout,
590
+ metadata: @config.metadata,
585
591
  retry_policy: @config.retry_policy
586
592
 
587
593
  @adaptation_stub.call_rpc :create_custom_class, request, options: options do |response, operation|
@@ -649,7 +655,9 @@ module Google
649
655
  options.apply_defaults timeout: @config.rpcs.get_custom_class.timeout,
650
656
  metadata: metadata,
651
657
  retry_policy: @config.rpcs.get_custom_class.retry_policy
652
- options.apply_defaults metadata: @config.metadata,
658
+
659
+ options.apply_defaults timeout: @config.timeout,
660
+ metadata: @config.metadata,
653
661
  retry_policy: @config.retry_policy
654
662
 
655
663
  @adaptation_stub.call_rpc :get_custom_class, request, options: options do |response, operation|
@@ -728,7 +736,9 @@ module Google
728
736
  options.apply_defaults timeout: @config.rpcs.list_custom_classes.timeout,
729
737
  metadata: metadata,
730
738
  retry_policy: @config.rpcs.list_custom_classes.retry_policy
731
- options.apply_defaults metadata: @config.metadata,
739
+
740
+ options.apply_defaults timeout: @config.timeout,
741
+ metadata: @config.metadata,
732
742
  retry_policy: @config.retry_policy
733
743
 
734
744
  @adaptation_stub.call_rpc :list_custom_classes, request, options: options do |response, operation|
@@ -801,7 +811,9 @@ module Google
801
811
  options.apply_defaults timeout: @config.rpcs.update_custom_class.timeout,
802
812
  metadata: metadata,
803
813
  retry_policy: @config.rpcs.update_custom_class.retry_policy
804
- options.apply_defaults metadata: @config.metadata,
814
+
815
+ options.apply_defaults timeout: @config.timeout,
816
+ metadata: @config.metadata,
805
817
  retry_policy: @config.retry_policy
806
818
 
807
819
  @adaptation_stub.call_rpc :update_custom_class, request, options: options do |response, operation|
@@ -869,7 +881,9 @@ module Google
869
881
  options.apply_defaults timeout: @config.rpcs.delete_custom_class.timeout,
870
882
  metadata: metadata,
871
883
  retry_policy: @config.rpcs.delete_custom_class.retry_policy
872
- options.apply_defaults metadata: @config.metadata,
884
+
885
+ options.apply_defaults timeout: @config.timeout,
886
+ metadata: @config.metadata,
873
887
  retry_policy: @config.retry_policy
874
888
 
875
889
  @adaptation_stub.call_rpc :delete_custom_class, request, options: options do |response, operation|
@@ -893,22 +907,21 @@ module Google
893
907
  # Configuration can be applied globally to all clients, or to a single client
894
908
  # on construction.
895
909
  #
896
- # # Examples
897
- #
898
- # To modify the global config, setting the timeout for create_phrase_set
899
- # to 20 seconds, and all remaining timeouts to 10 seconds:
900
- #
901
- # ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.configure do |config|
902
- # config.timeout = 10.0
903
- # config.rpcs.create_phrase_set.timeout = 20.0
904
- # end
905
- #
906
- # To apply the above configuration only to a new client:
907
- #
908
- # client = ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.new do |config|
909
- # config.timeout = 10.0
910
- # config.rpcs.create_phrase_set.timeout = 20.0
911
- # end
910
+ # @example
911
+ #
912
+ # # Modify the global config, setting the timeout for
913
+ # # create_phrase_set to 20 seconds,
914
+ # # and all remaining timeouts to 10 seconds.
915
+ # ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.configure do |config|
916
+ # config.timeout = 10.0
917
+ # config.rpcs.create_phrase_set.timeout = 20.0
918
+ # end
919
+ #
920
+ # # Apply the above configuration only to a new client.
921
+ # client = ::Google::Cloud::Speech::V1p1beta1::Adaptation::Client.new do |config|
922
+ # config.timeout = 10.0
923
+ # config.rpcs.create_phrase_set.timeout = 20.0
924
+ # end
912
925
  #
913
926
  # @!attribute [rw] endpoint
914
927
  # The hostname or hostname:port of the service endpoint.
@@ -41,13 +41,12 @@ module Google
41
41
  # See {::Google::Cloud::Speech::V1p1beta1::Speech::Client::Configuration}
42
42
  # for a description of the configuration fields.
43
43
  #
44
- # ## Example
44
+ # @example
45
45
  #
46
- # To modify the configuration for all Speech clients:
47
- #
48
- # ::Google::Cloud::Speech::V1p1beta1::Speech::Client.configure do |config|
49
- # config.timeout = 10.0
50
- # end
46
+ # # Modify the configuration for all Speech clients
47
+ # ::Google::Cloud::Speech::V1p1beta1::Speech::Client.configure do |config|
48
+ # config.timeout = 10.0
49
+ # end
51
50
  #
52
51
  # @yield [config] Configure the Client client.
53
52
  # @yieldparam config [Client::Configuration]
@@ -106,19 +105,15 @@ module Google
106
105
  ##
107
106
  # Create a new Speech client object.
108
107
  #
109
- # ## Examples
110
- #
111
- # To create a new Speech client with the default
112
- # configuration:
113
- #
114
- # client = ::Google::Cloud::Speech::V1p1beta1::Speech::Client.new
108
+ # @example
115
109
  #
116
- # To create a new Speech client with a custom
117
- # configuration:
110
+ # # Create a client using the default configuration
111
+ # client = ::Google::Cloud::Speech::V1p1beta1::Speech::Client.new
118
112
  #
119
- # client = ::Google::Cloud::Speech::V1p1beta1::Speech::Client.new do |config|
120
- # config.timeout = 10.0
121
- # end
113
+ # # Create a client using a custom configuration
114
+ # client = ::Google::Cloud::Speech::V1p1beta1::Speech::Client.new do |config|
115
+ # config.timeout = 10.0
116
+ # end
122
117
  #
123
118
  # @yield [config] Configure the Speech client.
124
119
  # @yieldparam config [Client::Configuration]
@@ -138,10 +133,9 @@ module Google
138
133
 
139
134
  # Create credentials
140
135
  credentials = @config.credentials
141
- # Use self-signed JWT if the scope and endpoint are unchanged from default,
136
+ # Use self-signed JWT if the endpoint is unchanged from default,
142
137
  # but only if the default endpoint does not have a region prefix.
143
- enable_self_signed_jwt = @config.scope == Client.configure.scope &&
144
- @config.endpoint == Client.configure.endpoint &&
138
+ enable_self_signed_jwt = @config.endpoint == Client.configure.endpoint &&
145
139
  !@config.endpoint.split(".").first.include?("-")
146
140
  credentials ||= Credentials.default scope: @config.scope,
147
141
  enable_self_signed_jwt: enable_self_signed_jwt
@@ -227,7 +221,9 @@ module Google
227
221
  options.apply_defaults timeout: @config.rpcs.recognize.timeout,
228
222
  metadata: metadata,
229
223
  retry_policy: @config.rpcs.recognize.retry_policy
230
- options.apply_defaults metadata: @config.metadata,
224
+
225
+ options.apply_defaults timeout: @config.timeout,
226
+ metadata: @config.metadata,
231
227
  retry_policy: @config.retry_policy
232
228
 
233
229
  @speech_stub.call_rpc :recognize, request, options: options do |response, operation|
@@ -297,7 +293,9 @@ module Google
297
293
  options.apply_defaults timeout: @config.rpcs.long_running_recognize.timeout,
298
294
  metadata: metadata,
299
295
  retry_policy: @config.rpcs.long_running_recognize.retry_policy
300
- options.apply_defaults metadata: @config.metadata,
296
+
297
+ options.apply_defaults timeout: @config.timeout,
298
+ metadata: @config.metadata,
301
299
  retry_policy: @config.retry_policy
302
300
 
303
301
  @speech_stub.call_rpc :long_running_recognize, request, options: options do |response, operation|
@@ -351,7 +349,9 @@ module Google
351
349
  options.apply_defaults timeout: @config.rpcs.streaming_recognize.timeout,
352
350
  metadata: metadata,
353
351
  retry_policy: @config.rpcs.streaming_recognize.retry_policy
354
- options.apply_defaults metadata: @config.metadata,
352
+
353
+ options.apply_defaults timeout: @config.timeout,
354
+ metadata: @config.metadata,
355
355
  retry_policy: @config.retry_policy
356
356
 
357
357
  @speech_stub.call_rpc :streaming_recognize, request, options: options do |response, operation|
@@ -375,22 +375,21 @@ module Google
375
375
  # Configuration can be applied globally to all clients, or to a single client
376
376
  # on construction.
377
377
  #
378
- # # Examples
379
- #
380
- # To modify the global config, setting the timeout for recognize
381
- # to 20 seconds, and all remaining timeouts to 10 seconds:
382
- #
383
- # ::Google::Cloud::Speech::V1p1beta1::Speech::Client.configure do |config|
384
- # config.timeout = 10.0
385
- # config.rpcs.recognize.timeout = 20.0
386
- # end
387
- #
388
- # To apply the above configuration only to a new client:
389
- #
390
- # client = ::Google::Cloud::Speech::V1p1beta1::Speech::Client.new do |config|
391
- # config.timeout = 10.0
392
- # config.rpcs.recognize.timeout = 20.0
393
- # end
378
+ # @example
379
+ #
380
+ # # Modify the global config, setting the timeout for
381
+ # # recognize to 20 seconds,
382
+ # # and all remaining timeouts to 10 seconds.
383
+ # ::Google::Cloud::Speech::V1p1beta1::Speech::Client.configure do |config|
384
+ # config.timeout = 10.0
385
+ # config.rpcs.recognize.timeout = 20.0
386
+ # end
387
+ #
388
+ # # Apply the above configuration only to a new client.
389
+ # client = ::Google::Cloud::Speech::V1p1beta1::Speech::Client.new do |config|
390
+ # config.timeout = 10.0
391
+ # config.rpcs.recognize.timeout = 20.0
392
+ # end
394
393
  #
395
394
  # @!attribute [rw] endpoint
396
395
  # The hostname or hostname:port of the service endpoint.
@@ -169,7 +169,9 @@ module Google
169
169
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
170
170
  metadata: metadata,
171
171
  retry_policy: @config.rpcs.list_operations.retry_policy
172
- options.apply_defaults metadata: @config.metadata,
172
+
173
+ options.apply_defaults timeout: @config.timeout,
174
+ metadata: @config.metadata,
173
175
  retry_policy: @config.retry_policy
174
176
 
175
177
  @operations_stub.call_rpc :list_operations, request, options: options do |response, operation|
@@ -239,7 +241,9 @@ module Google
239
241
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
240
242
  metadata: metadata,
241
243
  retry_policy: @config.rpcs.get_operation.retry_policy
242
- options.apply_defaults metadata: @config.metadata,
244
+
245
+ options.apply_defaults timeout: @config.timeout,
246
+ metadata: @config.metadata,
243
247
  retry_policy: @config.retry_policy
244
248
 
245
249
  @operations_stub.call_rpc :get_operation, request, options: options do |response, operation|
@@ -309,7 +313,9 @@ module Google
309
313
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
310
314
  metadata: metadata,
311
315
  retry_policy: @config.rpcs.delete_operation.retry_policy
312
- options.apply_defaults metadata: @config.metadata,
316
+
317
+ options.apply_defaults timeout: @config.timeout,
318
+ metadata: @config.metadata,
313
319
  retry_policy: @config.retry_policy
314
320
 
315
321
  @operations_stub.call_rpc :delete_operation, request, options: options do |response, operation|
@@ -384,7 +390,9 @@ module Google
384
390
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
385
391
  metadata: metadata,
386
392
  retry_policy: @config.rpcs.cancel_operation.retry_policy
387
- options.apply_defaults metadata: @config.metadata,
393
+
394
+ options.apply_defaults timeout: @config.timeout,
395
+ metadata: @config.metadata,
388
396
  retry_policy: @config.retry_policy
389
397
 
390
398
  @operations_stub.call_rpc :cancel_operation, request, options: options do |response, operation|
@@ -456,7 +464,9 @@ module Google
456
464
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
457
465
  metadata: metadata,
458
466
  retry_policy: @config.rpcs.wait_operation.retry_policy
459
- options.apply_defaults metadata: @config.metadata,
467
+
468
+ options.apply_defaults timeout: @config.timeout,
469
+ metadata: @config.metadata,
460
470
  retry_policy: @config.retry_policy
461
471
 
462
472
  @operations_stub.call_rpc :wait_operation, request, options: options do |response, operation|
@@ -481,22 +491,21 @@ module Google
481
491
  # Configuration can be applied globally to all clients, or to a single client
482
492
  # on construction.
483
493
  #
484
- # # Examples
485
- #
486
- # To modify the global config, setting the timeout for list_operations
487
- # to 20 seconds, and all remaining timeouts to 10 seconds:
488
- #
489
- # ::Google::Longrunning::Operations::Client.configure do |config|
490
- # config.timeout = 10.0
491
- # config.rpcs.list_operations.timeout = 20.0
492
- # end
493
- #
494
- # To apply the above configuration only to a new client:
495
- #
496
- # client = ::Google::Longrunning::Operations::Client.new do |config|
497
- # config.timeout = 10.0
498
- # config.rpcs.list_operations.timeout = 20.0
499
- # end
494
+ # @example
495
+ #
496
+ # # Modify the global config, setting the timeout for
497
+ # # list_operations to 20 seconds,
498
+ # # and all remaining timeouts to 10 seconds.
499
+ # ::Google::Longrunning::Operations::Client.configure do |config|
500
+ # config.timeout = 10.0
501
+ # config.rpcs.list_operations.timeout = 20.0
502
+ # end
503
+ #
504
+ # # Apply the above configuration only to a new client.
505
+ # client = ::Google::Longrunning::Operations::Client.new do |config|
506
+ # config.timeout = 10.0
507
+ # config.rpcs.list_operations.timeout = 20.0
508
+ # end
500
509
  #
501
510
  # @!attribute [rw] endpoint
502
511
  # The hostname or hostname:port of the service endpoint.
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1p1beta1
24
- VERSION = "0.10.0"
24
+ VERSION = "0.10.1"
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-speech-v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.0
4
+ version: 0.10.1
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-29 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