Enum StreamingRecognitionResult.MessageType
- java.lang.Object
-
- java.lang.Enum<StreamingRecognitionResult.MessageType>
-
- com.google.cloud.dialogflow.v2beta1.StreamingRecognitionResult.MessageType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<StreamingRecognitionResult.MessageType>
- Enclosing class:
- StreamingRecognitionResult
public static enum StreamingRecognitionResult.MessageType extends Enum<StreamingRecognitionResult.MessageType> implements com.google.protobuf.ProtocolMessageEnum
Type of the response message.
Protobuf enumgoogle.cloud.dialogflow.v2beta1.StreamingRecognitionResult.MessageType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description DTMF_DIGITSMessage contains DTMF digits.END_OF_SINGLE_UTTERANCEEvent indicates that the server has detected the end of the user's speech utterance and expects no additional speech.MESSAGE_TYPE_UNSPECIFIEDNot specified.PARTIAL_DTMF_DIGITSMessage contains DTMF digits.TRANSCRIPTMessage contains a (possibly partial) transcript.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intDTMF_DIGITS_VALUEMessage contains DTMF digits.static intEND_OF_SINGLE_UTTERANCE_VALUEEvent indicates that the server has detected the end of the user's speech utterance and expects no additional speech.static intMESSAGE_TYPE_UNSPECIFIED_VALUENot specified.static intPARTIAL_DTMF_DIGITS_VALUEMessage contains DTMF digits.static intTRANSCRIPT_VALUEMessage contains a (possibly partial) transcript.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StreamingRecognitionResult.MessageTypeforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<StreamingRecognitionResult.MessageType>internalGetValueMap()static StreamingRecognitionResult.MessageTypevalueOf(int value)Deprecated.static StreamingRecognitionResult.MessageTypevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static StreamingRecognitionResult.MessageTypevalueOf(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.
-
-
-
Enum Constant Detail
-
MESSAGE_TYPE_UNSPECIFIED
public static final StreamingRecognitionResult.MessageType MESSAGE_TYPE_UNSPECIFIED
Not specified. Should never be used.
MESSAGE_TYPE_UNSPECIFIED = 0;
-
TRANSCRIPT
public static final StreamingRecognitionResult.MessageType TRANSCRIPT
Message contains a (possibly partial) transcript.
TRANSCRIPT = 1;
-
DTMF_DIGITS
public static final StreamingRecognitionResult.MessageType DTMF_DIGITS
Message contains DTMF digits.
DTMF_DIGITS = 3;
-
END_OF_SINGLE_UTTERANCE
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;
-
PARTIAL_DTMF_DIGITS
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;
-
UNRECOGNIZED
public static final StreamingRecognitionResult.MessageType UNRECOGNIZED
-
-
Field Detail
-
MESSAGE_TYPE_UNSPECIFIED_VALUE
public static final int MESSAGE_TYPE_UNSPECIFIED_VALUE
Not specified. Should never be used.
MESSAGE_TYPE_UNSPECIFIED = 0;- See Also:
- Constant Field Values
-
TRANSCRIPT_VALUE
public static final int TRANSCRIPT_VALUE
Message contains a (possibly partial) transcript.
TRANSCRIPT = 1;- See Also:
- Constant Field Values
-
DTMF_DIGITS_VALUE
public static final int DTMF_DIGITS_VALUE
Message contains DTMF digits.
DTMF_DIGITS = 3;- See Also:
- Constant Field Values
-
END_OF_SINGLE_UTTERANCE_VALUE
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;- See Also:
- Constant Field Values
-
PARTIAL_DTMF_DIGITS_VALUE
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;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static StreamingRecognitionResult.MessageType[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (StreamingRecognitionResult.MessageType c : StreamingRecognitionResult.MessageType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamingRecognitionResult.MessageType valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
name- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static StreamingRecognitionResult.MessageType valueOf(int value)
Deprecated.Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
value- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
forNumber
public static StreamingRecognitionResult.MessageType forNumber(int value)
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<StreamingRecognitionResult.MessageType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static StreamingRecognitionResult.MessageType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)- Parameters:
desc- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException- if this enum type has no constant with the specified nameNullPointerException- if the argument is null
-
-