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 com.google.rpc.Status
getError()
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.com.google.rpc.StatusOrBuilder
getErrorOrBuilder()
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.long
getRequestId()
The ID associated with the request.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.SpeechAdaptationInfo
getSpeechAdaptationInfo()
Provides information on adaptation behavior in responseSpeechAdaptationInfoOrBuilder
getSpeechAdaptationInfoOrBuilder()
Provides information on adaptation behavior in responsecom.google.protobuf.Duration
getSpeechEventTime()
Time offset between the beginning of the audio and event emission.com.google.protobuf.DurationOrBuilder
getSpeechEventTimeOrBuilder()
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.com.google.protobuf.Duration
getTotalBilledTime()
When available, billed audio seconds for the stream.com.google.protobuf.DurationOrBuilder
getTotalBilledTimeOrBuilder()
When available, billed audio seconds for the stream.boolean
hasError()
If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.boolean
hasSpeechAdaptationInfo()
Provides information on adaptation behavior in responseboolean
hasSpeechEventTime()
Time offset between the beginning of the audio and event emission.boolean
hasTotalBilledTime()
When available, billed audio seconds for the stream.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
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
com.google.rpc.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
com.google.rpc.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.v1p1beta1.StreamingRecognitionResult results = 2;
-
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=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.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.v1p1beta1.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.v1p1beta1.StreamingRecognitionResult results = 2;
-
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=true` result (the newly settled portion), followed by zero or more `is_final=false` results (the interim results).
repeated .google.cloud.speech.v1p1beta1.StreamingRecognitionResult results = 2;
-
getSpeechEventTypeValue
int getSpeechEventTypeValue()
Indicates the type of speech event.
.google.cloud.speech.v1p1beta1.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.v1p1beta1.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.v1p1beta1.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.v1p1beta1.SpeechAdaptationInfo speech_adaptation_info = 9;
- Returns:
- The speechAdaptationInfo.
-
getSpeechAdaptationInfoOrBuilder
SpeechAdaptationInfoOrBuilder getSpeechAdaptationInfoOrBuilder()
Provides information on adaptation behavior in response
.google.cloud.speech.v1p1beta1.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.
-
-