public interface StreamingRecognitionResultOrBuilder extends MessageOrBuilder
Modifier and Type | Method and Description |
---|---|
float |
getConfidence()
The Speech confidence between 0.0 and 1.0 for the current portion of audio.
|
boolean |
getIsFinal()
The default of 0.0 is a sentinel value indicating `confidence` was not set.
|
StreamingRecognitionResult.MessageType |
getMessageType()
Type of the result message.
|
int |
getMessageTypeValue()
Type of the result message.
|
java.lang.String |
getTranscript()
Transcript text representing the words that the user spoke.
|
ByteString |
getTranscriptBytes()
Transcript text representing the words that the user spoke.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
isInitialized
int getMessageTypeValue()
Type of the result message.
.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType message_type = 1;
StreamingRecognitionResult.MessageType getMessageType()
Type of the result message.
.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType message_type = 1;
java.lang.String getTranscript()
Transcript text representing the words that the user spoke. Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
string transcript = 2;
ByteString getTranscriptBytes()
Transcript text representing the words that the user spoke. Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
string transcript = 2;
boolean getIsFinal()
The default of 0.0 is a sentinel value indicating `confidence` was not set. If `false`, the `StreamingRecognitionResult` represents an interim result that may change. If `true`, the recognizer will not return any further hypotheses about this piece of the audio. May only be populated for `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
bool is_final = 3;
float getConfidence()
The Speech confidence between 0.0 and 1.0 for the current portion of audio. A higher number indicates an estimated greater likelihood that the recognized words are correct. The default of 0.0 is a sentinel value indicating that confidence was not set. This field is typically only provided if `is_final` is true and you should not rely on it being accurate or even set.
float confidence = 4;