public enum NoteKind extends Enum<NoteKind> implements ProtocolMessageEnum
Kind represents the kinds of notes supported.Protobuf enum
grafeas.v1.NoteKind
Enum Constant and 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.
|
Modifier and Type | Field and 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.
|
Modifier and Type | Method and Description |
---|---|
static NoteKind |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static Internal.EnumLiteMap<NoteKind> |
internalGetValueMap() |
static NoteKind |
valueOf(Descriptors.EnumValueDescriptor desc) |
static NoteKind |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final NoteKind NOTE_KIND_UNSPECIFIED
Unknown.
NOTE_KIND_UNSPECIFIED = 0;
public static final NoteKind VULNERABILITY
The note and occurrence represent a package vulnerability.
VULNERABILITY = 1;
public static final NoteKind BUILD
The note and occurrence assert build provenance.
BUILD = 2;
public static final NoteKind IMAGE
This represents an image basis relationship.
IMAGE = 3;
public static final NoteKind PACKAGE
This represents a package installed via a package manager.
PACKAGE = 4;
public static final NoteKind DEPLOYMENT
The note and occurrence track deployment events.
DEPLOYMENT = 5;
public static final NoteKind DISCOVERY
The note and occurrence track the initial discovery status of a resource.
DISCOVERY = 6;
public static final NoteKind ATTESTATION
This represents a logical "role" that can attest to artifacts.
ATTESTATION = 7;
public static final NoteKind UNRECOGNIZED
public static final int NOTE_KIND_UNSPECIFIED_VALUE
Unknown.
NOTE_KIND_UNSPECIFIED = 0;
public static final int VULNERABILITY_VALUE
The note and occurrence represent a package vulnerability.
VULNERABILITY = 1;
public static final int BUILD_VALUE
The note and occurrence assert build provenance.
BUILD = 2;
public static final int IMAGE_VALUE
This represents an image basis relationship.
IMAGE = 3;
public static final int PACKAGE_VALUE
This represents a package installed via a package manager.
PACKAGE = 4;
public static final int DEPLOYMENT_VALUE
The note and occurrence track deployment events.
DEPLOYMENT = 5;
public static final int DISCOVERY_VALUE
The note and occurrence track the initial discovery status of a resource.
DISCOVERY = 6;
public static final int ATTESTATION_VALUE
This represents a logical "role" that can attest to artifacts.
ATTESTATION = 7;
public static NoteKind[] values()
for (NoteKind c : NoteKind.values()) System.out.println(c);
public static NoteKind valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static NoteKind valueOf(int value)
forNumber(int)
instead.public static NoteKind forNumber(int value)
public static Internal.EnumLiteMap<NoteKind> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static NoteKind valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2019 Google LLC. All rights reserved.