google-cloud-speech-v1 0.10.1 → 0.10.2

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: 7fedc91dd5d35be034d4a6e8c13bfb83dacab0bbc56f7cd203997ee7bb4d5e23
4
- data.tar.gz: 8527c5c67bb12be3d7b2483b58356437de6c7045ee5c523b671e5d75217b651d
3
+ metadata.gz: aa57ce21e20c7785059e86d4b0b36ad548868caaafe891a851d4e39955d1a1b7
4
+ data.tar.gz: ef20b55561391caefc6d8b9b20c0472811e0d2f7077c61e154a89caea8b58f97
5
5
  SHA512:
6
- metadata.gz: 8f4b65396fc9e549d7423ae6267674254e3c58b6706d837d35de4573d2f1446e753480f6c74e228c7946837b9b39fa56dd74c87dcd6195f0c17a7f826e2f33f7
7
- data.tar.gz: 706aa13a3d247d4244f5ba703df7b4803f1db5b3e761f687346fa6998033a26896fe1c0fa59b6abfcc6af43047d0439eb10b6a44e3487c498e17693e5ab04649
6
+ metadata.gz: b53d12dc4213222ba181ab7469231bf9f86d6ba74dfec46d96ee3030363750d54cff3135948fa50f41b327b2fbc04b46c50f13ad8c0d6387271a802fd76d1e33
7
+ data.tar.gz: a9325ff0fa9e9aa3be49eaa59d43f3bb5a8dfb429dc822e88992e57fbea6466482aecdc14183fb512bfeb2af5bf85c7c626676095322f8633be6f2f734830559
@@ -401,13 +401,11 @@ module Google
401
401
  # # Call the list_phrase_set method.
402
402
  # result = client.list_phrase_set request
403
403
  #
404
- # # The returned object is of type Gapic::PagedEnumerable. You can
405
- # # iterate over all elements by calling #each, and the enumerable
406
- # # will lazily make API calls to fetch subsequent pages. Other
407
- # # methods are also available for managing paging directly.
408
- # result.each do |response|
404
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
405
+ # # over elements, and API calls will be issued to fetch pages as needed.
406
+ # result.each do |item|
409
407
  # # Each element is of type ::Google::Cloud::Speech::V1::PhraseSet.
410
- # p response
408
+ # p item
411
409
  # end
412
410
  #
413
411
  def list_phrase_set request, options = nil
@@ -886,13 +884,11 @@ module Google
886
884
  # # Call the list_custom_classes method.
887
885
  # result = client.list_custom_classes request
888
886
  #
889
- # # The returned object is of type Gapic::PagedEnumerable. You can
890
- # # iterate over all elements by calling #each, and the enumerable
891
- # # will lazily make API calls to fetch subsequent pages. Other
892
- # # methods are also available for managing paging directly.
893
- # result.each do |response|
887
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
888
+ # # over elements, and API calls will be issued to fetch pages as needed.
889
+ # result.each do |item|
894
890
  # # Each element is of type ::Google::Cloud::Speech::V1::CustomClass.
895
- # p response
891
+ # p item
896
892
  # end
897
893
  #
898
894
  def list_custom_classes request, options = nil
@@ -301,14 +301,14 @@ module Google
301
301
  # # Call the long_running_recognize method.
302
302
  # result = client.long_running_recognize request
303
303
  #
304
- # # The returned object is of type Gapic::Operation. You can use this
305
- # # object to check the status of an operation, cancel it, or wait
306
- # # for results. Here is how to block until completion:
304
+ # # The returned object is of type Gapic::Operation. You can use it to
305
+ # # check the status of an operation, cancel it, or wait for results.
306
+ # # Here is how to wait for a response.
307
307
  # result.wait_until_done! timeout: 60
308
308
  # if result.response?
309
309
  # p result.response
310
310
  # else
311
- # puts "Error!"
311
+ # puts "No response received."
312
312
  # end
313
313
  #
314
314
  def long_running_recognize request, options = nil
@@ -368,22 +368,22 @@ module Google
368
368
  # # Create a client object. The client can be reused for multiple calls.
369
369
  # client = Google::Cloud::Speech::V1::Speech::Client.new
370
370
  #
371
- # # Create an input stream
371
+ # # Create an input stream.
372
372
  # input = Gapic::StreamInput.new
373
373
  #
374
374
  # # Call the streaming_recognize method to start streaming.
375
375
  # output = client.streaming_recognize input
376
376
  #
377
- # # Send requests on the stream. For each request, pass in keyword
378
- # # arguments to set fields. Be sure to close the stream when done.
377
+ # # Send requests on the stream. For each request object, set fields by
378
+ # # passing keyword arguments. Be sure to close the stream when done.
379
379
  # input << Google::Cloud::Speech::V1::StreamingRecognizeRequest.new
380
380
  # input << Google::Cloud::Speech::V1::StreamingRecognizeRequest.new
381
381
  # input.close
382
382
  #
383
- # # Handle streamed responses. These may be interleaved with inputs.
384
- # # Each response is of type ::Google::Cloud::Speech::V1::StreamingRecognizeResponse.
385
- # output.each do |response|
386
- # p response
383
+ # # The returned object is a streamed enumerable yielding elements of type
384
+ # # ::Google::Cloud::Speech::V1::StreamingRecognizeResponse
385
+ # output.each do |current_response|
386
+ # p current_response
387
387
  # end
388
388
  #
389
389
  def streaming_recognize request, options = nil
@@ -158,13 +158,11 @@ module Google
158
158
  # # Call the list_operations method.
159
159
  # result = client.list_operations request
160
160
  #
161
- # # The returned object is of type Gapic::PagedEnumerable. You can
162
- # # iterate over all elements by calling #each, and the enumerable
163
- # # will lazily make API calls to fetch subsequent pages. Other
164
- # # methods are also available for managing paging directly.
165
- # result.each do |response|
161
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
162
+ # # over elements, and API calls will be issued to fetch pages as needed.
163
+ # result.each do |item|
166
164
  # # Each element is of type ::Google::Longrunning::Operation.
167
- # p response
165
+ # p item
168
166
  # end
169
167
  #
170
168
  def list_operations request, options = nil
@@ -184,14 +182,6 @@ module Google
184
182
  gapic_version: ::Google::Cloud::Speech::V1::VERSION
185
183
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
186
184
 
187
- header_params = {}
188
- if request.name
189
- header_params["name"] = request.name
190
- end
191
-
192
- request_params_header = header_params.map { |k, v| "#{k}=#{v}" }.join("&")
193
- metadata[:"x-goog-request-params"] ||= request_params_header
194
-
195
185
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
196
186
  metadata: metadata,
197
187
  retry_policy: @config.rpcs.list_operations.retry_policy
@@ -253,14 +243,14 @@ module Google
253
243
  # # Call the get_operation method.
254
244
  # result = client.get_operation request
255
245
  #
256
- # # The returned object is of type Gapic::Operation. You can use this
257
- # # object to check the status of an operation, cancel it, or wait
258
- # # for results. Here is how to block until completion:
246
+ # # The returned object is of type Gapic::Operation. You can use it to
247
+ # # check the status of an operation, cancel it, or wait for results.
248
+ # # Here is how to wait for a response.
259
249
  # result.wait_until_done! timeout: 60
260
250
  # if result.response?
261
251
  # p result.response
262
252
  # else
263
- # puts "Error!"
253
+ # puts "No response received."
264
254
  # end
265
255
  #
266
256
  def get_operation request, options = nil
@@ -540,14 +530,14 @@ module Google
540
530
  # # Call the wait_operation method.
541
531
  # result = client.wait_operation request
542
532
  #
543
- # # The returned object is of type Gapic::Operation. You can use this
544
- # # object to check the status of an operation, cancel it, or wait
545
- # # for results. Here is how to block until completion:
533
+ # # The returned object is of type Gapic::Operation. You can use it to
534
+ # # check the status of an operation, cancel it, or wait for results.
535
+ # # Here is how to wait for a response.
546
536
  # result.wait_until_done! timeout: 60
547
537
  # if result.response?
548
538
  # p result.response
549
539
  # else
550
- # puts "Error!"
540
+ # puts "No response received."
551
541
  # end
552
542
  #
553
543
  def wait_operation request, options = nil
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1
24
- VERSION = "0.10.1"
24
+ VERSION = "0.10.2"
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-v1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.1
4
+ version: 0.10.2
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-02-03 00:00:00.000000000 Z
11
+ date: 2023-02-17 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.16.0
19
+ version: 0.17.1
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.16.0
29
+ version: 0.17.1
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -50,14 +50,14 @@ dependencies:
50
50
  requirements:
51
51
  - - "~>"
52
52
  - !ruby/object:Gem::Version
53
- version: 1.26.1
53
+ version: 1.26.3
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
58
  - - "~>"
59
59
  - !ruby/object:Gem::Version
60
- version: 1.26.1
60
+ version: 1.26.3
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: minitest
63
63
  requirement: !ruby/object:Gem::Requirement