blob: 2a26b9c106c49eaa0742b79cf358e19080120e4d [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: google/cloud/speech/v1p1beta1/resource.proto
package speech
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
// A set of words or phrases that represents a common concept likely to appear
// in your audio, for example a list of passenger ship names. CustomClass items
// can be substituted into placeholders that you set in PhraseSet phrases.
type CustomClass struct {
// The resource name of the custom class.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// If this custom class is a resource, the custom_class_id is the resource id
// of the CustomClass.
CustomClassId string `protobuf:"bytes,2,opt,name=custom_class_id,json=customClassId,proto3" json:"custom_class_id,omitempty"`
// A collection of class items.
Items []*CustomClass_ClassItem `protobuf:"bytes,3,rep,name=items,proto3" json:"items,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CustomClass) Reset() { *m = CustomClass{} }
func (m *CustomClass) String() string { return proto.CompactTextString(m) }
func (*CustomClass) ProtoMessage() {}
func (*CustomClass) Descriptor() ([]byte, []int) {
return fileDescriptor_0411f669716aa30c, []int{0}
}
func (m *CustomClass) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CustomClass.Unmarshal(m, b)
}
func (m *CustomClass) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CustomClass.Marshal(b, m, deterministic)
}
func (m *CustomClass) XXX_Merge(src proto.Message) {
xxx_messageInfo_CustomClass.Merge(m, src)
}
func (m *CustomClass) XXX_Size() int {
return xxx_messageInfo_CustomClass.Size(m)
}
func (m *CustomClass) XXX_DiscardUnknown() {
xxx_messageInfo_CustomClass.DiscardUnknown(m)
}
var xxx_messageInfo_CustomClass proto.InternalMessageInfo
func (m *CustomClass) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *CustomClass) GetCustomClassId() string {
if m != nil {
return m.CustomClassId
}
return ""
}
func (m *CustomClass) GetItems() []*CustomClass_ClassItem {
if m != nil {
return m.Items
}
return nil
}
// An item of the class.
type CustomClass_ClassItem struct {
// The class item's value.
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *CustomClass_ClassItem) Reset() { *m = CustomClass_ClassItem{} }
func (m *CustomClass_ClassItem) String() string { return proto.CompactTextString(m) }
func (*CustomClass_ClassItem) ProtoMessage() {}
func (*CustomClass_ClassItem) Descriptor() ([]byte, []int) {
return fileDescriptor_0411f669716aa30c, []int{0, 0}
}
func (m *CustomClass_ClassItem) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_CustomClass_ClassItem.Unmarshal(m, b)
}
func (m *CustomClass_ClassItem) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_CustomClass_ClassItem.Marshal(b, m, deterministic)
}
func (m *CustomClass_ClassItem) XXX_Merge(src proto.Message) {
xxx_messageInfo_CustomClass_ClassItem.Merge(m, src)
}
func (m *CustomClass_ClassItem) XXX_Size() int {
return xxx_messageInfo_CustomClass_ClassItem.Size(m)
}
func (m *CustomClass_ClassItem) XXX_DiscardUnknown() {
xxx_messageInfo_CustomClass_ClassItem.DiscardUnknown(m)
}
var xxx_messageInfo_CustomClass_ClassItem proto.InternalMessageInfo
func (m *CustomClass_ClassItem) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
// Provides "hints" to the speech recognizer to favor specific words and phrases
// in the results.
type PhraseSet struct {
// The resource name of the phrase set.
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// A list of word and phrases.
Phrases []*PhraseSet_Phrase `protobuf:"bytes,2,rep,name=phrases,proto3" json:"phrases,omitempty"`
// Hint Boost. Positive value will increase the probability that a specific
// phrase will be recognized over other similar sounding phrases. The higher
// the boost, the higher the chance of false positive recognition as well.
// Negative boost values would correspond to anti-biasing. Anti-biasing is not
// enabled, so negative boost will simply be ignored. Though `boost` can
// accept a wide range of positive values, most use cases are best served with
// values between 0 (exclusive) and 20. We recommend using a binary search
// approach to finding the optimal value for your use case. Speech recognition
// will skip PhraseSets with a boost value of 0.
Boost float32 `protobuf:"fixed32,4,opt,name=boost,proto3" json:"boost,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PhraseSet) Reset() { *m = PhraseSet{} }
func (m *PhraseSet) String() string { return proto.CompactTextString(m) }
func (*PhraseSet) ProtoMessage() {}
func (*PhraseSet) Descriptor() ([]byte, []int) {
return fileDescriptor_0411f669716aa30c, []int{1}
}
func (m *PhraseSet) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PhraseSet.Unmarshal(m, b)
}
func (m *PhraseSet) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PhraseSet.Marshal(b, m, deterministic)
}
func (m *PhraseSet) XXX_Merge(src proto.Message) {
xxx_messageInfo_PhraseSet.Merge(m, src)
}
func (m *PhraseSet) XXX_Size() int {
return xxx_messageInfo_PhraseSet.Size(m)
}
func (m *PhraseSet) XXX_DiscardUnknown() {
xxx_messageInfo_PhraseSet.DiscardUnknown(m)
}
var xxx_messageInfo_PhraseSet proto.InternalMessageInfo
func (m *PhraseSet) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *PhraseSet) GetPhrases() []*PhraseSet_Phrase {
if m != nil {
return m.Phrases
}
return nil
}
func (m *PhraseSet) GetBoost() float32 {
if m != nil {
return m.Boost
}
return 0
}
// A phrases containing words and phrase "hints" so that
// the speech recognition is more likely to recognize them. This can be used
// to improve the accuracy for specific words and phrases, for example, if
// specific commands are typically spoken by the user. This can also be used
// to add additional words to the vocabulary of the recognizer. See
// [usage limits](https://cloud.google.com/speech-to-text/quotas#content).
//
// List items can also include pre-built or custom classes containing groups
// of words that represent common concepts that occur in natural language. For
// example, rather than providing a phrase hint for every month of the
// year (e.g. "i was born in january", "i was born in febuary", ...), use the
// pre-built `$MONTH` class improves the likelihood of correctly transcribing
// audio that includes months (e.g. "i was born in $month").
// To refer to pre-built classes, use the class' symbol prepended with `$`
// e.g. `$MONTH`. To refer to custom classes that were defined inline in the
// request, set the class's `custom_class_id` to a string unique to all class
// resources and inline classes. Then use the class' id wrapped in $`{...}`
// e.g. "${my-months}". To refer to custom classes resources, use the class'
// id wrapped in `${}` (e.g. `${my-months}`).
type PhraseSet_Phrase struct {
// The phrase itself.
Value string `protobuf:"bytes,1,opt,name=value,proto3" json:"value,omitempty"`
// Hint Boost. Overrides the boost set at the phrase set level.
// Positive value will increase the probability that a specific phrase will
// be recognized over other similar sounding phrases. The higher the boost,
// the higher the chance of false positive recognition as well. Negative
// boost values would correspond to anti-biasing. Anti-biasing is not
// enabled, so negative boost will simply be ignored. Though `boost` can
// accept a wide range of positive values, most use cases are best served
// with values between 0 and 20. We recommend using a binary search approach
// to finding the optimal value for your use case. Speech recognition
// will skip PhraseSets with a boost value of 0.
Boost float32 `protobuf:"fixed32,2,opt,name=boost,proto3" json:"boost,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *PhraseSet_Phrase) Reset() { *m = PhraseSet_Phrase{} }
func (m *PhraseSet_Phrase) String() string { return proto.CompactTextString(m) }
func (*PhraseSet_Phrase) ProtoMessage() {}
func (*PhraseSet_Phrase) Descriptor() ([]byte, []int) {
return fileDescriptor_0411f669716aa30c, []int{1, 0}
}
func (m *PhraseSet_Phrase) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_PhraseSet_Phrase.Unmarshal(m, b)
}
func (m *PhraseSet_Phrase) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_PhraseSet_Phrase.Marshal(b, m, deterministic)
}
func (m *PhraseSet_Phrase) XXX_Merge(src proto.Message) {
xxx_messageInfo_PhraseSet_Phrase.Merge(m, src)
}
func (m *PhraseSet_Phrase) XXX_Size() int {
return xxx_messageInfo_PhraseSet_Phrase.Size(m)
}
func (m *PhraseSet_Phrase) XXX_DiscardUnknown() {
xxx_messageInfo_PhraseSet_Phrase.DiscardUnknown(m)
}
var xxx_messageInfo_PhraseSet_Phrase proto.InternalMessageInfo
func (m *PhraseSet_Phrase) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *PhraseSet_Phrase) GetBoost() float32 {
if m != nil {
return m.Boost
}
return 0
}
// Speech adaptation configuration.
type SpeechAdaptation struct {
// A collection of phrase sets. To specify the hints inline, leave the
// phrase set's `name` blank and fill in the rest of its fields. Any
// phrase set can use any custom class.
PhraseSets []*PhraseSet `protobuf:"bytes,1,rep,name=phrase_sets,json=phraseSets,proto3" json:"phrase_sets,omitempty"`
// A collection of custom classes. To specify the classes inline, leave the
// class' `name` blank and fill in the rest of its fields, giving it a unique
// `custom_class_id`. Refer to the inline defined class in phrase hints by its
// `custom_class_id`.
CustomClasses []*CustomClass `protobuf:"bytes,2,rep,name=custom_classes,json=customClasses,proto3" json:"custom_classes,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SpeechAdaptation) Reset() { *m = SpeechAdaptation{} }
func (m *SpeechAdaptation) String() string { return proto.CompactTextString(m) }
func (*SpeechAdaptation) ProtoMessage() {}
func (*SpeechAdaptation) Descriptor() ([]byte, []int) {
return fileDescriptor_0411f669716aa30c, []int{2}
}
func (m *SpeechAdaptation) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SpeechAdaptation.Unmarshal(m, b)
}
func (m *SpeechAdaptation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SpeechAdaptation.Marshal(b, m, deterministic)
}
func (m *SpeechAdaptation) XXX_Merge(src proto.Message) {
xxx_messageInfo_SpeechAdaptation.Merge(m, src)
}
func (m *SpeechAdaptation) XXX_Size() int {
return xxx_messageInfo_SpeechAdaptation.Size(m)
}
func (m *SpeechAdaptation) XXX_DiscardUnknown() {
xxx_messageInfo_SpeechAdaptation.DiscardUnknown(m)
}
var xxx_messageInfo_SpeechAdaptation proto.InternalMessageInfo
func (m *SpeechAdaptation) GetPhraseSets() []*PhraseSet {
if m != nil {
return m.PhraseSets
}
return nil
}
func (m *SpeechAdaptation) GetCustomClasses() []*CustomClass {
if m != nil {
return m.CustomClasses
}
return nil
}
func init() {
proto.RegisterType((*CustomClass)(nil), "google.cloud.speech.v1p1beta1.CustomClass")
proto.RegisterType((*CustomClass_ClassItem)(nil), "google.cloud.speech.v1p1beta1.CustomClass.ClassItem")
proto.RegisterType((*PhraseSet)(nil), "google.cloud.speech.v1p1beta1.PhraseSet")
proto.RegisterType((*PhraseSet_Phrase)(nil), "google.cloud.speech.v1p1beta1.PhraseSet.Phrase")
proto.RegisterType((*SpeechAdaptation)(nil), "google.cloud.speech.v1p1beta1.SpeechAdaptation")
}
func init() {
proto.RegisterFile("google/cloud/speech/v1p1beta1/resource.proto", fileDescriptor_0411f669716aa30c)
}
var fileDescriptor_0411f669716aa30c = []byte{
// 465 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x8c, 0x53, 0x3d, 0x8f, 0xd3, 0x40,
0x10, 0x95, 0x9d, 0xbb, 0x43, 0x99, 0x88, 0x0f, 0x19, 0x0a, 0x13, 0x81, 0x48, 0x52, 0xa0, 0x08,
0xa1, 0x5d, 0x05, 0xae, 0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