public static enum BlockMasterInfo.BlockMasterInfoField extends Enum<BlockMasterInfo.BlockMasterInfoField>
Enum Constant and Description |
---|
CAPACITY_BYTES |
CAPACITY_BYTES_ON_TIERS |
FREE_BYTES |
LIVE_WORKER_NUM |
LOST_WORKER_NUM |
USED_BYTES |
USED_BYTES_ON_TIERS |
Modifier and Type | Method and Description |
---|---|
static BlockMasterInfo.BlockMasterInfoField |
fromProto(BlockMasterInfoField field) |
BlockMasterInfoField |
toProto() |
static BlockMasterInfo.BlockMasterInfoField |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static BlockMasterInfo.BlockMasterInfoField[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final BlockMasterInfo.BlockMasterInfoField CAPACITY_BYTES
public static final BlockMasterInfo.BlockMasterInfoField CAPACITY_BYTES_ON_TIERS
public static final BlockMasterInfo.BlockMasterInfoField FREE_BYTES
public static final BlockMasterInfo.BlockMasterInfoField LIVE_WORKER_NUM
public static final BlockMasterInfo.BlockMasterInfoField LOST_WORKER_NUM
public static final BlockMasterInfo.BlockMasterInfoField USED_BYTES
public static final BlockMasterInfo.BlockMasterInfoField USED_BYTES_ON_TIERS
public static BlockMasterInfo.BlockMasterInfoField[] values()
for (BlockMasterInfo.BlockMasterInfoField c : BlockMasterInfo.BlockMasterInfoField.values()) System.out.println(c);
public static BlockMasterInfo.BlockMasterInfoField valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic BlockMasterInfoField toProto()
public static BlockMasterInfo.BlockMasterInfoField fromProto(BlockMasterInfoField field)
field
- the proto representation of the block master info field to createCopyright © 2023. All Rights Reserved.