Class SpeechAdaptation.AdaptationPhraseSet.Builder (4.43.0)

public static final class SpeechAdaptation.AdaptationPhraseSet.Builder extends GeneratedMessageV3.Builder<SpeechAdaptation.AdaptationPhraseSet.Builder> implements SpeechAdaptation.AdaptationPhraseSetOrBuilder

A 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SpeechAdaptation.AdaptationPhraseSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

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
Overrides

clearField(Descriptors.FieldDescriptor field)

public SpeechAdaptation.AdaptationPhraseSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

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

clearOneof(Descriptors.OneofDescriptor oneof)

public SpeechAdaptation.AdaptationPhraseSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

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

clone()

public SpeechAdaptation.AdaptationPhraseSet.Builder clone()
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

getDefaultInstanceForType()

public SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType()
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

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 GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

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
Overrides
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
Overrides

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpeechAdaptation.AdaptationPhraseSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SpeechAdaptation.AdaptationPhraseSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

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 String

The 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 ByteString

The bytes for phraseSet to set.

Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SpeechAdaptation.AdaptationPhraseSet.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SpeechAdaptation.AdaptationPhraseSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides