public static final class SpeechAdaptation.AdaptationPhraseSet extends GeneratedMessageV3 implements SpeechAdaptation.AdaptationPhraseSetOrBuilder
A biasing phrase set, which can be either a string referencing the name of
an existing phrase set resource, or an inline definition of a phrase set.
Protobuf type google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet
Static Fields
INLINE_PHRASE_SET_FIELD_NUMBER
public static final int INLINE_PHRASE_SET_FIELD_NUMBER
Field Value
PHRASE_SET_FIELD_NUMBER
public static final int PHRASE_SET_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static SpeechAdaptation.AdaptationPhraseSet getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static SpeechAdaptation.AdaptationPhraseSet.Builder newBuilder()
Returns
newBuilder(SpeechAdaptation.AdaptationPhraseSet prototype)
public static SpeechAdaptation.AdaptationPhraseSet.Builder newBuilder(SpeechAdaptation.AdaptationPhraseSet prototype)
Parameter
Returns
public static SpeechAdaptation.AdaptationPhraseSet parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptation.AdaptationPhraseSet parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SpeechAdaptation.AdaptationPhraseSet parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<SpeechAdaptation.AdaptationPhraseSet> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType()
Returns
getInlinePhraseSet()
public PhraseSet getInlinePhraseSet()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns
getInlinePhraseSetOrBuilder()
public PhraseSetOrBuilder getInlinePhraseSetOrBuilder()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns
getParserForType()
public Parser<SpeechAdaptation.AdaptationPhraseSet> getParserForType()
Returns
Overrides
getPhraseSet()
public String getPhraseSet()
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
String | The phraseSet.
|
getPhraseSetBytes()
public ByteString getPhraseSetBytes()
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
Returns
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
getValueCase()
public SpeechAdaptation.AdaptationPhraseSet.ValueCase getValueCase()
Returns
hasInlinePhraseSet()
public boolean hasInlinePhraseSet()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns
Type | Description |
boolean | Whether the inlinePhraseSet field is set.
|
hasPhraseSet()
public boolean hasPhraseSet()
The name of an existing phrase set resource. The user must have read
access to the resource and it must not be deleted.
string phrase_set = 1 [(.google.api.resource_reference) = { ... }
Returns
Type | Description |
boolean | Whether the phraseSet field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public SpeechAdaptation.AdaptationPhraseSet.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SpeechAdaptation.AdaptationPhraseSet.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public SpeechAdaptation.AdaptationPhraseSet.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions