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