public enum OperationState extends Enum<OperationState> implements com.google.protobuf.ProtocolMessageEnum
Describes the state of the operation.Protobuf enum
google.firestore.admin.v1.OperationState
Enum Constant and Description |
---|
CANCELLED
Request has finished being cancelled after user called
google.longrunning.Operations.CancelOperation.
|
CANCELLING
Request is in the process of being cancelled after user called
google.longrunning.Operations.CancelOperation on the operation.
|
FAILED
Request has finished being processed, but encountered an error.
|
FINALIZING
Request has been processed and is in its finalization stage.
|
INITIALIZING
Request is being prepared for processing.
|
OPERATION_STATE_UNSPECIFIED
Unspecified.
|
PROCESSING
Request is actively being processed.
|
SUCCESSFUL
Request has completed successfully.
|
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
CANCELLED_VALUE
Request has finished being cancelled after user called
google.longrunning.Operations.CancelOperation.
|
static int |
CANCELLING_VALUE
Request is in the process of being cancelled after user called
google.longrunning.Operations.CancelOperation on the operation.
|
static int |
FAILED_VALUE
Request has finished being processed, but encountered an error.
|
static int |
FINALIZING_VALUE
Request has been processed and is in its finalization stage.
|
static int |
INITIALIZING_VALUE
Request is being prepared for processing.
|
static int |
OPERATION_STATE_UNSPECIFIED_VALUE
Unspecified.
|
static int |
PROCESSING_VALUE
Request is actively being processed.
|
static int |
SUCCESSFUL_VALUE
Request has completed successfully.
|
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
Unspecified.
OPERATION_STATE_UNSPECIFIED = 0;
public static final OperationState INITIALIZING
Request is being prepared for processing.
INITIALIZING = 1;
public static final OperationState PROCESSING
Request is actively being processed.
PROCESSING = 2;
public static final OperationState CANCELLING
Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.
CANCELLING = 3;
public static final OperationState FINALIZING
Request has been processed and is in its finalization stage.
FINALIZING = 4;
public static final OperationState SUCCESSFUL
Request has completed successfully.
SUCCESSFUL = 5;
public static final OperationState FAILED
Request has finished being processed, but encountered an error.
FAILED = 6;
public static final OperationState CANCELLED
Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.
CANCELLED = 7;
public static final OperationState UNRECOGNIZED
public static final int OPERATION_STATE_UNSPECIFIED_VALUE
Unspecified.
OPERATION_STATE_UNSPECIFIED = 0;
public static final int INITIALIZING_VALUE
Request is being prepared for processing.
INITIALIZING = 1;
public static final int PROCESSING_VALUE
Request is actively being processed.
PROCESSING = 2;
public static final int CANCELLING_VALUE
Request is in the process of being cancelled after user called google.longrunning.Operations.CancelOperation on the operation.
CANCELLING = 3;
public static final int FINALIZING_VALUE
Request has been processed and is in its finalization stage.
FINALIZING = 4;
public static final int SUCCESSFUL_VALUE
Request has completed successfully.
SUCCESSFUL = 5;
public static final int FAILED_VALUE
Request has finished being processed, but encountered an error.
FAILED = 6;
public static final int CANCELLED_VALUE
Request has finished being cancelled after user called google.longrunning.Operations.CancelOperation.
CANCELLED = 7;
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.EnumLite
getNumber
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.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public 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.