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 ATTESTATIONThis represents a logical "role" that can attest to artifacts.BUILDThe note and occurrence assert build provenance.DEPLOYMENTThe note and occurrence track deployment events.DISCOVERYThe note and occurrence track the initial discovery status of a resource.IMAGEThis represents an image basis relationship.NOTE_KIND_UNSPECIFIEDUnknown.PACKAGEThis represents a package installed via a package manager.UNRECOGNIZEDVULNERABILITYThe note and occurrence represent a package vulnerability.
-
Field Summary
Fields Modifier and Type Field Description static intATTESTATION_VALUEThis represents a logical "role" that can attest to artifacts.static intBUILD_VALUEThe note and occurrence assert build provenance.static intDEPLOYMENT_VALUEThe note and occurrence track deployment events.static intDISCOVERY_VALUEThe note and occurrence track the initial discovery status of a resource.static intIMAGE_VALUEThis represents an image basis relationship.static intNOTE_KIND_UNSPECIFIED_VALUEUnknown.static intPACKAGE_VALUEThis represents a package installed via a package manager.static intVULNERABILITY_VALUEThe 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 NoteKindforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<NoteKind>internalGetValueMap()static NoteKindvalueOf(int value)Deprecated.static NoteKindvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static NoteKindvalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-