public static enum StreamingRecognitionResult.MessageType extends Enum<StreamingRecognitionResult.MessageType> implements ProtocolMessageEnum
Type of the response message.Protobuf enum
google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.MessageType
Enum Constant and Description |
---|
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.
|
TRANSCRIPT
Message contains a (possibly partial) transcript.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
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 |
TRANSCRIPT_VALUE
Message contains a (possibly partial) transcript.
|
Modifier and Type | Method and Description |
---|---|
static StreamingRecognitionResult.MessageType |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<StreamingRecognitionResult.MessageType> |
internalGetValueMap() |
static StreamingRecognitionResult.MessageType |
valueOf(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 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 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 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 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 Internal.EnumLite
getNumber
in interface 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 Internal.EnumLiteMap<StreamingRecognitionResult.MessageType> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static StreamingRecognitionResult.MessageType valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2021 Google LLC. All rights reserved.