Class BatchRecognizeResults.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResults.Builder>
com.google.cloud.speech.v2.BatchRecognizeResults.Builder
All Implemented Interfaces:
BatchRecognizeResultsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
BatchRecognizeResults

public static final class BatchRecognizeResults.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResults.Builder> implements BatchRecognizeResultsOrBuilder
 Output type for Cloud Storage of BatchRecognize transcripts. Though this
 proto isn't returned in this API anywhere, the Cloud Storage transcripts will
 be this proto serialized and should be parsed as such.
 
Protobuf type google.cloud.speech.v2.BatchRecognizeResults
  • 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<BatchRecognizeResults.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<BatchRecognizeResults.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<BatchRecognizeResults.Builder>
    • getDefaultInstanceForType

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

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

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

      public BatchRecognizeResults.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<BatchRecognizeResults.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<BatchRecognizeResults.Builder>
    • mergeFrom

      public BatchRecognizeResults.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<BatchRecognizeResults.Builder>
      Throws:
      IOException
    • getResultsList

      public List<SpeechRecognitionResult> getResultsList()
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
      Specified by:
      getResultsList in interface BatchRecognizeResultsOrBuilder
    • getResultsCount

      public int getResultsCount()
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
      Specified by:
      getResultsCount in interface BatchRecognizeResultsOrBuilder
    • getResults

      public SpeechRecognitionResult getResults(int index)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
      Specified by:
      getResults in interface BatchRecognizeResultsOrBuilder
    • setResults

      public BatchRecognizeResults.Builder setResults(int index, SpeechRecognitionResult value)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • setResults

      public BatchRecognizeResults.Builder setResults(int index, SpeechRecognitionResult.Builder builderForValue)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • addResults

       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • addResults

      public BatchRecognizeResults.Builder addResults(int index, SpeechRecognitionResult value)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • addResults

       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • addResults

      public BatchRecognizeResults.Builder addResults(int index, SpeechRecognitionResult.Builder builderForValue)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • addAllResults

      public BatchRecognizeResults.Builder addAllResults(Iterable<? extends SpeechRecognitionResult> values)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • clearResults

      public BatchRecognizeResults.Builder clearResults()
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • removeResults

      public BatchRecognizeResults.Builder removeResults(int index)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • getResultsBuilder

      public SpeechRecognitionResult.Builder getResultsBuilder(int index)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • getResultsOrBuilder

      public SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
      Specified by:
      getResultsOrBuilder in interface BatchRecognizeResultsOrBuilder
    • getResultsOrBuilderList

      public List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
      Specified by:
      getResultsOrBuilderList in interface BatchRecognizeResultsOrBuilder
    • addResultsBuilder

      public SpeechRecognitionResult.Builder addResultsBuilder()
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • addResultsBuilder

      public SpeechRecognitionResult.Builder addResultsBuilder(int index)
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • getResultsBuilderList

      public List<SpeechRecognitionResult.Builder> getResultsBuilderList()
       Sequential list of transcription results corresponding to sequential
       portions of audio.
       
      repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;
    • hasMetadata

      public boolean hasMetadata()
       Metadata about the recognition.
       
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
      Specified by:
      hasMetadata in interface BatchRecognizeResultsOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public RecognitionResponseMetadata getMetadata()
       Metadata about the recognition.
       
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
      Specified by:
      getMetadata in interface BatchRecognizeResultsOrBuilder
      Returns:
      The metadata.
    • setMetadata

       Metadata about the recognition.
       
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
    • setMetadata

       Metadata about the recognition.
       
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
    • mergeMetadata

       Metadata about the recognition.
       
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
    • clearMetadata

      public BatchRecognizeResults.Builder clearMetadata()
       Metadata about the recognition.
       
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
    • getMetadataBuilder

      public RecognitionResponseMetadata.Builder getMetadataBuilder()
       Metadata about the recognition.
       
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
    • getMetadataOrBuilder

      public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()
       Metadata about the recognition.
       
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;
      Specified by:
      getMetadataOrBuilder in interface BatchRecognizeResultsOrBuilder