1// Copyright 2021 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.26.0 18// protoc v3.12.2 19// source: google/cloud/speech/v1p1beta1/resource.proto 20 21package speech 22 23import ( 24 reflect "reflect" 25 sync "sync" 26 27 _ "google.golang.org/genproto/googleapis/api/annotations" 28 protoreflect "google.golang.org/protobuf/reflect/protoreflect" 29 protoimpl "google.golang.org/protobuf/runtime/protoimpl" 30) 31 32const ( 33 // Verify that this generated code is sufficiently up-to-date. 34 _ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion) 35 // Verify that runtime/protoimpl is sufficiently up-to-date. 36 _ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20) 37) 38 39// A set of words or phrases that represents a common concept likely to appear 40// in your audio, for example a list of passenger ship names. CustomClass items 41// can be substituted into placeholders that you set in PhraseSet phrases. 42type CustomClass struct { 43 state protoimpl.MessageState 44 sizeCache protoimpl.SizeCache 45 unknownFields protoimpl.UnknownFields 46 47 // The resource name of the custom class. 48 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 49 // If this custom class is a resource, the custom_class_id is the resource id 50 // of the CustomClass. Case sensitive. 51 CustomClassId string `protobuf:"bytes,2,opt,name=custom_class_id,json=customClassId,proto3" json:"custom_class_id,omitempty"` 52 // A collection of class items. 53 Items []*CustomClass_ClassItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"` 54} 55 56func (x *CustomClass) Reset() { 57 *x = CustomClass{} 58 if protoimpl.UnsafeEnabled { 59 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[0] 60 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 61 ms.StoreMessageInfo(mi) 62 } 63} 64 65func (x *CustomClass) String() string { 66 return protoimpl.X.MessageStringOf(x) 67} 68 69func (*CustomClass) ProtoMessage() {} 70 71func (x *CustomClass) ProtoReflect() protoreflect.Message { 72 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[0] 73 if protoimpl.UnsafeEnabled && x != nil { 74 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 75 if ms.LoadMessageInfo() == nil { 76 ms.StoreMessageInfo(mi) 77 } 78 return ms 79 } 80 return mi.MessageOf(x) 81} 82 83// Deprecated: Use CustomClass.ProtoReflect.Descriptor instead. 84func (*CustomClass) Descriptor() ([]byte, []int) { 85 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP(), []int{0} 86} 87 88func (x *CustomClass) GetName() string { 89 if x != nil { 90 return x.Name 91 } 92 return "" 93} 94 95func (x *CustomClass) GetCustomClassId() string { 96 if x != nil { 97 return x.CustomClassId 98 } 99 return "" 100} 101 102func (x *CustomClass) GetItems() []*CustomClass_ClassItem { 103 if x != nil { 104 return x.Items 105 } 106 return nil 107} 108 109// Provides "hints" to the speech recognizer to favor specific words and phrases 110// in the results. 111type PhraseSet struct { 112 state protoimpl.MessageState 113 sizeCache protoimpl.SizeCache 114 unknownFields protoimpl.UnknownFields 115 116 // The resource name of the phrase set. 117 Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` 118 // A list of word and phrases. 119 Phrases []*PhraseSet_Phrase `protobuf:"bytes,2,rep,name=phrases,proto3" json:"phrases,omitempty"` 120 // Hint Boost. Positive value will increase the probability that a specific 121 // phrase will be recognized over other similar sounding phrases. The higher 122 // the boost, the higher the chance of false positive recognition as well. 123 // Negative boost values would correspond to anti-biasing. Anti-biasing is not 124 // enabled, so negative boost will simply be ignored. Though `boost` can 125 // accept a wide range of positive values, most use cases are best served with 126 // values between 0 (exclusive) and 20. We recommend using a binary search 127 // approach to finding the optimal value for your use case. Speech recognition 128 // will skip PhraseSets with a boost value of 0. 129 Boost float32 `protobuf:"fixed32,4,opt,name=boost,proto3" json:"boost,omitempty"` 130} 131 132func (x *PhraseSet) Reset() { 133 *x = PhraseSet{} 134 if protoimpl.UnsafeEnabled { 135 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[1] 136 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 137 ms.StoreMessageInfo(mi) 138 } 139} 140 141func (x *PhraseSet) String() string { 142 return protoimpl.X.MessageStringOf(x) 143} 144 145func (*PhraseSet) ProtoMessage() {} 146 147func (x *PhraseSet) ProtoReflect() protoreflect.Message { 148 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[1] 149 if protoimpl.UnsafeEnabled && x != nil { 150 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 151 if ms.LoadMessageInfo() == nil { 152 ms.StoreMessageInfo(mi) 153 } 154 return ms 155 } 156 return mi.MessageOf(x) 157} 158 159// Deprecated: Use PhraseSet.ProtoReflect.Descriptor instead. 160func (*PhraseSet) Descriptor() ([]byte, []int) { 161 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP(), []int{1} 162} 163 164func (x *PhraseSet) GetName() string { 165 if x != nil { 166 return x.Name 167 } 168 return "" 169} 170 171func (x *PhraseSet) GetPhrases() []*PhraseSet_Phrase { 172 if x != nil { 173 return x.Phrases 174 } 175 return nil 176} 177 178func (x *PhraseSet) GetBoost() float32 { 179 if x != nil { 180 return x.Boost 181 } 182 return 0 183} 184 185// Speech adaptation configuration. 186type SpeechAdaptation struct { 187 state protoimpl.MessageState 188 sizeCache protoimpl.SizeCache 189 unknownFields protoimpl.UnknownFields 190 191 // A collection of phrase sets. To specify the hints inline, leave the 192 // phrase set's `name` blank and fill in the rest of its fields. Any 193 // phrase set can use any custom class. 194 PhraseSets []*PhraseSet `protobuf:"bytes,1,rep,name=phrase_sets,json=phraseSets,proto3" json:"phrase_sets,omitempty"` 195 // A collection of phrase set resource names to use. 196 PhraseSetReferences []string `protobuf:"bytes,2,rep,name=phrase_set_references,json=phraseSetReferences,proto3" json:"phrase_set_references,omitempty"` 197 // A collection of custom classes. To specify the classes inline, leave the 198 // class' `name` blank and fill in the rest of its fields, giving it a unique 199 // `custom_class_id`. Refer to the inline defined class in phrase hints by its 200 // `custom_class_id`. 201 CustomClasses []*CustomClass `protobuf:"bytes,3,rep,name=custom_classes,json=customClasses,proto3" json:"custom_classes,omitempty"` 202} 203 204func (x *SpeechAdaptation) Reset() { 205 *x = SpeechAdaptation{} 206 if protoimpl.UnsafeEnabled { 207 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[2] 208 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 209 ms.StoreMessageInfo(mi) 210 } 211} 212 213func (x *SpeechAdaptation) String() string { 214 return protoimpl.X.MessageStringOf(x) 215} 216 217func (*SpeechAdaptation) ProtoMessage() {} 218 219func (x *SpeechAdaptation) ProtoReflect() protoreflect.Message { 220 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[2] 221 if protoimpl.UnsafeEnabled && x != nil { 222 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 223 if ms.LoadMessageInfo() == nil { 224 ms.StoreMessageInfo(mi) 225 } 226 return ms 227 } 228 return mi.MessageOf(x) 229} 230 231// Deprecated: Use SpeechAdaptation.ProtoReflect.Descriptor instead. 232func (*SpeechAdaptation) Descriptor() ([]byte, []int) { 233 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP(), []int{2} 234} 235 236func (x *SpeechAdaptation) GetPhraseSets() []*PhraseSet { 237 if x != nil { 238 return x.PhraseSets 239 } 240 return nil 241} 242 243func (x *SpeechAdaptation) GetPhraseSetReferences() []string { 244 if x != nil { 245 return x.PhraseSetReferences 246 } 247 return nil 248} 249 250func (x *SpeechAdaptation) GetCustomClasses() []*CustomClass { 251 if x != nil { 252 return x.CustomClasses 253 } 254 return nil 255} 256 257// An item of the class. 258type CustomClass_ClassItem struct { 259 state protoimpl.MessageState 260 sizeCache protoimpl.SizeCache 261 unknownFields protoimpl.UnknownFields 262 263 // The class item's value. 264 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 265} 266 267func (x *CustomClass_ClassItem) Reset() { 268 *x = CustomClass_ClassItem{} 269 if protoimpl.UnsafeEnabled { 270 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[3] 271 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 272 ms.StoreMessageInfo(mi) 273 } 274} 275 276func (x *CustomClass_ClassItem) String() string { 277 return protoimpl.X.MessageStringOf(x) 278} 279 280func (*CustomClass_ClassItem) ProtoMessage() {} 281 282func (x *CustomClass_ClassItem) ProtoReflect() protoreflect.Message { 283 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[3] 284 if protoimpl.UnsafeEnabled && x != nil { 285 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 286 if ms.LoadMessageInfo() == nil { 287 ms.StoreMessageInfo(mi) 288 } 289 return ms 290 } 291 return mi.MessageOf(x) 292} 293 294// Deprecated: Use CustomClass_ClassItem.ProtoReflect.Descriptor instead. 295func (*CustomClass_ClassItem) Descriptor() ([]byte, []int) { 296 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP(), []int{0, 0} 297} 298 299func (x *CustomClass_ClassItem) GetValue() string { 300 if x != nil { 301 return x.Value 302 } 303 return "" 304} 305 306// A phrases containing words and phrase "hints" so that 307// the speech recognition is more likely to recognize them. This can be used 308// to improve the accuracy for specific words and phrases, for example, if 309// specific commands are typically spoken by the user. This can also be used 310// to add additional words to the vocabulary of the recognizer. See 311// [usage limits](https://cloud.google.com/speech-to-text/quotas#content). 312// 313// List items can also include pre-built or custom classes containing groups 314// of words that represent common concepts that occur in natural language. For 315// example, rather than providing a phrase hint for every month of the 316// year (e.g. "i was born in january", "i was born in febuary", ...), use the 317// pre-built `$MONTH` class improves the likelihood of correctly transcribing 318// audio that includes months (e.g. "i was born in $month"). 319// To refer to pre-built classes, use the class' symbol prepended with `$` 320// e.g. `$MONTH`. To refer to custom classes that were defined inline in the 321// request, set the class's `custom_class_id` to a string unique to all class 322// resources and inline classes. Then use the class' id wrapped in $`{...}` 323// e.g. "${my-months}". To refer to custom classes resources, use the class' 324// id wrapped in `${}` (e.g. `${my-months}`). 325type PhraseSet_Phrase struct { 326 state protoimpl.MessageState 327 sizeCache protoimpl.SizeCache 328 unknownFields protoimpl.UnknownFields 329 330 // The phrase itself. 331 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 332 // Hint Boost. Overrides the boost set at the phrase set level. 333 // Positive value will increase the probability that a specific phrase will 334 // be recognized over other similar sounding phrases. The higher the boost, 335 // the higher the chance of false positive recognition as well. Negative 336 // boost values would correspond to anti-biasing. Anti-biasing is not 337 // enabled, so negative boost will simply be ignored. Though `boost` can 338 // accept a wide range of positive values, most use cases are best served 339 // with values between 0 and 20. We recommend using a binary search approach 340 // to finding the optimal value for your use case. Speech recognition 341 // will skip PhraseSets with a boost value of 0. 342 Boost float32 `protobuf:"fixed32,2,opt,name=boost,proto3" json:"boost,omitempty"` 343} 344 345func (x *PhraseSet_Phrase) Reset() { 346 *x = PhraseSet_Phrase{} 347 if protoimpl.UnsafeEnabled { 348 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[4] 349 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 350 ms.StoreMessageInfo(mi) 351 } 352} 353 354func (x *PhraseSet_Phrase) String() string { 355 return protoimpl.X.MessageStringOf(x) 356} 357 358func (*PhraseSet_Phrase) ProtoMessage() {} 359 360func (x *PhraseSet_Phrase) ProtoReflect() protoreflect.Message { 361 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[4] 362 if protoimpl.UnsafeEnabled && x != nil { 363 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 364 if ms.LoadMessageInfo() == nil { 365 ms.StoreMessageInfo(mi) 366 } 367 return ms 368 } 369 return mi.MessageOf(x) 370} 371 372// Deprecated: Use PhraseSet_Phrase.ProtoReflect.Descriptor instead. 373func (*PhraseSet_Phrase) Descriptor() ([]byte, []int) { 374 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP(), []int{1, 0} 375} 376 377func (x *PhraseSet_Phrase) GetValue() string { 378 if x != nil { 379 return x.Value 380 } 381 return "" 382} 383 384func (x *PhraseSet_Phrase) GetBoost() float32 { 385 if x != nil { 386 return x.Boost 387 } 388 return 0 389} 390 391var File_google_cloud_speech_v1p1beta1_resource_proto protoreflect.FileDescriptor 392 393var file_google_cloud_speech_v1p1beta1_resource_proto_rawDesc = []byte{ 394 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 395 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 396 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 397 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 398 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x19, 0x67, 399 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 400 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x1c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 401 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 402 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x02, 0x0a, 0x0b, 0x43, 0x75, 0x73, 0x74, 0x6f, 403 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 404 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x75, 405 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 406 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 407 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 408 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 409 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 410 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x2e, 0x43, 0x6c, 411 0x61, 0x73, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x21, 412 0x0a, 0x09, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x76, 413 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 414 0x65, 0x3a, 0x6c, 0xea, 0x41, 0x69, 0x0a, 0x21, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 415 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 416 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x44, 0x70, 0x72, 0x6f, 0x6a, 0x65, 417 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 418 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 419 0x6e, 0x7d, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 420 0x2f, 0x7b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x7d, 0x22, 421 0x9d, 0x02, 0x0a, 0x09, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x12, 0x12, 0x0a, 422 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 423 0x65, 0x12, 0x49, 0x0a, 0x07, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 424 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 425 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 426 0x61, 0x31, 0x2e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x68, 0x72, 427 0x61, 0x73, 0x65, 0x52, 0x07, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 428 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x62, 0x6f, 0x6f, 429 0x73, 0x74, 0x1a, 0x34, 0x0a, 0x06, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 430 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 431 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 432 0x02, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x3a, 0x65, 0xea, 0x41, 0x62, 0x0a, 0x1f, 0x73, 433 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 434 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x12, 0x3f, 435 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 436 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 437 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 438 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x7d, 0x22, 439 0x8a, 0x02, 0x0a, 0x10, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x41, 0x64, 0x61, 0x70, 0x74, 0x61, 440 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0b, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x5f, 0x73, 441 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 442 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 443 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 444 0x53, 0x65, 0x74, 0x52, 0x0a, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x73, 0x12, 445 0x58, 0x0a, 0x15, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x5f, 0x72, 0x65, 446 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x09, 0x42, 0x24, 447 0xfa, 0x41, 0x21, 0x0a, 0x1f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 448 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x68, 0x72, 0x61, 0x73, 449 0x65, 0x53, 0x65, 0x74, 0x52, 0x13, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x52, 450 0x65, 0x66, 0x65, 0x72, 0x65, 0x6e, 0x63, 0x65, 0x73, 0x12, 0x51, 0x0a, 0x0e, 0x63, 0x75, 0x73, 451 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 452 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 453 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 454 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x52, 0x0d, 0x63, 455 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 0x42, 0x88, 0x01, 0x0a, 456 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 457 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 458 0x61, 0x31, 0x42, 0x13, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 459 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 460 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 461 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 462 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 463 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0xf8, 0x01, 464 0x01, 0xa2, 0x02, 0x03, 0x47, 0x43, 0x53, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33, 465} 466 467var ( 468 file_google_cloud_speech_v1p1beta1_resource_proto_rawDescOnce sync.Once 469 file_google_cloud_speech_v1p1beta1_resource_proto_rawDescData = file_google_cloud_speech_v1p1beta1_resource_proto_rawDesc 470) 471 472func file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP() []byte { 473 file_google_cloud_speech_v1p1beta1_resource_proto_rawDescOnce.Do(func() { 474 file_google_cloud_speech_v1p1beta1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_speech_v1p1beta1_resource_proto_rawDescData) 475 }) 476 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescData 477} 478 479var file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 480var file_google_cloud_speech_v1p1beta1_resource_proto_goTypes = []interface{}{ 481 (*CustomClass)(nil), // 0: google.cloud.speech.v1p1beta1.CustomClass 482 (*PhraseSet)(nil), // 1: google.cloud.speech.v1p1beta1.PhraseSet 483 (*SpeechAdaptation)(nil), // 2: google.cloud.speech.v1p1beta1.SpeechAdaptation 484 (*CustomClass_ClassItem)(nil), // 3: google.cloud.speech.v1p1beta1.CustomClass.ClassItem 485 (*PhraseSet_Phrase)(nil), // 4: google.cloud.speech.v1p1beta1.PhraseSet.Phrase 486} 487var file_google_cloud_speech_v1p1beta1_resource_proto_depIdxs = []int32{ 488 3, // 0: google.cloud.speech.v1p1beta1.CustomClass.items:type_name -> google.cloud.speech.v1p1beta1.CustomClass.ClassItem 489 4, // 1: google.cloud.speech.v1p1beta1.PhraseSet.phrases:type_name -> google.cloud.speech.v1p1beta1.PhraseSet.Phrase 490 1, // 2: google.cloud.speech.v1p1beta1.SpeechAdaptation.phrase_sets:type_name -> google.cloud.speech.v1p1beta1.PhraseSet 491 0, // 3: google.cloud.speech.v1p1beta1.SpeechAdaptation.custom_classes:type_name -> google.cloud.speech.v1p1beta1.CustomClass 492 4, // [4:4] is the sub-list for method output_type 493 4, // [4:4] is the sub-list for method input_type 494 4, // [4:4] is the sub-list for extension type_name 495 4, // [4:4] is the sub-list for extension extendee 496 0, // [0:4] is the sub-list for field type_name 497} 498 499func init() { file_google_cloud_speech_v1p1beta1_resource_proto_init() } 500func file_google_cloud_speech_v1p1beta1_resource_proto_init() { 501 if File_google_cloud_speech_v1p1beta1_resource_proto != nil { 502 return 503 } 504 if !protoimpl.UnsafeEnabled { 505 file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 506 switch v := v.(*CustomClass); i { 507 case 0: 508 return &v.state 509 case 1: 510 return &v.sizeCache 511 case 2: 512 return &v.unknownFields 513 default: 514 return nil 515 } 516 } 517 file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 518 switch v := v.(*PhraseSet); i { 519 case 0: 520 return &v.state 521 case 1: 522 return &v.sizeCache 523 case 2: 524 return &v.unknownFields 525 default: 526 return nil 527 } 528 } 529 file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[2].Exporter = func(v interface{}, i int) interface{} { 530 switch v := v.(*SpeechAdaptation); i { 531 case 0: 532 return &v.state 533 case 1: 534 return &v.sizeCache 535 case 2: 536 return &v.unknownFields 537 default: 538 return nil 539 } 540 } 541 file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[3].Exporter = func(v interface{}, i int) interface{} { 542 switch v := v.(*CustomClass_ClassItem); i { 543 case 0: 544 return &v.state 545 case 1: 546 return &v.sizeCache 547 case 2: 548 return &v.unknownFields 549 default: 550 return nil 551 } 552 } 553 file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[4].Exporter = func(v interface{}, i int) interface{} { 554 switch v := v.(*PhraseSet_Phrase); i { 555 case 0: 556 return &v.state 557 case 1: 558 return &v.sizeCache 559 case 2: 560 return &v.unknownFields 561 default: 562 return nil 563 } 564 } 565 } 566 type x struct{} 567 out := protoimpl.TypeBuilder{ 568 File: protoimpl.DescBuilder{ 569 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 570 RawDescriptor: file_google_cloud_speech_v1p1beta1_resource_proto_rawDesc, 571 NumEnums: 0, 572 NumMessages: 5, 573 NumExtensions: 0, 574 NumServices: 0, 575 }, 576 GoTypes: file_google_cloud_speech_v1p1beta1_resource_proto_goTypes, 577 DependencyIndexes: file_google_cloud_speech_v1p1beta1_resource_proto_depIdxs, 578 MessageInfos: file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes, 579 }.Build() 580 File_google_cloud_speech_v1p1beta1_resource_proto = out.File 581 file_google_cloud_speech_v1p1beta1_resource_proto_rawDesc = nil 582 file_google_cloud_speech_v1p1beta1_resource_proto_goTypes = nil 583 file_google_cloud_speech_v1p1beta1_resource_proto_depIdxs = nil 584} 585