public static enum StreamingTranslateSpeechResponse.SpeechEventType extends Enum<StreamingTranslateSpeechResponse.SpeechEventType> implements com.google.protobuf.ProtocolMessageEnum
Indicates the type of speech event.Protobuf enum
google.cloud.mediatranslation.v1beta1.StreamingTranslateSpeechResponse.SpeechEventType| Enum Constant and Description |
|---|
END_OF_SINGLE_UTTERANCE
This event indicates that the server has detected the end of the user's
speech utterance and expects no additional speech.
|
SPEECH_EVENT_TYPE_UNSPECIFIED
No speech event specified.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static 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 speech.
|
static int |
SPEECH_EVENT_TYPE_UNSPECIFIED_VALUE
No speech event specified.
|
| Modifier and Type | Method and Description |
|---|---|
static StreamingTranslateSpeechResponse.SpeechEventType |
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<StreamingTranslateSpeechResponse.SpeechEventType> |
internalGetValueMap() |
static StreamingTranslateSpeechResponse.SpeechEventType |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static StreamingTranslateSpeechResponse.SpeechEventType |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static StreamingTranslateSpeechResponse.SpeechEventType |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static StreamingTranslateSpeechResponse.SpeechEventType[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final StreamingTranslateSpeechResponse.SpeechEventType SPEECH_EVENT_TYPE_UNSPECIFIED
No speech event specified.
SPEECH_EVENT_TYPE_UNSPECIFIED = 0;public static final StreamingTranslateSpeechResponse.SpeechEventType END_OF_SINGLE_UTTERANCE
This 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). When the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should stop sending the requests. However, clients should keep receiving remaining responses until the stream is terminated. To construct the complete sentence in a streaming way, one should override (if 'is_final' of previous response is false), or append (if 'is_final' of previous response is true). This event is only sent if `single_utterance` was set to `true`, and is not used otherwise.
END_OF_SINGLE_UTTERANCE = 1;public static final StreamingTranslateSpeechResponse.SpeechEventType UNRECOGNIZED
public static final int SPEECH_EVENT_TYPE_UNSPECIFIED_VALUE
No speech event specified.
SPEECH_EVENT_TYPE_UNSPECIFIED = 0;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 speech. Therefore, the server will not process additional audio (although it may subsequently return additional results). When the client receives 'END_OF_SINGLE_UTTERANCE' event, the client should stop sending the requests. However, clients should keep receiving remaining responses until the stream is terminated. To construct the complete sentence in a streaming way, one should override (if 'is_final' of previous response is false), or append (if 'is_final' of previous response is true). This event is only sent if `single_utterance` was set to `true`, and is not used otherwise.
END_OF_SINGLE_UTTERANCE = 1;public static StreamingTranslateSpeechResponse.SpeechEventType[] values()
for (StreamingTranslateSpeechResponse.SpeechEventType c : StreamingTranslateSpeechResponse.SpeechEventType.values()) System.out.println(c);
public static StreamingTranslateSpeechResponse.SpeechEventType valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static StreamingTranslateSpeechResponse.SpeechEventType valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static StreamingTranslateSpeechResponse.SpeechEventType forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<StreamingTranslateSpeechResponse.SpeechEventType> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static StreamingTranslateSpeechResponse.SpeechEventType valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.