Interface BatchRecognizeResultsOrBuilder (4.40.0)

public interface BatchRecognizeResultsOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMetadata()

public abstract RecognitionResponseMetadata getMetadata()

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Returns
Type Description
RecognitionResponseMetadata

The metadata.

getMetadataOrBuilder()

public abstract RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Returns
Type Description
RecognitionResponseMetadataOrBuilder

getResults(int index)

public abstract SpeechRecognitionResult getResults(int index)

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

repeated .google.cloud.speech.v2.SpeechRecognitionResult results = 1;

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.v2.SpeechRecognitionResult results = 1;

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.v2.SpeechRecognitionResult results = 1;

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.v2.SpeechRecognitionResult results = 1;

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.v2.SpeechRecognitionResult results = 1;

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

hasMetadata()

public abstract boolean hasMetadata()

Metadata about the recognition.

.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 2;

Returns
Type Description
boolean

Whether the metadata field is set.