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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.AdaptationPhraseSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public SpeechAdaptation.AdaptationPhraseSet build()
Returns
buildPartial()
public SpeechAdaptation.AdaptationPhraseSet buildPartial()
Returns
clear()
public SpeechAdaptation.AdaptationPhraseSet.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public SpeechAdaptation.AdaptationPhraseSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearInlinePhraseSet()
public SpeechAdaptation.AdaptationPhraseSet.Builder clearInlinePhraseSet()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public SpeechAdaptation.AdaptationPhraseSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
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) = { ... }
Returns
clearValue()
public SpeechAdaptation.AdaptationPhraseSet.Builder clearValue()
Returns
clone()
public SpeechAdaptation.AdaptationPhraseSet.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getInlinePhraseSet()
public PhraseSet getInlinePhraseSet()
An inline defined phrase set.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
Returns
getInlinePhraseSetBuilder()
public PhraseSet.Builder getInlinePhraseSetBuilder()
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
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
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)
Parameter
Returns
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(Message other)
Parameter
Returns
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;
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.AdaptationPhraseSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
setField(Descriptors.FieldDescriptor field, Object value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameter
Returns
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;
Parameter
Returns
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.
|
Returns
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.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SpeechAdaptation.AdaptationPhraseSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides