public static final class SpeechAdaptation.AdaptationPhraseSet.Builder extends GeneratedMessage.Builder<SpeechAdaptation.AdaptationPhraseSet.Builder> implements SpeechAdaptation.AdaptationPhraseSetOrBuilderA biasing PhraseSet, which can be either a string referencing the name of an existing PhraseSets resource, or an inline definition of a PhraseSet.
Protobuf type google.cloud.speech.v2.SpeechAdaptation.AdaptationPhraseSet
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > SpeechAdaptation.AdaptationPhraseSet.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public SpeechAdaptation.AdaptationPhraseSet build()| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet |
|
buildPartial()
public SpeechAdaptation.AdaptationPhraseSet buildPartial()| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet |
|
clear()
public SpeechAdaptation.AdaptationPhraseSet.Builder clear()| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
clearInlinePhraseSet()
public SpeechAdaptation.AdaptationPhraseSet.Builder clearInlinePhraseSet()An inline defined PhraseSet.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
clearPhraseSet()
public SpeechAdaptation.AdaptationPhraseSet.Builder clearPhraseSet()The name of an existing PhraseSet 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 |
SpeechAdaptation.AdaptationPhraseSet.Builder |
This builder for chaining. |
clearValue()
public SpeechAdaptation.AdaptationPhraseSet.Builder clearValue()| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
getDefaultInstanceForType()
public SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getInlinePhraseSet()
public PhraseSet getInlinePhraseSet()An inline defined PhraseSet.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
| Returns | |
|---|---|
| Type | Description |
PhraseSet |
The inlinePhraseSet. |
getInlinePhraseSetBuilder()
public PhraseSet.Builder getInlinePhraseSetBuilder()An inline defined PhraseSet.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
| Returns | |
|---|---|
| Type | Description |
PhraseSet.Builder |
|
getInlinePhraseSetOrBuilder()
public PhraseSetOrBuilder getInlinePhraseSetOrBuilder()An inline defined PhraseSet.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
| Returns | |
|---|---|
| Type | Description |
PhraseSetOrBuilder |
|
getPhraseSet()
public String getPhraseSet()The name of an existing PhraseSet 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 PhraseSet 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()| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.ValueCase |
|
hasInlinePhraseSet()
public boolean hasInlinePhraseSet()An inline defined PhraseSet.
.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 PhraseSet 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 GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)| Parameter | |
|---|---|
| Name | Description |
other |
SpeechAdaptation.AdaptationPhraseSet |
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
mergeInlinePhraseSet(PhraseSet value)
public SpeechAdaptation.AdaptationPhraseSet.Builder mergeInlinePhraseSet(PhraseSet value)An inline defined PhraseSet.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
PhraseSet |
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
setInlinePhraseSet(PhraseSet value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setInlinePhraseSet(PhraseSet value)An inline defined PhraseSet.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
PhraseSet |
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
setInlinePhraseSet(PhraseSet.Builder builderForValue)
public SpeechAdaptation.AdaptationPhraseSet.Builder setInlinePhraseSet(PhraseSet.Builder builderForValue)An inline defined PhraseSet.
.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
PhraseSet.Builder |
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
|
setPhraseSet(String value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setPhraseSet(String value)The name of an existing PhraseSet 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 |
StringThe phraseSet to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
This builder for chaining. |
setPhraseSetBytes(ByteString value)
public SpeechAdaptation.AdaptationPhraseSet.Builder setPhraseSetBytes(ByteString value)The name of an existing PhraseSet 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 |
ByteStringThe bytes for phraseSet to set. |
| Returns | |
|---|---|
| Type | Description |
SpeechAdaptation.AdaptationPhraseSet.Builder |
This builder for chaining. |