Enum StreamingRecognitionResult.MessageType

    • Enum Constant Detail

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