Enum StreamingRecognitionResult.MessageType (0.43.0)

public enum StreamingRecognitionResult.MessageType extends Enum<StreamingRecognitionResult.MessageType> implements ProtocolMessageEnum

Type of the response message.

Protobuf enum google.cloud.dialogflow.cx.v3beta1.StreamingRecognitionResult.MessageType

Implements

ProtocolMessageEnum

Static Fields

Name 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. 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;

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;

MESSAGE_TYPE_UNSPECIFIED

Not specified. Should never be used.

MESSAGE_TYPE_UNSPECIFIED = 0;

MESSAGE_TYPE_UNSPECIFIED_VALUE

Not specified. Should never be used.

MESSAGE_TYPE_UNSPECIFIED = 0;

TRANSCRIPT

Message contains a (possibly partial) transcript.

TRANSCRIPT = 1;

TRANSCRIPT_VALUE

Message contains a (possibly partial) transcript.

TRANSCRIPT = 1;

UNRECOGNIZED

Static Methods

Name Description
forNumber(int value)
getDescriptor()
internalGetValueMap()
valueOf(Descriptors.EnumValueDescriptor desc)
valueOf(int value)

Deprecated. Use #forNumber(int) instead.

valueOf(String name)
values()

Methods

Name Description
getDescriptorForType()
getNumber()
getValueDescriptor()