com.google.cloud.dialogflow.v2.StreamingRecognitionResultOrBuilder Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of proto-google-cloud-dialogflow-v2 Show documentation
Show all versions of proto-google-cloud-dialogflow-v2 Show documentation
PROTO library for proto-google-cloud-dialogflow-v2
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: google/cloud/dialogflow/v2/session.proto
package com.google.cloud.dialogflow.v2;
public interface StreamingRecognitionResultOrBuilder extends
// @@protoc_insertion_point(interface_extends:google.cloud.dialogflow.v2.StreamingRecognitionResult)
com.google.protobuf.MessageOrBuilder {
/**
*
* Type of the result message.
*
*
* .google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType message_type = 1;
*/
int getMessageTypeValue();
/**
*
* Type of the result message.
*
*
* .google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType message_type = 1;
*/
com.google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType getMessageType();
/**
*
* Transcript text representing the words that the user spoke.
* Populated if and only if `event_type` = `RECOGNITION_EVENT_TRANSCRIPT`.
*
*
* string transcript = 2;
*/
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;
*/
com.google.protobuf.ByteString
getTranscriptBytes();
/**
*
* 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;
*/
boolean getIsFinal();
/**
*
* 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;
*/
float getConfidence();
}