io.temporal.api.enums.v1.TimeoutType Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: temporal/api/enums/v1/workflow.proto
package io.temporal.api.enums.v1;
/**
* Protobuf enum {@code temporal.api.enums.v1.TimeoutType}
*/
@javax.annotation.Generated(value="protoc", comments="annotations:TimeoutType.java.pb.meta")
public enum TimeoutType
implements com.google.protobuf.ProtocolMessageEnum {
/**
* TIMEOUT_TYPE_UNSPECIFIED = 0;
*/
TIMEOUT_TYPE_UNSPECIFIED(0),
/**
* TIMEOUT_TYPE_START_TO_CLOSE = 1;
*/
TIMEOUT_TYPE_START_TO_CLOSE(1),
/**
* TIMEOUT_TYPE_SCHEDULE_TO_START = 2;
*/
TIMEOUT_TYPE_SCHEDULE_TO_START(2),
/**
* TIMEOUT_TYPE_SCHEDULE_TO_CLOSE = 3;
*/
TIMEOUT_TYPE_SCHEDULE_TO_CLOSE(3),
/**
* TIMEOUT_TYPE_HEARTBEAT = 4;
*/
TIMEOUT_TYPE_HEARTBEAT(4),
UNRECOGNIZED(-1),
;
/**
* TIMEOUT_TYPE_UNSPECIFIED = 0;
*/
public static final int TIMEOUT_TYPE_UNSPECIFIED_VALUE = 0;
/**
* TIMEOUT_TYPE_START_TO_CLOSE = 1;
*/
public static final int TIMEOUT_TYPE_START_TO_CLOSE_VALUE = 1;
/**
* TIMEOUT_TYPE_SCHEDULE_TO_START = 2;
*/
public static final int TIMEOUT_TYPE_SCHEDULE_TO_START_VALUE = 2;
/**
* TIMEOUT_TYPE_SCHEDULE_TO_CLOSE = 3;
*/
public static final int TIMEOUT_TYPE_SCHEDULE_TO_CLOSE_VALUE = 3;
/**
* TIMEOUT_TYPE_HEARTBEAT = 4;
*/
public static final int TIMEOUT_TYPE_HEARTBEAT_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;
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
* @deprecated Use {@link #forNumber(int)} instead.
*/
@java.lang.Deprecated
public static TimeoutType valueOf(int value) {
return forNumber(value);
}
/**
* @param value The numeric wire value of the corresponding enum entry.
* @return The enum associated with the given numeric wire value.
*/
public static TimeoutType forNumber(int value) {
switch (value) {
case 0: return TIMEOUT_TYPE_UNSPECIFIED;
case 1: return TIMEOUT_TYPE_START_TO_CLOSE;
case 2: return TIMEOUT_TYPE_SCHEDULE_TO_START;
case 3: return TIMEOUT_TYPE_SCHEDULE_TO_CLOSE;
case 4: return TIMEOUT_TYPE_HEARTBEAT;
default: return null;
}
}
public static com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final com.google.protobuf.Internal.EnumLiteMap<
TimeoutType> internalValueMap =
new com.google.protobuf.Internal.EnumLiteMap() {
public TimeoutType findValueByNumber(int number) {
return TimeoutType.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.temporal.api.enums.v1.WorkflowProto.getDescriptor().getEnumTypes().get(8);
}
private static final TimeoutType[] VALUES = values();
public static TimeoutType 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 TimeoutType(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:temporal.api.enums.v1.TimeoutType)
}