public enum OperationState extends Enum<OperationState> implements com.google.protobuf.ProtocolMessageEnum
List of different operation states. High level state of the operation. This is used to report the job's current state to the user. Once a long running operation is created, the current state of the operation can be queried even before the operation is finished and the final result is available.Protobuf enum
google.logging.v2.OperationState| Enum Constant and Description |
|---|
OPERATION_STATE_CANCELLED
The operation was cancelled by the user.
|
OPERATION_STATE_FAILED
The operation failed.
|
OPERATION_STATE_RUNNING
The operation is running.
|
OPERATION_STATE_SCHEDULED
The operation is scheduled.
|
OPERATION_STATE_SUCCEEDED
The operation was completed successfully.
|
OPERATION_STATE_UNSPECIFIED
Should not be used.
|
OPERATION_STATE_WAITING_FOR_PERMISSIONS
Waiting for necessary permissions.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
OPERATION_STATE_CANCELLED_VALUE
The operation was cancelled by the user.
|
static int |
OPERATION_STATE_FAILED_VALUE
The operation failed.
|
static int |
OPERATION_STATE_RUNNING_VALUE
The operation is running.
|
static int |
OPERATION_STATE_SCHEDULED_VALUE
The operation is scheduled.
|
static int |
OPERATION_STATE_SUCCEEDED_VALUE
The operation was completed successfully.
|
static int |
OPERATION_STATE_UNSPECIFIED_VALUE
Should not be used.
|
static int |
OPERATION_STATE_WAITING_FOR_PERMISSIONS_VALUE
Waiting for necessary permissions.
|
| Modifier and Type | Method and Description |
|---|---|
static OperationState |
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<OperationState> |
internalGetValueMap() |
static OperationState |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static OperationState |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static OperationState |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static OperationState[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OperationState OPERATION_STATE_UNSPECIFIED
Should not be used.
OPERATION_STATE_UNSPECIFIED = 0;public static final OperationState OPERATION_STATE_SCHEDULED
The operation is scheduled.
OPERATION_STATE_SCHEDULED = 1;public static final OperationState OPERATION_STATE_WAITING_FOR_PERMISSIONS
Waiting for necessary permissions.
OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2;public static final OperationState OPERATION_STATE_RUNNING
The operation is running.
OPERATION_STATE_RUNNING = 3;public static final OperationState OPERATION_STATE_SUCCEEDED
The operation was completed successfully.
OPERATION_STATE_SUCCEEDED = 4;public static final OperationState OPERATION_STATE_FAILED
The operation failed.
OPERATION_STATE_FAILED = 5;public static final OperationState OPERATION_STATE_CANCELLED
The operation was cancelled by the user.
OPERATION_STATE_CANCELLED = 6;public static final OperationState UNRECOGNIZED
public static final int OPERATION_STATE_UNSPECIFIED_VALUE
Should not be used.
OPERATION_STATE_UNSPECIFIED = 0;public static final int OPERATION_STATE_SCHEDULED_VALUE
The operation is scheduled.
OPERATION_STATE_SCHEDULED = 1;public static final int OPERATION_STATE_WAITING_FOR_PERMISSIONS_VALUE
Waiting for necessary permissions.
OPERATION_STATE_WAITING_FOR_PERMISSIONS = 2;public static final int OPERATION_STATE_RUNNING_VALUE
The operation is running.
OPERATION_STATE_RUNNING = 3;public static final int OPERATION_STATE_SUCCEEDED_VALUE
The operation was completed successfully.
OPERATION_STATE_SUCCEEDED = 4;public static final int OPERATION_STATE_FAILED_VALUE
The operation failed.
OPERATION_STATE_FAILED = 5;public static final int OPERATION_STATE_CANCELLED_VALUE
The operation was cancelled by the user.
OPERATION_STATE_CANCELLED = 6;public static OperationState[] values()
for (OperationState c : OperationState.values()) System.out.println(c);
public static OperationState 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 OperationState valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static OperationState forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<OperationState> 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 OperationState valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.