Package com.google.cloud.speech.v1beta1
Enum StreamingRecognizeResponse.EndpointerType
- java.lang.Object
-
- java.lang.Enum<StreamingRecognizeResponse.EndpointerType>
-
- com.google.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<StreamingRecognizeResponse.EndpointerType>
- Enclosing class:
- StreamingRecognizeResponse
public static enum StreamingRecognizeResponse.EndpointerType extends Enum<StreamingRecognizeResponse.EndpointerType> implements com.google.protobuf.ProtocolMessageEnum
Indicates the type of endpointer event.
Protobuf enumgoogle.cloud.speech.v1beta1.StreamingRecognizeResponse.EndpointerType
-
-
Enum Constant Summary
Enum Constants Enum Constant Description END_OF_AUDIO
This event is sent after the client has half-closed the input stream gRPC connection and the server has received all of the audio.END_OF_SPEECH
Speech has ceased to be detected in the audio stream.END_OF_UTTERANCE
This event is only sent when `single_utterance` is `true`.ENDPOINTER_EVENT_UNSPECIFIED
No endpointer event specified.START_OF_SPEECH
Speech has been detected in the audio stream, and the service is beginning to process it.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
END_OF_AUDIO_VALUE
This event is sent after the client has half-closed the input stream gRPC connection and the server has received all of the audio.static int
END_OF_SPEECH_VALUE
Speech has ceased to be detected in the audio stream.static int
END_OF_UTTERANCE_VALUE
This event is only sent when `single_utterance` is `true`.static int
ENDPOINTER_EVENT_UNSPECIFIED_VALUE
No endpointer event specified.static int
START_OF_SPEECH_VALUE
Speech has been detected in the audio stream, and the service is beginning to process it.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static StreamingRecognizeResponse.EndpointerType
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<StreamingRecognizeResponse.EndpointerType>
internalGetValueMap()
static StreamingRecognizeResponse.EndpointerType
valueOf(int value)
Deprecated.static StreamingRecognizeResponse.EndpointerType
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static StreamingRecognizeResponse.EndpointerType
valueOf(String name)
Returns the enum constant of this type with the specified name.static StreamingRecognizeResponse.EndpointerType[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
ENDPOINTER_EVENT_UNSPECIFIED
public static final StreamingRecognizeResponse.EndpointerType ENDPOINTER_EVENT_UNSPECIFIED
No endpointer event specified.
ENDPOINTER_EVENT_UNSPECIFIED = 0;
-
START_OF_SPEECH
public static final StreamingRecognizeResponse.EndpointerType START_OF_SPEECH
Speech has been detected in the audio stream, and the service is beginning to process it.
START_OF_SPEECH = 1;
-
END_OF_SPEECH
public static final StreamingRecognizeResponse.EndpointerType END_OF_SPEECH
Speech has ceased to be detected in the audio stream. (For example, the user may have paused after speaking.) If `single_utterance` is `false`, the service will continue to process audio, and if subsequent speech is detected, will send another START_OF_SPEECH event.
END_OF_SPEECH = 2;
-
END_OF_AUDIO
public static final StreamingRecognizeResponse.EndpointerType END_OF_AUDIO
This event is sent after the client has half-closed the input stream gRPC connection and the server has received all of the audio. (The server may still be processing the audio and may subsequently return additional results.)
END_OF_AUDIO = 3;
-
END_OF_UTTERANCE
public static final StreamingRecognizeResponse.EndpointerType END_OF_UTTERANCE
This event is only sent when `single_utterance` is `true`. It 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.
END_OF_UTTERANCE = 4;
-
UNRECOGNIZED
public static final StreamingRecognizeResponse.EndpointerType UNRECOGNIZED
-
-
Field Detail
-
ENDPOINTER_EVENT_UNSPECIFIED_VALUE
public static final int ENDPOINTER_EVENT_UNSPECIFIED_VALUE
No endpointer event specified.
ENDPOINTER_EVENT_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
START_OF_SPEECH_VALUE
public static final int START_OF_SPEECH_VALUE
Speech has been detected in the audio stream, and the service is beginning to process it.
START_OF_SPEECH = 1;
- See Also:
- Constant Field Values
-
END_OF_SPEECH_VALUE
public static final int END_OF_SPEECH_VALUE
Speech has ceased to be detected in the audio stream. (For example, the user may have paused after speaking.) If `single_utterance` is `false`, the service will continue to process audio, and if subsequent speech is detected, will send another START_OF_SPEECH event.
END_OF_SPEECH = 2;
- See Also:
- Constant Field Values
-
END_OF_AUDIO_VALUE
public static final int END_OF_AUDIO_VALUE
This event is sent after the client has half-closed the input stream gRPC connection and the server has received all of the audio. (The server may still be processing the audio and may subsequently return additional results.)
END_OF_AUDIO = 3;
- See Also:
- Constant Field Values
-
END_OF_UTTERANCE_VALUE
public static final int END_OF_UTTERANCE_VALUE
This event is only sent when `single_utterance` is `true`. It 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.
END_OF_UTTERANCE = 4;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static StreamingRecognizeResponse.EndpointerType[] 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 (StreamingRecognizeResponse.EndpointerType c : StreamingRecognizeResponse.EndpointerType.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static StreamingRecognizeResponse.EndpointerType 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static StreamingRecognizeResponse.EndpointerType 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 StreamingRecognizeResponse.EndpointerType forNumber(int value)
-
internalGetValueMap
public static com.google.protobuf.Internal.EnumLiteMap<StreamingRecognizeResponse.EndpointerType> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static StreamingRecognizeResponse.EndpointerType 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
-
-