public static final class SpeechAdaptation.Builder extends GeneratedMessageV3.Builder<SpeechAdaptation.Builder> implements SpeechAdaptationOrBuilder
Provides "hints" to the speech recognizer to favor specific words and phrases
in the results. Phrase sets can be specified as an inline resource, or a
reference to an existing phrase set resource.
Protobuf type google.cloud.speech.v2.SpeechAdaptation
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllCustomClasses(Iterable<? extends CustomClass> values)
public SpeechAdaptation.Builder addAllCustomClasses(Iterable<? extends CustomClass> values)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v2.CustomClass>
|
addAllPhraseSets(Iterable<? extends SpeechAdaptation.AdaptationPhraseSet> values)
public SpeechAdaptation.Builder addAllPhraseSets(Iterable<? extends SpeechAdaptation.AdaptationPhraseSet> values)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Parameter |
---|
Name | Description |
values | Iterable<? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet>
|
addCustomClasses(CustomClass value)
public SpeechAdaptation.Builder addCustomClasses(CustomClass value)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
addCustomClasses(CustomClass.Builder builderForValue)
public SpeechAdaptation.Builder addCustomClasses(CustomClass.Builder builderForValue)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
addCustomClasses(int index, CustomClass value)
public SpeechAdaptation.Builder addCustomClasses(int index, CustomClass value)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
addCustomClasses(int index, CustomClass.Builder builderForValue)
public SpeechAdaptation.Builder addCustomClasses(int index, CustomClass.Builder builderForValue)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
addCustomClassesBuilder()
public CustomClass.Builder addCustomClassesBuilder()
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
addCustomClassesBuilder(int index)
public CustomClass.Builder addCustomClassesBuilder(int index)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
Parameter |
---|
Name | Description |
index | int
|
addPhraseSets(SpeechAdaptation.AdaptationPhraseSet value)
public SpeechAdaptation.Builder addPhraseSets(SpeechAdaptation.AdaptationPhraseSet value)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
addPhraseSets(SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue)
public SpeechAdaptation.Builder addPhraseSets(SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
addPhraseSets(int index, SpeechAdaptation.AdaptationPhraseSet value)
public SpeechAdaptation.Builder addPhraseSets(int index, SpeechAdaptation.AdaptationPhraseSet value)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
addPhraseSets(int index, SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue)
public SpeechAdaptation.Builder addPhraseSets(int index, SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
addPhraseSetsBuilder()
public SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
addPhraseSetsBuilder(int index)
public SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder(int index)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Parameter |
---|
Name | Description |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SpeechAdaptation build()
buildPartial()
public SpeechAdaptation buildPartial()
clear()
public SpeechAdaptation.Builder clear()
Overrides
clearCustomClasses()
public SpeechAdaptation.Builder clearCustomClasses()
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
clearField(Descriptors.FieldDescriptor field)
public SpeechAdaptation.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechAdaptation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPhraseSets()
public SpeechAdaptation.Builder clearPhraseSets()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
clone()
public SpeechAdaptation.Builder clone()
Overrides
getCustomClasses(int index)
public CustomClass getCustomClasses(int index)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
Parameter |
---|
Name | Description |
index | int
|
getCustomClassesBuilder(int index)
public CustomClass.Builder getCustomClassesBuilder(int index)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
Parameter |
---|
Name | Description |
index | int
|
getCustomClassesBuilderList()
public List<CustomClass.Builder> getCustomClassesBuilderList()
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
getCustomClassesCount()
public int getCustomClassesCount()
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
Returns |
---|
Type | Description |
int | |
getCustomClassesList()
public List<CustomClass> getCustomClassesList()
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
getCustomClassesOrBuilder(int index)
public CustomClassOrBuilder getCustomClassesOrBuilder(int index)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
Parameter |
---|
Name | Description |
index | int
|
getCustomClassesOrBuilderList()
public List<? extends CustomClassOrBuilder> getCustomClassesOrBuilderList()
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.speech.v2.CustomClassOrBuilder> | |
getDefaultInstanceForType()
public SpeechAdaptation getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getPhraseSets(int index)
public SpeechAdaptation.AdaptationPhraseSet getPhraseSets(int index)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Parameter |
---|
Name | Description |
index | int
|
getPhraseSetsBuilder(int index)
public SpeechAdaptation.AdaptationPhraseSet.Builder getPhraseSetsBuilder(int index)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Parameter |
---|
Name | Description |
index | int
|
getPhraseSetsBuilderList()
public List<SpeechAdaptation.AdaptationPhraseSet.Builder> getPhraseSetsBuilderList()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
getPhraseSetsCount()
public int getPhraseSetsCount()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Returns |
---|
Type | Description |
int | |
getPhraseSetsList()
public List<SpeechAdaptation.AdaptationPhraseSet> getPhraseSetsList()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
getPhraseSetsOrBuilder(int index)
public SpeechAdaptation.AdaptationPhraseSetOrBuilder getPhraseSetsOrBuilder(int index)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Parameter |
---|
Name | Description |
index | int
|
getPhraseSetsOrBuilderList()
public List<? extends SpeechAdaptation.AdaptationPhraseSetOrBuilder> getPhraseSetsOrBuilderList()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Returns |
---|
Type | Description |
List<? extends com.google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSetOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SpeechAdaptation other)
public SpeechAdaptation.Builder mergeFrom(SpeechAdaptation other)
public SpeechAdaptation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SpeechAdaptation.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeCustomClasses(int index)
public SpeechAdaptation.Builder removeCustomClasses(int index)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
Parameter |
---|
Name | Description |
index | int
|
removePhraseSets(int index)
public SpeechAdaptation.Builder removePhraseSets(int index)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Parameter |
---|
Name | Description |
index | int
|
setCustomClasses(int index, CustomClass value)
public SpeechAdaptation.Builder setCustomClasses(int index, CustomClass value)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
setCustomClasses(int index, CustomClass.Builder builderForValue)
public SpeechAdaptation.Builder setCustomClasses(int index, CustomClass.Builder builderForValue)
A list of inline custom classes. Existing custom class resources can be
referenced directly in a phrase set.
repeated .google.cloud.speech.v2.CustomClass custom_classes = 2;
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setPhraseSets(int index, SpeechAdaptation.AdaptationPhraseSet value)
public SpeechAdaptation.Builder setPhraseSets(int index, SpeechAdaptation.AdaptationPhraseSet value)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
setPhraseSets(int index, SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue)
public SpeechAdaptation.Builder setPhraseSets(int index, SpeechAdaptation.AdaptationPhraseSet.Builder builderForValue)
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechAdaptation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides