public static final class SpeechAdaptation.AdaptationPhraseSet.Builder extends GeneratedMessageV3.Builder<SpeechAdaptation.AdaptationPhraseSet.Builder> 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
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
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.AdaptationPhraseSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SpeechAdaptation.AdaptationPhraseSet build()
buildPartial()
public SpeechAdaptation.AdaptationPhraseSet buildPartial()
clear()
public SpeechAdaptation.AdaptationPhraseSet.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public SpeechAdaptation.AdaptationPhraseSet.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearInlinePhraseSet()
public SpeechAdaptation.AdaptationPhraseSet.Builder clearInlinePhraseSet()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechAdaptation.AdaptationPhraseSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearPhraseSet()
public SpeechAdaptation.AdaptationPhraseSet.Builder clearPhraseSet()
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) = { ... }
clearValue()
public SpeechAdaptation.AdaptationPhraseSet.Builder clearValue()
clone()
public SpeechAdaptation.AdaptationPhraseSet.Builder clone()
Overrides
getDefaultInstanceForType()
public SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getInlinePhraseSet()
public PhraseSet getInlinePhraseSet()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns |
---|
Type | Description |
PhraseSet | The inlinePhraseSet.
|
getInlinePhraseSetBuilder()
public PhraseSet.Builder getInlinePhraseSetBuilder()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
getInlinePhraseSetOrBuilder()
public PhraseSetOrBuilder getInlinePhraseSetOrBuilder()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
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 |
---|
Type | Description |
ByteString | The bytes for phraseSet.
|
getValueCase()
public SpeechAdaptation.AdaptationPhraseSet.ValueCase getValueCase()
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeInlinePhraseSet(PhraseSet value)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeInlinePhraseSet(PhraseSet value)
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.AdaptationPhraseSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setInlinePhraseSet(PhraseSet value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setInlinePhraseSet(PhraseSet value)
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
setInlinePhraseSet(PhraseSet.Builder builderForValue)
public SpeechAdaptation.AdaptationPhraseSet.Builder setInlinePhraseSet(PhraseSet.Builder builderForValue)
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
setPhraseSet(String value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setPhraseSet(String value)
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) = { ... }
Parameter |
---|
Name | Description |
value | String
The phraseSet to set.
|
setPhraseSetBytes(ByteString value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setPhraseSetBytes(ByteString value)
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) = { ... }
Parameter |
---|
Name | Description |
value | ByteString
The bytes for phraseSet to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.AdaptationPhraseSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides