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