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