Package io.grafeas.v1beta1.common
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>
public enum NoteKind extends Enum<NoteKind> implements com.google.protobuf.ProtocolMessageEnum
Kind represents the kinds of notes supported.
Protobuf enumgrafeas.v1beta1.NoteKind
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ATTESTATION
This represents a logical "role" that can attest to artifacts.BUILD
The note and occurrence assert build provenance.DEPLOYMENT
The note and occurrence track deployment events.DISCOVERY
The note and occurrence track the initial discovery status of a resource.IMAGE
This represents an image basis relationship.NOTE_KIND_UNSPECIFIED
Unknown.PACKAGE
This represents a package installed via a package manager.UNRECOGNIZED
VULNERABILITY
The note and occurrence represent a package vulnerability.
-
Field Summary
Fields Modifier and Type Field Description static int
ATTESTATION_VALUE
This represents a logical "role" that can attest to artifacts.static int
BUILD_VALUE
The note and occurrence assert build provenance.static int
DEPLOYMENT_VALUE
The note and occurrence track deployment events.static int
DISCOVERY_VALUE
The note and occurrence track the initial discovery status of a resource.static int
IMAGE_VALUE
This represents an image basis relationship.static int
NOTE_KIND_UNSPECIFIED_VALUE
Unknown.static int
PACKAGE_VALUE
This represents a package installed via a package manager.static int
VULNERABILITY_VALUE
The note and occurrence represent a package vulnerability.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static NoteKind
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<NoteKind>
internalGetValueMap()
static NoteKind
valueOf(int value)
Deprecated.static NoteKind
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static NoteKind
valueOf(String name)
Returns the enum constant of this type with the specified name.static NoteKind[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.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 nameNullPointerException
- 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 interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.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 nameNullPointerException
- if the argument is null
-
-