Class TranscriptNormalization.Builder (4.36.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.v1p1beta1.TranscriptNormalization

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.Entry>
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameter
NameDescription
valueTranscriptNormalization.Entry
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameter
NameDescription
builderForValueTranscriptNormalization.Entry.Builder
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameters
NameDescription
indexint
valueTranscriptNormalization.Entry
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameters
NameDescription
indexint
builderForValueTranscriptNormalization.Entry.Builder
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
TranscriptNormalization.Entry.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TranscriptNormalization build()
Returns
TypeDescription
TranscriptNormalization

buildPartial()

public TranscriptNormalization buildPartial()
Returns
TypeDescription
TranscriptNormalization

clear()

public TranscriptNormalization.Builder clear()
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Returns
TypeDescription
TranscriptNormalization.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public TranscriptNormalization.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
TranscriptNormalization.Builder
Overrides

clone()

public TranscriptNormalization.Builder clone()
Returns
TypeDescription
TranscriptNormalization.Builder
Overrides

getDefaultInstanceForType()

public TranscriptNormalization getDefaultInstanceForType()
Returns
TypeDescription
TranscriptNormalization

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Returns
TypeDescription
List<? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder>

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(TranscriptNormalization other)

public TranscriptNormalization.Builder mergeFrom(TranscriptNormalization other)
Parameter
NameDescription
otherTranscriptNormalization
Returns
TypeDescription
TranscriptNormalization.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public TranscriptNormalization.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
TranscriptNormalization.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TranscriptNormalization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameter
NameDescription
indexint
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameters
NameDescription
indexint
valueTranscriptNormalization.Entry
Returns
TypeDescription
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.v1p1beta1.TranscriptNormalization.Entry entries = 1;

Parameters
NameDescription
indexint
builderForValueTranscriptNormalization.Entry.Builder
Returns
TypeDescription
TranscriptNormalization.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public TranscriptNormalization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
TranscriptNormalization.Builder
Overrides

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

public TranscriptNormalization.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
TranscriptNormalization.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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