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