google-cloud-speech-v1 0.17.0 → 1.0.0

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: c183f6d3889e921bf556ae2d3817421dfa5acbb6edce7360bfaec96ddb9ba4c0
4
- data.tar.gz: eb69f7077f26819b7a252d9f1e5a75452aa6406c73b0ea2c8a06f4e780219472
3
+ metadata.gz: 114ff0489ab6b415f17ed7e4e5e01c85216aad4203f483806b64d632088ab00c
4
+ data.tar.gz: 0ea70c71e7483a3e27d56c17e56e96b81d931691e3a34e3bc2213f8bce5f8478
5
5
  SHA512:
6
- metadata.gz: 8134e39897e79134028b0cec679184e07d58496169a0f36ebaacaa8c7d538c8e59230f14bb05308208ceeb0c89c2d10c7db6a467fc32338ebb0334eeb28d9457
7
- data.tar.gz: 2e16fd409bcb4de6865be56ea894e9cb3b3d4363b61237b7527309b1fb374043525378d22d8ae95b73ddca2f1d7630816aede92a2534f0c2141042f470367e9c
6
+ metadata.gz: 9e29a084de4c35a0ffa53a44f60dd6fd0fa56065dbafe6ae82b64ce176e394bb989443f72f1a457b65650107a54954f4d03032df13f6ee054ac9b6672f982620
7
+ data.tar.gz: 369081785100c97352a796a1f21e17c56d085af707fa6c05882961551b3c7ba0a61276a2d0e7e01bff5e634aebb0461d4dca9682565a2f83e287b2319c58cdef
@@ -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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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::V1::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 V1
24
- VERSION = "0.17.0"
24
+ VERSION = "1.0.0"
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
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.17.0
4
+ version: 1.0.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: 2024-02-26 00:00:00.000000000 Z
11
+ date: 2024-07-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gapic-common