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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
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
Name | Description |
values | Iterable<? 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
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
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
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
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
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranscriptNormalization.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
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
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TranscriptNormalization.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public TranscriptNormalization.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public TranscriptNormalization getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
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
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
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
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
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
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
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
Type | Description |
List<? extends com.google.cloud.speech.v1p1beta1.TranscriptNormalization.EntryOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(TranscriptNormalization other)
public TranscriptNormalization.Builder mergeFrom(TranscriptNormalization other)
Parameter
Returns
public TranscriptNormalization.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public TranscriptNormalization.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranscriptNormalization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
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
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
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
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public TranscriptNormalization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranscriptNormalization.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TranscriptNormalization.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides