public static enum StreamingRecognitionResult.MessageType extends Enum<StreamingRecognitionResult.MessageType> implements com.google.protobuf.ProtocolMessageEnum
Type of the response message.Protobuf enum
google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.MessageType| Enum Constant and Description |
|---|
DTMF_DIGITS
Message contains DTMF digits.
|
END_OF_SINGLE_UTTERANCE
Event indicates that the server has detected the end of the user's speech
utterance and expects no additional speech.
|
MESSAGE_TYPE_UNSPECIFIED
Not specified.
|
PARTIAL_DTMF_DIGITS
Message contains DTMF digits.
|
TRANSCRIPT
Message contains a (possibly partial) transcript.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
DTMF_DIGITS_VALUE
Message contains DTMF digits.
|
static int |
END_OF_SINGLE_UTTERANCE_VALUE
Event indicates that the server has detected the end of the user's speech
utterance and expects no additional speech.
|
static int |
MESSAGE_TYPE_UNSPECIFIED_VALUE
Not specified.
|
static int |
PARTIAL_DTMF_DIGITS_VALUE
Message contains DTMF digits.
|
static int |
TRANSCRIPT_VALUE
Message contains a (possibly partial) transcript.
|
| Modifier and Type | Method and Description |
|---|---|
static StreamingRecognitionResult.MessageType |
forNumber(int value) |
static com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<StreamingRecognitionResult.MessageType> |
internalGetValueMap() |
static StreamingRecognitionResult.MessageType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static StreamingRecognitionResult.MessageType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static StreamingRecognitionResult.MessageType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamingRecognitionResult.MessageType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamingRecognitionResult.MessageType MESSAGE_TYPE_UNSPECIFIED
Not specified. Should never be used.
MESSAGE_TYPE_UNSPECIFIED = 0;public static final StreamingRecognitionResult.MessageType TRANSCRIPT
Message contains a (possibly partial) transcript.
TRANSCRIPT = 1;public static final StreamingRecognitionResult.MessageType DTMF_DIGITS
Message contains DTMF digits.
DTMF_DIGITS = 3;public static final StreamingRecognitionResult.MessageType END_OF_SINGLE_UTTERANCE
Event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. This message is only sent if `single_utterance` was set to `true`, and is not used otherwise.
END_OF_SINGLE_UTTERANCE = 2;public static final StreamingRecognitionResult.MessageType PARTIAL_DTMF_DIGITS
Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected up to the time of sending, which represents an intermediate result.
PARTIAL_DTMF_DIGITS = 4;public static final StreamingRecognitionResult.MessageType UNRECOGNIZED
public static final int MESSAGE_TYPE_UNSPECIFIED_VALUE
Not specified. Should never be used.
MESSAGE_TYPE_UNSPECIFIED = 0;public static final int TRANSCRIPT_VALUE
Message contains a (possibly partial) transcript.
TRANSCRIPT = 1;public static final int DTMF_DIGITS_VALUE
Message contains DTMF digits.
DTMF_DIGITS = 3;public static final int END_OF_SINGLE_UTTERANCE_VALUE
Event indicates that the server has detected the end of the user's speech utterance and expects no additional speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). The client should stop sending additional audio data, half-close the gRPC connection, and wait for any additional results until the server closes the gRPC connection. This message is only sent if `single_utterance` was set to `true`, and is not used otherwise.
END_OF_SINGLE_UTTERANCE = 2;public static final int PARTIAL_DTMF_DIGITS_VALUE
Message contains DTMF digits. Before a message with DTMF_DIGITS is sent, a message with PARTIAL_DTMF_DIGITS may be sent with DTMF digits collected up to the time of sending, which represents an intermediate result.
PARTIAL_DTMF_DIGITS = 4;public static StreamingRecognitionResult.MessageType[] values()
for (StreamingRecognitionResult.MessageType c : StreamingRecognitionResult.MessageType.values()) System.out.println(c);
public static StreamingRecognitionResult.MessageType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static StreamingRecognitionResult.MessageType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static StreamingRecognitionResult.MessageType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<StreamingRecognitionResult.MessageType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static StreamingRecognitionResult.MessageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.