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()
Returns
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>
|
Returns
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>
|
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
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;
Returns
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
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addPhraseSetsBuilder()
public SpeechAdaptation.AdaptationPhraseSet.Builder addPhraseSetsBuilder()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Returns
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SpeechAdaptation build()
Returns
buildPartial()
public SpeechAdaptation buildPartial()
Returns
clear()
public SpeechAdaptation.Builder clear()
Returns
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;
Returns
clearField(Descriptors.FieldDescriptor field)
public SpeechAdaptation.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechAdaptation.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearPhraseSets()
public SpeechAdaptation.Builder clearPhraseSets()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Returns
clone()
public SpeechAdaptation.Builder clone()
Returns
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
Returns
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
Returns
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;
Returns
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
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;
Returns
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
Returns
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()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
Returns
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
Returns
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;
Returns
getPhraseSetsCount()
public int getPhraseSetsCount()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Returns
getPhraseSetsList()
public List<SpeechAdaptation.AdaptationPhraseSet> getPhraseSetsList()
A list of inline or referenced phrase sets.
repeated .google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet phrase_sets = 1;
Returns
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
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SpeechAdaptation other)
public SpeechAdaptation.Builder mergeFrom(SpeechAdaptation other)
Parameter
Returns
public SpeechAdaptation.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SpeechAdaptation.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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
Returns
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
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechAdaptation.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides