Package com.google.gerrit.server.config
Enum Class UserPreferencesConverter.EditPreferencesInfoConverter
java.lang.Object
java.lang.Enum<UserPreferencesConverter.EditPreferencesInfoConverter>
com.google.gerrit.server.config.UserPreferencesConverter.EditPreferencesInfoConverter
- All Implemented Interfaces:
ProtoConverter<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo,
,EditPreferencesInfo> SafeProtoConverter<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo,
,EditPreferencesInfo> Serializable
,Comparable<UserPreferencesConverter.EditPreferencesInfoConverter>
,java.lang.constant.Constable
- Enclosing class:
UserPreferencesConverter
public static enum UserPreferencesConverter.EditPreferencesInfoConverter
extends Enum<UserPreferencesConverter.EditPreferencesInfoConverter>
implements SafeProtoConverter<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo,EditPreferencesInfo>
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionfromProto
(com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo proto) com.google.protobuf.Parser
<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo> Class
<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo> com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo
toProto
(EditPreferencesInfo info) Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
EDIT_PREFERENCES_INFO_CONVERTER
public static final UserPreferencesConverter.EditPreferencesInfoConverter EDIT_PREFERENCES_INFO_CONVERTER
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
toProto
public com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo toProto(EditPreferencesInfo info) - Specified by:
toProto
in interfaceProtoConverter<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo,
EditPreferencesInfo>
-
fromProto
public EditPreferencesInfo fromProto(com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo proto) - Specified by:
fromProto
in interfaceProtoConverter<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo,
EditPreferencesInfo>
-
getParser
public com.google.protobuf.Parser<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo> getParser()- Specified by:
getParser
in interfaceProtoConverter<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo,
EditPreferencesInfo>
-
getProtoClass
- Specified by:
getProtoClass
in interfaceSafeProtoConverter<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo,
EditPreferencesInfo>
-
getEntityClass
- Specified by:
getEntityClass
in interfaceSafeProtoConverter<com.google.gerrit.proto.Entities.UserPreferences.EditPreferencesInfo,
EditPreferencesInfo>
-