Interface RecognizeResponseOrBuilder (4.49.0)

public interface RecognizeResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getRequestId()

public abstract long getRequestId()

The ID associated with the request. This is a unique ID specific only to the given request.

int64 request_id = 8;

Returns
Type Description
long

The requestId.

getResults(int index)

public abstract SpeechRecognitionResult getResults(int index)

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Parameter
Name Description
index int
Returns
Type Description
SpeechRecognitionResult

getResultsCount()

public abstract int getResultsCount()

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Returns
Type Description
int

getResultsList()

public abstract List<SpeechRecognitionResult> getResultsList()

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Returns
Type Description
List<SpeechRecognitionResult>

getResultsOrBuilder(int index)

public abstract SpeechRecognitionResultOrBuilder getResultsOrBuilder(int index)

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Parameter
Name Description
index int
Returns
Type Description
SpeechRecognitionResultOrBuilder

getResultsOrBuilderList()

public abstract List<? extends SpeechRecognitionResultOrBuilder> getResultsOrBuilderList()

Sequential list of transcription results corresponding to sequential portions of audio.

repeated .google.cloud.speech.v1p1beta1.SpeechRecognitionResult results = 2;

Returns
Type Description
List<? extends com.google.cloud.speech.v1p1beta1.SpeechRecognitionResultOrBuilder>

getSpeechAdaptationInfo()

public abstract SpeechAdaptationInfo getSpeechAdaptationInfo()

Provides information on adaptation behavior in response

.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;

Returns
Type Description
SpeechAdaptationInfo

The speechAdaptationInfo.

getSpeechAdaptationInfoOrBuilder()

public abstract SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder()

Provides information on adaptation behavior in response

.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;

Returns
Type Description
SpeechAdaptationInfoOrBuilder

getTotalBilledTime()

public abstract Duration getTotalBilledTime()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_time = 3;

Returns
Type Description
Duration

The totalBilledTime.

getTotalBilledTimeOrBuilder()

public abstract DurationOrBuilder getTotalBilledTimeOrBuilder()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_time = 3;

Returns
Type Description
DurationOrBuilder

hasSpeechAdaptationInfo()

public abstract boolean hasSpeechAdaptationInfo()

Provides information on adaptation behavior in response

.google.cloud.speech.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 7;

Returns
Type Description
boolean

Whether the speechAdaptationInfo field is set.

hasTotalBilledTime()

public abstract boolean hasTotalBilledTime()

When available, billed audio seconds for the corresponding request.

.google.protobuf.Duration total_billed_time = 3;

Returns
Type Description
boolean

Whether the totalBilledTime field is set.