1// Copyright 2020 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.22.0 18// protoc v3.11.2 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. 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 custom classes. To specify the classes inline, leave the 201 // class' `name` blank and fill in the rest of its fields, giving it a unique 202 // `custom_class_id`. Refer to the inline defined class in phrase hints by its 203 // `custom_class_id`. 204 CustomClasses []*CustomClass `protobuf:"bytes,2,rep,name=custom_classes,json=customClasses,proto3" json:"custom_classes,omitempty"` 205} 206 207func (x *SpeechAdaptation) Reset() { 208 *x = SpeechAdaptation{} 209 if protoimpl.UnsafeEnabled { 210 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[2] 211 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 212 ms.StoreMessageInfo(mi) 213 } 214} 215 216func (x *SpeechAdaptation) String() string { 217 return protoimpl.X.MessageStringOf(x) 218} 219 220func (*SpeechAdaptation) ProtoMessage() {} 221 222func (x *SpeechAdaptation) ProtoReflect() protoreflect.Message { 223 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[2] 224 if protoimpl.UnsafeEnabled && x != nil { 225 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 226 if ms.LoadMessageInfo() == nil { 227 ms.StoreMessageInfo(mi) 228 } 229 return ms 230 } 231 return mi.MessageOf(x) 232} 233 234// Deprecated: Use SpeechAdaptation.ProtoReflect.Descriptor instead. 235func (*SpeechAdaptation) Descriptor() ([]byte, []int) { 236 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP(), []int{2} 237} 238 239func (x *SpeechAdaptation) GetPhraseSets() []*PhraseSet { 240 if x != nil { 241 return x.PhraseSets 242 } 243 return nil 244} 245 246func (x *SpeechAdaptation) GetCustomClasses() []*CustomClass { 247 if x != nil { 248 return x.CustomClasses 249 } 250 return nil 251} 252 253// An item of the class. 254type CustomClass_ClassItem struct { 255 state protoimpl.MessageState 256 sizeCache protoimpl.SizeCache 257 unknownFields protoimpl.UnknownFields 258 259 // The class item's value. 260 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 261} 262 263func (x *CustomClass_ClassItem) Reset() { 264 *x = CustomClass_ClassItem{} 265 if protoimpl.UnsafeEnabled { 266 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[3] 267 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 268 ms.StoreMessageInfo(mi) 269 } 270} 271 272func (x *CustomClass_ClassItem) String() string { 273 return protoimpl.X.MessageStringOf(x) 274} 275 276func (*CustomClass_ClassItem) ProtoMessage() {} 277 278func (x *CustomClass_ClassItem) ProtoReflect() protoreflect.Message { 279 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[3] 280 if protoimpl.UnsafeEnabled && x != nil { 281 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 282 if ms.LoadMessageInfo() == nil { 283 ms.StoreMessageInfo(mi) 284 } 285 return ms 286 } 287 return mi.MessageOf(x) 288} 289 290// Deprecated: Use CustomClass_ClassItem.ProtoReflect.Descriptor instead. 291func (*CustomClass_ClassItem) Descriptor() ([]byte, []int) { 292 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP(), []int{0, 0} 293} 294 295func (x *CustomClass_ClassItem) GetValue() string { 296 if x != nil { 297 return x.Value 298 } 299 return "" 300} 301 302// A phrases containing words and phrase "hints" so that 303// the speech recognition is more likely to recognize them. This can be used 304// to improve the accuracy for specific words and phrases, for example, if 305// specific commands are typically spoken by the user. This can also be used 306// to add additional words to the vocabulary of the recognizer. See 307// [usage limits](https://cloud.google.com/speech-to-text/quotas#content). 308// 309// List items can also include pre-built or custom classes containing groups 310// of words that represent common concepts that occur in natural language. For 311// example, rather than providing a phrase hint for every month of the 312// year (e.g. "i was born in january", "i was born in febuary", ...), use the 313// pre-built `$MONTH` class improves the likelihood of correctly transcribing 314// audio that includes months (e.g. "i was born in $month"). 315// To refer to pre-built classes, use the class' symbol prepended with `$` 316// e.g. `$MONTH`. To refer to custom classes that were defined inline in the 317// request, set the class's `custom_class_id` to a string unique to all class 318// resources and inline classes. Then use the class' id wrapped in $`{...}` 319// e.g. "${my-months}". To refer to custom classes resources, use the class' 320// id wrapped in `${}` (e.g. `${my-months}`). 321type PhraseSet_Phrase struct { 322 state protoimpl.MessageState 323 sizeCache protoimpl.SizeCache 324 unknownFields protoimpl.UnknownFields 325 326 // The phrase itself. 327 Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"` 328 // Hint Boost. Overrides the boost set at the phrase set level. 329 // Positive value will increase the probability that a specific phrase will 330 // be recognized over other similar sounding phrases. The higher the boost, 331 // the higher the chance of false positive recognition as well. Negative 332 // boost values would correspond to anti-biasing. Anti-biasing is not 333 // enabled, so negative boost will simply be ignored. Though `boost` can 334 // accept a wide range of positive values, most use cases are best served 335 // with values between 0 and 20. We recommend using a binary search approach 336 // to finding the optimal value for your use case. Speech recognition 337 // will skip PhraseSets with a boost value of 0. 338 Boost float32 `protobuf:"fixed32,2,opt,name=boost,proto3" json:"boost,omitempty"` 339} 340 341func (x *PhraseSet_Phrase) Reset() { 342 *x = PhraseSet_Phrase{} 343 if protoimpl.UnsafeEnabled { 344 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[4] 345 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 346 ms.StoreMessageInfo(mi) 347 } 348} 349 350func (x *PhraseSet_Phrase) String() string { 351 return protoimpl.X.MessageStringOf(x) 352} 353 354func (*PhraseSet_Phrase) ProtoMessage() {} 355 356func (x *PhraseSet_Phrase) ProtoReflect() protoreflect.Message { 357 mi := &file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[4] 358 if protoimpl.UnsafeEnabled && x != nil { 359 ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x)) 360 if ms.LoadMessageInfo() == nil { 361 ms.StoreMessageInfo(mi) 362 } 363 return ms 364 } 365 return mi.MessageOf(x) 366} 367 368// Deprecated: Use PhraseSet_Phrase.ProtoReflect.Descriptor instead. 369func (*PhraseSet_Phrase) Descriptor() ([]byte, []int) { 370 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP(), []int{1, 0} 371} 372 373func (x *PhraseSet_Phrase) GetValue() string { 374 if x != nil { 375 return x.Value 376 } 377 return "" 378} 379 380func (x *PhraseSet_Phrase) GetBoost() float32 { 381 if x != nil { 382 return x.Boost 383 } 384 return 0 385} 386 387var File_google_cloud_speech_v1p1beta1_resource_proto protoreflect.FileDescriptor 388 389var file_google_cloud_speech_v1p1beta1_resource_proto_rawDesc = []byte{ 390 0x0a, 0x2c, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 391 0x70, 0x65, 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2f, 392 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x1d, 393 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 394 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x1a, 0x1c, 0x67, 395 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x61, 0x6e, 0x6e, 0x6f, 0x74, 0x61, 396 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x1a, 0x19, 0x67, 0x6f, 0x6f, 397 0x67, 0x6c, 0x65, 0x2f, 0x61, 0x70, 0x69, 0x2f, 0x72, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 398 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0xa6, 0x02, 0x0a, 0x0b, 0x43, 0x75, 0x73, 0x74, 0x6f, 399 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x12, 0x0a, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 400 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x12, 0x26, 0x0a, 0x0f, 0x63, 0x75, 401 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x5f, 0x69, 0x64, 0x18, 0x02, 0x20, 402 0x01, 0x28, 0x09, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 403 0x49, 0x64, 0x12, 0x4a, 0x0a, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x18, 0x03, 0x20, 0x03, 0x28, 404 0x0b, 0x32, 0x34, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 405 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 406 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x2e, 0x43, 0x6c, 407 0x61, 0x73, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x52, 0x05, 0x69, 0x74, 0x65, 0x6d, 0x73, 0x1a, 0x21, 408 0x0a, 0x09, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x49, 0x74, 0x65, 0x6d, 0x12, 0x14, 0x0a, 0x05, 0x76, 409 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 0x75, 410 0x65, 0x3a, 0x6c, 0xea, 0x41, 0x69, 0x0a, 0x21, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 411 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x43, 0x75, 412 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x12, 0x44, 0x70, 0x72, 0x6f, 0x6a, 0x65, 413 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 414 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 415 0x6e, 0x7d, 0x2f, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 0x65, 0x73, 416 0x2f, 0x7b, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x7d, 0x22, 417 0x9d, 0x02, 0x0a, 0x09, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x12, 0x12, 0x0a, 418 0x04, 0x6e, 0x61, 0x6d, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x04, 0x6e, 0x61, 0x6d, 419 0x65, 0x12, 0x49, 0x0a, 0x07, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x18, 0x02, 0x20, 0x03, 420 0x28, 0x0b, 0x32, 0x2f, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 421 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 422 0x61, 0x31, 0x2e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x2e, 0x50, 0x68, 0x72, 423 0x61, 0x73, 0x65, 0x52, 0x07, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x73, 0x12, 0x14, 0x0a, 0x05, 424 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x18, 0x04, 0x20, 0x01, 0x28, 0x02, 0x52, 0x05, 0x62, 0x6f, 0x6f, 425 0x73, 0x74, 0x1a, 0x34, 0x0a, 0x06, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x12, 0x14, 0x0a, 0x05, 426 0x76, 0x61, 0x6c, 0x75, 0x65, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x52, 0x05, 0x76, 0x61, 0x6c, 427 0x75, 0x65, 0x12, 0x14, 0x0a, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x18, 0x02, 0x20, 0x01, 0x28, 428 0x02, 0x52, 0x05, 0x62, 0x6f, 0x6f, 0x73, 0x74, 0x3a, 0x65, 0xea, 0x41, 0x62, 0x0a, 0x1f, 0x73, 429 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 430 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x12, 0x3f, 431 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x72, 0x6f, 0x6a, 0x65, 0x63, 432 0x74, 0x7d, 0x2f, 0x6c, 0x6f, 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x73, 0x2f, 0x7b, 0x6c, 0x6f, 433 0x63, 0x61, 0x74, 0x69, 0x6f, 0x6e, 0x7d, 0x2f, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 434 0x74, 0x73, 0x2f, 0x7b, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x5f, 0x73, 0x65, 0x74, 0x7d, 0x22, 435 0xb0, 0x01, 0x0a, 0x10, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 0x41, 0x64, 0x61, 0x70, 0x74, 0x61, 436 0x74, 0x69, 0x6f, 0x6e, 0x12, 0x49, 0x0a, 0x0b, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x5f, 0x73, 437 0x65, 0x74, 0x73, 0x18, 0x01, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x28, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 438 0x6c, 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 439 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x50, 0x68, 0x72, 0x61, 0x73, 0x65, 440 0x53, 0x65, 0x74, 0x52, 0x0a, 0x70, 0x68, 0x72, 0x61, 0x73, 0x65, 0x53, 0x65, 0x74, 0x73, 0x12, 441 0x51, 0x0a, 0x0e, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x5f, 0x63, 0x6c, 0x61, 0x73, 0x73, 0x65, 442 0x73, 0x18, 0x02, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x2a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 443 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 0x31, 444 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x2e, 0x43, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 445 0x61, 0x73, 0x73, 0x52, 0x0d, 0x63, 0x75, 0x73, 0x74, 0x6f, 0x6d, 0x43, 0x6c, 0x61, 0x73, 0x73, 446 0x65, 0x73, 0x42, 0x88, 0x01, 0x0a, 0x21, 0x63, 0x6f, 0x6d, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 447 0x65, 0x2e, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2e, 0x73, 0x70, 0x65, 0x65, 0x63, 0x68, 0x2e, 0x76, 448 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x42, 0x13, 0x53, 0x70, 0x65, 0x65, 0x63, 0x68, 449 0x52, 0x65, 0x73, 0x6f, 0x75, 0x72, 0x63, 0x65, 0x50, 0x72, 0x6f, 0x74, 0x6f, 0x50, 0x01, 0x5a, 450 0x43, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x67, 0x6f, 0x6c, 0x61, 0x6e, 0x67, 0x2e, 0x6f, 451 0x72, 0x67, 0x2f, 0x67, 0x65, 0x6e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x2f, 0x67, 0x6f, 0x6f, 0x67, 452 0x6c, 0x65, 0x61, 0x70, 0x69, 0x73, 0x2f, 0x63, 0x6c, 0x6f, 0x75, 0x64, 0x2f, 0x73, 0x70, 0x65, 453 0x65, 0x63, 0x68, 0x2f, 0x76, 0x31, 0x70, 0x31, 0x62, 0x65, 0x74, 0x61, 0x31, 0x3b, 0x73, 0x70, 454 0x65, 0x65, 0x63, 0x68, 0xf8, 0x01, 0x01, 0xa2, 0x02, 0x03, 0x47, 0x43, 0x53, 0x62, 0x06, 0x70, 455 0x72, 0x6f, 0x74, 0x6f, 0x33, 456} 457 458var ( 459 file_google_cloud_speech_v1p1beta1_resource_proto_rawDescOnce sync.Once 460 file_google_cloud_speech_v1p1beta1_resource_proto_rawDescData = file_google_cloud_speech_v1p1beta1_resource_proto_rawDesc 461) 462 463func file_google_cloud_speech_v1p1beta1_resource_proto_rawDescGZIP() []byte { 464 file_google_cloud_speech_v1p1beta1_resource_proto_rawDescOnce.Do(func() { 465 file_google_cloud_speech_v1p1beta1_resource_proto_rawDescData = protoimpl.X.CompressGZIP(file_google_cloud_speech_v1p1beta1_resource_proto_rawDescData) 466 }) 467 return file_google_cloud_speech_v1p1beta1_resource_proto_rawDescData 468} 469 470var file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes = make([]protoimpl.MessageInfo, 5) 471var file_google_cloud_speech_v1p1beta1_resource_proto_goTypes = []interface{}{ 472 (*CustomClass)(nil), // 0: google.cloud.speech.v1p1beta1.CustomClass 473 (*PhraseSet)(nil), // 1: google.cloud.speech.v1p1beta1.PhraseSet 474 (*SpeechAdaptation)(nil), // 2: google.cloud.speech.v1p1beta1.SpeechAdaptation 475 (*CustomClass_ClassItem)(nil), // 3: google.cloud.speech.v1p1beta1.CustomClass.ClassItem 476 (*PhraseSet_Phrase)(nil), // 4: google.cloud.speech.v1p1beta1.PhraseSet.Phrase 477} 478var file_google_cloud_speech_v1p1beta1_resource_proto_depIdxs = []int32{ 479 3, // 0: google.cloud.speech.v1p1beta1.CustomClass.items:type_name -> google.cloud.speech.v1p1beta1.CustomClass.ClassItem 480 4, // 1: google.cloud.speech.v1p1beta1.PhraseSet.phrases:type_name -> google.cloud.speech.v1p1beta1.PhraseSet.Phrase 481 1, // 2: google.cloud.speech.v1p1beta1.SpeechAdaptation.phrase_sets:type_name -> google.cloud.speech.v1p1beta1.PhraseSet 482 0, // 3: google.cloud.speech.v1p1beta1.SpeechAdaptation.custom_classes:type_name -> google.cloud.speech.v1p1beta1.CustomClass 483 4, // [4:4] is the sub-list for method output_type 484 4, // [4:4] is the sub-list for method input_type 485 4, // [4:4] is the sub-list for extension type_name 486 4, // [4:4] is the sub-list for extension extendee 487 0, // [0:4] is the sub-list for field type_name 488} 489 490func init() { file_google_cloud_speech_v1p1beta1_resource_proto_init() } 491func file_google_cloud_speech_v1p1beta1_resource_proto_init() { 492 if File_google_cloud_speech_v1p1beta1_resource_proto != nil { 493 return 494 } 495 if !protoimpl.UnsafeEnabled { 496 file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} { 497 switch v := v.(*CustomClass); i { 498 case 0: 499 return &v.state 500 case 1: 501 return &v.sizeCache 502 case 2: 503 return &v.unknownFields 504 default: 505 return nil 506 } 507 } 508 file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} { 509 switch v := v.(*PhraseSet); 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[2].Exporter = func(v interface{}, i int) interface{} { 521 switch v := v.(*SpeechAdaptation); 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[3].Exporter = func(v interface{}, i int) interface{} { 533 switch v := v.(*CustomClass_ClassItem); 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[4].Exporter = func(v interface{}, i int) interface{} { 545 switch v := v.(*PhraseSet_Phrase); 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 } 557 type x struct{} 558 out := protoimpl.TypeBuilder{ 559 File: protoimpl.DescBuilder{ 560 GoPackagePath: reflect.TypeOf(x{}).PkgPath(), 561 RawDescriptor: file_google_cloud_speech_v1p1beta1_resource_proto_rawDesc, 562 NumEnums: 0, 563 NumMessages: 5, 564 NumExtensions: 0, 565 NumServices: 0, 566 }, 567 GoTypes: file_google_cloud_speech_v1p1beta1_resource_proto_goTypes, 568 DependencyIndexes: file_google_cloud_speech_v1p1beta1_resource_proto_depIdxs, 569 MessageInfos: file_google_cloud_speech_v1p1beta1_resource_proto_msgTypes, 570 }.Build() 571 File_google_cloud_speech_v1p1beta1_resource_proto = out.File 572 file_google_cloud_speech_v1p1beta1_resource_proto_rawDesc = nil 573 file_google_cloud_speech_v1p1beta1_resource_proto_goTypes = nil 574 file_google_cloud_speech_v1p1beta1_resource_proto_depIdxs = nil 575} 576