Package com.google.cloud.speech.v1beta1
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 StreamingRecognizeResponse.EndpointerTypegetEndpointerType()*Output-only* Indicates the type of endpointer event.intgetEndpointerTypeValue()*Output-only* Indicates the type of endpointer event.com.google.rpc.StatusgetError()*Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.com.google.rpc.StatusOrBuildergetErrorOrBuilder()*Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.intgetResultIndex()*Output-only* Indicates the lowest index in the `results` array that has changed.StreamingRecognitionResultgetResults(int index)*Output-only* This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.intgetResultsCount()*Output-only* This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.List<StreamingRecognitionResult>getResultsList()*Output-only* This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.StreamingRecognitionResultOrBuildergetResultsOrBuilder(int index)*Output-only* This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.List<? extends StreamingRecognitionResultOrBuilder>getResultsOrBuilderList()*Output-only* This repeated list contains zero or more results that correspond to consecutive portions of the audio currently being processed.booleanhasError()*Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.-
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()
*Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;
-
getError
com.google.rpc.Status getError()
*Output-only* If set, returns a [google.rpc.Status][google.rpc.Status] message that specifies the error for the operation.
.google.rpc.Status error = 1;
-
getErrorOrBuilder
com.google.rpc.StatusOrBuilder getErrorOrBuilder()
*Output-only* 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()
*Output-only* 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.
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;
-
getResults
StreamingRecognitionResult getResults(int index)
*Output-only* 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.
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;
-
getResultsCount
int getResultsCount()
*Output-only* 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.
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;
-
getResultsOrBuilderList
List<? extends StreamingRecognitionResultOrBuilder> getResultsOrBuilderList()
*Output-only* 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.
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;
-
getResultsOrBuilder
StreamingRecognitionResultOrBuilder getResultsOrBuilder(int index)
*Output-only* 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.
repeated .google.cloud.speech.v1beta1.StreamingRecognitionResult results = 2;
-
getResultIndex
int getResultIndex()
*Output-only* Indicates the lowest index in the `results` array that has changed. The repeated `StreamingRecognitionResult` results overwrite past results at this index and higher.
int32 result_index = 3;
-
getEndpointerTypeValue
int getEndpointerTypeValue()
*Output-only* Indicates the type of endpointer event.
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;
-
getEndpointerType
StreamingRecognizeResponse.EndpointerType getEndpointerType()
*Output-only* Indicates the type of endpointer event.
.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType endpointer_type = 4;
-
-