Class BatchRecognizeResponse.Builder

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

public static final class BatchRecognizeResponse.Builder extends com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder> implements BatchRecognizeResponseOrBuilder
 Response message for
 [BatchRecognize][google.cloud.speech.v2.Speech.BatchRecognize] that is
 packaged into a longrunning [Operation][google.longrunning.Operation].
 
Protobuf type google.cloud.speech.v2.BatchRecognizeResponse
  • Method Details

    • getDescriptor

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

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
      Overrides:
      internalGetMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder>
    • internalGetMutableMapFieldReflection

      protected com.google.protobuf.MapFieldReflectionAccessor internalGetMutableMapFieldReflection(int number)
      Overrides:
      internalGetMutableMapFieldReflection in class com.google.protobuf.GeneratedMessage.Builder<BatchRecognizeResponse.Builder>
    • internalGetFieldAccessorTable

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

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

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

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

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

      public BatchRecognizeResponse.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<BatchRecognizeResponse.Builder>
      Throws:
      IOException
    • getResultsCount

      public int getResultsCount()
      Description copied from interface: BatchRecognizeResponseOrBuilder
       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
      Specified by:
      getResultsCount in interface BatchRecognizeResponseOrBuilder
    • containsResults

      public boolean containsResults(String key)
       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
      Specified by:
      containsResults in interface BatchRecognizeResponseOrBuilder
    • getResults

      Deprecated.
      Use getResultsMap() instead.
      Specified by:
      getResults in interface BatchRecognizeResponseOrBuilder
    • getResultsMap

      public Map<String,BatchRecognizeFileResult> getResultsMap()
       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
      Specified by:
      getResultsMap in interface BatchRecognizeResponseOrBuilder
    • getResultsOrDefault

      public BatchRecognizeFileResult getResultsOrDefault(String key, BatchRecognizeFileResult defaultValue)
       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
      Specified by:
      getResultsOrDefault in interface BatchRecognizeResponseOrBuilder
    • getResultsOrThrow

      public BatchRecognizeFileResult getResultsOrThrow(String key)
       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
      Specified by:
      getResultsOrThrow in interface BatchRecognizeResponseOrBuilder
    • clearResults

      public BatchRecognizeResponse.Builder clearResults()
    • removeResults

      public BatchRecognizeResponse.Builder removeResults(String key)
       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
    • getMutableResults

      @Deprecated public Map<String,BatchRecognizeFileResult> getMutableResults()
      Deprecated.
      Use alternate mutation accessors instead.
    • putResults

       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
    • putAllResults

       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
    • putResultsBuilderIfAbsent

      public BatchRecognizeFileResult.Builder putResultsBuilderIfAbsent(String key)
       Map from filename to the final result for that file.
       
      map<string, .google.cloud.speech.v2.BatchRecognizeFileResult> results = 1;
    • hasTotalBilledDuration

      public boolean hasTotalBilledDuration()
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 2;
      Specified by:
      hasTotalBilledDuration in interface BatchRecognizeResponseOrBuilder
      Returns:
      Whether the totalBilledDuration field is set.
    • getTotalBilledDuration

      public com.google.protobuf.Duration getTotalBilledDuration()
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 2;
      Specified by:
      getTotalBilledDuration in interface BatchRecognizeResponseOrBuilder
      Returns:
      The totalBilledDuration.
    • setTotalBilledDuration

      public BatchRecognizeResponse.Builder setTotalBilledDuration(com.google.protobuf.Duration value)
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 2;
    • setTotalBilledDuration

      public BatchRecognizeResponse.Builder setTotalBilledDuration(com.google.protobuf.Duration.Builder builderForValue)
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 2;
    • mergeTotalBilledDuration

      public BatchRecognizeResponse.Builder mergeTotalBilledDuration(com.google.protobuf.Duration value)
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 2;
    • clearTotalBilledDuration

      public BatchRecognizeResponse.Builder clearTotalBilledDuration()
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 2;
    • getTotalBilledDurationBuilder

      public com.google.protobuf.Duration.Builder getTotalBilledDurationBuilder()
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 2;
    • getTotalBilledDurationOrBuilder

      public com.google.protobuf.DurationOrBuilder getTotalBilledDurationOrBuilder()
       When available, billed audio seconds for the corresponding request.
       
      .google.protobuf.Duration total_billed_duration = 2;
      Specified by:
      getTotalBilledDurationOrBuilder in interface BatchRecognizeResponseOrBuilder