Enum NoteKind

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<NoteKind>

    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 Detail

      • 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 Detail

      • NOTE_KIND_UNSPECIFIED_VALUE

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

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

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

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

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

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

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

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

      • values

        public static NoteKind[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (NoteKind c : NoteKind.values())
            System.out.println(c);
        
        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 final 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