public final class SpeechAdaptation extends GeneratedMessageV3 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
Static Fields
CUSTOM_CLASSES_FIELD_NUMBER
public static final int CUSTOM_CLASSES_FIELD_NUMBER
Field Value
PHRASE_SETS_FIELD_NUMBER
public static final int PHRASE_SETS_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SpeechAdaptation getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SpeechAdaptation.Builder newBuilder()
Returns
newBuilder(SpeechAdaptation prototype)
public static SpeechAdaptation.Builder newBuilder(SpeechAdaptation prototype)
Parameter
Returns
public static SpeechAdaptation parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptation parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SpeechAdaptation parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptation parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SpeechAdaptation parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptation parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SpeechAdaptation parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptation parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SpeechAdaptation parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptation parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SpeechAdaptation parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptation parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SpeechAdaptation> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
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
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
getParserForType()
public Parser<SpeechAdaptation> getParserForType()
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
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> | |
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SpeechAdaptation.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SpeechAdaptation.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SpeechAdaptation.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions