google-cloud-speech-v2 0.15.0 → 1.0.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: 468a643ca3b807aaa028eff3ce7f4a0073a0ad1cdb9086153cbe1727977a9e1e
4
- data.tar.gz: 01abf07db845ba466796ef63c4b5d64715438d7618e0d58dbd75e16fffa2eb4c
3
+ metadata.gz: 0f4a4838d0d39717718050aa9d0480f64ea61593049eacef08718a3e0bb9029a
4
+ data.tar.gz: 66d8ceb5e9d7ae8c1ad192ad4d8b9b556f3680c4b043bb218e8129357898641f
5
5
  SHA512:
6
- metadata.gz: 1ccba1ad0df57e6dd3608aa97afaa6fd7105031735affe9289dccc9acd88fc48aff0382b045e456c60749510d0ac4a5f8e4db05edbb14148c3cdf9124875f6ee
7
- data.tar.gz: 12413196c793b74d561e835e5fec91353a03561df3eeaa71f646d1a4c0d975aaefe9cf4cff1169aa43191e817e730b545153172b57ecfa9d65f89b8b4981feb1
6
+ metadata.gz: 4de9dcfee03436d3a241611edfdc83aa3f9f6d19a5d20b60037c851098018bbe6a707f5dece0e669d837622080ca9325953d0bf04c476254f2dabadf2f973d7f
7
+ data.tar.gz: 5564749ca5bbdc8fff0ff7f1462419f493a4012d32380092549c86fe64803705bf30c26dba3883a95e731bca13a02577bc75c1c84074e5ef673d232961b2266a
data/README.md CHANGED
@@ -86,7 +86,7 @@ To browse ready to use code samples check [Google Cloud Samples](https://cloud.g
86
86
 
87
87
  ## Supported Ruby Versions
88
88
 
89
- This library is supported on Ruby 2.7+.
89
+ This library is supported on Ruby 3.0+.
90
90
 
91
91
  Google provides official support for Ruby versions that are actively supported
92
92
  by Ruby Core—that is, Ruby versions that are either in normal maintenance or
@@ -879,6 +879,8 @@ module Google
879
879
  # {::Google::Cloud::Speech::V2::RecognitionConfig RecognitionConfig}. As
880
880
  # with all bytes fields, proto buffers use a pure binary representation,
881
881
  # whereas JSON representations use base64.
882
+ #
883
+ # Note: The following fields are mutually exclusive: `content`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
882
884
  # @param uri [::String]
883
885
  # URI that points to a file that contains audio data bytes as specified in
884
886
  # {::Google::Cloud::Speech::V2::RecognitionConfig RecognitionConfig}. The file
@@ -889,6 +891,8 @@ module Google
889
891
  # information, see [Request
890
892
  # URIs](https://cloud.google.com/storage/docs/reference-uris).
891
893
  #
894
+ # Note: The following fields are mutually exclusive: `uri`, `content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
895
+ #
892
896
  # @yield [response, operation] Access the result along with the RPC operation
893
897
  # @yieldparam response [::Google::Cloud::Speech::V2::RecognizeResponse]
894
898
  # @yieldparam operation [::GRPC::ActiveCall::Operation]
@@ -2602,6 +2606,13 @@ module Google
2602
2606
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
2603
2607
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
2604
2608
  # * (`nil`) indicating no credentials
2609
+ #
2610
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2611
+ # external source for authentication to Google Cloud, you must validate it before
2612
+ # providing it to a Google API client library. Providing an unvalidated credential
2613
+ # configuration to Google APIs can compromise the security of your systems and data.
2614
+ # For more information, refer to [Validate credential configurations from external
2615
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2605
2616
  # @return [::Object]
2606
2617
  # @!attribute [rw] scope
2607
2618
  # The OAuth scopes
@@ -640,6 +640,13 @@ module Google
640
640
  # * (`GRPC::Core::Channel`) a gRPC channel with included credentials
641
641
  # * (`GRPC::Core::ChannelCredentials`) a gRPC credentails object
642
642
  # * (`nil`) indicating no credentials
643
+ #
644
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
645
+ # external source for authentication to Google Cloud, you must validate it before
646
+ # providing it to a Google API client library. Providing an unvalidated credential
647
+ # configuration to Google APIs can compromise the security of your systems and data.
648
+ # For more information, refer to [Validate credential configurations from external
649
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
643
650
  # @return [::Object]
644
651
  # @!attribute [rw] scope
645
652
  # The OAuth scopes
@@ -831,6 +831,8 @@ module Google
831
831
  # {::Google::Cloud::Speech::V2::RecognitionConfig RecognitionConfig}. As
832
832
  # with all bytes fields, proto buffers use a pure binary representation,
833
833
  # whereas JSON representations use base64.
834
+ #
835
+ # Note: The following fields are mutually exclusive: `content`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
834
836
  # @param uri [::String]
835
837
  # URI that points to a file that contains audio data bytes as specified in
836
838
  # {::Google::Cloud::Speech::V2::RecognitionConfig RecognitionConfig}. The file
@@ -840,6 +842,8 @@ module Google
840
842
  # [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more
841
843
  # information, see [Request
842
844
  # URIs](https://cloud.google.com/storage/docs/reference-uris).
845
+ #
846
+ # Note: The following fields are mutually exclusive: `uri`, `content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
843
847
  # @yield [result, operation] Access the result along with the TransportOperation object
844
848
  # @yieldparam result [::Google::Cloud::Speech::V2::RecognizeResponse]
845
849
  # @yieldparam operation [::Gapic::Rest::TransportOperation]
@@ -2361,6 +2365,13 @@ module Google
2361
2365
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
2362
2366
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
2363
2367
  # * (`nil`) indicating no credentials
2368
+ #
2369
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
2370
+ # external source for authentication to Google Cloud, you must validate it before
2371
+ # providing it to a Google API client library. Providing an unvalidated credential
2372
+ # configuration to Google APIs can compromise the security of your systems and data.
2373
+ # For more information, refer to [Validate credential configurations from external
2374
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
2364
2375
  # @return [::Object]
2365
2376
  # @!attribute [rw] scope
2366
2377
  # The OAuth scopes
@@ -502,6 +502,13 @@ module Google
502
502
  # * (`Signet::OAuth2::Client`) A signet oauth2 client object
503
503
  # (see the [signet docs](https://rubydoc.info/gems/signet/Signet/OAuth2/Client))
504
504
  # * (`nil`) indicating no credentials
505
+ #
506
+ # Warning: If you accept a credential configuration (JSON file or Hash) from an
507
+ # external source for authentication to Google Cloud, you must validate it before
508
+ # providing it to a Google API client library. Providing an unvalidated credential
509
+ # configuration to Google APIs can compromise the security of your systems and data.
510
+ # For more information, refer to [Validate credential configurations from external
511
+ # sources](https://cloud.google.com/docs/authentication/external/externally-sourced-credentials).
505
512
  # @return [::Object]
506
513
  # @!attribute [rw] scope
507
514
  # The OAuth scopes
@@ -21,7 +21,7 @@ module Google
21
21
  module Cloud
22
22
  module Speech
23
23
  module V2
24
- VERSION = "0.15.0"
24
+ VERSION = "1.0.0"
25
25
  end
26
26
  end
27
27
  end
@@ -221,6 +221,12 @@ module Google
221
221
  # Pythonic which are included in `protobuf>=5.29.x`. This feature will be
222
222
  # enabled by default 1 month after launching the feature in preview
223
223
  # packages.
224
+ # @!attribute [rw] unversioned_package_disabled
225
+ # @return [::Boolean]
226
+ # Disables generation of an unversioned Python package for this client
227
+ # library. This means that the module names will need to be versioned in
228
+ # import statements. For example `import google.cloud.library_v2` instead
229
+ # of `import google.cloud.library`.
224
230
  class ExperimentalFeatures
225
231
  include ::Google::Protobuf::MessageExts
226
232
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -409,6 +415,14 @@ module Google
409
415
  # @return [::Array<::String>]
410
416
  # An allowlist of the fully qualified names of RPCs that should be included
411
417
  # on public client surfaces.
418
+ # @!attribute [rw] generate_omitted_as_internal
419
+ # @return [::Boolean]
420
+ # Setting this to true indicates to the client generators that methods
421
+ # that would be excluded from the generation should instead be generated
422
+ # in a way that indicates these methods should not be consumed by
423
+ # end users. How this is expressed is up to individual language
424
+ # implementations to decide. Some examples may be: added annotations,
425
+ # obfuscated identifiers, or other language idiomatic patterns.
412
426
  class SelectiveGapicGeneration
413
427
  include ::Google::Protobuf::MessageExts
414
428
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -74,46 +74,74 @@ module Google
74
74
  # @!attribute [rw] batch_recognize_request
75
75
  # @return [::Google::Cloud::Speech::V2::BatchRecognizeRequest]
76
76
  # The BatchRecognizeRequest that spawned the Operation.
77
+ #
78
+ # Note: The following fields are mutually exclusive: `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
77
79
  # @!attribute [rw] create_recognizer_request
78
80
  # @return [::Google::Cloud::Speech::V2::CreateRecognizerRequest]
79
81
  # The CreateRecognizerRequest that spawned the Operation.
82
+ #
83
+ # Note: The following fields are mutually exclusive: `create_recognizer_request`, `batch_recognize_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
80
84
  # @!attribute [rw] update_recognizer_request
81
85
  # @return [::Google::Cloud::Speech::V2::UpdateRecognizerRequest]
82
86
  # The UpdateRecognizerRequest that spawned the Operation.
87
+ #
88
+ # Note: The following fields are mutually exclusive: `update_recognizer_request`, `batch_recognize_request`, `create_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
83
89
  # @!attribute [rw] delete_recognizer_request
84
90
  # @return [::Google::Cloud::Speech::V2::DeleteRecognizerRequest]
85
91
  # The DeleteRecognizerRequest that spawned the Operation.
92
+ #
93
+ # Note: The following fields are mutually exclusive: `delete_recognizer_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
86
94
  # @!attribute [rw] undelete_recognizer_request
87
95
  # @return [::Google::Cloud::Speech::V2::UndeleteRecognizerRequest]
88
96
  # The UndeleteRecognizerRequest that spawned the Operation.
97
+ #
98
+ # Note: The following fields are mutually exclusive: `undelete_recognizer_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
89
99
  # @!attribute [rw] create_custom_class_request
90
100
  # @return [::Google::Cloud::Speech::V2::CreateCustomClassRequest]
91
101
  # The CreateCustomClassRequest that spawned the Operation.
102
+ #
103
+ # Note: The following fields are mutually exclusive: `create_custom_class_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
92
104
  # @!attribute [rw] update_custom_class_request
93
105
  # @return [::Google::Cloud::Speech::V2::UpdateCustomClassRequest]
94
106
  # The UpdateCustomClassRequest that spawned the Operation.
107
+ #
108
+ # Note: The following fields are mutually exclusive: `update_custom_class_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
95
109
  # @!attribute [rw] delete_custom_class_request
96
110
  # @return [::Google::Cloud::Speech::V2::DeleteCustomClassRequest]
97
111
  # The DeleteCustomClassRequest that spawned the Operation.
112
+ #
113
+ # Note: The following fields are mutually exclusive: `delete_custom_class_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
98
114
  # @!attribute [rw] undelete_custom_class_request
99
115
  # @return [::Google::Cloud::Speech::V2::UndeleteCustomClassRequest]
100
116
  # The UndeleteCustomClassRequest that spawned the Operation.
117
+ #
118
+ # Note: The following fields are mutually exclusive: `undelete_custom_class_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
101
119
  # @!attribute [rw] create_phrase_set_request
102
120
  # @return [::Google::Cloud::Speech::V2::CreatePhraseSetRequest]
103
121
  # The CreatePhraseSetRequest that spawned the Operation.
122
+ #
123
+ # Note: The following fields are mutually exclusive: `create_phrase_set_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
104
124
  # @!attribute [rw] update_phrase_set_request
105
125
  # @return [::Google::Cloud::Speech::V2::UpdatePhraseSetRequest]
106
126
  # The UpdatePhraseSetRequest that spawned the Operation.
127
+ #
128
+ # Note: The following fields are mutually exclusive: `update_phrase_set_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
107
129
  # @!attribute [rw] delete_phrase_set_request
108
130
  # @return [::Google::Cloud::Speech::V2::DeletePhraseSetRequest]
109
131
  # The DeletePhraseSetRequest that spawned the Operation.
132
+ #
133
+ # Note: The following fields are mutually exclusive: `delete_phrase_set_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `undelete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
110
134
  # @!attribute [rw] undelete_phrase_set_request
111
135
  # @return [::Google::Cloud::Speech::V2::UndeletePhraseSetRequest]
112
136
  # The UndeletePhraseSetRequest that spawned the Operation.
137
+ #
138
+ # Note: The following fields are mutually exclusive: `undelete_phrase_set_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `update_config_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
113
139
  # @!attribute [rw] update_config_request
114
140
  # @deprecated This field is deprecated and may be removed in the next major version update.
115
141
  # @return [::Google::Cloud::Speech::V2::UpdateConfigRequest]
116
142
  # The UpdateConfigRequest that spawned the Operation.
143
+ #
144
+ # Note: The following fields are mutually exclusive: `update_config_request`, `batch_recognize_request`, `create_recognizer_request`, `update_recognizer_request`, `delete_recognizer_request`, `undelete_recognizer_request`, `create_custom_class_request`, `update_custom_class_request`, `delete_custom_class_request`, `undelete_custom_class_request`, `create_phrase_set_request`, `update_phrase_set_request`, `delete_phrase_set_request`, `undelete_phrase_set_request`. If a field in that set is populated, all other fields in the set will automatically be cleared.
117
145
  # @!attribute [rw] progress_percent
118
146
  # @return [::Integer]
119
147
  # The percent progress of the Operation. Values can range from 0-100. If the
@@ -617,9 +645,13 @@ module Google
617
645
  # @return [::String]
618
646
  # The name of an existing PhraseSet resource. The user must have read
619
647
  # access to the resource and it must not be deleted.
648
+ #
649
+ # Note: The following fields are mutually exclusive: `phrase_set`, `inline_phrase_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.
620
650
  # @!attribute [rw] inline_phrase_set
621
651
  # @return [::Google::Cloud::Speech::V2::PhraseSet]
622
652
  # An inline defined PhraseSet.
653
+ #
654
+ # Note: The following fields are mutually exclusive: `inline_phrase_set`, `phrase_set`. If a field in that set is populated, all other fields in the set will automatically be cleared.
623
655
  class AdaptationPhraseSet
624
656
  include ::Google::Protobuf::MessageExts
625
657
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -632,10 +664,14 @@ module Google
632
664
  # @return [::Google::Cloud::Speech::V2::AutoDetectDecodingConfig]
633
665
  # Automatically detect decoding parameters.
634
666
  # Preferred for supported formats.
667
+ #
668
+ # Note: The following fields are mutually exclusive: `auto_decoding_config`, `explicit_decoding_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
635
669
  # @!attribute [rw] explicit_decoding_config
636
670
  # @return [::Google::Cloud::Speech::V2::ExplicitDecodingConfig]
637
671
  # Explicitly specified decoding parameters.
638
672
  # Required if using headerless PCM audio (linear16, mulaw, alaw).
673
+ #
674
+ # Note: The following fields are mutually exclusive: `explicit_decoding_config`, `auto_decoding_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
639
675
  # @!attribute [rw] model
640
676
  # @return [::String]
641
677
  # Optional. Which model to use for recognition requests. Select the model
@@ -722,6 +758,8 @@ module Google
722
758
  # {::Google::Cloud::Speech::V2::RecognitionConfig RecognitionConfig}. As
723
759
  # with all bytes fields, proto buffers use a pure binary representation,
724
760
  # whereas JSON representations use base64.
761
+ #
762
+ # Note: The following fields are mutually exclusive: `content`, `uri`. If a field in that set is populated, all other fields in the set will automatically be cleared.
725
763
  # @!attribute [rw] uri
726
764
  # @return [::String]
727
765
  # URI that points to a file that contains audio data bytes as specified in
@@ -732,6 +770,8 @@ module Google
732
770
  # [INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For more
733
771
  # information, see [Request
734
772
  # URIs](https://cloud.google.com/storage/docs/reference-uris).
773
+ #
774
+ # Note: The following fields are mutually exclusive: `uri`, `content`. If a field in that set is populated, all other fields in the set will automatically be cleared.
735
775
  class RecognizeRequest
736
776
  include ::Google::Protobuf::MessageExts
737
777
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -956,10 +996,14 @@ module Google
956
996
  # StreamingRecognitionConfig to be used in this recognition attempt.
957
997
  # If provided, it will override the default RecognitionConfig stored in the
958
998
  # Recognizer.
999
+ #
1000
+ # Note: The following fields are mutually exclusive: `streaming_config`, `audio`. If a field in that set is populated, all other fields in the set will automatically be cleared.
959
1001
  # @!attribute [rw] audio
960
1002
  # @return [::String]
961
1003
  # Inline audio bytes to be Recognized.
962
1004
  # Maximum size for this field is 15 KB per request.
1005
+ #
1006
+ # Note: The following fields are mutually exclusive: `audio`, `streaming_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
963
1007
  class StreamingRecognizeRequest
964
1008
  include ::Google::Protobuf::MessageExts
965
1009
  extend ::Google::Protobuf::MessageExts::ClassMethods
@@ -1084,6 +1128,8 @@ module Google
1084
1128
  # @return [::Google::Cloud::Speech::V2::GcsOutputConfig]
1085
1129
  # If this message is populated, recognition results are written to the
1086
1130
  # provided Google Cloud Storage URI.
1131
+ #
1132
+ # Note: The following fields are mutually exclusive: `gcs_output_config`, `inline_response_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1087
1133
  # @!attribute [rw] inline_response_config
1088
1134
  # @return [::Google::Cloud::Speech::V2::InlineOutputConfig]
1089
1135
  # If this message is populated, recognition results are provided in the
@@ -1091,6 +1137,8 @@ module Google
1091
1137
  # message of the Operation when completed. This is only supported when
1092
1138
  # calling {::Google::Cloud::Speech::V2::Speech::Client#batch_recognize BatchRecognize}
1093
1139
  # with just one audio file.
1140
+ #
1141
+ # Note: The following fields are mutually exclusive: `inline_response_config`, `gcs_output_config`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1094
1142
  # @!attribute [rw] output_format_config
1095
1143
  # @return [::Google::Cloud::Speech::V2::OutputFormatConfig]
1096
1144
  # Optional. Configuration for the format of the results stored to `output`.
@@ -1185,12 +1233,16 @@ module Google
1185
1233
  # {::Google::Cloud::Speech::V2::GcsOutputConfig GcsOutputConfig} is set in
1186
1234
  # the
1187
1235
  # [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
1236
+ #
1237
+ # Note: The following fields are mutually exclusive: `cloud_storage_result`, `inline_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1188
1238
  # @!attribute [rw] inline_result
1189
1239
  # @return [::Google::Cloud::Speech::V2::InlineResult]
1190
1240
  # Recognition results. This is populated only when
1191
1241
  # {::Google::Cloud::Speech::V2::InlineOutputConfig InlineOutputConfig} is set in
1192
1242
  # the
1193
1243
  # [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
1244
+ #
1245
+ # Note: The following fields are mutually exclusive: `inline_result`, `cloud_storage_result`. If a field in that set is populated, all other fields in the set will automatically be cleared.
1194
1246
  # @!attribute [rw] uri
1195
1247
  # @deprecated This field is deprecated and may be removed in the next major version update.
1196
1248
  # @return [::String]
@@ -40,6 +40,8 @@ module Google
40
40
  # @!attribute [rw] error
41
41
  # @return [::Google::Rpc::Status]
42
42
  # The error result of the operation in case of failure or cancellation.
43
+ #
44
+ # Note: The following fields are mutually exclusive: `error`, `response`. If a field in that set is populated, all other fields in the set will automatically be cleared.
43
45
  # @!attribute [rw] response
44
46
  # @return [::Google::Protobuf::Any]
45
47
  # The normal, successful response of the operation. If the original
@@ -50,6 +52,8 @@ module Google
50
52
  # is the original method name. For example, if the original method name
51
53
  # is `TakeSnapshot()`, the inferred response type is
52
54
  # `TakeSnapshotResponse`.
55
+ #
56
+ # Note: The following fields are mutually exclusive: `response`, `error`. If a field in that set is populated, all other fields in the set will automatically be cleared.
53
57
  class Operation
54
58
  include ::Google::Protobuf::MessageExts
55
59
  extend ::Google::Protobuf::MessageExts::ClassMethods
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: google-cloud-speech-v2
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.15.0
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Google LLC
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2025-01-08 00:00:00.000000000 Z
10
+ date: 2025-02-11 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: gapic-common
@@ -16,7 +15,7 @@ dependencies:
16
15
  requirements:
17
16
  - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: 0.24.0
18
+ version: 0.25.0
20
19
  - - "<"
21
20
  - !ruby/object:Gem::Version
22
21
  version: 2.a
@@ -26,7 +25,7 @@ dependencies:
26
25
  requirements:
27
26
  - - ">="
28
27
  - !ruby/object:Gem::Version
29
- version: 0.24.0
28
+ version: 0.25.0
30
29
  - - "<"
31
30
  - !ruby/object:Gem::Version
32
31
  version: 2.a
@@ -117,7 +116,6 @@ homepage: https://github.com/googleapis/google-cloud-ruby
117
116
  licenses:
118
117
  - Apache-2.0
119
118
  metadata: {}
120
- post_install_message:
121
119
  rdoc_options: []
122
120
  require_paths:
123
121
  - lib
@@ -125,15 +123,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
125
123
  requirements:
126
124
  - - ">="
127
125
  - !ruby/object:Gem::Version
128
- version: '2.7'
126
+ version: '3.0'
129
127
  required_rubygems_version: !ruby/object:Gem::Requirement
130
128
  requirements:
131
129
  - - ">="
132
130
  - !ruby/object:Gem::Version
133
131
  version: '0'
134
132
  requirements: []
135
- rubygems_version: 3.5.23
136
- signing_key:
133
+ rubygems_version: 3.6.3
137
134
  specification_version: 4
138
135
  summary: Converts audio to text by applying powerful neural network models.
139
136
  test_files: []