google-cloud-speech-v2 0.a → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +12 -0
- data/AUTHENTICATION.md +151 -0
- data/README.md +144 -8
- data/lib/google/cloud/speech/v2/cloud_speech_pb.rb +460 -0
- data/lib/google/cloud/speech/v2/cloud_speech_services_pb.rb +98 -0
- data/lib/google/cloud/speech/v2/rest.rb +37 -0
- data/lib/google/cloud/speech/v2/speech/client.rb +2789 -0
- data/lib/google/cloud/speech/v2/speech/credentials.rb +51 -0
- data/lib/google/cloud/speech/v2/speech/operations.rb +768 -0
- data/lib/google/cloud/speech/v2/speech/paths.rb +168 -0
- data/lib/google/cloud/speech/v2/speech/rest/client.rb +2074 -0
- data/lib/google/cloud/speech/v2/speech/rest/operations.rb +793 -0
- data/lib/google/cloud/speech/v2/speech/rest/service_stub.rb +1358 -0
- data/lib/google/cloud/speech/v2/speech/rest.rb +53 -0
- data/lib/google/cloud/speech/v2/speech.rb +56 -0
- data/lib/google/cloud/speech/v2/version.rb +7 -2
- data/lib/google/cloud/speech/v2.rb +45 -0
- data/lib/google-cloud-speech-v2.rb +21 -0
- data/proto_docs/README.md +4 -0
- data/proto_docs/google/api/client.rb +318 -0
- data/proto_docs/google/api/field_behavior.rb +71 -0
- data/proto_docs/google/api/launch_stage.rb +71 -0
- data/proto_docs/google/api/resource.rb +222 -0
- data/proto_docs/google/cloud/speech/v2/cloud_speech.rb +1692 -0
- data/proto_docs/google/longrunning/operations.rb +164 -0
- data/proto_docs/google/protobuf/any.rb +141 -0
- data/proto_docs/google/protobuf/duration.rb +98 -0
- data/proto_docs/google/protobuf/empty.rb +34 -0
- data/proto_docs/google/protobuf/field_mask.rb +229 -0
- data/proto_docs/google/protobuf/timestamp.rb +129 -0
- data/proto_docs/google/rpc/status.rb +48 -0
- metadata +191 -13
@@ -0,0 +1,460 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# source: google/cloud/speech/v2/cloud_speech.proto
|
3
|
+
|
4
|
+
require 'google/protobuf'
|
5
|
+
|
6
|
+
require 'google/api/annotations_pb'
|
7
|
+
require 'google/api/client_pb'
|
8
|
+
require 'google/api/field_behavior_pb'
|
9
|
+
require 'google/api/resource_pb'
|
10
|
+
require 'google/longrunning/operations_pb'
|
11
|
+
require 'google/protobuf/duration_pb'
|
12
|
+
require 'google/protobuf/field_mask_pb'
|
13
|
+
require 'google/protobuf/timestamp_pb'
|
14
|
+
require 'google/rpc/status_pb'
|
15
|
+
|
16
|
+
Google::Protobuf::DescriptorPool.generated_pool.build do
|
17
|
+
add_file("google/cloud/speech/v2/cloud_speech.proto", :syntax => :proto3) do
|
18
|
+
add_message "google.cloud.speech.v2.CreateRecognizerRequest" do
|
19
|
+
optional :recognizer, :message, 1, "google.cloud.speech.v2.Recognizer"
|
20
|
+
optional :validate_only, :bool, 2
|
21
|
+
optional :recognizer_id, :string, 3
|
22
|
+
optional :parent, :string, 4
|
23
|
+
end
|
24
|
+
add_message "google.cloud.speech.v2.OperationMetadata" do
|
25
|
+
optional :create_time, :message, 1, "google.protobuf.Timestamp"
|
26
|
+
optional :update_time, :message, 2, "google.protobuf.Timestamp"
|
27
|
+
optional :resource, :string, 3
|
28
|
+
optional :method, :string, 4
|
29
|
+
optional :kms_key_name, :string, 6
|
30
|
+
optional :kms_key_version_name, :string, 7
|
31
|
+
optional :progress_percent, :int32, 22
|
32
|
+
oneof :request do
|
33
|
+
optional :batch_recognize_request, :message, 8, "google.cloud.speech.v2.BatchRecognizeRequest"
|
34
|
+
optional :create_recognizer_request, :message, 9, "google.cloud.speech.v2.CreateRecognizerRequest"
|
35
|
+
optional :update_recognizer_request, :message, 10, "google.cloud.speech.v2.UpdateRecognizerRequest"
|
36
|
+
optional :delete_recognizer_request, :message, 11, "google.cloud.speech.v2.DeleteRecognizerRequest"
|
37
|
+
optional :undelete_recognizer_request, :message, 12, "google.cloud.speech.v2.UndeleteRecognizerRequest"
|
38
|
+
optional :create_custom_class_request, :message, 13, "google.cloud.speech.v2.CreateCustomClassRequest"
|
39
|
+
optional :update_custom_class_request, :message, 14, "google.cloud.speech.v2.UpdateCustomClassRequest"
|
40
|
+
optional :delete_custom_class_request, :message, 15, "google.cloud.speech.v2.DeleteCustomClassRequest"
|
41
|
+
optional :undelete_custom_class_request, :message, 16, "google.cloud.speech.v2.UndeleteCustomClassRequest"
|
42
|
+
optional :create_phrase_set_request, :message, 17, "google.cloud.speech.v2.CreatePhraseSetRequest"
|
43
|
+
optional :update_phrase_set_request, :message, 18, "google.cloud.speech.v2.UpdatePhraseSetRequest"
|
44
|
+
optional :delete_phrase_set_request, :message, 19, "google.cloud.speech.v2.DeletePhraseSetRequest"
|
45
|
+
optional :undelete_phrase_set_request, :message, 20, "google.cloud.speech.v2.UndeletePhraseSetRequest"
|
46
|
+
optional :update_config_request, :message, 21, "google.cloud.speech.v2.UpdateConfigRequest"
|
47
|
+
end
|
48
|
+
oneof :metadata do
|
49
|
+
optional :batch_recognize_metadata, :message, 23, "google.cloud.speech.v2.BatchRecognizeMetadata"
|
50
|
+
end
|
51
|
+
end
|
52
|
+
add_message "google.cloud.speech.v2.ListRecognizersRequest" do
|
53
|
+
optional :parent, :string, 1
|
54
|
+
optional :page_size, :int32, 2
|
55
|
+
optional :page_token, :string, 3
|
56
|
+
optional :show_deleted, :bool, 4
|
57
|
+
end
|
58
|
+
add_message "google.cloud.speech.v2.ListRecognizersResponse" do
|
59
|
+
repeated :recognizers, :message, 1, "google.cloud.speech.v2.Recognizer"
|
60
|
+
optional :next_page_token, :string, 2
|
61
|
+
end
|
62
|
+
add_message "google.cloud.speech.v2.GetRecognizerRequest" do
|
63
|
+
optional :name, :string, 1
|
64
|
+
end
|
65
|
+
add_message "google.cloud.speech.v2.UpdateRecognizerRequest" do
|
66
|
+
optional :recognizer, :message, 1, "google.cloud.speech.v2.Recognizer"
|
67
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
68
|
+
optional :validate_only, :bool, 4
|
69
|
+
end
|
70
|
+
add_message "google.cloud.speech.v2.DeleteRecognizerRequest" do
|
71
|
+
optional :name, :string, 1
|
72
|
+
optional :validate_only, :bool, 2
|
73
|
+
optional :allow_missing, :bool, 4
|
74
|
+
optional :etag, :string, 3
|
75
|
+
end
|
76
|
+
add_message "google.cloud.speech.v2.UndeleteRecognizerRequest" do
|
77
|
+
optional :name, :string, 1
|
78
|
+
optional :validate_only, :bool, 3
|
79
|
+
optional :etag, :string, 4
|
80
|
+
end
|
81
|
+
add_message "google.cloud.speech.v2.Recognizer" do
|
82
|
+
optional :name, :string, 1
|
83
|
+
optional :uid, :string, 2
|
84
|
+
optional :display_name, :string, 3
|
85
|
+
optional :model, :string, 4
|
86
|
+
repeated :language_codes, :string, 17
|
87
|
+
optional :default_recognition_config, :message, 6, "google.cloud.speech.v2.RecognitionConfig"
|
88
|
+
map :annotations, :string, :string, 7
|
89
|
+
optional :state, :enum, 8, "google.cloud.speech.v2.Recognizer.State"
|
90
|
+
optional :create_time, :message, 9, "google.protobuf.Timestamp"
|
91
|
+
optional :update_time, :message, 10, "google.protobuf.Timestamp"
|
92
|
+
optional :delete_time, :message, 11, "google.protobuf.Timestamp"
|
93
|
+
optional :expire_time, :message, 14, "google.protobuf.Timestamp"
|
94
|
+
optional :etag, :string, 12
|
95
|
+
optional :reconciling, :bool, 13
|
96
|
+
optional :kms_key_name, :string, 15
|
97
|
+
optional :kms_key_version_name, :string, 16
|
98
|
+
end
|
99
|
+
add_enum "google.cloud.speech.v2.Recognizer.State" do
|
100
|
+
value :STATE_UNSPECIFIED, 0
|
101
|
+
value :ACTIVE, 2
|
102
|
+
value :DELETED, 4
|
103
|
+
end
|
104
|
+
add_message "google.cloud.speech.v2.AutoDetectDecodingConfig" do
|
105
|
+
end
|
106
|
+
add_message "google.cloud.speech.v2.ExplicitDecodingConfig" do
|
107
|
+
optional :encoding, :enum, 1, "google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding"
|
108
|
+
optional :sample_rate_hertz, :int32, 2
|
109
|
+
optional :audio_channel_count, :int32, 3
|
110
|
+
end
|
111
|
+
add_enum "google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding" do
|
112
|
+
value :AUDIO_ENCODING_UNSPECIFIED, 0
|
113
|
+
value :LINEAR16, 1
|
114
|
+
value :MULAW, 2
|
115
|
+
value :ALAW, 3
|
116
|
+
end
|
117
|
+
add_message "google.cloud.speech.v2.SpeakerDiarizationConfig" do
|
118
|
+
optional :min_speaker_count, :int32, 2
|
119
|
+
optional :max_speaker_count, :int32, 3
|
120
|
+
end
|
121
|
+
add_message "google.cloud.speech.v2.RecognitionFeatures" do
|
122
|
+
optional :profanity_filter, :bool, 1
|
123
|
+
optional :enable_word_time_offsets, :bool, 2
|
124
|
+
optional :enable_word_confidence, :bool, 3
|
125
|
+
optional :enable_automatic_punctuation, :bool, 4
|
126
|
+
optional :enable_spoken_punctuation, :bool, 14
|
127
|
+
optional :enable_spoken_emojis, :bool, 15
|
128
|
+
optional :multi_channel_mode, :enum, 17, "google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode"
|
129
|
+
optional :diarization_config, :message, 9, "google.cloud.speech.v2.SpeakerDiarizationConfig"
|
130
|
+
optional :max_alternatives, :int32, 16
|
131
|
+
end
|
132
|
+
add_enum "google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode" do
|
133
|
+
value :MULTI_CHANNEL_MODE_UNSPECIFIED, 0
|
134
|
+
value :SEPARATE_RECOGNITION_PER_CHANNEL, 1
|
135
|
+
end
|
136
|
+
add_message "google.cloud.speech.v2.SpeechAdaptation" do
|
137
|
+
repeated :phrase_sets, :message, 1, "google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet"
|
138
|
+
repeated :custom_classes, :message, 2, "google.cloud.speech.v2.CustomClass"
|
139
|
+
end
|
140
|
+
add_message "google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet" do
|
141
|
+
oneof :value do
|
142
|
+
optional :phrase_set, :string, 1
|
143
|
+
optional :inline_phrase_set, :message, 2, "google.cloud.speech.v2.PhraseSet"
|
144
|
+
end
|
145
|
+
end
|
146
|
+
add_message "google.cloud.speech.v2.RecognitionConfig" do
|
147
|
+
optional :features, :message, 2, "google.cloud.speech.v2.RecognitionFeatures"
|
148
|
+
optional :adaptation, :message, 6, "google.cloud.speech.v2.SpeechAdaptation"
|
149
|
+
oneof :decoding_config do
|
150
|
+
optional :auto_decoding_config, :message, 7, "google.cloud.speech.v2.AutoDetectDecodingConfig"
|
151
|
+
optional :explicit_decoding_config, :message, 8, "google.cloud.speech.v2.ExplicitDecodingConfig"
|
152
|
+
end
|
153
|
+
end
|
154
|
+
add_message "google.cloud.speech.v2.RecognizeRequest" do
|
155
|
+
optional :recognizer, :string, 3
|
156
|
+
optional :config, :message, 1, "google.cloud.speech.v2.RecognitionConfig"
|
157
|
+
optional :config_mask, :message, 8, "google.protobuf.FieldMask"
|
158
|
+
oneof :audio_source do
|
159
|
+
optional :content, :bytes, 5
|
160
|
+
optional :uri, :string, 6
|
161
|
+
end
|
162
|
+
end
|
163
|
+
add_message "google.cloud.speech.v2.RecognitionResponseMetadata" do
|
164
|
+
optional :total_billed_duration, :message, 6, "google.protobuf.Duration"
|
165
|
+
end
|
166
|
+
add_message "google.cloud.speech.v2.SpeechRecognitionAlternative" do
|
167
|
+
optional :transcript, :string, 1
|
168
|
+
optional :confidence, :float, 2
|
169
|
+
repeated :words, :message, 3, "google.cloud.speech.v2.WordInfo"
|
170
|
+
end
|
171
|
+
add_message "google.cloud.speech.v2.WordInfo" do
|
172
|
+
optional :start_offset, :message, 1, "google.protobuf.Duration"
|
173
|
+
optional :end_offset, :message, 2, "google.protobuf.Duration"
|
174
|
+
optional :word, :string, 3
|
175
|
+
optional :confidence, :float, 4
|
176
|
+
optional :speaker_label, :string, 6
|
177
|
+
end
|
178
|
+
add_message "google.cloud.speech.v2.SpeechRecognitionResult" do
|
179
|
+
repeated :alternatives, :message, 1, "google.cloud.speech.v2.SpeechRecognitionAlternative"
|
180
|
+
optional :channel_tag, :int32, 2
|
181
|
+
optional :result_end_offset, :message, 4, "google.protobuf.Duration"
|
182
|
+
optional :language_code, :string, 5
|
183
|
+
end
|
184
|
+
add_message "google.cloud.speech.v2.RecognizeResponse" do
|
185
|
+
repeated :results, :message, 3, "google.cloud.speech.v2.SpeechRecognitionResult"
|
186
|
+
optional :metadata, :message, 2, "google.cloud.speech.v2.RecognitionResponseMetadata"
|
187
|
+
end
|
188
|
+
add_message "google.cloud.speech.v2.StreamingRecognitionFeatures" do
|
189
|
+
optional :enable_voice_activity_events, :bool, 1
|
190
|
+
optional :interim_results, :bool, 2
|
191
|
+
optional :voice_activity_timeout, :message, 3, "google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout"
|
192
|
+
end
|
193
|
+
add_message "google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout" do
|
194
|
+
optional :speech_start_timeout, :message, 1, "google.protobuf.Duration"
|
195
|
+
optional :speech_end_timeout, :message, 2, "google.protobuf.Duration"
|
196
|
+
end
|
197
|
+
add_message "google.cloud.speech.v2.StreamingRecognitionConfig" do
|
198
|
+
optional :config, :message, 1, "google.cloud.speech.v2.RecognitionConfig"
|
199
|
+
optional :config_mask, :message, 3, "google.protobuf.FieldMask"
|
200
|
+
optional :streaming_features, :message, 2, "google.cloud.speech.v2.StreamingRecognitionFeatures"
|
201
|
+
end
|
202
|
+
add_message "google.cloud.speech.v2.StreamingRecognizeRequest" do
|
203
|
+
optional :recognizer, :string, 3
|
204
|
+
oneof :streaming_request do
|
205
|
+
optional :streaming_config, :message, 6, "google.cloud.speech.v2.StreamingRecognitionConfig"
|
206
|
+
optional :audio, :bytes, 5
|
207
|
+
end
|
208
|
+
end
|
209
|
+
add_message "google.cloud.speech.v2.BatchRecognizeRequest" do
|
210
|
+
optional :recognizer, :string, 1
|
211
|
+
optional :config, :message, 4, "google.cloud.speech.v2.RecognitionConfig"
|
212
|
+
optional :config_mask, :message, 5, "google.protobuf.FieldMask"
|
213
|
+
repeated :files, :message, 3, "google.cloud.speech.v2.BatchRecognizeFileMetadata"
|
214
|
+
end
|
215
|
+
add_message "google.cloud.speech.v2.BatchRecognizeResponse" do
|
216
|
+
map :results, :string, :message, 1, "google.cloud.speech.v2.BatchRecognizeFileResult"
|
217
|
+
end
|
218
|
+
add_message "google.cloud.speech.v2.BatchRecognizeFileResult" do
|
219
|
+
optional :uri, :string, 1
|
220
|
+
optional :error, :message, 2, "google.rpc.Status"
|
221
|
+
end
|
222
|
+
add_message "google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata" do
|
223
|
+
optional :progress_percent, :int32, 1
|
224
|
+
optional :error, :message, 2, "google.rpc.Status"
|
225
|
+
optional :uri, :string, 3
|
226
|
+
end
|
227
|
+
add_message "google.cloud.speech.v2.BatchRecognizeMetadata" do
|
228
|
+
map :transcription_metadata, :string, :message, 1, "google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata"
|
229
|
+
end
|
230
|
+
add_message "google.cloud.speech.v2.BatchRecognizeFileMetadata" do
|
231
|
+
optional :config, :message, 4, "google.cloud.speech.v2.RecognitionConfig"
|
232
|
+
optional :config_mask, :message, 5, "google.protobuf.FieldMask"
|
233
|
+
oneof :audio_source do
|
234
|
+
optional :uri, :string, 1
|
235
|
+
end
|
236
|
+
end
|
237
|
+
add_message "google.cloud.speech.v2.StreamingRecognitionResult" do
|
238
|
+
repeated :alternatives, :message, 1, "google.cloud.speech.v2.SpeechRecognitionAlternative"
|
239
|
+
optional :is_final, :bool, 2
|
240
|
+
optional :stability, :float, 3
|
241
|
+
optional :result_end_offset, :message, 4, "google.protobuf.Duration"
|
242
|
+
optional :channel_tag, :int32, 5
|
243
|
+
optional :language_code, :string, 6
|
244
|
+
end
|
245
|
+
add_message "google.cloud.speech.v2.StreamingRecognizeResponse" do
|
246
|
+
repeated :results, :message, 6, "google.cloud.speech.v2.StreamingRecognitionResult"
|
247
|
+
optional :speech_event_type, :enum, 3, "google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType"
|
248
|
+
optional :speech_event_offset, :message, 7, "google.protobuf.Duration"
|
249
|
+
optional :metadata, :message, 5, "google.cloud.speech.v2.RecognitionResponseMetadata"
|
250
|
+
end
|
251
|
+
add_enum "google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType" do
|
252
|
+
value :SPEECH_EVENT_TYPE_UNSPECIFIED, 0
|
253
|
+
value :END_OF_SINGLE_UTTERANCE, 1
|
254
|
+
value :SPEECH_ACTIVITY_BEGIN, 2
|
255
|
+
value :SPEECH_ACTIVITY_END, 3
|
256
|
+
end
|
257
|
+
add_message "google.cloud.speech.v2.Config" do
|
258
|
+
optional :name, :string, 1
|
259
|
+
optional :kms_key_name, :string, 2
|
260
|
+
optional :update_time, :message, 3, "google.protobuf.Timestamp"
|
261
|
+
end
|
262
|
+
add_message "google.cloud.speech.v2.GetConfigRequest" do
|
263
|
+
optional :name, :string, 1
|
264
|
+
end
|
265
|
+
add_message "google.cloud.speech.v2.UpdateConfigRequest" do
|
266
|
+
optional :config, :message, 1, "google.cloud.speech.v2.Config"
|
267
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
268
|
+
end
|
269
|
+
add_message "google.cloud.speech.v2.CustomClass" do
|
270
|
+
optional :name, :string, 1
|
271
|
+
optional :uid, :string, 2
|
272
|
+
optional :display_name, :string, 4
|
273
|
+
repeated :items, :message, 5, "google.cloud.speech.v2.CustomClass.ClassItem"
|
274
|
+
optional :state, :enum, 15, "google.cloud.speech.v2.CustomClass.State"
|
275
|
+
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
276
|
+
optional :update_time, :message, 7, "google.protobuf.Timestamp"
|
277
|
+
optional :delete_time, :message, 8, "google.protobuf.Timestamp"
|
278
|
+
optional :expire_time, :message, 9, "google.protobuf.Timestamp"
|
279
|
+
map :annotations, :string, :string, 10
|
280
|
+
optional :etag, :string, 11
|
281
|
+
optional :reconciling, :bool, 12
|
282
|
+
optional :kms_key_name, :string, 13
|
283
|
+
optional :kms_key_version_name, :string, 14
|
284
|
+
end
|
285
|
+
add_message "google.cloud.speech.v2.CustomClass.ClassItem" do
|
286
|
+
optional :value, :string, 1
|
287
|
+
end
|
288
|
+
add_enum "google.cloud.speech.v2.CustomClass.State" do
|
289
|
+
value :STATE_UNSPECIFIED, 0
|
290
|
+
value :ACTIVE, 2
|
291
|
+
value :DELETED, 4
|
292
|
+
end
|
293
|
+
add_message "google.cloud.speech.v2.PhraseSet" do
|
294
|
+
optional :name, :string, 1
|
295
|
+
optional :uid, :string, 2
|
296
|
+
repeated :phrases, :message, 3, "google.cloud.speech.v2.PhraseSet.Phrase"
|
297
|
+
optional :boost, :float, 4
|
298
|
+
optional :display_name, :string, 5
|
299
|
+
optional :state, :enum, 15, "google.cloud.speech.v2.PhraseSet.State"
|
300
|
+
optional :create_time, :message, 6, "google.protobuf.Timestamp"
|
301
|
+
optional :update_time, :message, 7, "google.protobuf.Timestamp"
|
302
|
+
optional :delete_time, :message, 8, "google.protobuf.Timestamp"
|
303
|
+
optional :expire_time, :message, 9, "google.protobuf.Timestamp"
|
304
|
+
map :annotations, :string, :string, 10
|
305
|
+
optional :etag, :string, 11
|
306
|
+
optional :reconciling, :bool, 12
|
307
|
+
optional :kms_key_name, :string, 13
|
308
|
+
optional :kms_key_version_name, :string, 14
|
309
|
+
end
|
310
|
+
add_message "google.cloud.speech.v2.PhraseSet.Phrase" do
|
311
|
+
optional :value, :string, 1
|
312
|
+
optional :boost, :float, 2
|
313
|
+
end
|
314
|
+
add_enum "google.cloud.speech.v2.PhraseSet.State" do
|
315
|
+
value :STATE_UNSPECIFIED, 0
|
316
|
+
value :ACTIVE, 2
|
317
|
+
value :DELETED, 4
|
318
|
+
end
|
319
|
+
add_message "google.cloud.speech.v2.CreateCustomClassRequest" do
|
320
|
+
optional :custom_class, :message, 1, "google.cloud.speech.v2.CustomClass"
|
321
|
+
optional :validate_only, :bool, 2
|
322
|
+
optional :custom_class_id, :string, 3
|
323
|
+
optional :parent, :string, 4
|
324
|
+
end
|
325
|
+
add_message "google.cloud.speech.v2.ListCustomClassesRequest" do
|
326
|
+
optional :parent, :string, 1
|
327
|
+
optional :page_size, :int32, 2
|
328
|
+
optional :page_token, :string, 3
|
329
|
+
optional :show_deleted, :bool, 4
|
330
|
+
end
|
331
|
+
add_message "google.cloud.speech.v2.ListCustomClassesResponse" do
|
332
|
+
repeated :custom_classes, :message, 1, "google.cloud.speech.v2.CustomClass"
|
333
|
+
optional :next_page_token, :string, 2
|
334
|
+
end
|
335
|
+
add_message "google.cloud.speech.v2.GetCustomClassRequest" do
|
336
|
+
optional :name, :string, 1
|
337
|
+
end
|
338
|
+
add_message "google.cloud.speech.v2.UpdateCustomClassRequest" do
|
339
|
+
optional :custom_class, :message, 1, "google.cloud.speech.v2.CustomClass"
|
340
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
341
|
+
optional :validate_only, :bool, 4
|
342
|
+
end
|
343
|
+
add_message "google.cloud.speech.v2.DeleteCustomClassRequest" do
|
344
|
+
optional :name, :string, 1
|
345
|
+
optional :validate_only, :bool, 2
|
346
|
+
optional :allow_missing, :bool, 4
|
347
|
+
optional :etag, :string, 3
|
348
|
+
end
|
349
|
+
add_message "google.cloud.speech.v2.UndeleteCustomClassRequest" do
|
350
|
+
optional :name, :string, 1
|
351
|
+
optional :validate_only, :bool, 3
|
352
|
+
optional :etag, :string, 4
|
353
|
+
end
|
354
|
+
add_message "google.cloud.speech.v2.CreatePhraseSetRequest" do
|
355
|
+
optional :phrase_set, :message, 1, "google.cloud.speech.v2.PhraseSet"
|
356
|
+
optional :validate_only, :bool, 2
|
357
|
+
optional :phrase_set_id, :string, 3
|
358
|
+
optional :parent, :string, 4
|
359
|
+
end
|
360
|
+
add_message "google.cloud.speech.v2.ListPhraseSetsRequest" do
|
361
|
+
optional :parent, :string, 1
|
362
|
+
optional :page_size, :int32, 2
|
363
|
+
optional :page_token, :string, 3
|
364
|
+
optional :show_deleted, :bool, 4
|
365
|
+
end
|
366
|
+
add_message "google.cloud.speech.v2.ListPhraseSetsResponse" do
|
367
|
+
repeated :phrase_sets, :message, 1, "google.cloud.speech.v2.PhraseSet"
|
368
|
+
optional :next_page_token, :string, 2
|
369
|
+
end
|
370
|
+
add_message "google.cloud.speech.v2.GetPhraseSetRequest" do
|
371
|
+
optional :name, :string, 1
|
372
|
+
end
|
373
|
+
add_message "google.cloud.speech.v2.UpdatePhraseSetRequest" do
|
374
|
+
optional :phrase_set, :message, 1, "google.cloud.speech.v2.PhraseSet"
|
375
|
+
optional :update_mask, :message, 2, "google.protobuf.FieldMask"
|
376
|
+
optional :validate_only, :bool, 4
|
377
|
+
end
|
378
|
+
add_message "google.cloud.speech.v2.DeletePhraseSetRequest" do
|
379
|
+
optional :name, :string, 1
|
380
|
+
optional :validate_only, :bool, 2
|
381
|
+
optional :allow_missing, :bool, 4
|
382
|
+
optional :etag, :string, 3
|
383
|
+
end
|
384
|
+
add_message "google.cloud.speech.v2.UndeletePhraseSetRequest" do
|
385
|
+
optional :name, :string, 1
|
386
|
+
optional :validate_only, :bool, 3
|
387
|
+
optional :etag, :string, 4
|
388
|
+
end
|
389
|
+
end
|
390
|
+
end
|
391
|
+
|
392
|
+
module Google
|
393
|
+
module Cloud
|
394
|
+
module Speech
|
395
|
+
module V2
|
396
|
+
CreateRecognizerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.CreateRecognizerRequest").msgclass
|
397
|
+
OperationMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.OperationMetadata").msgclass
|
398
|
+
ListRecognizersRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.ListRecognizersRequest").msgclass
|
399
|
+
ListRecognizersResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.ListRecognizersResponse").msgclass
|
400
|
+
GetRecognizerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.GetRecognizerRequest").msgclass
|
401
|
+
UpdateRecognizerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.UpdateRecognizerRequest").msgclass
|
402
|
+
DeleteRecognizerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.DeleteRecognizerRequest").msgclass
|
403
|
+
UndeleteRecognizerRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.UndeleteRecognizerRequest").msgclass
|
404
|
+
Recognizer = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.Recognizer").msgclass
|
405
|
+
Recognizer::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.Recognizer.State").enummodule
|
406
|
+
AutoDetectDecodingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.AutoDetectDecodingConfig").msgclass
|
407
|
+
ExplicitDecodingConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.ExplicitDecodingConfig").msgclass
|
408
|
+
ExplicitDecodingConfig::AudioEncoding = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.ExplicitDecodingConfig.AudioEncoding").enummodule
|
409
|
+
SpeakerDiarizationConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.SpeakerDiarizationConfig").msgclass
|
410
|
+
RecognitionFeatures = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.RecognitionFeatures").msgclass
|
411
|
+
RecognitionFeatures::MultiChannelMode = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.RecognitionFeatures.MultiChannelMode").enummodule
|
412
|
+
SpeechAdaptation = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.SpeechAdaptation").msgclass
|
413
|
+
SpeechAdaptation::AdaptationPhraseSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet").msgclass
|
414
|
+
RecognitionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.RecognitionConfig").msgclass
|
415
|
+
RecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.RecognizeRequest").msgclass
|
416
|
+
RecognitionResponseMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.RecognitionResponseMetadata").msgclass
|
417
|
+
SpeechRecognitionAlternative = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.SpeechRecognitionAlternative").msgclass
|
418
|
+
WordInfo = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.WordInfo").msgclass
|
419
|
+
SpeechRecognitionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.SpeechRecognitionResult").msgclass
|
420
|
+
RecognizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.RecognizeResponse").msgclass
|
421
|
+
StreamingRecognitionFeatures = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.StreamingRecognitionFeatures").msgclass
|
422
|
+
StreamingRecognitionFeatures::VoiceActivityTimeout = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.StreamingRecognitionFeatures.VoiceActivityTimeout").msgclass
|
423
|
+
StreamingRecognitionConfig = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.StreamingRecognitionConfig").msgclass
|
424
|
+
StreamingRecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.StreamingRecognizeRequest").msgclass
|
425
|
+
BatchRecognizeRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.BatchRecognizeRequest").msgclass
|
426
|
+
BatchRecognizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.BatchRecognizeResponse").msgclass
|
427
|
+
BatchRecognizeFileResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.BatchRecognizeFileResult").msgclass
|
428
|
+
BatchRecognizeTranscriptionMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.BatchRecognizeTranscriptionMetadata").msgclass
|
429
|
+
BatchRecognizeMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.BatchRecognizeMetadata").msgclass
|
430
|
+
BatchRecognizeFileMetadata = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.BatchRecognizeFileMetadata").msgclass
|
431
|
+
StreamingRecognitionResult = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.StreamingRecognitionResult").msgclass
|
432
|
+
StreamingRecognizeResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.StreamingRecognizeResponse").msgclass
|
433
|
+
StreamingRecognizeResponse::SpeechEventType = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType").enummodule
|
434
|
+
Config = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.Config").msgclass
|
435
|
+
GetConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.GetConfigRequest").msgclass
|
436
|
+
UpdateConfigRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.UpdateConfigRequest").msgclass
|
437
|
+
CustomClass = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.CustomClass").msgclass
|
438
|
+
CustomClass::ClassItem = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.CustomClass.ClassItem").msgclass
|
439
|
+
CustomClass::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.CustomClass.State").enummodule
|
440
|
+
PhraseSet = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.PhraseSet").msgclass
|
441
|
+
PhraseSet::Phrase = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.PhraseSet.Phrase").msgclass
|
442
|
+
PhraseSet::State = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.PhraseSet.State").enummodule
|
443
|
+
CreateCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.CreateCustomClassRequest").msgclass
|
444
|
+
ListCustomClassesRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.ListCustomClassesRequest").msgclass
|
445
|
+
ListCustomClassesResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.ListCustomClassesResponse").msgclass
|
446
|
+
GetCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.GetCustomClassRequest").msgclass
|
447
|
+
UpdateCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.UpdateCustomClassRequest").msgclass
|
448
|
+
DeleteCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.DeleteCustomClassRequest").msgclass
|
449
|
+
UndeleteCustomClassRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.UndeleteCustomClassRequest").msgclass
|
450
|
+
CreatePhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.CreatePhraseSetRequest").msgclass
|
451
|
+
ListPhraseSetsRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.ListPhraseSetsRequest").msgclass
|
452
|
+
ListPhraseSetsResponse = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.ListPhraseSetsResponse").msgclass
|
453
|
+
GetPhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.GetPhraseSetRequest").msgclass
|
454
|
+
UpdatePhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.UpdatePhraseSetRequest").msgclass
|
455
|
+
DeletePhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.DeletePhraseSetRequest").msgclass
|
456
|
+
UndeletePhraseSetRequest = ::Google::Protobuf::DescriptorPool.generated_pool.lookup("google.cloud.speech.v2.UndeletePhraseSetRequest").msgclass
|
457
|
+
end
|
458
|
+
end
|
459
|
+
end
|
460
|
+
end
|
@@ -0,0 +1,98 @@
|
|
1
|
+
# Generated by the protocol buffer compiler. DO NOT EDIT!
|
2
|
+
# Source: google/cloud/speech/v2/cloud_speech.proto for package 'google.cloud.speech.v2'
|
3
|
+
# Original file comments:
|
4
|
+
# Copyright 2022 Google LLC
|
5
|
+
#
|
6
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
7
|
+
# you may not use this file except in compliance with the License.
|
8
|
+
# You may obtain a copy of the License at
|
9
|
+
#
|
10
|
+
# http://www.apache.org/licenses/LICENSE-2.0
|
11
|
+
#
|
12
|
+
# Unless required by applicable law or agreed to in writing, software
|
13
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
14
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
15
|
+
# See the License for the specific language governing permissions and
|
16
|
+
# limitations under the License.
|
17
|
+
#
|
18
|
+
|
19
|
+
require 'grpc'
|
20
|
+
require 'google/cloud/speech/v2/cloud_speech_pb'
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Speech
|
25
|
+
module V2
|
26
|
+
module Speech
|
27
|
+
# Enables speech transcription and resource management.
|
28
|
+
class Service
|
29
|
+
|
30
|
+
include ::GRPC::GenericService
|
31
|
+
|
32
|
+
self.marshal_class_method = :encode
|
33
|
+
self.unmarshal_class_method = :decode
|
34
|
+
self.service_name = 'google.cloud.speech.v2.Speech'
|
35
|
+
|
36
|
+
# Creates a [Recognizer][google.cloud.speech.v2.Recognizer].
|
37
|
+
rpc :CreateRecognizer, ::Google::Cloud::Speech::V2::CreateRecognizerRequest, ::Google::Longrunning::Operation
|
38
|
+
# Lists Recognizers.
|
39
|
+
rpc :ListRecognizers, ::Google::Cloud::Speech::V2::ListRecognizersRequest, ::Google::Cloud::Speech::V2::ListRecognizersResponse
|
40
|
+
# Returns the requested
|
41
|
+
# [Recognizer][google.cloud.speech.v2.Recognizer]. Fails with
|
42
|
+
# [NOT_FOUND][google.rpc.Code.NOT_FOUND] if the requested recognizer doesn't
|
43
|
+
# exist.
|
44
|
+
rpc :GetRecognizer, ::Google::Cloud::Speech::V2::GetRecognizerRequest, ::Google::Cloud::Speech::V2::Recognizer
|
45
|
+
# Updates the [Recognizer][google.cloud.speech.v2.Recognizer].
|
46
|
+
rpc :UpdateRecognizer, ::Google::Cloud::Speech::V2::UpdateRecognizerRequest, ::Google::Longrunning::Operation
|
47
|
+
# Deletes the [Recognizer][google.cloud.speech.v2.Recognizer].
|
48
|
+
rpc :DeleteRecognizer, ::Google::Cloud::Speech::V2::DeleteRecognizerRequest, ::Google::Longrunning::Operation
|
49
|
+
# Undeletes the [Recognizer][google.cloud.speech.v2.Recognizer].
|
50
|
+
rpc :UndeleteRecognizer, ::Google::Cloud::Speech::V2::UndeleteRecognizerRequest, ::Google::Longrunning::Operation
|
51
|
+
# Performs synchronous Speech recognition: receive results after all audio
|
52
|
+
# has been sent and processed.
|
53
|
+
rpc :Recognize, ::Google::Cloud::Speech::V2::RecognizeRequest, ::Google::Cloud::Speech::V2::RecognizeResponse
|
54
|
+
# Performs bidirectional streaming speech recognition: receive results while
|
55
|
+
# sending audio. This method is only available via the gRPC API (not REST).
|
56
|
+
rpc :StreamingRecognize, stream(::Google::Cloud::Speech::V2::StreamingRecognizeRequest), stream(::Google::Cloud::Speech::V2::StreamingRecognizeResponse)
|
57
|
+
# Performs batch asynchronous speech recognition: send a request with N
|
58
|
+
# audio files and receive a long running operation that can be polled to see
|
59
|
+
# when the transcriptions are finished.
|
60
|
+
rpc :BatchRecognize, ::Google::Cloud::Speech::V2::BatchRecognizeRequest, ::Google::Longrunning::Operation
|
61
|
+
# Returns the requested [Config][google.cloud.speech.v2.Config].
|
62
|
+
rpc :GetConfig, ::Google::Cloud::Speech::V2::GetConfigRequest, ::Google::Cloud::Speech::V2::Config
|
63
|
+
# Updates the [Config][google.cloud.speech.v2.Config].
|
64
|
+
rpc :UpdateConfig, ::Google::Cloud::Speech::V2::UpdateConfigRequest, ::Google::Cloud::Speech::V2::Config
|
65
|
+
# Creates a [CustomClass][google.cloud.speech.v2.CustomClass].
|
66
|
+
rpc :CreateCustomClass, ::Google::Cloud::Speech::V2::CreateCustomClassRequest, ::Google::Longrunning::Operation
|
67
|
+
# Lists CustomClasses.
|
68
|
+
rpc :ListCustomClasses, ::Google::Cloud::Speech::V2::ListCustomClassesRequest, ::Google::Cloud::Speech::V2::ListCustomClassesResponse
|
69
|
+
# Returns the requested
|
70
|
+
# [CustomClass][google.cloud.speech.v2.CustomClass].
|
71
|
+
rpc :GetCustomClass, ::Google::Cloud::Speech::V2::GetCustomClassRequest, ::Google::Cloud::Speech::V2::CustomClass
|
72
|
+
# Updates the [CustomClass][google.cloud.speech.v2.CustomClass].
|
73
|
+
rpc :UpdateCustomClass, ::Google::Cloud::Speech::V2::UpdateCustomClassRequest, ::Google::Longrunning::Operation
|
74
|
+
# Deletes the [CustomClass][google.cloud.speech.v2.CustomClass].
|
75
|
+
rpc :DeleteCustomClass, ::Google::Cloud::Speech::V2::DeleteCustomClassRequest, ::Google::Longrunning::Operation
|
76
|
+
# Undeletes the [CustomClass][google.cloud.speech.v2.CustomClass].
|
77
|
+
rpc :UndeleteCustomClass, ::Google::Cloud::Speech::V2::UndeleteCustomClassRequest, ::Google::Longrunning::Operation
|
78
|
+
# Creates a [PhraseSet][google.cloud.speech.v2.PhraseSet].
|
79
|
+
rpc :CreatePhraseSet, ::Google::Cloud::Speech::V2::CreatePhraseSetRequest, ::Google::Longrunning::Operation
|
80
|
+
# Lists PhraseSets.
|
81
|
+
rpc :ListPhraseSets, ::Google::Cloud::Speech::V2::ListPhraseSetsRequest, ::Google::Cloud::Speech::V2::ListPhraseSetsResponse
|
82
|
+
# Returns the requested
|
83
|
+
# [PhraseSet][google.cloud.speech.v2.PhraseSet].
|
84
|
+
rpc :GetPhraseSet, ::Google::Cloud::Speech::V2::GetPhraseSetRequest, ::Google::Cloud::Speech::V2::PhraseSet
|
85
|
+
# Updates the [PhraseSet][google.cloud.speech.v2.PhraseSet].
|
86
|
+
rpc :UpdatePhraseSet, ::Google::Cloud::Speech::V2::UpdatePhraseSetRequest, ::Google::Longrunning::Operation
|
87
|
+
# Deletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
|
88
|
+
rpc :DeletePhraseSet, ::Google::Cloud::Speech::V2::DeletePhraseSetRequest, ::Google::Longrunning::Operation
|
89
|
+
# Undeletes the [PhraseSet][google.cloud.speech.v2.PhraseSet].
|
90
|
+
rpc :UndeletePhraseSet, ::Google::Cloud::Speech::V2::UndeletePhraseSetRequest, ::Google::Longrunning::Operation
|
91
|
+
end
|
92
|
+
|
93
|
+
Stub = Service.rpc_stub_class
|
94
|
+
end
|
95
|
+
end
|
96
|
+
end
|
97
|
+
end
|
98
|
+
end
|
@@ -0,0 +1,37 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
# Copyright 2023 Google LLC
|
4
|
+
#
|
5
|
+
# Licensed under the Apache License, Version 2.0 (the "License");
|
6
|
+
# you may not use this file except in compliance with the License.
|
7
|
+
# You may obtain a copy of the License at
|
8
|
+
#
|
9
|
+
# https://www.apache.org/licenses/LICENSE-2.0
|
10
|
+
#
|
11
|
+
# Unless required by applicable law or agreed to in writing, software
|
12
|
+
# distributed under the License is distributed on an "AS IS" BASIS,
|
13
|
+
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
14
|
+
# See the License for the specific language governing permissions and
|
15
|
+
# limitations under the License.
|
16
|
+
|
17
|
+
# Auto-generated by gapic-generator-ruby. DO NOT EDIT!
|
18
|
+
|
19
|
+
require "google/cloud/speech/v2/speech/rest"
|
20
|
+
require "google/cloud/speech/v2/version"
|
21
|
+
|
22
|
+
module Google
|
23
|
+
module Cloud
|
24
|
+
module Speech
|
25
|
+
##
|
26
|
+
# To load just the REST part of this package, including all its services, and instantiate a REST client:
|
27
|
+
#
|
28
|
+
# @example
|
29
|
+
#
|
30
|
+
# require "google/cloud/speech/v2/rest"
|
31
|
+
# client = ::Google::Cloud::Speech::V2::Speech::Rest::Client.new
|
32
|
+
#
|
33
|
+
module V2
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
37
|
+
end
|