Enum NoteKind

java.lang.Object
java.lang.Enum<NoteKind>
io.grafeas.v1beta1.common.NoteKind
All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<NoteKind>

@Generated public enum NoteKind extends Enum<NoteKind> implements com.google.protobuf.ProtocolMessageEnum
 Kind represents the kinds of notes supported.
 
Protobuf enum grafeas.v1beta1.NoteKind
  • Enum Constant Details

    • NOTE_KIND_UNSPECIFIED

      public static final NoteKind NOTE_KIND_UNSPECIFIED
       Unknown.
       
      NOTE_KIND_UNSPECIFIED = 0;
    • VULNERABILITY

      public static final NoteKind VULNERABILITY
       The note and occurrence represent a package vulnerability.
       
      VULNERABILITY = 1;
    • BUILD

      public static final NoteKind BUILD
       The note and occurrence assert build provenance.
       
      BUILD = 2;
    • IMAGE

      public static final NoteKind IMAGE
       This represents an image basis relationship.
       
      IMAGE = 3;
    • PACKAGE

      public static final NoteKind PACKAGE
       This represents a package installed via a package manager.
       
      PACKAGE = 4;
    • DEPLOYMENT

      public static final NoteKind DEPLOYMENT
       The note and occurrence track deployment events.
       
      DEPLOYMENT = 5;
    • DISCOVERY

      public static final NoteKind DISCOVERY
       The note and occurrence track the initial discovery status of a resource.
       
      DISCOVERY = 6;
    • ATTESTATION

      public static final NoteKind ATTESTATION
       This represents a logical "role" that can attest to artifacts.
       
      ATTESTATION = 7;
    • UNRECOGNIZED

      public static final NoteKind UNRECOGNIZED
  • Field Details

    • NOTE_KIND_UNSPECIFIED_VALUE

      public static final int NOTE_KIND_UNSPECIFIED_VALUE
       Unknown.
       
      NOTE_KIND_UNSPECIFIED = 0;
      See Also:
    • VULNERABILITY_VALUE

      public static final int VULNERABILITY_VALUE
       The note and occurrence represent a package vulnerability.
       
      VULNERABILITY = 1;
      See Also:
    • BUILD_VALUE

      public static final int BUILD_VALUE
       The note and occurrence assert build provenance.
       
      BUILD = 2;
      See Also:
    • IMAGE_VALUE

      public static final int IMAGE_VALUE
       This represents an image basis relationship.
       
      IMAGE = 3;
      See Also:
    • PACKAGE_VALUE

      public static final int PACKAGE_VALUE
       This represents a package installed via a package manager.
       
      PACKAGE = 4;
      See Also:
    • DEPLOYMENT_VALUE

      public static final int DEPLOYMENT_VALUE
       The note and occurrence track deployment events.
       
      DEPLOYMENT = 5;
      See Also:
    • DISCOVERY_VALUE

      public static final int DISCOVERY_VALUE
       The note and occurrence track the initial discovery status of a resource.
       
      DISCOVERY = 6;
      See Also:
    • ATTESTATION_VALUE

      public static final int ATTESTATION_VALUE
       This represents a logical "role" that can attest to artifacts.
       
      ATTESTATION = 7;
      See Also:
  • Method Details

    • values

      public static NoteKind[] values()
      Returns an array containing the constants of this enum type, in the order they are declared.
      Returns:
      an array containing the constants of this enum type, in the order they are declared
    • valueOf

      public static NoteKind valueOf(String name)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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 type has no constant with the specified name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.google.protobuf.ProtocolMessageEnum
    • valueOf

      @Deprecated public static NoteKind valueOf(int value)
      Deprecated.
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      value - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null
    • forNumber

      public static NoteKind forNumber(int value)
      Parameters:
      value - The numeric wire value of the corresponding enum entry.
      Returns:
      The enum associated with the given numeric wire value.
    • internalGetValueMap

      public static com.google.protobuf.Internal.EnumLiteMap<NoteKind> internalGetValueMap()
    • getValueDescriptor

      public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
      Specified by:
      getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptor

      public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
    • valueOf

      public static NoteKind valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
      Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
      Parameters:
      desc - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum type has no constant with the specified name
      NullPointerException - if the argument is null