Package com.google.cloud.speech.v1
Interface StreamingRecognizeResponseOrBuilder
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
StreamingRecognizeResponse,StreamingRecognizeResponse.Builder
@Generated
public interface StreamingRecognizeResponseOrBuilder
extends com.google.protobuf.MessageOrBuilder
-
Method Summary
Modifier and TypeMethodDescriptiongetError()If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.longThe ID associated with the request.getResults(int index) This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.intThis repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.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>This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.Provides information on adaptation behavior in responseProvides information on adaptation behavior in responsecom.google.protobuf.DurationTime offset between the beginning of the audio and event emission.com.google.protobuf.DurationOrBuilderTime offset between the beginning of the audio and event emission.Indicates the type of speech event.intIndicates the type of speech event.com.google.protobuf.DurationWhen available, billed audio seconds for the stream.com.google.protobuf.DurationOrBuilderWhen available, billed audio seconds for the stream.booleanhasError()If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.booleanProvides information on adaptation behavior in responsebooleanTime offset between the beginning of the audio and event emission.booleanWhen available, billed audio seconds for the stream.Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder
isInitializedMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
hasError
boolean hasError()If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;- Returns:
- Whether the error field is set.
-
getError
Status getError()If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;- Returns:
- The error.
-
getErrorOrBuilder
StatusOrBuilder getErrorOrBuilder()If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1; -
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=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2; -
getResults
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.v1.StreamingRecognitionResult results = 2; -
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=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2; -
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=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1.StreamingRecognitionResult results = 2; -
getResultsOrBuilder
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.v1.StreamingRecognitionResult results = 2; -
getSpeechEventTypeValue
int getSpeechEventTypeValue()Indicates the type of speech event.
.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;- Returns:
- The enum numeric value on the wire for speechEventType.
-
getSpeechEventType
StreamingRecognizeResponse.SpeechEventType getSpeechEventType()Indicates the type of speech event.
.google.cloud.speech.v1.StreamingRecognizeResponse.SpeechEventType speech_event_type = 4;- Returns:
- The speechEventType.
-
hasSpeechEventTime
boolean hasSpeechEventTime()Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;- Returns:
- Whether the speechEventTime field is set.
-
getSpeechEventTime
com.google.protobuf.Duration getSpeechEventTime()Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8;- Returns:
- The speechEventTime.
-
getSpeechEventTimeOrBuilder
com.google.protobuf.DurationOrBuilder getSpeechEventTimeOrBuilder()Time offset between the beginning of the audio and event emission.
.google.protobuf.Duration speech_event_time = 8; -
hasTotalBilledTime
boolean hasTotalBilledTime()When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;- Returns:
- Whether the totalBilledTime field is set.
-
getTotalBilledTime
com.google.protobuf.Duration getTotalBilledTime()When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5;- Returns:
- The totalBilledTime.
-
getTotalBilledTimeOrBuilder
com.google.protobuf.DurationOrBuilder getTotalBilledTimeOrBuilder()When available, billed audio seconds for the stream. Set only if this is the last response in the stream.
.google.protobuf.Duration total_billed_time = 5; -
hasSpeechAdaptationInfo
boolean hasSpeechAdaptationInfo()Provides information on adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9;- Returns:
- Whether the speechAdaptationInfo field is set.
-
getSpeechAdaptationInfo
SpeechAdaptationInfo getSpeechAdaptationInfo()Provides information on adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9;- Returns:
- The speechAdaptationInfo.
-
getSpeechAdaptationInfoOrBuilder
SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder()Provides information on adaptation behavior in response
.google.cloud.speech.v1.SpeechAdaptationInfo speech_adaptation_info = 9; -
getRequestId
long getRequestId()The ID associated with the request. This is a unique ID specific only to the given request.
int64 request_id = 10;- Returns:
- The requestId.
-