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

alluxio.grpc.BlockMasterInfoField Maven / Gradle / Ivy

// 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.BlockMasterInfoField}
 */
public enum BlockMasterInfoField
    implements alluxio.shaded.client.com.google.protobuf.ProtocolMessageEnum {
  /**
   * CAPACITY_BYTES = 1;
   */
  CAPACITY_BYTES(1),
  /**
   * CAPACITY_BYTES_ON_TIERS = 2;
   */
  CAPACITY_BYTES_ON_TIERS(2),
  /**
   * FREE_BYTES = 3;
   */
  FREE_BYTES(3),
  /**
   * LIVE_WORKER_NUM = 4;
   */
  LIVE_WORKER_NUM(4),
  /**
   * LOST_WORKER_NUM = 5;
   */
  LOST_WORKER_NUM(5),
  /**
   * USED_BYTES = 6;
   */
  USED_BYTES(6),
  /**
   * USED_BYTES_ON_TIERS = 7;
   */
  USED_BYTES_ON_TIERS(7),
  /**
   * DECOMMISSIONED_WORKER_NUM = 8;
   */
  DECOMMISSIONED_WORKER_NUM(8),
  ;

  /**
   * CAPACITY_BYTES = 1;
   */
  public static final int CAPACITY_BYTES_VALUE = 1;
  /**
   * CAPACITY_BYTES_ON_TIERS = 2;
   */
  public static final int CAPACITY_BYTES_ON_TIERS_VALUE = 2;
  /**
   * FREE_BYTES = 3;
   */
  public static final int FREE_BYTES_VALUE = 3;
  /**
   * LIVE_WORKER_NUM = 4;
   */
  public static final int LIVE_WORKER_NUM_VALUE = 4;
  /**
   * LOST_WORKER_NUM = 5;
   */
  public static final int LOST_WORKER_NUM_VALUE = 5;
  /**
   * USED_BYTES = 6;
   */
  public static final int USED_BYTES_VALUE = 6;
  /**
   * USED_BYTES_ON_TIERS = 7;
   */
  public static final int USED_BYTES_ON_TIERS_VALUE = 7;
  /**
   * DECOMMISSIONED_WORKER_NUM = 8;
   */
  public static final int DECOMMISSIONED_WORKER_NUM_VALUE = 8;


  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 BlockMasterInfoField 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 BlockMasterInfoField forNumber(int value) {
    switch (value) {
      case 1: return CAPACITY_BYTES;
      case 2: return CAPACITY_BYTES_ON_TIERS;
      case 3: return FREE_BYTES;
      case 4: return LIVE_WORKER_NUM;
      case 5: return LOST_WORKER_NUM;
      case 6: return USED_BYTES;
      case 7: return USED_BYTES_ON_TIERS;
      case 8: return DECOMMISSIONED_WORKER_NUM;
      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<
      BlockMasterInfoField> internalValueMap =
        new alluxio.shaded.client.com.google.protobuf.Internal.EnumLiteMap() {
          public BlockMasterInfoField findValueByNumber(int number) {
            return BlockMasterInfoField.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(0);
  }

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

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

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





© 2015 - 2025 Weber Informatics LLC | Privacy Policy