alluxio.grpc.TtlAction Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Show all versions of alluxio-shaded-hadoop3-client Show documentation
Shaded Alluxio Client Module for hadoop 3
// Generated by the protocol buffer alluxio.shaded.client.com.iler. DO NOT EDIT!
// source: grpc/alluxio.shaded.client.com.on.proto
package alluxio.grpc;
/**
* Protobuf enum {@code alluxio.grpc.TtlAction}
*/
public enum TtlAction
implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
/**
*
* Delete the file after TTL expires.
*
*
* DELETE = 0;
*/
DELETE(0),
/**
*
* Free the file after TTL expires.
*
*
* FREE = 1;
*/
FREE(1),
/**
*
* Delete the data and metadata in Alluxio after TTL expires.
*
*
* DELETE_ALLUXIO = 2;
*/
DELETE_ALLUXIO(2),
;
/**
*
* Delete the file after TTL expires.
*
*
* DELETE = 0;
*/
public static final int DELETE_VALUE = 0;
/**
*
* Free the file after TTL expires.
*
*
* FREE = 1;
*/
public static final int FREE_VALUE = 1;
/**
*
* Delete the data and metadata in Alluxio after TTL expires.
*
*
* DELETE_ALLUXIO = 2;
*/
public static final int DELETE_ALLUXIO_VALUE = 2;
public final int getNumber() {
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 TtlAction 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 TtlAction forNumber(int value) {
switch (value) {
case 0: return DELETE;
case 1: return FREE;
case 2: return DELETE_ALLUXIO;
default: return null;
}
}
public static alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap
internalGetValueMap() {
return internalValueMap;
}
private static final alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap<
TtlAction> internalValueMap =
new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
public TtlAction findValueByNumber(int number) {
return TtlAction.forNumber(number);
}
};
public final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor() {
return getDescriptor().getValues().get(ordinal());
}
public final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType() {
return getDescriptor();
}
public static final alluxio.shaded.client.com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor() {
return alluxio.grpc.CommonProto.getDescriptor().getEnumTypes().get(3);
}
private static final TtlAction[] VALUES = values();
public static TtlAction valueOf(
alluxio.shaded.client.com.google.protobuf.Descriptors.EnumValueDescriptor desc) {
if (desc.getType() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"EnumValueDescriptor is not for this type.");
}
return VALUES[desc.getIndex()];
}
private final int value;
private TtlAction(int value) {
this.value = value;
}
// @@protoc_insertion_point(enum_scope:alluxio.grpc.TtlAction)
}