Class TranscriptNormalization.Builder

  • All Implemented Interfaces:
    TranscriptNormalizationOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    TranscriptNormalization

    public static final class TranscriptNormalization.Builder
    extends com.google.protobuf.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
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • clear

        public TranscriptNormalization.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • getDefaultInstanceForType

        public TranscriptNormalization getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TranscriptNormalization build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TranscriptNormalization buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public TranscriptNormalization.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • clearField

        public TranscriptNormalization.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • clearOneof

        public TranscriptNormalization.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • setRepeatedField

        public TranscriptNormalization.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                int index,
                                                                Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • addRepeatedField

        public TranscriptNormalization.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • mergeFrom

        public TranscriptNormalization.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                         com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                  throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TranscriptNormalization.Builder>
        Throws:
        IOException
      • 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;
        Specified by:
        getEntriesList in interface TranscriptNormalizationOrBuilder
      • 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;
        Specified by:
        getEntriesCount in interface TranscriptNormalizationOrBuilder
      • getEntries

        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;
        Specified by:
        getEntries in interface TranscriptNormalizationOrBuilder
      • setEntries

        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;
      • setEntries

        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;
      • addEntries

        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;
      • addEntries

        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;
      • addEntries

        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;
      • addEntries

        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;
      • addAllEntries

        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;
      • 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;
      • removeEntries

        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;
      • getEntriesBuilder

        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;
      • getEntriesOrBuilder

        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;
        Specified by:
        getEntriesOrBuilder in interface TranscriptNormalizationOrBuilder
      • 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;
        Specified by:
        getEntriesOrBuilderList in interface TranscriptNormalizationOrBuilder
      • 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;
      • addEntriesBuilder

        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;
      • 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;
      • setUnknownFields

        public final TranscriptNormalization.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>
      • mergeUnknownFields

        public final TranscriptNormalization.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<TranscriptNormalization.Builder>