Class SpeechAdaptation.AdaptationPhraseSet.Builder (4.16.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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SpeechAdaptation.AdaptationPhraseSet.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

build()

public SpeechAdaptation.AdaptationPhraseSet build()
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet

buildPartial()

public SpeechAdaptation.AdaptationPhraseSet buildPartial()
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet

clear()

public SpeechAdaptation.AdaptationPhraseSet.Builder clear()
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public SpeechAdaptation.AdaptationPhraseSet.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

clearInlinePhraseSet()

public SpeechAdaptation.AdaptationPhraseSet.Builder clearInlinePhraseSet()

An inline defined PhraseSet.

.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;

Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public SpeechAdaptation.AdaptationPhraseSet.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder

This builder for chaining.

clearValue()

public SpeechAdaptation.AdaptationPhraseSet.Builder clearValue()
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder

clone()

public SpeechAdaptation.AdaptationPhraseSet.Builder clone()
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

getDefaultInstanceForType()

public SpeechAdaptation.AdaptationPhraseSet getDefaultInstanceForType()
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getInlinePhraseSet()

public PhraseSet getInlinePhraseSet()

An inline defined PhraseSet.

.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;

Returns
TypeDescription
PhraseSet

The inlinePhraseSet.

getInlinePhraseSetBuilder()

public PhraseSet.Builder getInlinePhraseSetBuilder()

An inline defined PhraseSet.

.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;

Returns
TypeDescription
PhraseSet.Builder

getInlinePhraseSetOrBuilder()

public PhraseSetOrBuilder getInlinePhraseSetOrBuilder()

An inline defined PhraseSet.

.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for phraseSet.

getValueCase()

public SpeechAdaptation.AdaptationPhraseSet.ValueCase getValueCase()
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.ValueCase

hasInlinePhraseSet()

public boolean hasInlinePhraseSet()

An inline defined PhraseSet.

.google.cloud.speech.v2.PhraseSet inline_phrase_set = 2;

Returns
TypeDescription
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
TypeDescription
boolean

Whether the phraseSet field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)

public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(SpeechAdaptation.AdaptationPhraseSet other)
Parameter
NameDescription
otherSpeechAdaptation.AdaptationPhraseSet
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SpeechAdaptation.AdaptationPhraseSet.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valuePhraseSet
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SpeechAdaptation.AdaptationPhraseSet.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public SpeechAdaptation.AdaptationPhraseSet.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuePhraseSet
Returns
TypeDescription
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
NameDescription
builderForValuePhraseSet.Builder
Returns
TypeDescription
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
NameDescription
valueString

The phraseSet to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for phraseSet to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SpeechAdaptation.AdaptationPhraseSet.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SpeechAdaptation.AdaptationPhraseSet.Builder
Overrides