Interface StreamingRecognizeResponseOrBuilder (4.4.0)

public interface StreamingRecognizeResponseOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getMetadata()

public abstract RecognitionResponseMetadata getMetadata()

Metadata about the recognition.

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

Returns
TypeDescription
RecognitionResponseMetadata

The metadata.

getMetadataOrBuilder()

public abstract RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()

Metadata about the recognition.

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

Returns
TypeDescription
RecognitionResponseMetadataOrBuilder

getResults(int index)

public abstract StreamingRecognitionResult getResults(int index)

This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one is_final=true result (the newly settled portion), followed by zero or more is_final=false results (the interim results).

repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
StreamingRecognitionResult

getResultsCount()

public abstract int getResultsCount()

This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one is_final=true result (the newly settled portion), followed by zero or more is_final=false results (the interim results).

repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;

Returns
TypeDescription
int

getResultsList()

public abstract List<StreamingRecognitionResult> getResultsList()

This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one is_final=true result (the newly settled portion), followed by zero or more is_final=false results (the interim results).

repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;

Returns
TypeDescription
List<StreamingRecognitionResult>

getResultsOrBuilder(int index)

public abstract StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index)

This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one is_final=true result (the newly settled portion), followed by zero or more is_final=false results (the interim results).

repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;

Parameter
NameDescription
indexint
Returns
TypeDescription
StreamingRecognitionResultOrBuilder

getResultsOrBuilderList()

public abstract List<? extends StreamingRecognitionResultOrBuilder> getResultsOrBuilderList()

This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed. It contains zero or one is_final=true result (the newly settled portion), followed by zero or more is_final=false results (the interim results).

repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;

Returns
TypeDescription
List<? extends com.google.cloud.speech.v2.StreamingRecognitionResultOrBuilder>

getSpeechEventOffset()

public abstract Duration getSpeechEventOffset()

Time offset between the beginning of the audio and event emission.

.google.protobuf.Duration speech_event_offset = 7;

Returns
TypeDescription
Duration

The speechEventOffset.

getSpeechEventOffsetOrBuilder()

public abstract DurationOrBuilder getSpeechEventOffsetOrBuilder()

Time offset between the beginning of the audio and event emission.

.google.protobuf.Duration speech_event_offset = 7;

Returns
TypeDescription
DurationOrBuilder

getSpeechEventType()

public abstract StreamingRecognizeResponse.SpeechEventType getSpeechEventType()

Indicates the type of speech event.

.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3;

Returns
TypeDescription
StreamingRecognizeResponse.SpeechEventType

The speechEventType.

getSpeechEventTypeValue()

public abstract int getSpeechEventTypeValue()

Indicates the type of speech event.

.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3;

Returns
TypeDescription
int

The enum numeric value on the wire for speechEventType.

hasMetadata()

public abstract boolean hasMetadata()

Metadata about the recognition.

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

Returns
TypeDescription
boolean

Whether the metadata field is set.

hasSpeechEventOffset()

public abstract boolean hasSpeechEventOffset()

Time offset between the beginning of the audio and event emission.

.google.protobuf.Duration speech_event_offset = 7;

Returns
TypeDescription
boolean

Whether the speechEventOffset field is set.