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

alluxio.grpc.UfsPMode Maven / Gradle / Ivy

There is a newer version: 313
Show newest version
// 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.UfsPMode}
 */
public enum UfsPMode
    implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
  /**
   * NO_ACCESS = 1;
   */
  NO_ACCESS(1),
  /**
   * READ_ONLY = 2;
   */
  READ_ONLY(2),
  /**
   * READ_WRITE = 3;
   */
  READ_WRITE(3),
  ;

  /**
   * NO_ACCESS = 1;
   */
  public static final int NO_ACCESS_VALUE = 1;
  /**
   * READ_ONLY = 2;
   */
  public static final int READ_ONLY_VALUE = 2;
  /**
   * READ_WRITE = 3;
   */
  public static final int READ_WRITE_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 UfsPMode 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 UfsPMode forNumber(int value) {
    switch (value) {
      case 1: return NO_ACCESS;
      case 2: return READ_ONLY;
      case 3: return READ_WRITE;
      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<
      UfsPMode> internalValueMap =
        new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
          public UfsPMode findValueByNumber(int number) {
            return UfsPMode.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(8);
  }

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

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

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





© 2015 - 2024 Weber Informatics LLC | Privacy Policy