public enum LabelIdProtoConverter extends Enum<LabelIdProtoConverter> implements ProtoConverter<com.google.gerrit.proto.Entities.LabelId,LabelId>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
LabelId |
fromProto(com.google.gerrit.proto.Entities.LabelId proto) |
com.google.protobuf.Parser<com.google.gerrit.proto.Entities.LabelId> |
getParser() |
com.google.gerrit.proto.Entities.LabelId |
toProto(LabelId labelId) |
static LabelIdProtoConverter |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static LabelIdProtoConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final LabelIdProtoConverter INSTANCE
public static LabelIdProtoConverter[] values()
for (LabelIdProtoConverter c : LabelIdProtoConverter.values()) System.out.println(c);
public static LabelIdProtoConverter 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 com.google.gerrit.proto.Entities.LabelId toProto(LabelId labelId)
toProto
in interface ProtoConverter<com.google.gerrit.proto.Entities.LabelId,LabelId>
public LabelId fromProto(com.google.gerrit.proto.Entities.LabelId proto)
fromProto
in interface ProtoConverter<com.google.gerrit.proto.Entities.LabelId,LabelId>
public com.google.protobuf.Parser<com.google.gerrit.proto.Entities.LabelId> getParser()
getParser
in interface ProtoConverter<com.google.gerrit.proto.Entities.LabelId,LabelId>