Package com.google.cloud.dialogflow.v2
Enum StreamingRecognitionResult.MessageType
java.lang.Object
java.lang.Enum<StreamingRecognitionResult.MessageType>
com.google.cloud.dialogflow.v2.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 enum
google.cloud.dialogflow.v2.StreamingRecognitionResult.MessageType-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionThis event indicates that the server has detected the end of the user's speech utterance and expects no additional inputs.Not specified.Message contains a (possibly partial) transcript. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis event indicates that the server has detected the end of the user's speech utterance and expects no additional inputs.static final intNot specified.static final intMessage contains a (possibly partial) transcript. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<StreamingRecognitionResult.MessageType>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
MESSAGE_TYPE_UNSPECIFIED
Not specified. Should never be used.
MESSAGE_TYPE_UNSPECIFIED = 0; -
TRANSCRIPT
Message contains a (possibly partial) transcript.
TRANSCRIPT = 1; -
END_OF_SINGLE_UTTERANCE
This event indicates that the server has detected the end of the user's speech utterance and expects no additional inputs. 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; -
UNRECOGNIZED
-
-
Field Details
-
MESSAGE_TYPE_UNSPECIFIED_VALUE
public static final int MESSAGE_TYPE_UNSPECIFIED_VALUENot specified. Should never be used.
MESSAGE_TYPE_UNSPECIFIED = 0;- See Also:
-
TRANSCRIPT_VALUE
public static final int TRANSCRIPT_VALUEMessage contains a (possibly partial) transcript.
TRANSCRIPT = 1;- See Also:
-
END_OF_SINGLE_UTTERANCE_VALUE
public static final int END_OF_SINGLE_UTTERANCE_VALUEThis event indicates that the server has detected the end of the user's speech utterance and expects no additional inputs. 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:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- 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 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
-