public enum PatchSetApprovalProtoConverter extends java.lang.Enum<PatchSetApprovalProtoConverter> implements ProtoConverter<com.google.gerrit.proto.Entities.PatchSetApproval,PatchSetApproval>
Enum Constant and Description |
---|
INSTANCE |
Modifier and Type | Method and Description |
---|---|
PatchSetApproval |
fromProto(com.google.gerrit.proto.Entities.PatchSetApproval proto) |
com.google.protobuf.Parser<com.google.gerrit.proto.Entities.PatchSetApproval> |
getParser() |
com.google.gerrit.proto.Entities.PatchSetApproval |
toProto(PatchSetApproval patchSetApproval) |
static PatchSetApprovalProtoConverter |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static PatchSetApprovalProtoConverter[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final PatchSetApprovalProtoConverter INSTANCE
public static PatchSetApprovalProtoConverter[] values()
for (PatchSetApprovalProtoConverter c : PatchSetApprovalProtoConverter.values()) System.out.println(c);
public static PatchSetApprovalProtoConverter valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic com.google.gerrit.proto.Entities.PatchSetApproval toProto(PatchSetApproval patchSetApproval)
toProto
in interface ProtoConverter<com.google.gerrit.proto.Entities.PatchSetApproval,PatchSetApproval>
public PatchSetApproval fromProto(com.google.gerrit.proto.Entities.PatchSetApproval proto)
fromProto
in interface ProtoConverter<com.google.gerrit.proto.Entities.PatchSetApproval,PatchSetApproval>
public com.google.protobuf.Parser<com.google.gerrit.proto.Entities.PatchSetApproval> getParser()
getParser
in interface ProtoConverter<com.google.gerrit.proto.Entities.PatchSetApproval,PatchSetApproval>