google-cloud-speech-v1 0.13.1 → 0.14.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6ebfda8adf3a8581db66e188089b6577002805411cd40c6e21792b97c13a2bc8
4
- data.tar.gz: c4546d08b8e32355d37440d546221411392f75797599da4a5f47628c94b163f6
3
+ metadata.gz: bd40d7af85f867e1d840a9e2a67b2c346804f07d3e85df56263ee47b3a4ff2fc
4
+ data.tar.gz: 3bb1f7bb330cbe248765239febb1dc9e5eb81689dc438052a78686215e2f029f
5
5
  SHA512:
6
- metadata.gz: 2b952c2630d77df6805fde6cb5761d42921db744f781f59c4407981737c7b2e96c362b1f337a1f124c432095676322265cb3932c229fb58b61016bd0a7e8f084
7
- data.tar.gz: 134c687b57210458b4eda9104a83691459a7b100dc7a9d964f3d47a30d292c5fe158a4c3c5ed42855103125a24cd598ac4b99b1ef6ef2a9f6fb1b8efc3308026
6
+ metadata.gz: 1cbd0d8d40f9cbe64a5674f142500e4528c1b26c421095ebf13a9f71a059d1e6a973e88f50203bfc0cbe9a290721d51f753a71c52d050f32d0a62ebb78785ade
7
+ data.tar.gz: f41d71cd3ff15922ff1caba43e26a2c5134410228cfadd9a828fadb4cfc8b94e99e48b8fe227b39284c7469e83f457cd104707f20ee8113af26133ddc4365b24
@@ -138,7 +138,8 @@ module Google
138
138
  credentials: credentials,
139
139
  endpoint: @config.endpoint,
140
140
  channel_args: @config.channel_args,
141
- interceptors: @config.interceptors
141
+ interceptors: @config.interceptors,
142
+ channel_pool_config: @config.channel_pool
142
143
  )
143
144
  end
144
145
 
@@ -1243,6 +1244,14 @@ module Google
1243
1244
  end
1244
1245
  end
1245
1246
 
1247
+ ##
1248
+ # Configuration for the channel pool
1249
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
1250
+ #
1251
+ def channel_pool
1252
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
1253
+ end
1254
+
1246
1255
  ##
1247
1256
  # Configuration RPC class for the Adaptation API.
1248
1257
  #
@@ -181,6 +181,22 @@ module Google
181
181
  # @return [::Google::Cloud::Speech::V1::PhraseSet]
182
182
  #
183
183
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
184
+ #
185
+ # @example Basic example
186
+ # require "google/cloud/speech/v1"
187
+ #
188
+ # # Create a client object. The client can be reused for multiple calls.
189
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
190
+ #
191
+ # # Create a request. To set request fields, pass in keyword arguments.
192
+ # request = Google::Cloud::Speech::V1::CreatePhraseSetRequest.new
193
+ #
194
+ # # Call the create_phrase_set method.
195
+ # result = client.create_phrase_set request
196
+ #
197
+ # # The returned object is of type Google::Cloud::Speech::V1::PhraseSet.
198
+ # p result
199
+ #
184
200
  def create_phrase_set request, options = nil
185
201
  raise ::ArgumentError, "request must be provided" if request.nil?
186
202
 
@@ -251,6 +267,22 @@ module Google
251
267
  # @return [::Google::Cloud::Speech::V1::PhraseSet]
252
268
  #
253
269
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
270
+ #
271
+ # @example Basic example
272
+ # require "google/cloud/speech/v1"
273
+ #
274
+ # # Create a client object. The client can be reused for multiple calls.
275
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
276
+ #
277
+ # # Create a request. To set request fields, pass in keyword arguments.
278
+ # request = Google::Cloud::Speech::V1::GetPhraseSetRequest.new
279
+ #
280
+ # # Call the get_phrase_set method.
281
+ # result = client.get_phrase_set request
282
+ #
283
+ # # The returned object is of type Google::Cloud::Speech::V1::PhraseSet.
284
+ # p result
285
+ #
254
286
  def get_phrase_set request, options = nil
255
287
  raise ::ArgumentError, "request must be provided" if request.nil?
256
288
 
@@ -332,6 +364,26 @@ module Google
332
364
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Speech::V1::PhraseSet>]
333
365
  #
334
366
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
367
+ #
368
+ # @example Basic example
369
+ # require "google/cloud/speech/v1"
370
+ #
371
+ # # Create a client object. The client can be reused for multiple calls.
372
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
373
+ #
374
+ # # Create a request. To set request fields, pass in keyword arguments.
375
+ # request = Google::Cloud::Speech::V1::ListPhraseSetRequest.new
376
+ #
377
+ # # Call the list_phrase_set method.
378
+ # result = client.list_phrase_set request
379
+ #
380
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
381
+ # # over elements, and API calls will be issued to fetch pages as needed.
382
+ # result.each do |item|
383
+ # # Each element is of type ::Google::Cloud::Speech::V1::PhraseSet.
384
+ # p item
385
+ # end
386
+ #
335
387
  def list_phrase_set request, options = nil
336
388
  raise ::ArgumentError, "request must be provided" if request.nil?
337
389
 
@@ -408,6 +460,22 @@ module Google
408
460
  # @return [::Google::Cloud::Speech::V1::PhraseSet]
409
461
  #
410
462
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
463
+ #
464
+ # @example Basic example
465
+ # require "google/cloud/speech/v1"
466
+ #
467
+ # # Create a client object. The client can be reused for multiple calls.
468
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
469
+ #
470
+ # # Create a request. To set request fields, pass in keyword arguments.
471
+ # request = Google::Cloud::Speech::V1::UpdatePhraseSetRequest.new
472
+ #
473
+ # # Call the update_phrase_set method.
474
+ # result = client.update_phrase_set request
475
+ #
476
+ # # The returned object is of type Google::Cloud::Speech::V1::PhraseSet.
477
+ # p result
478
+ #
411
479
  def update_phrase_set request, options = nil
412
480
  raise ::ArgumentError, "request must be provided" if request.nil?
413
481
 
@@ -472,6 +540,22 @@ module Google
472
540
  # @return [::Google::Protobuf::Empty]
473
541
  #
474
542
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
543
+ #
544
+ # @example Basic example
545
+ # require "google/cloud/speech/v1"
546
+ #
547
+ # # Create a client object. The client can be reused for multiple calls.
548
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
549
+ #
550
+ # # Create a request. To set request fields, pass in keyword arguments.
551
+ # request = Google::Cloud::Speech::V1::DeletePhraseSetRequest.new
552
+ #
553
+ # # Call the delete_phrase_set method.
554
+ # result = client.delete_phrase_set request
555
+ #
556
+ # # The returned object is of type Google::Protobuf::Empty.
557
+ # p result
558
+ #
475
559
  def delete_phrase_set request, options = nil
476
560
  raise ::ArgumentError, "request must be provided" if request.nil?
477
561
 
@@ -551,6 +635,22 @@ module Google
551
635
  # @return [::Google::Cloud::Speech::V1::CustomClass]
552
636
  #
553
637
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
638
+ #
639
+ # @example Basic example
640
+ # require "google/cloud/speech/v1"
641
+ #
642
+ # # Create a client object. The client can be reused for multiple calls.
643
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
644
+ #
645
+ # # Create a request. To set request fields, pass in keyword arguments.
646
+ # request = Google::Cloud::Speech::V1::CreateCustomClassRequest.new
647
+ #
648
+ # # Call the create_custom_class method.
649
+ # result = client.create_custom_class request
650
+ #
651
+ # # The returned object is of type Google::Cloud::Speech::V1::CustomClass.
652
+ # p result
653
+ #
554
654
  def create_custom_class request, options = nil
555
655
  raise ::ArgumentError, "request must be provided" if request.nil?
556
656
 
@@ -615,6 +715,22 @@ module Google
615
715
  # @return [::Google::Cloud::Speech::V1::CustomClass]
616
716
  #
617
717
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
718
+ #
719
+ # @example Basic example
720
+ # require "google/cloud/speech/v1"
721
+ #
722
+ # # Create a client object. The client can be reused for multiple calls.
723
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
724
+ #
725
+ # # Create a request. To set request fields, pass in keyword arguments.
726
+ # request = Google::Cloud::Speech::V1::GetCustomClassRequest.new
727
+ #
728
+ # # Call the get_custom_class method.
729
+ # result = client.get_custom_class request
730
+ #
731
+ # # The returned object is of type Google::Cloud::Speech::V1::CustomClass.
732
+ # p result
733
+ #
618
734
  def get_custom_class request, options = nil
619
735
  raise ::ArgumentError, "request must be provided" if request.nil?
620
736
 
@@ -696,6 +812,26 @@ module Google
696
812
  # @return [::Gapic::Rest::PagedEnumerable<::Google::Cloud::Speech::V1::CustomClass>]
697
813
  #
698
814
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
815
+ #
816
+ # @example Basic example
817
+ # require "google/cloud/speech/v1"
818
+ #
819
+ # # Create a client object. The client can be reused for multiple calls.
820
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
821
+ #
822
+ # # Create a request. To set request fields, pass in keyword arguments.
823
+ # request = Google::Cloud::Speech::V1::ListCustomClassesRequest.new
824
+ #
825
+ # # Call the list_custom_classes method.
826
+ # result = client.list_custom_classes request
827
+ #
828
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
829
+ # # over elements, and API calls will be issued to fetch pages as needed.
830
+ # result.each do |item|
831
+ # # Each element is of type ::Google::Cloud::Speech::V1::CustomClass.
832
+ # p item
833
+ # end
834
+ #
699
835
  def list_custom_classes request, options = nil
700
836
  raise ::ArgumentError, "request must be provided" if request.nil?
701
837
 
@@ -772,6 +908,22 @@ module Google
772
908
  # @return [::Google::Cloud::Speech::V1::CustomClass]
773
909
  #
774
910
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
911
+ #
912
+ # @example Basic example
913
+ # require "google/cloud/speech/v1"
914
+ #
915
+ # # Create a client object. The client can be reused for multiple calls.
916
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
917
+ #
918
+ # # Create a request. To set request fields, pass in keyword arguments.
919
+ # request = Google::Cloud::Speech::V1::UpdateCustomClassRequest.new
920
+ #
921
+ # # Call the update_custom_class method.
922
+ # result = client.update_custom_class request
923
+ #
924
+ # # The returned object is of type Google::Cloud::Speech::V1::CustomClass.
925
+ # p result
926
+ #
775
927
  def update_custom_class request, options = nil
776
928
  raise ::ArgumentError, "request must be provided" if request.nil?
777
929
 
@@ -842,6 +994,22 @@ module Google
842
994
  # @return [::Google::Protobuf::Empty]
843
995
  #
844
996
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
997
+ #
998
+ # @example Basic example
999
+ # require "google/cloud/speech/v1"
1000
+ #
1001
+ # # Create a client object. The client can be reused for multiple calls.
1002
+ # client = Google::Cloud::Speech::V1::Adaptation::Rest::Client.new
1003
+ #
1004
+ # # Create a request. To set request fields, pass in keyword arguments.
1005
+ # request = Google::Cloud::Speech::V1::DeleteCustomClassRequest.new
1006
+ #
1007
+ # # Call the delete_custom_class method.
1008
+ # result = client.delete_custom_class request
1009
+ #
1010
+ # # The returned object is of type Google::Protobuf::Empty.
1011
+ # p result
1012
+ #
845
1013
  def delete_custom_class request, options = nil
846
1014
  raise ::ArgumentError, "request must be provided" if request.nil?
847
1015
 
@@ -156,7 +156,8 @@ module Google
156
156
  credentials: credentials,
157
157
  endpoint: @config.endpoint,
158
158
  channel_args: @config.channel_args,
159
- interceptors: @config.interceptors
159
+ interceptors: @config.interceptors,
160
+ channel_pool_config: @config.channel_pool
160
161
  )
161
162
  end
162
163
 
@@ -543,6 +544,14 @@ module Google
543
544
  end
544
545
  end
545
546
 
547
+ ##
548
+ # Configuration for the channel pool
549
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
550
+ #
551
+ def channel_pool
552
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
553
+ end
554
+
546
555
  ##
547
556
  # Configuration RPC class for the Speech API.
548
557
  #
@@ -93,7 +93,8 @@ module Google
93
93
  credentials: credentials,
94
94
  endpoint: @config.endpoint,
95
95
  channel_args: @config.channel_args,
96
- interceptors: @config.interceptors
96
+ interceptors: @config.interceptors,
97
+ channel_pool_config: @config.channel_pool
97
98
  )
98
99
 
99
100
  # Used by an LRO wrapper for some methods of this service
@@ -693,6 +694,14 @@ module Google
693
694
  end
694
695
  end
695
696
 
697
+ ##
698
+ # Configuration for the channel pool
699
+ # @return [::Gapic::ServiceStub::ChannelPool::Configuration]
700
+ #
701
+ def channel_pool
702
+ @channel_pool ||= ::Gapic::ServiceStub::ChannelPool::Configuration.new
703
+ end
704
+
696
705
  ##
697
706
  # Configuration RPC class for the Operations API.
698
707
  #
@@ -186,6 +186,22 @@ module Google
186
186
  # @return [::Google::Cloud::Speech::V1::RecognizeResponse]
187
187
  #
188
188
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
189
+ #
190
+ # @example Basic example
191
+ # require "google/cloud/speech/v1"
192
+ #
193
+ # # Create a client object. The client can be reused for multiple calls.
194
+ # client = Google::Cloud::Speech::V1::Speech::Rest::Client.new
195
+ #
196
+ # # Create a request. To set request fields, pass in keyword arguments.
197
+ # request = Google::Cloud::Speech::V1::RecognizeRequest.new
198
+ #
199
+ # # Call the recognize method.
200
+ # result = client.recognize request
201
+ #
202
+ # # The returned object is of type Google::Cloud::Speech::V1::RecognizeResponse.
203
+ # p result
204
+ #
189
205
  def recognize request, options = nil
190
206
  raise ::ArgumentError, "request must be provided" if request.nil?
191
207
 
@@ -258,6 +274,29 @@ module Google
258
274
  # @return [::Gapic::Operation]
259
275
  #
260
276
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
277
+ #
278
+ # @example Basic example
279
+ # require "google/cloud/speech/v1"
280
+ #
281
+ # # Create a client object. The client can be reused for multiple calls.
282
+ # client = Google::Cloud::Speech::V1::Speech::Rest::Client.new
283
+ #
284
+ # # Create a request. To set request fields, pass in keyword arguments.
285
+ # request = Google::Cloud::Speech::V1::LongRunningRecognizeRequest.new
286
+ #
287
+ # # Call the long_running_recognize method.
288
+ # result = client.long_running_recognize request
289
+ #
290
+ # # The returned object is of type Gapic::Operation. You can use it to
291
+ # # check the status of an operation, cancel it, or wait for results.
292
+ # # Here is how to wait for a response.
293
+ # result.wait_until_done! timeout: 60
294
+ # if result.response?
295
+ # p result.response
296
+ # else
297
+ # puts "No response received."
298
+ # end
299
+ #
261
300
  def long_running_recognize request, options = nil
262
301
  raise ::ArgumentError, "request must be provided" if request.nil?
263
302
 
@@ -136,6 +136,26 @@ module Google
136
136
  # @return [::Gapic::Operation]
137
137
  #
138
138
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
139
+ #
140
+ # @example Basic example
141
+ # require "google/longrunning"
142
+ #
143
+ # # Create a client object. The client can be reused for multiple calls.
144
+ # client = Google::Longrunning::Operations::Rest::Client.new
145
+ #
146
+ # # Create a request. To set request fields, pass in keyword arguments.
147
+ # request = Google::Longrunning::ListOperationsRequest.new
148
+ #
149
+ # # Call the list_operations method.
150
+ # result = client.list_operations request
151
+ #
152
+ # # The returned object is of type Gapic::PagedEnumerable. You can iterate
153
+ # # over elements, and API calls will be issued to fetch pages as needed.
154
+ # result.each do |item|
155
+ # # Each element is of type ::Google::Longrunning::Operation.
156
+ # p item
157
+ # end
158
+ #
139
159
  def list_operations request, options = nil
140
160
  raise ::ArgumentError, "request must be provided" if request.nil?
141
161
 
@@ -201,6 +221,29 @@ module Google
201
221
  # @return [::Gapic::Operation]
202
222
  #
203
223
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
224
+ #
225
+ # @example Basic example
226
+ # require "google/longrunning"
227
+ #
228
+ # # Create a client object. The client can be reused for multiple calls.
229
+ # client = Google::Longrunning::Operations::Rest::Client.new
230
+ #
231
+ # # Create a request. To set request fields, pass in keyword arguments.
232
+ # request = Google::Longrunning::GetOperationRequest.new
233
+ #
234
+ # # Call the get_operation method.
235
+ # result = client.get_operation request
236
+ #
237
+ # # The returned object is of type Gapic::Operation. You can use it to
238
+ # # check the status of an operation, cancel it, or wait for results.
239
+ # # Here is how to wait for a response.
240
+ # result.wait_until_done! timeout: 60
241
+ # if result.response?
242
+ # p result.response
243
+ # else
244
+ # puts "No response received."
245
+ # end
246
+ #
204
247
  def get_operation request, options = nil
205
248
  raise ::ArgumentError, "request must be provided" if request.nil?
206
249
 
@@ -267,6 +310,22 @@ module Google
267
310
  # @return [::Google::Protobuf::Empty]
268
311
  #
269
312
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
313
+ #
314
+ # @example Basic example
315
+ # require "google/longrunning"
316
+ #
317
+ # # Create a client object. The client can be reused for multiple calls.
318
+ # client = Google::Longrunning::Operations::Rest::Client.new
319
+ #
320
+ # # Create a request. To set request fields, pass in keyword arguments.
321
+ # request = Google::Longrunning::DeleteOperationRequest.new
322
+ #
323
+ # # Call the delete_operation method.
324
+ # result = client.delete_operation request
325
+ #
326
+ # # The returned object is of type Google::Protobuf::Empty.
327
+ # p result
328
+ #
270
329
  def delete_operation request, options = nil
271
330
  raise ::ArgumentError, "request must be provided" if request.nil?
272
331
 
@@ -338,6 +397,22 @@ module Google
338
397
  # @return [::Google::Protobuf::Empty]
339
398
  #
340
399
  # @raise [::Google::Cloud::Error] if the REST call is aborted.
400
+ #
401
+ # @example Basic example
402
+ # require "google/longrunning"
403
+ #
404
+ # # Create a client object. The client can be reused for multiple calls.
405
+ # client = Google::Longrunning::Operations::Rest::Client.new
406
+ #
407
+ # # Create a request. To set request fields, pass in keyword arguments.
408
+ # request = Google::Longrunning::CancelOperationRequest.new
409
+ #
410
+ # # Call the cancel_operation method.
411
+ # result = client.cancel_operation request
412
+ #
413
+ # # The returned object is of type Google::Protobuf::Empty.
414
+ # p result
415
+ #
341
416
  def cancel_operation request, options = nil
342
417
  raise ::ArgumentError, "request must be provided" if request.nil?
343
418
 
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1
24
- VERSION = "0.13.1"
24
+ VERSION = "0.14.0"
25
25
  end
26
26
  end
27
27
  end
@@ -66,6 +66,20 @@ module Google
66
66
  # a non-empty value will be returned. The user will not be aware of what
67
67
  # non-empty value to expect.
68
68
  NON_EMPTY_DEFAULT = 7
69
+
70
+ # Denotes that the field in a resource (a message annotated with
71
+ # google.api.resource) is used in the resource name to uniquely identify the
72
+ # resource. For AIP-compliant APIs, this should only be applied to the
73
+ # `name` field on the resource.
74
+ #
75
+ # This behavior should not be applied to references to other resources within
76
+ # the message.
77
+ #
78
+ # The identifier field of resources often have different field behavior
79
+ # depending on the request it is embedded in (e.g. for Create methods name
80
+ # is optional and unused, while for Update methods it is required). Instead
81
+ # of method-specific annotations, only `IDENTIFIER` is required.
82
+ IDENTIFIER = 8
69
83
  end
70
84
  end
71
85
  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.13.1
4
+ version: 0.14.0
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-06-06 00:00:00.000000000 Z
11
+ date: 2023-09-12 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.1
19
+ version: 0.20.0
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.19.1
29
+ version: 0.20.0
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
32
  version: 2.a
@@ -233,7 +233,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
233
233
  - !ruby/object:Gem::Version
234
234
  version: '0'
235
235
  requirements: []
236
- rubygems_version: 3.4.2
236
+ rubygems_version: 3.4.19
237
237
  signing_key:
238
238
  specification_version: 4
239
239
  summary: Converts audio to text by applying powerful neural network models.