Debian Codegraph @

speech/apiv1/speechpb/resource.pb.go

raw
1 // Copyright 2025 Google LLC
2 //
3 // Licensed under the Apache License, Version 2.0 (the "License");
4 // you may not use this file except in compliance with the License.
5 // You may obtain a copy of the License at
6 //
7 // http://www.apache.org/licenses/LICENSE-2.0
8 //
9 // Unless required by applicable law or agreed to in writing, software
10 // distributed under the License is distributed on an "AS IS" BASIS,
11 // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
12 // See the License for the specific language governing permissions and
13 // limitations under the License.
14
15 // Code generated by protoc-gen-go. DO NOT EDIT.
16 // versions:
17 // protoc-gen-go v1.35.2
18 // protoc v4.25.7
19 // source: google/cloud/speech/v1/resource.proto
20
21 package speechpb
22
23 import (
24 _ "google.golang.org/genproto/googleapis/api/annotations"
25 protoreflect "google.golang.org/protobuf/reflect/protoreflect"
26 protoimpl "google.golang.org/protobuf/runtime/protoimpl"
27 reflect "reflect"
28 sync "sync"
29 )
30
31 const (
32 // Verify that this generated code is sufficiently up-to-date.
33 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
34 // Verify that runtime/protoimpl is sufficiently up-to-date.
35 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
36 )
37
38 // A set of words or phrases that represents a common concept likely to appear
39 // in your audio, for example a list of passenger ship names. CustomClass items
40 // can be substituted into placeholders that you set in PhraseSet phrases.
41 type CustomClass struct {
42 state protoimpl.MessageState
43 sizeCache protoimpl.SizeCache
44 unknownFields protoimpl.UnknownFields
45
46 // The resource name of the custom class.
47 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
48 // If this custom class is a resource, the custom_class_id is the resource id
49 // of the CustomClass. Case sensitive.
50 CustomClassId string `protobuf:"bytes,2,opt,name=custom_class_id,json=customClassId,proto3" json:"custom_class_id,omitempty"`
51 // A collection of class items.
52 Items []*CustomClass_ClassItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
53 }
54
55 func (x *CustomClass) Reset() {
56 *x = CustomClass{}
57 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[0]
58 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
59 ms.StoreMessageInfo(mi)
60 }
61
62 func (x *CustomClass) String() string {
63 return protoimpl.X.MessageStringOf(x)
64 }
65
66 func (*CustomClass) ProtoMessage() {}
67
68 func (x *CustomClass) ProtoReflect() protoreflect.Message {
69 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[0]
70 if x != nil {
71 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
72 if ms.LoadMessageInfo() == nil {
73 ms.StoreMessageInfo(mi)
74 }
75 return ms
76 }
77 return mi.MessageOf(x)
78 }
79
80 // Deprecated: Use CustomClass.ProtoReflect.Descriptor instead.
81 func (*CustomClass) Descriptor() ([]byte, []int) {
82 return file_google_cloud_speech_v1_resource_proto_rawDescGZIP(), []int{0}
83 }
84
85 func (x *CustomClass) GetName() string {
86 if x != nil {
87 return x.Name
88 }
89 return ""
90 }
91
92 func (x *CustomClass) GetCustomClassId() string {
93 if x != nil {
94 return x.CustomClassId
95 }
96 return ""
97 }
98
99 func (x *CustomClass) GetItems() []*CustomClass_ClassItem {
100 if x != nil {
101 return x.Items
102 }
103 return nil
104 }
105
106 // Provides "hints" to the speech recognizer to favor specific words and phrases
107 // in the results.
108 type PhraseSet struct {
109 state protoimpl.MessageState
110 sizeCache protoimpl.SizeCache
111 unknownFields protoimpl.UnknownFields
112
113 // The resource name of the phrase set.
114 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
115 // A list of word and phrases.
116 Phrases []*PhraseSet_Phrase `protobuf:"bytes,2,rep,name=phrases,proto3" json:"phrases,omitempty"`
117 // Hint Boost. Positive value will increase the probability that a specific
118 // phrase will be recognized over other similar sounding phrases. The higher
119 // the boost, the higher the chance of false positive recognition as well.
120 // Negative boost values would correspond to anti-biasing. Anti-biasing is not
121 // enabled, so negative boost will simply be ignored. Though `boost` can
122 // accept a wide range of positive values, most use cases are best served with
123 // values between 0 (exclusive) and 20. We recommend using a binary search
124 // approach to finding the optimal value for your use case as well as adding
125 // phrases both with and without boost to your requests.
126 Boost float32 `protobuf:"fixed32,4,opt,name=boost,proto3" json:"boost,omitempty"`
127 }
128
129 func (x *PhraseSet) Reset() {
130 *x = PhraseSet{}
131 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[1]
132 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
133 ms.StoreMessageInfo(mi)
134 }
135
136 func (x *PhraseSet) String() string {
137 return protoimpl.X.MessageStringOf(x)
138 }
139
140 func (*PhraseSet) ProtoMessage() {}
141
142 func (x *PhraseSet) ProtoReflect() protoreflect.Message {
143 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[1]
144 if x != nil {
145 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
146 if ms.LoadMessageInfo() == nil {
147 ms.StoreMessageInfo(mi)
148 }
149 return ms
150 }
151 return mi.MessageOf(x)
152 }
153
154 // Deprecated: Use PhraseSet.ProtoReflect.Descriptor instead.
155 func (*PhraseSet) Descriptor() ([]byte, []int) {
156 return file_google_cloud_speech_v1_resource_proto_rawDescGZIP(), []int{1}
157 }
158
159 func (x *PhraseSet) GetName() string {
160 if x != nil {
161 return x.Name
162 }
163 return ""
164 }
165
166 func (x *PhraseSet) GetPhrases() []*PhraseSet_Phrase {
167 if x != nil {
168 return x.Phrases
169 }
170 return nil
171 }
172
173 func (x *PhraseSet) GetBoost() float32 {
174 if x != nil {
175 return x.Boost
176 }
177 return 0
178 }
179
180 // Speech adaptation configuration.
181 type SpeechAdaptation struct {
182 state protoimpl.MessageState
183 sizeCache protoimpl.SizeCache
184 unknownFields protoimpl.UnknownFields
185
186 // A collection of phrase sets. To specify the hints inline, leave the
187 // phrase set's `name` blank and fill in the rest of its fields. Any
188 // phrase set can use any custom class.
189 PhraseSets []*PhraseSet `protobuf:"bytes,1,rep,name=phrase_sets,json=phraseSets,proto3" json:"phrase_sets,omitempty"`
190 // A collection of phrase set resource names to use.
191 PhraseSetReferences []string `protobuf:"bytes,2,rep,name=phrase_set_references,json=phraseSetReferences,proto3" json:"phrase_set_references,omitempty"`
192 // A collection of custom classes. To specify the classes inline, leave the
193 // class' `name` blank and fill in the rest of its fields, giving it a unique
194 // `custom_class_id`. Refer to the inline defined class in phrase hints by its
195 // `custom_class_id`.
196 CustomClasses []*CustomClass `protobuf:"bytes,3,rep,name=custom_classes,json=customClasses,proto3" json:"custom_classes,omitempty"`
197 // Augmented Backus-Naur form (ABNF) is a standardized grammar notation
198 // comprised by a set of derivation rules.
199 // See specifications: https://www.w3.org/TR/speech-grammar
200 AbnfGrammar *SpeechAdaptation_ABNFGrammar `protobuf:"bytes,4,opt,name=abnf_grammar,json=abnfGrammar,proto3" json:"abnf_grammar,omitempty"`
201 }
202
203 func (x *SpeechAdaptation) Reset() {
204 *x = SpeechAdaptation{}
205 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[2]
206 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
207 ms.StoreMessageInfo(mi)
208 }
209
210 func (x *SpeechAdaptation) String() string {
211 return protoimpl.X.MessageStringOf(x)
212 }
213
214 func (*SpeechAdaptation) ProtoMessage() {}
215
216 func (x *SpeechAdaptation) ProtoReflect() protoreflect.Message {
217 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[2]
218 if x != nil {
219 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
220 if ms.LoadMessageInfo() == nil {
221 ms.StoreMessageInfo(mi)
222 }
223 return ms
224 }
225 return mi.MessageOf(x)
226 }
227
228 // Deprecated: Use SpeechAdaptation.ProtoReflect.Descriptor instead.
229 func (*SpeechAdaptation) Descriptor() ([]byte, []int) {
230 return file_google_cloud_speech_v1_resource_proto_rawDescGZIP(), []int{2}
231 }
232
233 func (x *SpeechAdaptation) GetPhraseSets() []*PhraseSet {
234 if x != nil {
235 return x.PhraseSets
236 }
237 return nil
238 }
239
240 func (x *SpeechAdaptation) GetPhraseSetReferences() []string {
241 if x != nil {
242 return x.PhraseSetReferences
243 }
244 return nil
245 }
246
247 func (x *SpeechAdaptation) GetCustomClasses() []*CustomClass {
248 if x != nil {
249 return x.CustomClasses
250 }
251 return nil
252 }
253
254 func (x *SpeechAdaptation) GetAbnfGrammar() *SpeechAdaptation_ABNFGrammar {
255 if x != nil {
256 return x.AbnfGrammar
257 }
258 return nil
259 }
260
261 // Transcription normalization configuration. Use transcription normalization
262 // to automatically replace parts of the transcript with phrases of your
263 // choosing. For StreamingRecognize, this normalization only applies to stable
264 // partial transcripts (stability > 0.8) and final transcripts.
265 type TranscriptNormalization struct {
266 state protoimpl.MessageState
267 sizeCache protoimpl.SizeCache
268 unknownFields protoimpl.UnknownFields
269
270 // A list of replacement entries. We will perform replacement with one entry
271 // at a time. For example, the second entry in ["cat" => "dog", "mountain cat"
272 // => "mountain dog"] will never be applied because we will always process the
273 // first entry before it. At most 100 entries.
274 Entries []*TranscriptNormalization_Entry `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"`
275 }
276
277 func (x *TranscriptNormalization) Reset() {
278 *x = TranscriptNormalization{}
279 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[3]
280 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
281 ms.StoreMessageInfo(mi)
282 }
283
284 func (x *TranscriptNormalization) String() string {
285 return protoimpl.X.MessageStringOf(x)
286 }
287
288 func (*TranscriptNormalization) ProtoMessage() {}
289
290 func (x *TranscriptNormalization) ProtoReflect() protoreflect.Message {
291 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[3]
292 if x != nil {
293 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
294 if ms.LoadMessageInfo() == nil {
295 ms.StoreMessageInfo(mi)
296 }
297 return ms
298 }
299 return mi.MessageOf(x)
300 }
301
302 // Deprecated: Use TranscriptNormalization.ProtoReflect.Descriptor instead.
303 func (*TranscriptNormalization) Descriptor() ([]byte, []int) {
304 return file_google_cloud_speech_v1_resource_proto_rawDescGZIP(), []int{3}
305 }
306
307 func (x *TranscriptNormalization) GetEntries() []*TranscriptNormalization_Entry {
308 if x != nil {
309 return x.Entries
310 }
311 return nil
312 }
313
314 // An item of the class.
315 type CustomClass_ClassItem struct {
316 state protoimpl.MessageState
317 sizeCache protoimpl.SizeCache
318 unknownFields protoimpl.UnknownFields
319
320 // The class item's value.
321 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
322 }
323
324 func (x *CustomClass_ClassItem) Reset() {
325 *x = CustomClass_ClassItem{}
326 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[4]
327 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
328 ms.StoreMessageInfo(mi)
329 }
330
331 func (x *CustomClass_ClassItem) String() string {
332 return protoimpl.X.MessageStringOf(x)
333 }
334
335 func (*CustomClass_ClassItem) ProtoMessage() {}
336
337 func (x *CustomClass_ClassItem) ProtoReflect() protoreflect.Message {
338 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[4]
339 if x != nil {
340 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
341 if ms.LoadMessageInfo() == nil {
342 ms.StoreMessageInfo(mi)
343 }
344 return ms
345 }
346 return mi.MessageOf(x)
347 }
348
349 // Deprecated: Use CustomClass_ClassItem.ProtoReflect.Descriptor instead.
350 func (*CustomClass_ClassItem) Descriptor() ([]byte, []int) {
351 return file_google_cloud_speech_v1_resource_proto_rawDescGZIP(), []int{0, 0}
352 }
353
354 func (x *CustomClass_ClassItem) GetValue() string {
355 if x != nil {
356 return x.Value
357 }
358 return ""
359 }
360
361 // A phrases containing words and phrase "hints" so that
362 // the speech recognition is more likely to recognize them. This can be used
363 // to improve the accuracy for specific words and phrases, for example, if
364 // specific commands are typically spoken by the user. This can also be used
365 // to add additional words to the vocabulary of the recognizer. See
366 // [usage limits](https://cloud.google.com/speech-to-text/quotas#content).
367 //
368 // List items can also include pre-built or custom classes containing groups
369 // of words that represent common concepts that occur in natural language. For
370 // example, rather than providing a phrase hint for every month of the
371 // year (e.g. "i was born in january", "i was born in febuary", ...), use the
372 // pre-built `$MONTH` class improves the likelihood of correctly transcribing
373 // audio that includes months (e.g. "i was born in $month").
374 // To refer to pre-built classes, use the class' symbol prepended with `$`
375 // e.g. `$MONTH`. To refer to custom classes that were defined inline in the
376 // request, set the class's `custom_class_id` to a string unique to all class
377 // resources and inline classes. Then use the class' id wrapped in $`{...}`
378 // e.g. "${my-months}". To refer to custom classes resources, use the class'
379 // id wrapped in `${}` (e.g. `${my-months}`).
380 //
381 // Speech-to-Text supports three locations: `global`, `us` (US North America),
382 // and `eu` (Europe). If you are calling the `speech.googleapis.com`
383 // endpoint, use the `global` location. To specify a region, use a
384 // [regional endpoint](https://cloud.google.com/speech-to-text/docs/endpoints)
385 // with matching `us` or `eu` location value.
386 type PhraseSet_Phrase struct {
387 state protoimpl.MessageState
388 sizeCache protoimpl.SizeCache
389 unknownFields protoimpl.UnknownFields
390
391 // The phrase itself.
392 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
393 // Hint Boost. Overrides the boost set at the phrase set level.
394 // Positive value will increase the probability that a specific phrase will
395 // be recognized over other similar sounding phrases. The higher the boost,
396 // the higher the chance of false positive recognition as well. Negative
397 // boost will simply be ignored. Though `boost` can accept a wide range of
398 // positive values, most use cases are best served
399 // with values between 0 and 20. We recommend using a binary search approach
400 // to finding the optimal value for your use case as well as adding
401 // phrases both with and without boost to your requests.
402 Boost float32 `protobuf:"fixed32,2,opt,name=boost,proto3" json:"boost,omitempty"`
403 }
404
405 func (x *PhraseSet_Phrase) Reset() {
406 *x = PhraseSet_Phrase{}
407 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[5]
408 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
409 ms.StoreMessageInfo(mi)
410 }
411
412 func (x *PhraseSet_Phrase) String() string {
413 return protoimpl.X.MessageStringOf(x)
414 }
415
416 func (*PhraseSet_Phrase) ProtoMessage() {}
417
418 func (x *PhraseSet_Phrase) ProtoReflect() protoreflect.Message {
419 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[5]
420 if x != nil {
421 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
422 if ms.LoadMessageInfo() == nil {
423 ms.StoreMessageInfo(mi)
424 }
425 return ms
426 }
427 return mi.MessageOf(x)
428 }
429
430 // Deprecated: Use PhraseSet_Phrase.ProtoReflect.Descriptor instead.
431 func (*PhraseSet_Phrase) Descriptor() ([]byte, []int) {
432 return file_google_cloud_speech_v1_resource_proto_rawDescGZIP(), []int{1, 0}
433 }
434
435 func (x *PhraseSet_Phrase) GetValue() string {
436 if x != nil {
437 return x.Value
438 }
439 return ""
440 }
441
442 func (x *PhraseSet_Phrase) GetBoost() float32 {
443 if x != nil {
444 return x.Boost
445 }
446 return 0
447 }
448
449 type SpeechAdaptation_ABNFGrammar struct {
450 state protoimpl.MessageState
451 sizeCache protoimpl.SizeCache
452 unknownFields protoimpl.UnknownFields
453
454 // All declarations and rules of an ABNF grammar broken up into multiple
455 // strings that will end up concatenated.
456 AbnfStrings []string `protobuf:"bytes,1,rep,name=abnf_strings,json=abnfStrings,proto3" json:"abnf_strings,omitempty"`
457 }
458
459 func (x *SpeechAdaptation_ABNFGrammar) Reset() {
460 *x = SpeechAdaptation_ABNFGrammar{}
461 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[6]
462 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
463 ms.StoreMessageInfo(mi)
464 }
465
466 func (x *SpeechAdaptation_ABNFGrammar) String() string {
467 return protoimpl.X.MessageStringOf(x)
468 }
469
470 func (*SpeechAdaptation_ABNFGrammar) ProtoMessage() {}
471
472 func (x *SpeechAdaptation_ABNFGrammar) ProtoReflect() protoreflect.Message {
473 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[6]
474 if x != nil {
475 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
476 if ms.LoadMessageInfo() == nil {
477 ms.StoreMessageInfo(mi)
478 }
479 return ms
480 }
481 return mi.MessageOf(x)
482 }
483
484 // Deprecated: Use SpeechAdaptation_ABNFGrammar.ProtoReflect.Descriptor instead.
485 func (*SpeechAdaptation_ABNFGrammar) Descriptor() ([]byte, []int) {
486 return file_google_cloud_speech_v1_resource_proto_rawDescGZIP(), []int{2, 0}
487 }
488
489 func (x *SpeechAdaptation_ABNFGrammar) GetAbnfStrings() []string {
490 if x != nil {
491 return x.AbnfStrings
492 }
493 return nil
494 }
495
496 // A single replacement configuration.
497 type TranscriptNormalization_Entry struct {
498 state protoimpl.MessageState
499 sizeCache protoimpl.SizeCache
500 unknownFields protoimpl.UnknownFields
501
502 // What to replace. Max length is 100 characters.
503 Search string `protobuf:"bytes,1,opt,name=search,proto3" json:"search,omitempty"`
504 // What to replace with. Max length is 100 characters.
505 Replace string `protobuf:"bytes,2,opt,name=replace,proto3" json:"replace,omitempty"`
506 // Whether the search is case sensitive.
507 CaseSensitive bool `protobuf:"varint,3,opt,name=case_sensitive,json=caseSensitive,proto3" json:"case_sensitive,omitempty"`
508 }
509
510 func (x *TranscriptNormalization_Entry) Reset() {
511 *x = TranscriptNormalization_Entry{}
512 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[7]
513 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
514 ms.StoreMessageInfo(mi)
515 }
516
517 func (x *TranscriptNormalization_Entry) String() string {
518 return protoimpl.X.MessageStringOf(x)
519 }
520
521 func (*TranscriptNormalization_Entry) ProtoMessage() {}
522
523 func (x *TranscriptNormalization_Entry) ProtoReflect() protoreflect.Message {
524 mi := &file_google_cloud_speech_v1_resource_proto_msgTypes[7]
525 if x != nil {
526 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
527 if ms.LoadMessageInfo() == nil {
528 ms.StoreMessageInfo(mi)
529 }
530 return ms
531 }
532 return mi.MessageOf(x)
533 }
534
535 // Deprecated: Use TranscriptNormalization_Entry.ProtoReflect.Descriptor instead.
536 func (*TranscriptNormalization_Entry) Descriptor() ([]byte, []int) {
537 return file_google_cloud_speech_v1_resource_proto_rawDescGZIP(), []int{3, 0}
538 }
539
540 func (x *TranscriptNormalization_Entry) GetSearch() string {
541 if x != nil {
542 return x.Search
543 }
544 return ""
545 }
546
547 func (x *TranscriptNormalization_Entry) GetReplace() string {
548 if x != nil {
549 return x.Replace
550 }
551 return ""
552 }
553
554 func (x *TranscriptNormalization_Entry) GetCaseSensitive() bool {
555 if x != nil {
556 return x.CaseSensitive
557 }
558 return false
559 }
560
561 var File_google_cloud_speech_v1_resource_proto protoreflect.FileDescriptor
562
563 var file_google_cloud_speech_v1_resource_proto_rawDesc = []byte{
564 0x0a, 0x25, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73,
565 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63,
566 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x16, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e,
567 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x1a,
568 0x19, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f,
569 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x9f, 0x02, 0x0a, 0x0b, 0x43,
570 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
571 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26,
572 0x0a, 0x0f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69,
573 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43,
574 0x6c, 0x61, 0x73, 0x73, 0x49, 0x64, 0x12, 0x43, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18,
575 0x03, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63,
576 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43,
577 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x2e, 0x43, 0x6c, 0x61, 0x73, 0x73,
578 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x21, 0x0a, 0x09, 0x43,
579 0x6c, 0x61, 0x73, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75,
580 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x3a, 0x6c,
581 0xea, 0x41, 0x69, 0x0a, 0x21, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
582 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 0x73, 0x74, 0x6f,
583 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x44, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73,
584 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74,
585 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f,
586 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x2f, 0x7b, 0x63,
587 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x7d, 0x22, 0x96, 0x02, 0x0a,
588 0x09, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61,
589 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x42,
590 0x0a, 0x07, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32,
591 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
592 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53,
593 0x65, 0x74, 0x2e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x52, 0x07, 0x70, 0x68, 0x72, 0x61, 0x73,
594 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28,
595 0x02, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x1a, 0x34, 0x0a, 0x06, 0x50, 0x68, 0x72, 0x61,
596 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28,
597 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x73,
598 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x3a, 0x65,
599 0xea, 0x41, 0x62, 0x0a, 0x1f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 0x6f, 0x6f, 0x67,
600 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x68, 0x72, 0x61, 0x73,
601 0x65, 0x53, 0x65, 0x74, 0x12, 0x3f, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b,
602 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f,
603 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x68,
604 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65,
605 0x5f, 0x73, 0x65, 0x74, 0x7d, 0x22, 0x87, 0x03, 0x0a, 0x10, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68,
606 0x41, 0x64, 0x61, 0x70, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x42, 0x0a, 0x0b, 0x70, 0x68,
607 0x72, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32,
608 0x21, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73,
609 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53,
610 0x65, 0x74, 0x52, 0x0a, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x73, 0x12, 0x58,
611 0x0a, 0x15, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 0x66,
612 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x24, 0xfa,
613 0x41, 0x21, 0x0a, 0x1f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
614 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65,
615 0x53, 0x65, 0x74, 0x52, 0x13, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x52, 0x65,
616 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x4a, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74,
617 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 0x0b,
618 0x32, 0x23, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e,
619 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d,
620 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61,
621 0x73, 0x73, 0x65, 0x73, 0x12, 0x57, 0x0a, 0x0c, 0x61, 0x62, 0x6e, 0x66, 0x5f, 0x67, 0x72, 0x61,
622 0x6d, 0x6d, 0x61, 0x72, 0x18, 0x04, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f,
623 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68,
624 0x2e, 0x76, 0x31, 0x2e, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x41, 0x64, 0x61, 0x70, 0x74, 0x61,
625 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x41, 0x42, 0x4e, 0x46, 0x47, 0x72, 0x61, 0x6d, 0x6d, 0x61, 0x72,
626 0x52, 0x0b, 0x61, 0x62, 0x6e, 0x66, 0x47, 0x72, 0x61, 0x6d, 0x6d, 0x61, 0x72, 0x1a, 0x30, 0x0a,
627 0x0b, 0x41, 0x42, 0x4e, 0x46, 0x47, 0x72, 0x61, 0x6d, 0x6d, 0x61, 0x72, 0x12, 0x21, 0x0a, 0x0c,
628 0x61, 0x62, 0x6e, 0x66, 0x5f, 0x73, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x18, 0x01, 0x20, 0x03,
629 0x28, 0x09, 0x52, 0x0b, 0x61, 0x62, 0x6e, 0x66, 0x53, 0x74, 0x72, 0x69, 0x6e, 0x67, 0x73, 0x22,
630 0xcc, 0x01, 0x0a, 0x17, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74, 0x4e, 0x6f,
631 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x4f, 0x0a, 0x07, 0x65,
632 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x35, 0x2e, 0x67,
633 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65,
634 0x63, 0x68, 0x2e, 0x76, 0x31, 0x2e, 0x54, 0x72, 0x61, 0x6e, 0x73, 0x63, 0x72, 0x69, 0x70, 0x74,
635 0x4e, 0x6f, 0x72, 0x6d, 0x61, 0x6c, 0x69, 0x7a, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x2e, 0x45, 0x6e,
636 0x74, 0x72, 0x79, 0x52, 0x07, 0x65, 0x6e, 0x74, 0x72, 0x69, 0x65, 0x73, 0x1a, 0x60, 0x0a, 0x05,
637 0x45, 0x6e, 0x74, 0x72, 0x79, 0x12, 0x16, 0x0a, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x18,
638 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x06, 0x73, 0x65, 0x61, 0x72, 0x63, 0x68, 0x12, 0x18, 0x0a,
639 0x07, 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x18, 0x02, 0x20, 0x01, 0x28, 0x09, 0x52, 0x07,
640 0x72, 0x65, 0x70, 0x6c, 0x61, 0x63, 0x65, 0x12, 0x25, 0x0a, 0x0e, 0x63, 0x61, 0x73, 0x65, 0x5f,
641 0x73, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x08, 0x52,
642 0x0d, 0x63, 0x61, 0x73, 0x65, 0x53, 0x65, 0x6e, 0x73, 0x69, 0x74, 0x69, 0x76, 0x65, 0x42, 0x70,
643 0x0a, 0x1a, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f,
644 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x42, 0x13, 0x53, 0x70,
645 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74,
646 0x6f, 0x50, 0x01, 0x5a, 0x32, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c,
647 0x65, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x67, 0x6f, 0x2f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f,
648 0x61, 0x70, 0x69, 0x76, 0x31, 0x2f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x70, 0x62, 0x3b, 0x73,
649 0x70, 0x65, 0x65, 0x63, 0x68, 0x70, 0x62, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x43, 0x53,
650 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
651 }
652
653 var (
654 file_google_cloud_speech_v1_resource_proto_rawDescOnce sync.Once
655 file_google_cloud_speech_v1_resource_proto_rawDescData = file_google_cloud_speech_v1_resource_proto_rawDesc
656 )
657
658 func file_google_cloud_speech_v1_resource_proto_rawDescGZIP() []byte {
659 file_google_cloud_speech_v1_resource_proto_rawDescOnce.Do(func() {
660 file_google_cloud_speech_v1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_speech_v1_resource_proto_rawDescData)
661 })
662 return file_google_cloud_speech_v1_resource_proto_rawDescData
663 }
664
665 var file_google_cloud_speech_v1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 8)
666 var file_google_cloud_speech_v1_resource_proto_goTypes = []any{
667 (*CustomClass)(nil), // 0: google.cloud.speech.v1.CustomClass
668 (*PhraseSet)(nil), // 1: google.cloud.speech.v1.PhraseSet
669 (*SpeechAdaptation)(nil), // 2: google.cloud.speech.v1.SpeechAdaptation
670 (*TranscriptNormalization)(nil), // 3: google.cloud.speech.v1.TranscriptNormalization
671 (*CustomClass_ClassItem)(nil), // 4: google.cloud.speech.v1.CustomClass.ClassItem
672 (*PhraseSet_Phrase)(nil), // 5: google.cloud.speech.v1.PhraseSet.Phrase
673 (*SpeechAdaptation_ABNFGrammar)(nil), // 6: google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar
674 (*TranscriptNormalization_Entry)(nil), // 7: google.cloud.speech.v1.TranscriptNormalization.Entry
675 }
676 var file_google_cloud_speech_v1_resource_proto_depIdxs = []int32{
677 4, // 0: google.cloud.speech.v1.CustomClass.items:type_name -> google.cloud.speech.v1.CustomClass.ClassItem
678 5, // 1: google.cloud.speech.v1.PhraseSet.phrases:type_name -> google.cloud.speech.v1.PhraseSet.Phrase
679 1, // 2: google.cloud.speech.v1.SpeechAdaptation.phrase_sets:type_name -> google.cloud.speech.v1.PhraseSet
680 0, // 3: google.cloud.speech.v1.SpeechAdaptation.custom_classes:type_name -> google.cloud.speech.v1.CustomClass
681 6, // 4: google.cloud.speech.v1.SpeechAdaptation.abnf_grammar:type_name -> google.cloud.speech.v1.SpeechAdaptation.ABNFGrammar
682 7, // 5: google.cloud.speech.v1.TranscriptNormalization.entries:type_name -> google.cloud.speech.v1.TranscriptNormalization.Entry
683 6, // [6:6] is the sub-list for method output_type
684 6, // [6:6] is the sub-list for method input_type
685 6, // [6:6] is the sub-list for extension type_name
686 6, // [6:6] is the sub-list for extension extendee
687 0, // [0:6] is the sub-list for field type_name
688 }
689
690 func init() { file_google_cloud_speech_v1_resource_proto_init() }
691 func file_google_cloud_speech_v1_resource_proto_init() {
692 if File_google_cloud_speech_v1_resource_proto != nil {
693 return
694 }
695 type x struct{}
696 out := protoimpl.TypeBuilder{
697 File: protoimpl.DescBuilder{
698 GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
699 RawDescriptor: file_google_cloud_speech_v1_resource_proto_rawDesc,
700 NumEnums: 0,
701 NumMessages: 8,
702 NumExtensions: 0,
703 NumServices: 0,
704 },
705 GoTypes: file_google_cloud_speech_v1_resource_proto_goTypes,
706 DependencyIndexes: file_google_cloud_speech_v1_resource_proto_depIdxs,
707 MessageInfos: file_google_cloud_speech_v1_resource_proto_msgTypes,
708 }.Build()
709 File_google_cloud_speech_v1_resource_proto = out.File
710 file_google_cloud_speech_v1_resource_proto_rawDesc = nil
711 file_google_cloud_speech_v1_resource_proto_goTypes = nil
712 file_google_cloud_speech_v1_resource_proto_depIdxs = nil
713 }