Class Note (2.19.0)

public final class Note extends GeneratedMessageV3 implements NoteOrBuilder

A type of analysis that can be done for a resource.

Protobuf type grafeas.v1.Note

Implements

NoteOrBuilder

Static Fields

ATTESTATION_FIELD_NUMBER

public static final int ATTESTATION_FIELD_NUMBER
Field Value
TypeDescription
int

BUILD_FIELD_NUMBER

public static final int BUILD_FIELD_NUMBER
Field Value
TypeDescription
int

COMPLIANCE_FIELD_NUMBER

public static final int COMPLIANCE_FIELD_NUMBER
Field Value
TypeDescription
int

CREATE_TIME_FIELD_NUMBER

public static final int CREATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

DEPLOYMENT_FIELD_NUMBER

public static final int DEPLOYMENT_FIELD_NUMBER
Field Value
TypeDescription
int

DISCOVERY_FIELD_NUMBER

public static final int DISCOVERY_FIELD_NUMBER
Field Value
TypeDescription
int

DSSE_ATTESTATION_FIELD_NUMBER

public static final int DSSE_ATTESTATION_FIELD_NUMBER
Field Value
TypeDescription
int

EXPIRATION_TIME_FIELD_NUMBER

public static final int EXPIRATION_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

IMAGE_FIELD_NUMBER

public static final int IMAGE_FIELD_NUMBER
Field Value
TypeDescription
int

KIND_FIELD_NUMBER

public static final int KIND_FIELD_NUMBER
Field Value
TypeDescription
int

LONG_DESCRIPTION_FIELD_NUMBER

public static final int LONG_DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

NAME_FIELD_NUMBER

public static final int NAME_FIELD_NUMBER
Field Value
TypeDescription
int

PACKAGE_FIELD_NUMBER

public static final int PACKAGE_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int RELATED_NOTE_NAMES_FIELD_NUMBER
Field Value
TypeDescription
int
public static final int RELATED_URL_FIELD_NUMBER
Field Value
TypeDescription
int

SHORT_DESCRIPTION_FIELD_NUMBER

public static final int SHORT_DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

UPDATE_TIME_FIELD_NUMBER

public static final int UPDATE_TIME_FIELD_NUMBER
Field Value
TypeDescription
int

UPGRADE_FIELD_NUMBER

public static final int UPGRADE_FIELD_NUMBER
Field Value
TypeDescription
int

VULNERABILITY_ASSESSMENT_FIELD_NUMBER

public static final int VULNERABILITY_ASSESSMENT_FIELD_NUMBER
Field Value
TypeDescription
int

VULNERABILITY_FIELD_NUMBER

public static final int VULNERABILITY_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static Note getDefaultInstance()
Returns
TypeDescription
Note

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static Note.Builder newBuilder()
Returns
TypeDescription
Note.Builder

newBuilder(Note prototype)

public static Note.Builder newBuilder(Note prototype)
Parameter
NameDescription
prototypeNote
Returns
TypeDescription
Note.Builder

parseDelimitedFrom(InputStream input)

public static Note parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Note
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Note parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Note
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static Note parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
Note
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static Note parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Note
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static Note parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
Note
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static Note parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Note
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static Note parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
Note
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static Note parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Note
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static Note parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
Note
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static Note parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Note
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static Note parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
Note
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static Note parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Note
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<Note> parser()
Returns
TypeDescription
Parser<Note>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAttestation()

public AttestationNote getAttestation()

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Returns
TypeDescription
AttestationNote

The attestation.

getAttestationOrBuilder()

public AttestationNoteOrBuilder getAttestationOrBuilder()

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Returns
TypeDescription
AttestationNoteOrBuilder

getBuild()

public BuildNote getBuild()

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Returns
TypeDescription
BuildNote

The build.

getBuildOrBuilder()

public BuildNoteOrBuilder getBuildOrBuilder()

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Returns
TypeDescription
BuildNoteOrBuilder

getCompliance()

public ComplianceNote getCompliance()

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Returns
TypeDescription
ComplianceNote

The compliance.

getComplianceOrBuilder()

public ComplianceNoteOrBuilder getComplianceOrBuilder()

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Returns
TypeDescription
ComplianceNoteOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time this note was created. This field can be used as a filter in list requests.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time this note was created. This field can be used as a filter in list requests.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Note getDefaultInstanceForType()
Returns
TypeDescription
Note

getDeployment()

public DeploymentNote getDeployment()

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Returns
TypeDescription
DeploymentNote

The deployment.

getDeploymentOrBuilder()

public DeploymentNoteOrBuilder getDeploymentOrBuilder()

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Returns
TypeDescription
DeploymentNoteOrBuilder

getDiscovery()

public DiscoveryNote getDiscovery()

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Returns
TypeDescription
DiscoveryNote

The discovery.

getDiscoveryOrBuilder()

public DiscoveryNoteOrBuilder getDiscoveryOrBuilder()

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Returns
TypeDescription
DiscoveryNoteOrBuilder

getDsseAttestation()

public DSSEAttestationNote getDsseAttestation()

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Returns
TypeDescription
DSSEAttestationNote

The dsseAttestation.

getDsseAttestationOrBuilder()

public DSSEAttestationNoteOrBuilder getDsseAttestationOrBuilder()

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Returns
TypeDescription
DSSEAttestationNoteOrBuilder

getExpirationTime()

public Timestamp getExpirationTime()

Time of expiration for this note. Empty if note does not expire.

.google.protobuf.Timestamp expiration_time = 6;

Returns
TypeDescription
Timestamp

The expirationTime.

getExpirationTimeOrBuilder()

public TimestampOrBuilder getExpirationTimeOrBuilder()

Time of expiration for this note. Empty if note does not expire.

.google.protobuf.Timestamp expiration_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getImage()

public ImageNote getImage()

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Returns
TypeDescription
ImageNote

The image.

getImageOrBuilder()

public ImageNoteOrBuilder getImageOrBuilder()

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Returns
TypeDescription
ImageNoteOrBuilder

getKind()

public NoteKind getKind()

Output only. The type of analysis. This field can be used as a filter in list requests.

.grafeas.v1.NoteKind kind = 4;

Returns
TypeDescription
NoteKind

The kind.

getKindValue()

public int getKindValue()

Output only. The type of analysis. This field can be used as a filter in list requests.

.grafeas.v1.NoteKind kind = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getLongDescription()

public String getLongDescription()

A detailed description of this note.

string long_description = 3;

Returns
TypeDescription
String

The longDescription.

getLongDescriptionBytes()

public ByteString getLongDescriptionBytes()

A detailed description of this note.

string long_description = 3;

Returns
TypeDescription
ByteString

The bytes for longDescription.

getName()

public String getName()

Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the note in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID].

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getPackage()

public PackageNote getPackage()

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Returns
TypeDescription
PackageNote

The package.

getPackageOrBuilder()

public PackageNoteOrBuilder getPackageOrBuilder()

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Returns
TypeDescription
PackageNoteOrBuilder

getParserForType()

public Parser<Note> getParserForType()
Returns
TypeDescription
Parser<Note>
Overrides

getRelatedNoteNames(int index)

public String getRelatedNoteNames(int index)

Other notes related to this note.

repeated string related_note_names = 9;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The relatedNoteNames at the given index.

getRelatedNoteNamesBytes(int index)

public ByteString getRelatedNoteNamesBytes(int index)

Other notes related to this note.

repeated string related_note_names = 9;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the relatedNoteNames at the given index.

getRelatedNoteNamesCount()

public int getRelatedNoteNamesCount()

Other notes related to this note.

repeated string related_note_names = 9;

Returns
TypeDescription
int

The count of relatedNoteNames.

getRelatedNoteNamesList()

public ProtocolStringList getRelatedNoteNamesList()

Other notes related to this note.

repeated string related_note_names = 9;

Returns
TypeDescription
ProtocolStringList

A list containing the relatedNoteNames.

getRelatedUrl(int index)

public RelatedUrl getRelatedUrl(int index)

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
RelatedUrl

getRelatedUrlCount()

public int getRelatedUrlCount()

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Returns
TypeDescription
int

getRelatedUrlList()

public List<RelatedUrl> getRelatedUrlList()

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Returns
TypeDescription
List<RelatedUrl>

getRelatedUrlOrBuilder(int index)

public RelatedUrlOrBuilder getRelatedUrlOrBuilder(int index)

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
NameDescription
indexint
Returns
TypeDescription
RelatedUrlOrBuilder

getRelatedUrlOrBuilderList()

public List<? extends RelatedUrlOrBuilder> getRelatedUrlOrBuilderList()

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Returns
TypeDescription
List<? extends io.grafeas.v1.RelatedUrlOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getShortDescription()

public String getShortDescription()

A one sentence description of this note.

string short_description = 2;

Returns
TypeDescription
String

The shortDescription.

getShortDescriptionBytes()

public ByteString getShortDescriptionBytes()

A one sentence description of this note.

string short_description = 2;

Returns
TypeDescription
ByteString

The bytes for shortDescription.

getTypeCase()

public Note.TypeCase getTypeCase()
Returns
TypeDescription
Note.TypeCase

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time this note was last updated. This field can be used as a filter in list requests.

.google.protobuf.Timestamp update_time = 8;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time this note was last updated. This field can be used as a filter in list requests.

.google.protobuf.Timestamp update_time = 8;

Returns
TypeDescription
TimestampOrBuilder

getUpgrade()

public UpgradeNote getUpgrade()

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Returns
TypeDescription
UpgradeNote

The upgrade.

getUpgradeOrBuilder()

public UpgradeNoteOrBuilder getUpgradeOrBuilder()

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Returns
TypeDescription
UpgradeNoteOrBuilder

getVulnerability()

public VulnerabilityNote getVulnerability()

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Returns
TypeDescription
VulnerabilityNote

The vulnerability.

getVulnerabilityAssessment()

public VulnerabilityAssessmentNote getVulnerabilityAssessment()

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Returns
TypeDescription
VulnerabilityAssessmentNote

The vulnerabilityAssessment.

getVulnerabilityAssessmentOrBuilder()

public VulnerabilityAssessmentNoteOrBuilder getVulnerabilityAssessmentOrBuilder()

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Returns
TypeDescription
VulnerabilityAssessmentNoteOrBuilder

getVulnerabilityOrBuilder()

public VulnerabilityNoteOrBuilder getVulnerabilityOrBuilder()

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Returns
TypeDescription
VulnerabilityNoteOrBuilder

hasAttestation()

public boolean hasAttestation()

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Returns
TypeDescription
boolean

Whether the attestation field is set.

hasBuild()

public boolean hasBuild()

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Returns
TypeDescription
boolean

Whether the build field is set.

hasCompliance()

public boolean hasCompliance()

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Returns
TypeDescription
boolean

Whether the compliance field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time this note was created. This field can be used as a filter in list requests.

.google.protobuf.Timestamp create_time = 7;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDeployment()

public boolean hasDeployment()

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Returns
TypeDescription
boolean

Whether the deployment field is set.

hasDiscovery()

public boolean hasDiscovery()

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Returns
TypeDescription
boolean

Whether the discovery field is set.

hasDsseAttestation()

public boolean hasDsseAttestation()

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Returns
TypeDescription
boolean

Whether the dsseAttestation field is set.

hasExpirationTime()

public boolean hasExpirationTime()

Time of expiration for this note. Empty if note does not expire.

.google.protobuf.Timestamp expiration_time = 6;

Returns
TypeDescription
boolean

Whether the expirationTime field is set.

hasImage()

public boolean hasImage()

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Returns
TypeDescription
boolean

Whether the image field is set.

hasPackage()

public boolean hasPackage()

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Returns
TypeDescription
boolean

Whether the package field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time this note was last updated. This field can be used as a filter in list requests.

.google.protobuf.Timestamp update_time = 8;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasUpgrade()

public boolean hasUpgrade()

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Returns
TypeDescription
boolean

Whether the upgrade field is set.

hasVulnerability()

public boolean hasVulnerability()

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Returns
TypeDescription
boolean

Whether the vulnerability field is set.

hasVulnerabilityAssessment()

public boolean hasVulnerabilityAssessment()

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Returns
TypeDescription
boolean

Whether the vulnerabilityAssessment field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public Note.Builder newBuilderForType()
Returns
TypeDescription
Note.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected Note.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
Note.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public Note.Builder toBuilder()
Returns
TypeDescription
Note.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException