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