Class TranscriptNormalization.Builder (2.2.15)

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

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

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

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

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

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

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

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public TranscriptNormalization build()
Returns

buildPartial()

public TranscriptNormalization buildPartial()
Returns

clear()

public TranscriptNormalization.Builder clear()
Returns 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

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public TranscriptNormalization.Builder clone()
Returns Overrides

getDefaultInstanceForType()

public TranscriptNormalization getDefaultInstanceForType()
Returns

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

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

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final TranscriptNormalization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns 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

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

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

setField(Descriptors.FieldDescriptor field, Object value)

public TranscriptNormalization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns 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 Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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