google-cloud-speech-v1p1beta1 0.21.0 → 0.21.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: 332d5087e76fb2f5d3971ad68c898e2d7f86d14f842ec23ea70e755ff0229d6f
4
- data.tar.gz: da9fd11509921f6b5375decce1aecb4fb2f1a15e2bf34b9340ad7abf03adee64
3
+ metadata.gz: 85a08eda2a2512a895144f83a36f723b599d430dd33c43b7313dd6a86587ecc5
4
+ data.tar.gz: 2b06431ba68c1785ba963a8c75538c12c6faf53efdb561b1c91425cad5e8debb
5
5
  SHA512:
6
- metadata.gz: b19c122c3f56a2a20ab9a4d91fe48008e69866991ecd7da90d8cf149b0f809d6a4615b4e73e7dd6504b007f731b45cfdfc28381d23f954ecaa2204deb72d5254
7
- data.tar.gz: ac3b45b146d1d4d435fbcd8904659fa440e21298332fdcb54610e0e2665c18b07c6cd9030f26da3ea3efe304a67758d24a6824cf0339f11d0270717ad4d54ed9
6
+ metadata.gz: 7659f054c69214e5b58fa314cd9971616b4330cdea68e51714a8e0f80204230e728edec6d338d2639d9294b5ef6326e3ba8cff07e92ee6f220e8928feb99fd62
7
+ data.tar.gz: b64a7486095c14f9ff7cb78e59a6e3dc95479ab15e9459e2a5fbd515cae60854302294656704889120b5a227fc597b5340ced2500dbf3c38178a581e09fc00f1
@@ -30,6 +30,9 @@ module Google
30
30
  # Service that implements Google Cloud Speech Adaptation API.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "speech.$UNIVERSE_DOMAIN$"
35
38
 
@@ -234,10 +237,11 @@ module Google
234
237
  # Customize the options with defaults
235
238
  metadata = @config.rpcs.create_phrase_set.metadata.to_h
236
239
 
237
- # Set x-goog-api-client and x-goog-user-project headers
240
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
238
241
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
239
242
  lib_name: @config.lib_name, lib_version: @config.lib_version,
240
243
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
244
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
241
245
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
242
246
 
243
247
  header_params = {}
@@ -327,10 +331,11 @@ module Google
327
331
  # Customize the options with defaults
328
332
  metadata = @config.rpcs.get_phrase_set.metadata.to_h
329
333
 
330
- # Set x-goog-api-client and x-goog-user-project headers
334
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
331
335
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
332
336
  lib_name: @config.lib_name, lib_version: @config.lib_version,
333
337
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
338
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
334
339
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
335
340
 
336
341
  header_params = {}
@@ -435,10 +440,11 @@ module Google
435
440
  # Customize the options with defaults
436
441
  metadata = @config.rpcs.list_phrase_set.metadata.to_h
437
442
 
438
- # Set x-goog-api-client and x-goog-user-project headers
443
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
439
444
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
440
445
  lib_name: @config.lib_name, lib_version: @config.lib_version,
441
446
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
447
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
442
448
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
443
449
 
444
450
  header_params = {}
@@ -534,10 +540,11 @@ module Google
534
540
  # Customize the options with defaults
535
541
  metadata = @config.rpcs.update_phrase_set.metadata.to_h
536
542
 
537
- # Set x-goog-api-client and x-goog-user-project headers
543
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
538
544
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
539
545
  lib_name: @config.lib_name, lib_version: @config.lib_version,
540
546
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
547
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
541
548
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
542
549
 
543
550
  header_params = {}
@@ -621,10 +628,11 @@ module Google
621
628
  # Customize the options with defaults
622
629
  metadata = @config.rpcs.delete_phrase_set.metadata.to_h
623
630
 
624
- # Set x-goog-api-client and x-goog-user-project headers
631
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
625
632
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
626
633
  lib_name: @config.lib_name, lib_version: @config.lib_version,
627
634
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
635
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
628
636
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
629
637
 
630
638
  header_params = {}
@@ -723,10 +731,11 @@ module Google
723
731
  # Customize the options with defaults
724
732
  metadata = @config.rpcs.create_custom_class.metadata.to_h
725
733
 
726
- # Set x-goog-api-client and x-goog-user-project headers
734
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
727
735
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
728
736
  lib_name: @config.lib_name, lib_version: @config.lib_version,
729
737
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
738
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
730
739
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
731
740
 
732
741
  header_params = {}
@@ -810,10 +819,11 @@ module Google
810
819
  # Customize the options with defaults
811
820
  metadata = @config.rpcs.get_custom_class.metadata.to_h
812
821
 
813
- # Set x-goog-api-client and x-goog-user-project headers
822
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
814
823
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
815
824
  lib_name: @config.lib_name, lib_version: @config.lib_version,
816
825
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
826
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
817
827
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
818
828
 
819
829
  header_params = {}
@@ -918,10 +928,11 @@ module Google
918
928
  # Customize the options with defaults
919
929
  metadata = @config.rpcs.list_custom_classes.metadata.to_h
920
930
 
921
- # Set x-goog-api-client and x-goog-user-project headers
931
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
922
932
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
923
933
  lib_name: @config.lib_name, lib_version: @config.lib_version,
924
934
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
935
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
925
936
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
926
937
 
927
938
  header_params = {}
@@ -1017,10 +1028,11 @@ module Google
1017
1028
  # Customize the options with defaults
1018
1029
  metadata = @config.rpcs.update_custom_class.metadata.to_h
1019
1030
 
1020
- # Set x-goog-api-client and x-goog-user-project headers
1031
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1021
1032
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1022
1033
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1023
1034
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
1035
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1024
1036
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1025
1037
 
1026
1038
  header_params = {}
@@ -1110,10 +1122,11 @@ module Google
1110
1122
  # Customize the options with defaults
1111
1123
  metadata = @config.rpcs.delete_custom_class.metadata.to_h
1112
1124
 
1113
- # Set x-goog-api-client and x-goog-user-project headers
1125
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1114
1126
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1115
1127
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1116
1128
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
1129
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1117
1130
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1118
1131
 
1119
1132
  header_params = {}
@@ -32,6 +32,9 @@ module Google
32
32
  # Service that implements Google Cloud Speech Adaptation API.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "speech.$UNIVERSE_DOMAIN$"
37
40
 
@@ -226,12 +229,13 @@ module Google
226
229
  # Customize the options with defaults
227
230
  call_metadata = @config.rpcs.create_phrase_set.metadata.to_h
228
231
 
229
- # Set x-goog-api-client and x-goog-user-project headers
232
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
230
233
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
231
234
  lib_name: @config.lib_name, lib_version: @config.lib_version,
232
235
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
233
236
  transports_version_send: [:rest]
234
237
 
238
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
235
239
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
236
240
 
237
241
  options.apply_defaults timeout: @config.rpcs.create_phrase_set.timeout,
@@ -312,12 +316,13 @@ module Google
312
316
  # Customize the options with defaults
313
317
  call_metadata = @config.rpcs.get_phrase_set.metadata.to_h
314
318
 
315
- # Set x-goog-api-client and x-goog-user-project headers
319
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
316
320
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
317
321
  lib_name: @config.lib_name, lib_version: @config.lib_version,
318
322
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
319
323
  transports_version_send: [:rest]
320
324
 
325
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
321
326
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
322
327
 
323
328
  options.apply_defaults timeout: @config.rpcs.get_phrase_set.timeout,
@@ -413,12 +418,13 @@ module Google
413
418
  # Customize the options with defaults
414
419
  call_metadata = @config.rpcs.list_phrase_set.metadata.to_h
415
420
 
416
- # Set x-goog-api-client and x-goog-user-project headers
421
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
417
422
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
418
423
  lib_name: @config.lib_name, lib_version: @config.lib_version,
419
424
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
420
425
  transports_version_send: [:rest]
421
426
 
427
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
422
428
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
423
429
 
424
430
  options.apply_defaults timeout: @config.rpcs.list_phrase_set.timeout,
@@ -505,12 +511,13 @@ module Google
505
511
  # Customize the options with defaults
506
512
  call_metadata = @config.rpcs.update_phrase_set.metadata.to_h
507
513
 
508
- # Set x-goog-api-client and x-goog-user-project headers
514
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
509
515
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
510
516
  lib_name: @config.lib_name, lib_version: @config.lib_version,
511
517
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
512
518
  transports_version_send: [:rest]
513
519
 
520
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
514
521
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
515
522
 
516
523
  options.apply_defaults timeout: @config.rpcs.update_phrase_set.timeout,
@@ -585,12 +592,13 @@ module Google
585
592
  # Customize the options with defaults
586
593
  call_metadata = @config.rpcs.delete_phrase_set.metadata.to_h
587
594
 
588
- # Set x-goog-api-client and x-goog-user-project headers
595
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
589
596
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
590
597
  lib_name: @config.lib_name, lib_version: @config.lib_version,
591
598
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
592
599
  transports_version_send: [:rest]
593
600
 
601
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
594
602
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
595
603
 
596
604
  options.apply_defaults timeout: @config.rpcs.delete_phrase_set.timeout,
@@ -680,12 +688,13 @@ module Google
680
688
  # Customize the options with defaults
681
689
  call_metadata = @config.rpcs.create_custom_class.metadata.to_h
682
690
 
683
- # Set x-goog-api-client and x-goog-user-project headers
691
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
684
692
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
685
693
  lib_name: @config.lib_name, lib_version: @config.lib_version,
686
694
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
687
695
  transports_version_send: [:rest]
688
696
 
697
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
689
698
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
690
699
 
691
700
  options.apply_defaults timeout: @config.rpcs.create_custom_class.timeout,
@@ -760,12 +769,13 @@ module Google
760
769
  # Customize the options with defaults
761
770
  call_metadata = @config.rpcs.get_custom_class.metadata.to_h
762
771
 
763
- # Set x-goog-api-client and x-goog-user-project headers
772
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
764
773
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
765
774
  lib_name: @config.lib_name, lib_version: @config.lib_version,
766
775
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
767
776
  transports_version_send: [:rest]
768
777
 
778
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
769
779
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
770
780
 
771
781
  options.apply_defaults timeout: @config.rpcs.get_custom_class.timeout,
@@ -861,12 +871,13 @@ module Google
861
871
  # Customize the options with defaults
862
872
  call_metadata = @config.rpcs.list_custom_classes.metadata.to_h
863
873
 
864
- # Set x-goog-api-client and x-goog-user-project headers
874
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
865
875
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
866
876
  lib_name: @config.lib_name, lib_version: @config.lib_version,
867
877
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
868
878
  transports_version_send: [:rest]
869
879
 
880
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
870
881
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
871
882
 
872
883
  options.apply_defaults timeout: @config.rpcs.list_custom_classes.timeout,
@@ -953,12 +964,13 @@ module Google
953
964
  # Customize the options with defaults
954
965
  call_metadata = @config.rpcs.update_custom_class.metadata.to_h
955
966
 
956
- # Set x-goog-api-client and x-goog-user-project headers
967
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
957
968
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
958
969
  lib_name: @config.lib_name, lib_version: @config.lib_version,
959
970
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
960
971
  transports_version_send: [:rest]
961
972
 
973
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
962
974
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
963
975
 
964
976
  options.apply_defaults timeout: @config.rpcs.update_custom_class.timeout,
@@ -1039,12 +1051,13 @@ module Google
1039
1051
  # Customize the options with defaults
1040
1052
  call_metadata = @config.rpcs.delete_custom_class.metadata.to_h
1041
1053
 
1042
- # Set x-goog-api-client and x-goog-user-project headers
1054
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
1043
1055
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
1044
1056
  lib_name: @config.lib_name, lib_version: @config.lib_version,
1045
1057
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
1046
1058
  transports_version_send: [:rest]
1047
1059
 
1060
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
1048
1061
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
1049
1062
 
1050
1063
  options.apply_defaults timeout: @config.rpcs.delete_custom_class.timeout,
@@ -30,6 +30,9 @@ module Google
30
30
  # Service that implements Google Cloud Speech API.
31
31
  #
32
32
  class Client
33
+ # @private
34
+ API_VERSION = ""
35
+
33
36
  # @private
34
37
  DEFAULT_ENDPOINT_TEMPLATE = "speech.$UNIVERSE_DOMAIN$"
35
38
 
@@ -245,10 +248,11 @@ module Google
245
248
  # Customize the options with defaults
246
249
  metadata = @config.rpcs.recognize.metadata.to_h
247
250
 
248
- # Set x-goog-api-client and x-goog-user-project headers
251
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
249
252
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
250
253
  lib_name: @config.lib_name, lib_version: @config.lib_version,
251
254
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
255
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
252
256
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
253
257
 
254
258
  options.apply_defaults timeout: @config.rpcs.recognize.timeout,
@@ -339,10 +343,11 @@ module Google
339
343
  # Customize the options with defaults
340
344
  metadata = @config.rpcs.long_running_recognize.metadata.to_h
341
345
 
342
- # Set x-goog-api-client and x-goog-user-project headers
346
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
343
347
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
344
348
  lib_name: @config.lib_name, lib_version: @config.lib_version,
345
349
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
350
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
346
351
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
347
352
 
348
353
  options.apply_defaults timeout: @config.rpcs.long_running_recognize.timeout,
@@ -419,10 +424,11 @@ module Google
419
424
  # Customize the options with defaults
420
425
  metadata = @config.rpcs.streaming_recognize.metadata.to_h
421
426
 
422
- # Set x-goog-api-client and x-goog-user-project headers
427
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
423
428
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
424
429
  lib_name: @config.lib_name, lib_version: @config.lib_version,
425
430
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
431
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
426
432
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
427
433
 
428
434
  options.apply_defaults timeout: @config.rpcs.streaming_recognize.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Speech
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "speech.$UNIVERSE_DOMAIN$"
31
34
 
@@ -191,10 +194,11 @@ module Google
191
194
  # Customize the options with defaults
192
195
  metadata = @config.rpcs.list_operations.metadata.to_h
193
196
 
194
- # Set x-goog-api-client and x-goog-user-project headers
197
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
195
198
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
196
199
  lib_name: @config.lib_name, lib_version: @config.lib_version,
197
200
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
201
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
198
202
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
199
203
 
200
204
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -279,10 +283,11 @@ module Google
279
283
  # Customize the options with defaults
280
284
  metadata = @config.rpcs.get_operation.metadata.to_h
281
285
 
282
- # Set x-goog-api-client and x-goog-user-project headers
286
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
283
287
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
284
288
  lib_name: @config.lib_name, lib_version: @config.lib_version,
285
289
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
290
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
286
291
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
287
292
 
288
293
  header_params = {}
@@ -368,10 +373,11 @@ module Google
368
373
  # Customize the options with defaults
369
374
  metadata = @config.rpcs.delete_operation.metadata.to_h
370
375
 
371
- # Set x-goog-api-client and x-goog-user-project headers
376
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
372
377
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
373
378
  lib_name: @config.lib_name, lib_version: @config.lib_version,
374
379
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
380
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
375
381
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
376
382
 
377
383
  header_params = {}
@@ -462,10 +468,11 @@ module Google
462
468
  # Customize the options with defaults
463
469
  metadata = @config.rpcs.cancel_operation.metadata.to_h
464
470
 
465
- # Set x-goog-api-client and x-goog-user-project headers
471
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
466
472
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
467
473
  lib_name: @config.lib_name, lib_version: @config.lib_version,
468
474
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
475
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
469
476
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
470
477
 
471
478
  header_params = {}
@@ -566,10 +573,11 @@ module Google
566
573
  # Customize the options with defaults
567
574
  metadata = @config.rpcs.wait_operation.metadata.to_h
568
575
 
569
- # Set x-goog-api-client and x-goog-user-project headers
576
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
570
577
  metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
571
578
  lib_name: @config.lib_name, lib_version: @config.lib_version,
572
579
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION
580
+ metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
573
581
  metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
574
582
 
575
583
  options.apply_defaults timeout: @config.rpcs.wait_operation.timeout,
@@ -32,6 +32,9 @@ module Google
32
32
  # Service that implements Google Cloud Speech API.
33
33
  #
34
34
  class Client
35
+ # @private
36
+ API_VERSION = ""
37
+
35
38
  # @private
36
39
  DEFAULT_ENDPOINT_TEMPLATE = "speech.$UNIVERSE_DOMAIN$"
37
40
 
@@ -232,12 +235,13 @@ module Google
232
235
  # Customize the options with defaults
233
236
  call_metadata = @config.rpcs.recognize.metadata.to_h
234
237
 
235
- # Set x-goog-api-client and x-goog-user-project headers
238
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
236
239
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
237
240
  lib_name: @config.lib_name, lib_version: @config.lib_version,
238
241
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
239
242
  transports_version_send: [:rest]
240
243
 
244
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
241
245
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
242
246
 
243
247
  options.apply_defaults timeout: @config.rpcs.recognize.timeout,
@@ -327,12 +331,13 @@ module Google
327
331
  # Customize the options with defaults
328
332
  call_metadata = @config.rpcs.long_running_recognize.metadata.to_h
329
333
 
330
- # Set x-goog-api-client and x-goog-user-project headers
334
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
331
335
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
332
336
  lib_name: @config.lib_name, lib_version: @config.lib_version,
333
337
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
334
338
  transports_version_send: [:rest]
335
339
 
340
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
336
341
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
337
342
 
338
343
  options.apply_defaults timeout: @config.rpcs.long_running_recognize.timeout,
@@ -26,6 +26,9 @@ module Google
26
26
  module Rest
27
27
  # Service that implements Longrunning Operations API.
28
28
  class Operations
29
+ # @private
30
+ API_VERSION = ""
31
+
29
32
  # @private
30
33
  DEFAULT_ENDPOINT_TEMPLATE = "speech.$UNIVERSE_DOMAIN$"
31
34
 
@@ -181,12 +184,13 @@ module Google
181
184
  # Customize the options with defaults
182
185
  call_metadata = @config.rpcs.list_operations.metadata.to_h
183
186
 
184
- # Set x-goog-api-client and x-goog-user-project headers
187
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
185
188
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
186
189
  lib_name: @config.lib_name, lib_version: @config.lib_version,
187
190
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
188
191
  transports_version_send: [:rest]
189
192
 
193
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
190
194
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
191
195
 
192
196
  options.apply_defaults timeout: @config.rpcs.list_operations.timeout,
@@ -269,12 +273,13 @@ module Google
269
273
  # Customize the options with defaults
270
274
  call_metadata = @config.rpcs.get_operation.metadata.to_h
271
275
 
272
- # Set x-goog-api-client and x-goog-user-project headers
276
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
273
277
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
274
278
  lib_name: @config.lib_name, lib_version: @config.lib_version,
275
279
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
276
280
  transports_version_send: [:rest]
277
281
 
282
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
278
283
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
279
284
 
280
285
  options.apply_defaults timeout: @config.rpcs.get_operation.timeout,
@@ -351,12 +356,13 @@ module Google
351
356
  # Customize the options with defaults
352
357
  call_metadata = @config.rpcs.delete_operation.metadata.to_h
353
358
 
354
- # Set x-goog-api-client and x-goog-user-project headers
359
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
355
360
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
356
361
  lib_name: @config.lib_name, lib_version: @config.lib_version,
357
362
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
358
363
  transports_version_send: [:rest]
359
364
 
365
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
360
366
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
361
367
 
362
368
  options.apply_defaults timeout: @config.rpcs.delete_operation.timeout,
@@ -438,12 +444,13 @@ module Google
438
444
  # Customize the options with defaults
439
445
  call_metadata = @config.rpcs.cancel_operation.metadata.to_h
440
446
 
441
- # Set x-goog-api-client and x-goog-user-project headers
447
+ # Set x-goog-api-client, x-goog-user-project and x-goog-api-version headers
442
448
  call_metadata[:"x-goog-api-client"] ||= ::Gapic::Headers.x_goog_api_client \
443
449
  lib_name: @config.lib_name, lib_version: @config.lib_version,
444
450
  gapic_version: ::Google::Cloud::Speech::V1p1beta1::VERSION,
445
451
  transports_version_send: [:rest]
446
452
 
453
+ call_metadata[:"x-goog-api-version"] = API_VERSION unless API_VERSION.empty?
447
454
  call_metadata[:"x-goog-user-project"] = @quota_project_id if @quota_project_id
448
455
 
449
456
  options.apply_defaults timeout: @config.rpcs.cancel_operation.timeout,
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V1p1beta1
24
- VERSION = "0.21.0"
24
+ VERSION = "0.21.1"
25
25
  end
26
26
  end
27
27
  end
@@ -118,6 +118,10 @@ module Google
118
118
  # @return [::String]
119
119
  # Optional link to proto reference documentation. Example:
120
120
  # https://cloud.google.com/pubsub/lite/docs/reference/rpc
121
+ # @!attribute [rw] rest_reference_documentation_uri
122
+ # @return [::String]
123
+ # Optional link to REST reference documentation. Example:
124
+ # https://cloud.google.com/pubsub/lite/docs/reference/rest
121
125
  class Publishing
122
126
  include ::Google::Protobuf::MessageExts
123
127
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -192,9 +196,26 @@ module Google
192
196
  # @!attribute [rw] common
193
197
  # @return [::Google::Api::CommonLanguageSettings]
194
198
  # Some settings.
199
+ # @!attribute [rw] experimental_features
200
+ # @return [::Google::Api::PythonSettings::ExperimentalFeatures]
201
+ # Experimental features to be included during client library generation.
195
202
  class PythonSettings
196
203
  include ::Google::Protobuf::MessageExts
197
204
  extend ::Google::Protobuf::MessageExts::ClassMethods
205
+
206
+ # Experimental features to be included during client library generation.
207
+ # These fields will be deprecated once the feature graduates and is enabled
208
+ # by default.
209
+ # @!attribute [rw] rest_async_io_enabled
210
+ # @return [::Boolean]
211
+ # Enables generation of asynchronous REST clients if `rest` transport is
212
+ # enabled. By default, asynchronous REST clients will not be generated.
213
+ # This feature will be enabled by default 1 month after launching the
214
+ # feature in preview packages.
215
+ class ExperimentalFeatures
216
+ include ::Google::Protobuf::MessageExts
217
+ extend ::Google::Protobuf::MessageExts::ClassMethods
218
+ end
198
219
  end
199
220
 
200
221
  # Settings for Node client libraries.
@@ -286,6 +307,13 @@ module Google
286
307
  # @return [::String]
287
308
  # The fully qualified name of the method, for which the options below apply.
288
309
  # This is used to find the method to apply the options.
310
+ #
311
+ # Example:
312
+ #
313
+ # publishing:
314
+ # method_settings:
315
+ # - selector: google.storage.control.v2.StorageControl.CreateFolder
316
+ # # method settings for CreateFolder...
289
317
  # @!attribute [rw] long_running
290
318
  # @return [::Google::Api::MethodSettings::LongRunning]
291
319
  # Describes settings to use for long-running operations when generating
@@ -294,17 +322,14 @@ module Google
294
322
  #
295
323
  # Example of a YAML configuration::
296
324
  #
297
- # publishing:
298
- # method_settings:
325
+ # publishing:
326
+ # method_settings:
299
327
  # - selector: google.cloud.speech.v2.Speech.BatchRecognize
300
328
  # long_running:
301
- # initial_poll_delay:
302
- # seconds: 60 # 1 minute
329
+ # initial_poll_delay: 60s # 1 minute
303
330
  # poll_delay_multiplier: 1.5
304
- # max_poll_delay:
305
- # seconds: 360 # 6 minutes
306
- # total_poll_timeout:
307
- # seconds: 54000 # 90 minutes
331
+ # max_poll_delay: 360s # 6 minutes
332
+ # total_poll_timeout: 54000s # 90 minutes
308
333
  # @!attribute [rw] auto_populated_fields
309
334
  # @return [::Array<::String>]
310
335
  # List of top-level fields of the request message, that should be
@@ -313,8 +338,8 @@ module Google
313
338
  #
314
339
  # Example of a YAML configuration:
315
340
  #
316
- # publishing:
317
- # method_settings:
341
+ # publishing:
342
+ # method_settings:
318
343
  # - selector: google.example.v1.ExampleService.CreateExample
319
344
  # auto_populated_fields:
320
345
  # - request_id
@@ -124,8 +124,13 @@ module Google
124
124
  # @return [::String]
125
125
  # The plural name used in the resource name and permission names, such as
126
126
  # 'projects' for the resource name of 'projects/\\{project}' and the permission
127
- # name of 'cloudresourcemanager.googleapis.com/projects.get'. It is the same
128
- # concept of the `plural` field in k8s CRD spec
127
+ # name of 'cloudresourcemanager.googleapis.com/projects.get'. One exception
128
+ # to this is for Nested Collections that have stuttering names, as defined
129
+ # in [AIP-122](https://google.aip.dev/122#nested-collections), where the
130
+ # collection ID in the resource name pattern does not necessarily directly
131
+ # match the `plural` value.
132
+ #
133
+ # It is the same concept of the `plural` field in k8s CRD spec
129
134
  # https://kubernetes.io/docs/tasks/access-kubernetes-api/custom-resources/custom-resource-definitions/
130
135
  #
131
136
  # Note: The plural form is required even for singleton resources. See
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.21.0
4
+ version: 0.21.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: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-08-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common