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