Interface RecognizeRequestOrBuilder (4.36.0)

public interface RecognizeRequestOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAudio()

public abstract RecognitionAudio getAudio()

Required. The audio data to be recognized.

.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionAudio

The audio.

getAudioOrBuilder()

public abstract RecognitionAudioOrBuilder getAudioOrBuilder()

Required. The audio data to be recognized.

.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionAudioOrBuilder

getConfig()

public abstract RecognitionConfig getConfig()

Required. Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionConfig

The config.

getConfigOrBuilder()

public abstract RecognitionConfigOrBuilder getConfigOrBuilder()

Required. Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
RecognitionConfigOrBuilder

hasAudio()

public abstract boolean hasAudio()

Required. The audio data to be recognized.

.google.cloud.speech.v1.RecognitionAudio audio = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the audio field is set.

hasConfig()

public abstract boolean hasConfig()

Required. Provides information to the recognizer that specifies how to process the request.

.google.cloud.speech.v1.RecognitionConfig config = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
boolean

Whether the config field is set.