google-cloud-speech-v1p1beta1 0.15.2 → 0.15.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: 516838e515e3a9e9fec5ea70dde00d0ec3be43d4bc86084353f53da3c99e7856
4
- data.tar.gz: 83840b5efde7db67cab58f2e4abbebe5b40417f211897b76a042635498a7a66f
3
+ metadata.gz: da289faff5897369c2a76bdf8d987cd50ea85eb181932ff78a67a39209849aa4
4
+ data.tar.gz: 7ae07fe9381cd56ef84c8538e876aaed0c8e608c20f2d6201151e08e93884c6c
5
5
  SHA512:
6
- metadata.gz: fb4333ce9a3e9ed43839495b7f5c4a0249d0ee1ea049cdc02c186c80d14591d65017a8855fef9ae4558d3635f0243ca3cc0269a9d2f5229f175d31d295c2c84e
7
- data.tar.gz: 12550f192108799ab4258f7671de6bb0201a8cf4ece6371654be5df7bf28c4dba554fb3ce12376837311545aaec43f6a6080fcb0e0edfbb0b766baf0a5014858
6
+ metadata.gz: 05a7e5643a806c87810c0fe7247627290e7147c76648488a6978feb480a2612a4d4c07397c4f7db9982a5cb79c27e6ee1770cfb6d716ec238f0afd669a97add9
7
+ data.tar.gz: c30b03915d207c0b2c5f1d25ec07db17d223fbc991c8f9085b2ec615b73461fedfe27642159a1634a1df9e140886d2594e675e8c4df145eaddab901c84ba8a3e
@@ -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::V1p1beta1::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::V1p1beta1::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::V1p1beta1::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::V1p1beta1::StreamingRecognizeRequest.new
380
380
  # input << Google::Cloud::Speech::V1p1beta1::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::V1p1beta1::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::V1p1beta1::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::V1p1beta1::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 V1p1beta1
24
- VERSION = "0.15.2"
24
+ VERSION = "0.15.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-speech-v1p1beta1
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.2
4
+ version: 0.15.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: 2023-02-09 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