Interface RecognitionAudioOrBuilder

All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder
All Known Implementing Classes:
RecognitionAudio, RecognitionAudio.Builder

@Generated public interface RecognitionAudioOrBuilder extends com.google.protobuf.MessageOrBuilder
  • Method Summary

    Modifier and Type
    Method
    Description
     
    com.google.protobuf.ByteString
    The audio data bytes encoded as specified in `RecognitionConfig`.
    URI that points to a file that contains audio data bytes as specified in `RecognitionConfig`.
    com.google.protobuf.ByteString
    URI that points to a file that contains audio data bytes as specified in `RecognitionConfig`.
    boolean
    The audio data bytes encoded as specified in `RecognitionConfig`.
    boolean
    URI that points to a file that contains audio data bytes as specified in `RecognitionConfig`.

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    isInitialized

    Methods inherited from interface com.google.protobuf.MessageOrBuilder

    findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
  • Method Details

    • hasContent

      boolean hasContent()
       The audio data bytes encoded as specified in
       `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
       pure binary representation, whereas JSON representations use base64.
       
      bytes content = 1;
      Returns:
      Whether the content field is set.
    • getContent

      com.google.protobuf.ByteString getContent()
       The audio data bytes encoded as specified in
       `RecognitionConfig`. Note: as with all bytes fields, proto buffers use a
       pure binary representation, whereas JSON representations use base64.
       
      bytes content = 1;
      Returns:
      The content.
    • hasUri

      boolean hasUri()
       URI that points to a file that contains audio data bytes as specified in
       `RecognitionConfig`. The file must not be compressed (for example, gzip).
       Currently, only Google Cloud Storage URIs are
       supported, which must be specified in the following format:
       `gs://bucket_name/object_name` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
       For more information, see [Request
       URIs](https://cloud.google.com/storage/docs/reference-uris).
       
      string uri = 2;
      Returns:
      Whether the uri field is set.
    • getUri

      String getUri()
       URI that points to a file that contains audio data bytes as specified in
       `RecognitionConfig`. The file must not be compressed (for example, gzip).
       Currently, only Google Cloud Storage URIs are
       supported, which must be specified in the following format:
       `gs://bucket_name/object_name` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
       For more information, see [Request
       URIs](https://cloud.google.com/storage/docs/reference-uris).
       
      string uri = 2;
      Returns:
      The uri.
    • getUriBytes

      com.google.protobuf.ByteString getUriBytes()
       URI that points to a file that contains audio data bytes as specified in
       `RecognitionConfig`. The file must not be compressed (for example, gzip).
       Currently, only Google Cloud Storage URIs are
       supported, which must be specified in the following format:
       `gs://bucket_name/object_name` (other URI formats return
       [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]).
       For more information, see [Request
       URIs](https://cloud.google.com/storage/docs/reference-uris).
       
      string uri = 2;
      Returns:
      The bytes for uri.
    • getAudioSourceCase

      RecognitionAudio.AudioSourceCase getAudioSourceCase()