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