Class TranscriptNormalization.Builder (4.39.0)

public static final class TranscriptNormalization.Builder extends GeneratedMessageV3.Builder<TranscriptNormalization.Builder> implements TranscriptNormalizationOrBuilder

Transcription normalization configuration. Use transcription normalization to automatically replace parts of the transcript with phrases of your choosing. For StreamingRecognize, this normalization only applies to stable partial transcripts (stability > 0.8) and final transcripts.

Protobuf type google.cloud.speech.v2.TranscriptNormalization

Static Methods

getDescriptor()

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

Methods

addAllEntries(Iterable<? extends TranscriptNormalization.Entry> values)

public TranscriptNormalization.Builder addAllEntries(Iterable<? extends TranscriptNormalization.Entry> values)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameter
Name Description
values Iterable<? extends com.google.cloud.speech.v2.TranscriptNormalization.Entry>
Returns
Type Description
TranscriptNormalization.Builder

addEntries(TranscriptNormalization.Entry value)

public TranscriptNormalization.Builder addEntries(TranscriptNormalization.Entry value)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameter
Name Description
value TranscriptNormalization.Entry
Returns
Type Description
TranscriptNormalization.Builder

addEntries(TranscriptNormalization.Entry.Builder builderForValue)

public TranscriptNormalization.Builder addEntries(TranscriptNormalization.Entry.Builder builderForValue)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameter
Name Description
builderForValue TranscriptNormalization.Entry.Builder
Returns
Type Description
TranscriptNormalization.Builder

addEntries(int index, TranscriptNormalization.Entry value)

public TranscriptNormalization.Builder addEntries(int index, TranscriptNormalization.Entry value)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameters
Name Description
index int
value TranscriptNormalization.Entry
Returns
Type Description
TranscriptNormalization.Builder

addEntries(int index, TranscriptNormalization.Entry.Builder builderForValue)

public TranscriptNormalization.Builder addEntries(int index, TranscriptNormalization.Entry.Builder builderForValue)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameters
Name Description
index int
builderForValue TranscriptNormalization.Entry.Builder
Returns
Type Description
TranscriptNormalization.Builder

addEntriesBuilder()

public TranscriptNormalization.Entry.Builder addEntriesBuilder()

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Returns
Type Description
TranscriptNormalization.Entry.Builder

addEntriesBuilder(int index)

public TranscriptNormalization.Entry.Builder addEntriesBuilder(int index)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameter
Name Description
index int
Returns
Type Description
TranscriptNormalization.Entry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TranscriptNormalization build()
Returns
Type Description
TranscriptNormalization

buildPartial()

public TranscriptNormalization buildPartial()
Returns
Type Description
TranscriptNormalization

clear()

public TranscriptNormalization.Builder clear()
Returns
Type Description
TranscriptNormalization.Builder
Overrides

clearEntries()

public TranscriptNormalization.Builder clearEntries()

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Returns
Type Description
TranscriptNormalization.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TranscriptNormalization.Builder clone()
Returns
Type Description
TranscriptNormalization.Builder
Overrides

getDefaultInstanceForType()

public TranscriptNormalization getDefaultInstanceForType()
Returns
Type Description
TranscriptNormalization

getDescriptorForType()

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

getEntries(int index)

public TranscriptNormalization.Entry getEntries(int index)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameter
Name Description
index int
Returns
Type Description
TranscriptNormalization.Entry

getEntriesBuilder(int index)

public TranscriptNormalization.Entry.Builder getEntriesBuilder(int index)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameter
Name Description
index int
Returns
Type Description
TranscriptNormalization.Entry.Builder

getEntriesBuilderList()

public List<TranscriptNormalization.Entry.Builder> getEntriesBuilderList()

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Returns
Type Description
List<Builder>

getEntriesCount()

public int getEntriesCount()

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Returns
Type Description
int

getEntriesList()

public List<TranscriptNormalization.Entry> getEntriesList()

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Returns
Type Description
List<Entry>

getEntriesOrBuilder(int index)

public TranscriptNormalization.EntryOrBuilder getEntriesOrBuilder(int index)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameter
Name Description
index int
Returns
Type Description
TranscriptNormalization.EntryOrBuilder

getEntriesOrBuilderList()

public List<? extends TranscriptNormalization.EntryOrBuilder> getEntriesOrBuilderList()

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Returns
Type Description
List<? extends com.google.cloud.speech.v2.TranscriptNormalization.EntryOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(TranscriptNormalization other)

public TranscriptNormalization.Builder mergeFrom(TranscriptNormalization other)
Parameter
Name Description
other TranscriptNormalization
Returns
Type Description
TranscriptNormalization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public TranscriptNormalization.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
TranscriptNormalization.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public TranscriptNormalization.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
TranscriptNormalization.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeEntries(int index)

public TranscriptNormalization.Builder removeEntries(int index)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameter
Name Description
index int
Returns
Type Description
TranscriptNormalization.Builder

setEntries(int index, TranscriptNormalization.Entry value)

public TranscriptNormalization.Builder setEntries(int index, TranscriptNormalization.Entry value)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameters
Name Description
index int
value TranscriptNormalization.Entry
Returns
Type Description
TranscriptNormalization.Builder

setEntries(int index, TranscriptNormalization.Entry.Builder builderForValue)

public TranscriptNormalization.Builder setEntries(int index, TranscriptNormalization.Entry.Builder builderForValue)

A list of replacement entries. We will perform replacement with one entry at a time. For example, the second entry in ["cat" => "dog", "mountain cat" => "mountain dog"] will never be applied because we will always process the first entry before it. At most 100 entries.

repeated .google.cloud.speech.v2.TranscriptNormalization.Entry entries = 1;

Parameters
Name Description
index int
builderForValue TranscriptNormalization.Entry.Builder
Returns
Type Description
TranscriptNormalization.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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