Class BatchRecognizeFileResult

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

@Generated public final class BatchRecognizeFileResult extends com.google.protobuf.GeneratedMessage implements BatchRecognizeFileResultOrBuilder
 Final results for a single file.
 
Protobuf type google.cloud.speech.v2.BatchRecognizeFileResult
See Also:
  • Field Details

    • ERROR_FIELD_NUMBER

      public static final int ERROR_FIELD_NUMBER
      See Also:
    • METADATA_FIELD_NUMBER

      public static final int METADATA_FIELD_NUMBER
      See Also:
    • CLOUD_STORAGE_RESULT_FIELD_NUMBER

      public static final int CLOUD_STORAGE_RESULT_FIELD_NUMBER
      See Also:
    • INLINE_RESULT_FIELD_NUMBER

      public static final int INLINE_RESULT_FIELD_NUMBER
      See Also:
    • URI_FIELD_NUMBER

      public static final int URI_FIELD_NUMBER
      See Also:
    • TRANSCRIPT_FIELD_NUMBER

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

      public BatchRecognizeFileResult.ResultCase getResultCase()
      Specified by:
      getResultCase in interface BatchRecognizeFileResultOrBuilder
    • hasError

      public boolean hasError()
       Error if one was encountered.
       
      .google.rpc.Status error = 2;
      Specified by:
      hasError in interface BatchRecognizeFileResultOrBuilder
      Returns:
      Whether the error field is set.
    • getError

      public Status getError()
       Error if one was encountered.
       
      .google.rpc.Status error = 2;
      Specified by:
      getError in interface BatchRecognizeFileResultOrBuilder
      Returns:
      The error.
    • getErrorOrBuilder

      public StatusOrBuilder getErrorOrBuilder()
       Error if one was encountered.
       
      .google.rpc.Status error = 2;
      Specified by:
      getErrorOrBuilder in interface BatchRecognizeFileResultOrBuilder
    • hasMetadata

      public boolean hasMetadata()
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
      Specified by:
      hasMetadata in interface BatchRecognizeFileResultOrBuilder
      Returns:
      Whether the metadata field is set.
    • getMetadata

      public RecognitionResponseMetadata getMetadata()
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
      Specified by:
      getMetadata in interface BatchRecognizeFileResultOrBuilder
      Returns:
      The metadata.
    • getMetadataOrBuilder

      public RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()
      .google.cloud.speech.v2.RecognitionResponseMetadata metadata = 3;
      Specified by:
      getMetadataOrBuilder in interface BatchRecognizeFileResultOrBuilder
    • hasCloudStorageResult

      public boolean hasCloudStorageResult()
       Recognition results written to Cloud Storage. This is
       populated only when
       [GcsOutputConfig][google.cloud.speech.v2.GcsOutputConfig] is set in
       the
       [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
       
      .google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;
      Specified by:
      hasCloudStorageResult in interface BatchRecognizeFileResultOrBuilder
      Returns:
      Whether the cloudStorageResult field is set.
    • getCloudStorageResult

      public CloudStorageResult getCloudStorageResult()
       Recognition results written to Cloud Storage. This is
       populated only when
       [GcsOutputConfig][google.cloud.speech.v2.GcsOutputConfig] is set in
       the
       [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
       
      .google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;
      Specified by:
      getCloudStorageResult in interface BatchRecognizeFileResultOrBuilder
      Returns:
      The cloudStorageResult.
    • getCloudStorageResultOrBuilder

      public CloudStorageResultOrBuilder getCloudStorageResultOrBuilder()
       Recognition results written to Cloud Storage. This is
       populated only when
       [GcsOutputConfig][google.cloud.speech.v2.GcsOutputConfig] is set in
       the
       [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
       
      .google.cloud.speech.v2.CloudStorageResult cloud_storage_result = 5;
      Specified by:
      getCloudStorageResultOrBuilder in interface BatchRecognizeFileResultOrBuilder
    • hasInlineResult

      public boolean hasInlineResult()
       Recognition results. This is populated only when
       [InlineOutputConfig][google.cloud.speech.v2.InlineOutputConfig] is set in
       the
       [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
       
      .google.cloud.speech.v2.InlineResult inline_result = 6;
      Specified by:
      hasInlineResult in interface BatchRecognizeFileResultOrBuilder
      Returns:
      Whether the inlineResult field is set.
    • getInlineResult

      public InlineResult getInlineResult()
       Recognition results. This is populated only when
       [InlineOutputConfig][google.cloud.speech.v2.InlineOutputConfig] is set in
       the
       [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
       
      .google.cloud.speech.v2.InlineResult inline_result = 6;
      Specified by:
      getInlineResult in interface BatchRecognizeFileResultOrBuilder
      Returns:
      The inlineResult.
    • getInlineResultOrBuilder

      public InlineResultOrBuilder getInlineResultOrBuilder()
       Recognition results. This is populated only when
       [InlineOutputConfig][google.cloud.speech.v2.InlineOutputConfig] is set in
       the
       [RecognitionOutputConfig][[google.cloud.speech.v2.RecognitionOutputConfig].
       
      .google.cloud.speech.v2.InlineResult inline_result = 6;
      Specified by:
      getInlineResultOrBuilder in interface BatchRecognizeFileResultOrBuilder
    • getUri

      @Deprecated public String getUri()
      Deprecated.
      google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1494
       Deprecated. Use `cloud_storage_result.native_format_uri` instead.
       
      string uri = 1 [deprecated = true];
      Specified by:
      getUri in interface BatchRecognizeFileResultOrBuilder
      Returns:
      The uri.
    • getUriBytes

      @Deprecated public com.google.protobuf.ByteString getUriBytes()
      Deprecated.
      google.cloud.speech.v2.BatchRecognizeFileResult.uri is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1494
       Deprecated. Use `cloud_storage_result.native_format_uri` instead.
       
      string uri = 1 [deprecated = true];
      Specified by:
      getUriBytes in interface BatchRecognizeFileResultOrBuilder
      Returns:
      The bytes for uri.
    • hasTranscript

      @Deprecated public boolean hasTranscript()
      Deprecated.
      google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1497
       Deprecated. Use `inline_result.transcript` instead.
       
      .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
      Specified by:
      hasTranscript in interface BatchRecognizeFileResultOrBuilder
      Returns:
      Whether the transcript field is set.
    • getTranscript

      @Deprecated public BatchRecognizeResults getTranscript()
      Deprecated.
      google.cloud.speech.v2.BatchRecognizeFileResult.transcript is deprecated. See google/cloud/speech/v2/cloud_speech.proto;l=1497
       Deprecated. Use `inline_result.transcript` instead.
       
      .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
      Specified by:
      getTranscript in interface BatchRecognizeFileResultOrBuilder
      Returns:
      The transcript.
    • getTranscriptOrBuilder

      @Deprecated public BatchRecognizeResultsOrBuilder getTranscriptOrBuilder()
      Deprecated.
       Deprecated. Use `inline_result.transcript` instead.
       
      .google.cloud.speech.v2.BatchRecognizeResults transcript = 4 [deprecated = true];
      Specified by:
      getTranscriptOrBuilder in interface BatchRecognizeFileResultOrBuilder
    • 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 BatchRecognizeFileResult parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

      public static BatchRecognizeFileResult.Builder newBuilder()
    • newBuilder

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

      Specified by:
      toBuilder in interface com.google.protobuf.Message
      Specified by:
      toBuilder in interface com.google.protobuf.MessageLite
    • newBuilderForType

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

      public static BatchRecognizeFileResult getDefaultInstance()
    • parser

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

      public com.google.protobuf.Parser<BatchRecognizeFileResult> 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 BatchRecognizeFileResult getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder