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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
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()
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>
|
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;
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;
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;
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;
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;
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
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public TranscriptNormalization.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public TranscriptNormalization build()
buildPartial()
public TranscriptNormalization buildPartial()
clear()
public TranscriptNormalization.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public TranscriptNormalization.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public TranscriptNormalization.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public TranscriptNormalization.Builder clone()
Overrides
getDefaultInstanceForType()
public TranscriptNormalization getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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
|
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
|
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;
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;
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
|
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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(TranscriptNormalization other)
public TranscriptNormalization.Builder mergeFrom(TranscriptNormalization other)
public TranscriptNormalization.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public TranscriptNormalization.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final TranscriptNormalization.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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
|
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;
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;
setField(Descriptors.FieldDescriptor field, Object value)
public TranscriptNormalization.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public TranscriptNormalization.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final TranscriptNormalization.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides