Interface RecognitionAudioOrBuilder (4.0.0)

public interface RecognitionAudioOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudioSourceCase()

public abstract RecognitionAudio.AudioSourceCase getAudioSourceCase()
Returns
TypeDescription
RecognitionAudio.AudioSourceCase

getContent()

public abstract 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
TypeDescription
ByteString

The content.

getUri()

public abstract 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). For more information, see Request URIs.

string uri = 2;

Returns
TypeDescription
String

The uri.

getUriBytes()

public abstract 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). For more information, see Request URIs.

string uri = 2;

Returns
TypeDescription
ByteString

The bytes for uri.

hasContent()

public abstract 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
TypeDescription
boolean

Whether the content field is set.

hasUri()

public abstract 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). For more information, see Request URIs.

string uri = 2;

Returns
TypeDescription
boolean

Whether the uri field is set.