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