io.axoniq.axonserver.grpc.TaskStatus Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of axonserver-connector-java Show documentation
Show all versions of axonserver-connector-java Show documentation
Connector module providing infrastructure components that connect to AxonServer.
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: common.proto
package io.axoniq.axonserver.grpc;
/**
*
* Defines status values for a scheduled task
*
*
* Protobuf enum {@code io.axoniq.axonserver.grpc.TaskStatus}
*/
public enum TaskStatus
implements com.google.protobuf.ProtocolMessageEnum {
/**
*
* Task is scheduled for execution
*
*
* SCHEDULED = 0;
*/
SCHEDULED(0),
/**
*
* Task execution completed successfully
*
*
* COMPLETED = 1;
*/
COMPLETED(1),
/**
*
* Task execution failed with non transient exception
*
*
* FAILED = 2;
*/
FAILED(2),
/**
*
* Task execution is in progress
*
*
* RUNNING = 3;
*/
RUNNING(3),
/**
*
* Task execution is in progress
*
*
* CANCELLED = 4;
*/
CANCELLED(4),
UNRECOGNIZED(-1),
;
/**
*
* Task is scheduled for execution
*
*
* SCHEDULED = 0;
*/
public static final int SCHEDULED_VALUE = 0;
/**
*
* Task execution completed successfully
*
*
* COMPLETED = 1;
*/
public static final int COMPLETED_VALUE = 1;
/**
*
* Task execution failed with non transient exception
*
*
* FAILED = 2;
*/
public static final int FAILED_VALUE = 2;
/**
*
* Task execution is in progress
*
*
* RUNNING = 3;
*/
public static final int RUNNING_VALUE = 3;
/**
*
* Task execution is in progress
*
*
* CANCELLED = 4;
*/
public static final int CANCELLED_VALUE = 4;
public final int getNumber() {
if (this == UNRECOGNIZED) {
throw new java.lang.IllegalArgumentException(
"Can't get the number of an unknown enum value.");
}
return value;
}
/**
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TaskStatus valueOf(int value) {
return forNumber(value);
}
public static TaskStatus forNumber(int value) {
switch (value) {
case 0: return SCHEDULED;
case 1: return COMPLETED;
case 2: return FAILED;
case 3: return RUNNING;
case 4: return CANCELLED;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TaskStatus> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TaskStatus findValueByNumber(int number) {
return TaskStatus.forNumber(number);
}
};
public final com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return io.axoniq.axonserver.grpc.Common.getDescriptor().getEnumTypes().get(1);
}
private static final TaskStatus[] VALUES = values();
public static TaskStatus valueOf(
com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
if (desc.getIndex() == -1) {
return UNRECOGNIZED;
}
return VALUES[desc.getIndex()];
}
private final int value;
private TaskStatus(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:io.axoniq.axonserver.grpc.TaskStatus)
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy