Class BatchRecognizeResponse

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.speech.v2.BatchRecognizeResponse
All Implemented Interfaces:
BatchRecognizeResponseOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class BatchRecognizeResponse extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

    • RESULTS_FIELD_NUMBER

      public static final int RESULTS_FIELD_NUMBER
      See Also:
    • TOTAL_BILLED_DURATION_FIELD_NUMBER

      public static final int TOTAL_BILLED_DURATION_FIELD_NUMBER
      See Also:
  • 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
    • internalGetFieldAccessorTable

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

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static BatchRecognizeResponse parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BatchRecognizeResponse parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static BatchRecognizeResponse parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static BatchRecognizeResponse parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static BatchRecognizeResponse.Builder newBuilder()
    • newBuilder

      public static BatchRecognizeResponse.Builder newBuilder(BatchRecognizeResponse prototype)
    • toBuilder

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

      protected BatchRecognizeResponse.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static BatchRecognizeResponse getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<BatchRecognizeResponse> parser()
    • getParserForType

      public com.google.protobuf.Parser<BatchRecognizeResponse> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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