Class TranscriptNormalization.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<TranscriptNormalization.Builder>
com.google.cloud.speech.v2.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.GeneratedMessage.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
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public TranscriptNormalization.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TranscriptNormalization.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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.v2.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.v2.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.v2.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.v2.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.v2.TranscriptNormalization.Entry entries = 1;
    • addEntries

       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

      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

       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

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

       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;
    • 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;
    • 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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.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.v2.TranscriptNormalization.Entry entries = 1;