Package com.google.cloud.speech.v2
Interface StreamingRecognizeResponseOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StreamingRecognizeResponse
,StreamingRecognizeResponse.Builder
public interface StreamingRecognizeResponseOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description RecognitionResponseMetadata
getMetadata()
Metadata about the recognition.RecognitionResponseMetadataOrBuilder
getMetadataOrBuilder()
Metadata about the recognition.StreamingRecognitionResult
getResults(int index)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.int
getResultsCount()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.List<StreamingRecognitionResult>
getResultsList()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.StreamingRecognitionResultOrBuilder
getResultsOrBuilder(int index)
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.List<? extends StreamingRecognitionResultOrBuilder>
getResultsOrBuilderList()
This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.com.google.protobuf.Duration
getSpeechEventOffset()
Time offset between the beginning of the audio and event emission.com.google.protobuf.DurationOrBuilder
getSpeechEventOffsetOrBuilder()
Time offset between the beginning of the audio and event emission.StreamingRecognizeResponse.SpeechEventType
getSpeechEventType()
Indicates the type of speech event.int
getSpeechEventTypeValue()
Indicates the type of speech event.boolean
hasMetadata()
Metadata about the recognition.boolean
hasSpeechEventOffset()
Time offset between the beginning of the audio and event emission.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
getResultsList
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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true` result (the newly settled portion), followed by zero or more [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false` results (the interim results).
repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
-
getResults
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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true` result (the newly settled portion), followed by zero or more [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false` results (the interim results).
repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
-
getResultsCount
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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true` result (the newly settled portion), followed by zero or more [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false` results (the interim results).
repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
-
getResultsOrBuilderList
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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true` result (the newly settled portion), followed by zero or more [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false` results (the interim results).
repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
-
getResultsOrBuilder
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][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`true` result (the newly settled portion), followed by zero or more [is_final][google.cloud.speech.v2.StreamingRecognitionResult.is_final]=`false` results (the interim results).
repeated .google.cloud.speech.v2.StreamingRecognitionResult results = 6;
-
getSpeechEventTypeValue
int getSpeechEventTypeValue()
Indicates the type of speech event.
.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3;
- Returns:
- The enum numeric value on the wire for speechEventType.
-
getSpeechEventType
StreamingRecognizeResponse.SpeechEventType getSpeechEventType()
Indicates the type of speech event.
.google.cloud.speech.v2.StreamingRecognizeResponse.SpeechEventType speech_event_type = 3;
- Returns:
- The speechEventType.
-
hasSpeechEventOffset
boolean hasSpeechEventOffset()
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_offset = 7;
- Returns:
- Whether the speechEventOffset field is set.
-
getSpeechEventOffset
com.google.protobuf.Duration getSpeechEventOffset()
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_offset = 7;
- Returns:
- The speechEventOffset.
-
getSpeechEventOffsetOrBuilder
com.google.protobuf.DurationOrBuilder getSpeechEventOffsetOrBuilder()
Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_offset = 7;
-
hasMetadata
boolean hasMetadata()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5;
- Returns:
- Whether the metadata field is set.
-
getMetadata
RecognitionResponseMetadata getMetadata()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5;
- Returns:
- The metadata.
-
getMetadataOrBuilder
RecognitionResponseMetadataOrBuilder getMetadataOrBuilder()
Metadata about the recognition.
.google.cloud.speech.v2.RecognitionResponseMetadata metadata = 5;
-
-