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

alluxio.grpc.WorkerRange 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/block_master.proto

package alluxio.grpc;

/**
 * Protobuf enum {@code alluxio.grpc.block.WorkerRange}
 */
public enum WorkerRange
    implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
  /**
   * ALL = 1;
   */
  ALL(1),
  /**
   * LIVE = 2;
   */
  LIVE(2),
  /**
   * LOST = 3;
   */
  LOST(3),
  /**
   * SPECIFIED = 4;
   */
  SPECIFIED(4),
  /**
   * DECOMMISSIONED = 5;
   */
  DECOMMISSIONED(5),
  ;

  /**
   * ALL = 1;
   */
  public static final int ALL_VALUE = 1;
  /**
   * LIVE = 2;
   */
  public static final int LIVE_VALUE = 2;
  /**
   * LOST = 3;
   */
  public static final int LOST_VALUE = 3;
  /**
   * SPECIFIED = 4;
   */
  public static final int SPECIFIED_VALUE = 4;
  /**
   * DECOMMISSIONED = 5;
   */
  public static final int DECOMMISSIONED_VALUE = 5;


  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 WorkerRange 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 WorkerRange forNumber(int value) {
    switch (value) {
      case 1: return ALL;
      case 2: return LIVE;
      case 3: return LOST;
      case 4: return SPECIFIED;
      case 5: return DECOMMISSIONED;
      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<
      WorkerRange> internalValueMap =
        new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
          public WorkerRange findValueByNumber(int number) {
            return WorkerRange.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.BlockMasterProto.getDescriptor().getEnumTypes().get(1);
  }

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

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

  // @@protoc_insertion_point(enum_scope:alluxio.grpc.block.WorkerRange)
}





© 2015 - 2024 Weber Informatics LLC | Privacy Policy