public static enum KnowledgeOperationMetadata.State extends Enum<KnowledgeOperationMetadata.State> implements ProtocolMessageEnum
States of the operation.Protobuf enum
google.cloud.dialogflow.v2.KnowledgeOperationMetadata.State
Enum Constant and Description |
---|
DONE
The operation is done, either cancelled or completed.
|
PENDING
The operation has been created.
|
RUNNING
The operation is currently running.
|
STATE_UNSPECIFIED
State unspecified.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
DONE_VALUE
The operation is done, either cancelled or completed.
|
static int |
PENDING_VALUE
The operation has been created.
|
static int |
RUNNING_VALUE
The operation is currently running.
|
static int |
STATE_UNSPECIFIED_VALUE
State unspecified.
|
Modifier and Type | Method and Description |
---|---|
static KnowledgeOperationMetadata.State |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<KnowledgeOperationMetadata.State> |
internalGetValueMap() |
static KnowledgeOperationMetadata.State |
valueOf(Descriptors.EnumValueDescriptor desc) |
static KnowledgeOperationMetadata.State |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static KnowledgeOperationMetadata.State |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static KnowledgeOperationMetadata.State[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final KnowledgeOperationMetadata.State STATE_UNSPECIFIED
State unspecified.
STATE_UNSPECIFIED = 0;
public static final KnowledgeOperationMetadata.State PENDING
The operation has been created.
PENDING = 1;
public static final KnowledgeOperationMetadata.State RUNNING
The operation is currently running.
RUNNING = 2;
public static final KnowledgeOperationMetadata.State DONE
The operation is done, either cancelled or completed.
DONE = 3;
public static final KnowledgeOperationMetadata.State UNRECOGNIZED
public static final int STATE_UNSPECIFIED_VALUE
State unspecified.
STATE_UNSPECIFIED = 0;
public static final int PENDING_VALUE
The operation has been created.
PENDING = 1;
public static final int RUNNING_VALUE
The operation is currently running.
RUNNING = 2;
public static final int DONE_VALUE
The operation is done, either cancelled or completed.
DONE = 3;
public static KnowledgeOperationMetadata.State[] values()
for (KnowledgeOperationMetadata.State c : KnowledgeOperationMetadata.State.values()) System.out.println(c);
public static KnowledgeOperationMetadata.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 Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static KnowledgeOperationMetadata.State valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static KnowledgeOperationMetadata.State forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static Internal.EnumLiteMap<KnowledgeOperationMetadata.State> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static KnowledgeOperationMetadata.State valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2022 Google LLC. All rights reserved.