Enum Class PatchSetProtoConverter

java.lang.Object
java.lang.Enum<PatchSetProtoConverter>
com.google.gerrit.entities.converter.PatchSetProtoConverter
All Implemented Interfaces:
ProtoConverter<com.google.gerrit.proto.Entities.PatchSet,PatchSet>, Serializable, Comparable<PatchSetProtoConverter>, java.lang.constant.Constable

@Immutable public enum PatchSetProtoConverter extends Enum<PatchSetProtoConverter> implements ProtoConverter<com.google.gerrit.proto.Entities.PatchSet,PatchSet>
  • Enum Constant Details

  • Method Details

    • values

      public static PatchSetProtoConverter[] 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

      public static PatchSetProtoConverter valueOf(String name)
      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 name
      NullPointerException - if the argument is null
    • toProto

      public com.google.gerrit.proto.Entities.PatchSet toProto(PatchSet patchSet)
      Specified by:
      toProto in interface ProtoConverter<com.google.gerrit.proto.Entities.PatchSet,PatchSet>
    • fromProto

      public PatchSet fromProto(com.google.gerrit.proto.Entities.PatchSet proto)
      Specified by:
      fromProto in interface ProtoConverter<com.google.gerrit.proto.Entities.PatchSet,PatchSet>
    • getParser

      public com.google.protobuf.Parser<com.google.gerrit.proto.Entities.PatchSet> getParser()
      Specified by:
      getParser in interface ProtoConverter<com.google.gerrit.proto.Entities.PatchSet,PatchSet>