google-cloud-speech-v1p1beta1 0.15.1 → 0.15.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/google/cloud/speech/v1p1beta1/adaptation/client.rb +12 -14
- data/lib/google/cloud/speech/v1p1beta1/speech/client.rb +11 -11
- data/lib/google/cloud/speech/v1p1beta1/speech/operations.rb +12 -22
- data/lib/google/cloud/speech/v1p1beta1/version.rb +1 -1
- data/proto_docs/google/cloud/speech/v1p1beta1/cloud_speech_adaptation.rb +4 -2
- data/proto_docs/google/cloud/speech/v1p1beta1/resource.rb +2 -2
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: da289faff5897369c2a76bdf8d987cd50ea85eb181932ff78a67a39209849aa4
|
4
|
+
data.tar.gz: 7ae07fe9381cd56ef84c8538e876aaed0c8e608c20f2d6201151e08e93884c6c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 05a7e5643a806c87810c0fe7247627290e7147c76648488a6978feb480a2612a4d4c07397c4f7db9982a5cb79c27e6ee1770cfb6d716ec238f0afd669a97add9
|
7
|
+
data.tar.gz: c30b03915d207c0b2c5f1d25ec07db17d223fbc991c8f9085b2ec615b73461fedfe27642159a1634a1df9e140886d2594e675e8c4df145eaddab901c84ba8a3e
|
@@ -165,7 +165,8 @@ module Google
|
|
165
165
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
166
166
|
#
|
167
167
|
# @param parent [::String]
|
168
|
-
# Required. The parent resource where this phrase set will be created.
|
168
|
+
# Required. The parent resource where this phrase set will be created.
|
169
|
+
# Format:
|
169
170
|
#
|
170
171
|
# `projects/{project}/locations/{location}/phraseSets`
|
171
172
|
#
|
@@ -400,13 +401,11 @@ module Google
|
|
400
401
|
# # Call the list_phrase_set method.
|
401
402
|
# result = client.list_phrase_set request
|
402
403
|
#
|
403
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
404
|
-
# #
|
405
|
-
#
|
406
|
-
# # methods are also available for managing paging directly.
|
407
|
-
# 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|
|
408
407
|
# # Each element is of type ::Google::Cloud::Speech::V1p1beta1::PhraseSet.
|
409
|
-
# p
|
408
|
+
# p item
|
410
409
|
# end
|
411
410
|
#
|
412
411
|
def list_phrase_set request, options = nil
|
@@ -655,7 +654,8 @@ module Google
|
|
655
654
|
# the default parameter values, pass an empty Hash as a request object (see above).
|
656
655
|
#
|
657
656
|
# @param parent [::String]
|
658
|
-
# Required. The parent resource where this custom class will be created.
|
657
|
+
# Required. The parent resource where this custom class will be created.
|
658
|
+
# Format:
|
659
659
|
#
|
660
660
|
# `projects/{project}/locations/{location}/customClasses`
|
661
661
|
#
|
@@ -884,13 +884,11 @@ module Google
|
|
884
884
|
# # Call the list_custom_classes method.
|
885
885
|
# result = client.list_custom_classes request
|
886
886
|
#
|
887
|
-
# # The returned object is of type Gapic::PagedEnumerable. You can
|
888
|
-
# #
|
889
|
-
#
|
890
|
-
# # methods are also available for managing paging directly.
|
891
|
-
# 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|
|
892
890
|
# # Each element is of type ::Google::Cloud::Speech::V1p1beta1::CustomClass.
|
893
|
-
# p
|
891
|
+
# p item
|
894
892
|
# end
|
895
893
|
#
|
896
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
|
305
|
-
# #
|
306
|
-
# #
|
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 "
|
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,
|
378
|
-
# #
|
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
|
-
# #
|
384
|
-
# #
|
385
|
-
# output.each do |
|
386
|
-
# p
|
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
|
-
# #
|
163
|
-
#
|
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
|
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
|
257
|
-
# #
|
258
|
-
# #
|
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 "
|
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
|
544
|
-
# #
|
545
|
-
# #
|
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 "
|
540
|
+
# puts "No response received."
|
551
541
|
# end
|
552
542
|
#
|
553
543
|
def wait_operation request, options = nil
|
@@ -24,7 +24,8 @@ module Google
|
|
24
24
|
# Message sent by the client for the `CreatePhraseSet` method.
|
25
25
|
# @!attribute [rw] parent
|
26
26
|
# @return [::String]
|
27
|
-
# Required. The parent resource where this phrase set will be created.
|
27
|
+
# Required. The parent resource where this phrase set will be created.
|
28
|
+
# Format:
|
28
29
|
#
|
29
30
|
# `projects/{project}/locations/{location}/phraseSets`
|
30
31
|
#
|
@@ -145,7 +146,8 @@ module Google
|
|
145
146
|
# Message sent by the client for the `CreateCustomClass` method.
|
146
147
|
# @!attribute [rw] parent
|
147
148
|
# @return [::String]
|
148
|
-
# Required. The parent resource where this custom class will be created.
|
149
|
+
# Required. The parent resource where this custom class will be created.
|
150
|
+
# Format:
|
149
151
|
#
|
150
152
|
# `projects/{project}/locations/{location}/customClasses`
|
151
153
|
#
|
@@ -94,8 +94,8 @@ module Google
|
|
94
94
|
# Speech-to-Text supports three locations: `global`, `us` (US North America),
|
95
95
|
# and `eu` (Europe). If you are calling the `speech.googleapis.com`
|
96
96
|
# endpoint, use the `global` location. To specify a region, use a
|
97
|
-
# [regional endpoint](/speech-to-text/docs/endpoints)
|
98
|
-
# `eu` location value.
|
97
|
+
# [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
|
98
|
+
# with matching `us` or `eu` location value.
|
99
99
|
# @!attribute [rw] value
|
100
100
|
# @return [::String]
|
101
101
|
# The phrase itself.
|
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.
|
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-
|
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.
|
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.
|
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.
|
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.
|
60
|
+
version: 1.26.3
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: minitest
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|