All Downloads are FREE. Search and download functionalities are using the official Maven repository.

alluxio.grpc.ReadPType Maven / Gradle / Ivy

// Generated by the protocol buffer alluxio.shaded.client.com.iler.  DO NOT EDIT!
// source: grpc/file_system_master.proto

package alluxio.grpc;

/**
 * Protobuf enum {@code alluxio.grpc.file.ReadPType}
 */
public enum ReadPType
    implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
  /**
   * NO_CACHE = 1;
   */
  NO_CACHE(1),
  /**
   * CACHE = 2;
   */
  CACHE(2),
  /**
   * CACHE_PROMOTE = 3;
   */
  CACHE_PROMOTE(3),
  ;

  /**
   * NO_CACHE = 1;
   */
  public static final int NO_CACHE_VALUE = 1;
  /**
   * CACHE = 2;
   */
  public static final int CACHE_VALUE = 2;
  /**
   * CACHE_PROMOTE = 3;
   */
  public static final int CACHE_PROMOTE_VALUE = 3;


  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 ReadPType 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 ReadPType forNumber(int value) {
    switch (value) {
      case 1: return NO_CACHE;
      case 2: return CACHE;
      case 3: return CACHE_PROMOTE;
      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<
      ReadPType> internalValueMap =
        new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
          public ReadPType findValueByNumber(int number) {
            return ReadPType.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.FileSystemMasterProto.getDescriptor().getEnumTypes().get(1);
  }

  private static final ReadPType[] VALUES = values();

  public static ReadPType 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 ReadPType(int value) {
    this.value = value;
  }

  // @@protoc_insertion_point(enum_scope:alluxio.grpc.file.ReadPType)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy