public static enum Recognizer.State extends Enum<Recognizer.State> implements com.google.protobuf.ProtocolMessageEnum
Set of states that define the lifecycle of a Recognizer.Protobuf enum
google.cloud.speech.v2.Recognizer.State| Enum Constant and Description |
|---|
ACTIVE
The Recognizer is active and ready for use.
|
DELETED
This Recognizer has been deleted.
|
STATE_UNSPECIFIED
The default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
ACTIVE_VALUE
The Recognizer is active and ready for use.
|
static int |
DELETED_VALUE
This Recognizer has been deleted.
|
static int |
STATE_UNSPECIFIED_VALUE
The default value.
|
| Modifier and Type | Method and Description |
|---|---|
static Recognizer.State |
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<Recognizer.State> |
internalGetValueMap() |
static Recognizer.State |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Recognizer.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Recognizer.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static Recognizer.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Recognizer.State STATE_UNSPECIFIED
The default value. This value is used if the state is omitted.
STATE_UNSPECIFIED = 0;public static final Recognizer.State ACTIVE
The Recognizer is active and ready for use.
ACTIVE = 2;public static final Recognizer.State DELETED
This Recognizer has been deleted.
DELETED = 4;public static final Recognizer.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
The default value. This value is used if the state is omitted.
STATE_UNSPECIFIED = 0;public static final int ACTIVE_VALUE
The Recognizer is active and ready for use.
ACTIVE = 2;public static final int DELETED_VALUE
This Recognizer has been deleted.
DELETED = 4;public static Recognizer.State[] values()
for (Recognizer.State c : Recognizer.State.values()) System.out.println(c);
public static Recognizer.State 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 Recognizer.State valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Recognizer.State forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Recognizer.State> 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 Recognizer.State valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.