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