Package io.grafeas.v1beta1.common
Enum 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 Summary
Enum ConstantsEnum ConstantDescriptionThis represents a logical "role" that can attest to artifacts.The note and occurrence assert build provenance.The note and occurrence track deployment events.The note and occurrence track the initial discovery status of a resource.This represents an image basis relationship.Unknown.This represents a package installed via a package manager.The note and occurrence represent a package vulnerability. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intThis represents a logical "role" that can attest to artifacts.static final intThe note and occurrence assert build provenance.static final intThe note and occurrence track deployment events.static final intThe note and occurrence track the initial discovery status of a resource.static final intThis represents an image basis relationship.static final intUnknown.static final intThis represents a package installed via a package manager.static final intThe note and occurrence represent a package vulnerability. -
Method Summary
Modifier and TypeMethodDescriptionstatic NoteKindforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<NoteKind>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 NoteKindReturns 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 Details
-
NOTE_KIND_UNSPECIFIED
Unknown.
NOTE_KIND_UNSPECIFIED = 0; -
VULNERABILITY
The note and occurrence represent a package vulnerability.
VULNERABILITY = 1; -
BUILD
The note and occurrence assert build provenance.
BUILD = 2; -
IMAGE
This represents an image basis relationship.
IMAGE = 3; -
PACKAGE
This represents a package installed via a package manager.
PACKAGE = 4; -
DEPLOYMENT
The note and occurrence track deployment events.
DEPLOYMENT = 5; -
DISCOVERY
The note and occurrence track the initial discovery status of a resource.
DISCOVERY = 6; -
ATTESTATION
This represents a logical "role" that can attest to artifacts.
ATTESTATION = 7; -
UNRECOGNIZED
-
-
Field Details
-
NOTE_KIND_UNSPECIFIED_VALUE
public static final int NOTE_KIND_UNSPECIFIED_VALUEUnknown.
NOTE_KIND_UNSPECIFIED = 0;- See Also:
-
VULNERABILITY_VALUE
public static final int VULNERABILITY_VALUEThe note and occurrence represent a package vulnerability.
VULNERABILITY = 1;- See Also:
-
BUILD_VALUE
public static final int BUILD_VALUEThe note and occurrence assert build provenance.
BUILD = 2;- See Also:
-
IMAGE_VALUE
public static final int IMAGE_VALUEThis represents an image basis relationship.
IMAGE = 3;- See Also:
-
PACKAGE_VALUE
public static final int PACKAGE_VALUEThis represents a package installed via a package manager.
PACKAGE = 4;- See Also:
-
DEPLOYMENT_VALUE
public static final int DEPLOYMENT_VALUEThe note and occurrence track deployment events.
DEPLOYMENT = 5;- See Also:
-
DISCOVERY_VALUE
public static final int DISCOVERY_VALUEThe note and occurrence track the initial discovery status of a resource.
DISCOVERY = 6;- See Also:
-
ATTESTATION_VALUE
public static final int ATTESTATION_VALUEThis represents a logical "role" that can attest to artifacts.
ATTESTATION = 7;- See Also:
-
-
Method Details
-
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
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.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
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
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 com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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
-