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 Details

    • 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;
    • END_OF_SINGLE_UTTERANCE

      public static final StreamingRecognitionResult.MessageType 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

      public static final StreamingRecognitionResult.MessageType UNRECOGNIZED
  • Field Details

    • MESSAGE_TYPE_UNSPECIFIED_VALUE

      public static final int MESSAGE_TYPE_UNSPECIFIED_VALUE
       Not specified. Should never be used.
       
      MESSAGE_TYPE_UNSPECIFIED = 0;
      See Also:
    • TRANSCRIPT_VALUE

      public static final int TRANSCRIPT_VALUE
       Message contains a (possibly partial) transcript.
       
      TRANSCRIPT = 1;
      See Also:
    • END_OF_SINGLE_UTTERANCE_VALUE

      public static final int END_OF_SINGLE_UTTERANCE_VALUE
       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;
      See Also:
  • Method Details

    • values

      public static StreamingRecognitionResult.MessageType[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null