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