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 |
|---|
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 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 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 com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static StreamingRecognitionResult.MessageType valueOf(int value)
forNumber(int) instead.public static StreamingRecognitionResult.MessageType forNumber(int value)
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 © 2019 Google LLC. All rights reserved.