Class Note (2.79.0)

publicfinalclass NoteextendsGeneratedMessageV3implementsNoteOrBuilder

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

Protobuf type grafeas.v1beta1.Note

Implements

NoteOrBuilder

Inherited Members

com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

Static Fields

ATTESTATION_AUTHORITY_FIELD_NUMBER

publicstaticfinalintATTESTATION_AUTHORITY_FIELD_NUMBER
Field Value
Type Description
int

BASE_IMAGE_FIELD_NUMBER

publicstaticfinalintBASE_IMAGE_FIELD_NUMBER
Field Value
Type Description
int

BUILD_FIELD_NUMBER

publicstaticfinalintBUILD_FIELD_NUMBER
Field Value
Type Description
int

CREATE_TIME_FIELD_NUMBER

publicstaticfinalintCREATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

DEPLOYABLE_FIELD_NUMBER

publicstaticfinalintDEPLOYABLE_FIELD_NUMBER
Field Value
Type Description
int

DISCOVERY_FIELD_NUMBER

publicstaticfinalintDISCOVERY_FIELD_NUMBER
Field Value
Type Description
int

EXPIRATION_TIME_FIELD_NUMBER

publicstaticfinalintEXPIRATION_TIME_FIELD_NUMBER
Field Value
Type Description
int

KIND_FIELD_NUMBER

publicstaticfinalintKIND_FIELD_NUMBER
Field Value
Type Description
int

LONG_DESCRIPTION_FIELD_NUMBER

publicstaticfinalintLONG_DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

NAME_FIELD_NUMBER

publicstaticfinalintNAME_FIELD_NUMBER
Field Value
Type Description
int

PACKAGE_FIELD_NUMBER

publicstaticfinalintPACKAGE_FIELD_NUMBER
Field Value
Type Description
int
publicstaticfinalintRELATED_NOTE_NAMES_FIELD_NUMBER
Field Value
Type Description
int
publicstaticfinalintRELATED_URL_FIELD_NUMBER
Field Value
Type Description
int

SHORT_DESCRIPTION_FIELD_NUMBER

publicstaticfinalintSHORT_DESCRIPTION_FIELD_NUMBER
Field Value
Type Description
int

UPDATE_TIME_FIELD_NUMBER

publicstaticfinalintUPDATE_TIME_FIELD_NUMBER
Field Value
Type Description
int

VULNERABILITY_FIELD_NUMBER

publicstaticfinalintVULNERABILITY_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

publicstaticNotegetDefaultInstance()
Returns
Type Description
Note

getDescriptor()

publicstaticfinalDescriptors.DescriptorgetDescriptor()
Returns
Type Description
Descriptor

newBuilder()

publicstaticNote.BuildernewBuilder()
Returns
Type Description
Note.Builder

newBuilder(Note prototype)

publicstaticNote.BuildernewBuilder(Noteprototype)
Parameter
Name Description
prototype Note
Returns
Type Description
Note.Builder

parseDelimitedFrom(InputStream input)

publicstaticNoteparseDelimitedFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Note
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNoteparseDelimitedFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Note
Exceptions
Type Description
IOException

parseFrom(byte[] data)

publicstaticNoteparseFrom(byte[]data)
Parameter
Name Description
data byte[]
Returns
Type Description
Note
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

publicstaticNoteparseFrom(byte[]data,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Note
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

publicstaticNoteparseFrom(ByteStringdata)
Parameter
Name Description
data ByteString
Returns
Type Description
Note
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

publicstaticNoteparseFrom(ByteStringdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Note
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

publicstaticNoteparseFrom(CodedInputStreaminput)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
Note
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNoteparseFrom(CodedInputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Note
Exceptions
Type Description
IOException

parseFrom(InputStream input)

publicstaticNoteparseFrom(InputStreaminput)
Parameter
Name Description
input InputStream
Returns
Type Description
Note
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

publicstaticNoteparseFrom(InputStreaminput,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Note
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

publicstaticNoteparseFrom(ByteBufferdata)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
Note
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

publicstaticNoteparseFrom(ByteBufferdata,ExtensionRegistryLiteextensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Note
Exceptions
Type Description
InvalidProtocolBufferException

parser()

publicstaticParser<Note>parser()
Returns
Type Description
Parser<Note>

Methods

equals(Object obj)

publicbooleanequals(Objectobj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getAttestationAuthority()

publicAuthoritygetAttestationAuthority()

A note describing an attestation role.

.grafeas.v1beta1.attestation.Authority attestation_authority = 16;

Returns
Type Description
Authority

The attestationAuthority.

getAttestationAuthorityOrBuilder()

publicAuthorityOrBuildergetAttestationAuthorityOrBuilder()

A note describing an attestation role.

.grafeas.v1beta1.attestation.Authority attestation_authority = 16;

Returns
Type Description
AuthorityOrBuilder

getBaseImage()

publicBasisgetBaseImage()

A note describing a base image.

.grafeas.v1beta1.image.Basis base_image = 12;

Returns
Type Description
Basis

The baseImage.

getBaseImageOrBuilder()

publicBasisOrBuildergetBaseImageOrBuilder()

A note describing a base image.

.grafeas.v1beta1.image.Basis base_image = 12;

Returns
Type Description
BasisOrBuilder

getBuild()

publicBuildgetBuild()

A note describing build provenance for a verifiable build.

.grafeas.v1beta1.build.Build build = 11;

Returns
Type Description
Build

The build.

getBuildOrBuilder()

publicBuildOrBuildergetBuildOrBuilder()

A note describing build provenance for a verifiable build.

.grafeas.v1beta1.build.Build build = 11;

Returns
Type Description
BuildOrBuilder

getCreateTime()

publicTimestampgetCreateTime()

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
Type Description
Timestamp

The createTime.

getCreateTimeOrBuilder()

publicTimestampOrBuildergetCreateTimeOrBuilder()

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
Type Description
TimestampOrBuilder

getDefaultInstanceForType()

publicNotegetDefaultInstanceForType()
Returns
Type Description
Note

getDeployable()

publicDeployablegetDeployable()

A note describing something that can be deployed.

.grafeas.v1beta1.deployment.Deployable deployable = 14;

Returns
Type Description
Deployable

The deployable.

getDeployableOrBuilder()

publicDeployableOrBuildergetDeployableOrBuilder()

A note describing something that can be deployed.

.grafeas.v1beta1.deployment.Deployable deployable = 14;

Returns
Type Description
DeployableOrBuilder

getDiscovery()

publicDiscoverygetDiscovery()

A note describing the initial analysis of a resource.

.grafeas.v1beta1.discovery.Discovery discovery = 15;

Returns
Type Description
Discovery

The discovery.

getDiscoveryOrBuilder()

publicDiscoveryOrBuildergetDiscoveryOrBuilder()

A note describing the initial analysis of a resource.

.grafeas.v1beta1.discovery.Discovery discovery = 15;

Returns
Type Description
DiscoveryOrBuilder

getExpirationTime()

publicTimestampgetExpirationTime()

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

.google.protobuf.Timestamp expiration_time = 6;

Returns
Type Description
Timestamp

The expirationTime.

getExpirationTimeOrBuilder()

publicTimestampOrBuildergetExpirationTimeOrBuilder()

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

.google.protobuf.Timestamp expiration_time = 6;

Returns
Type Description
TimestampOrBuilder

getKind()

publicNoteKindgetKind()

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

.grafeas.v1beta1.NoteKind kind = 4;

Returns
Type Description
NoteKind

The kind.

getKindValue()

publicintgetKindValue()

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

.grafeas.v1beta1.NoteKind kind = 4;

Returns
Type Description
int

The enum numeric value on the wire for kind.

getLongDescription()

publicStringgetLongDescription()

A detailed description of this note.

string long_description = 3;

Returns
Type Description
String

The longDescription.

getLongDescriptionBytes()

publicByteStringgetLongDescriptionBytes()

A detailed description of this note.

string long_description = 3;

Returns
Type Description
ByteString

The bytes for longDescription.

getName()

publicStringgetName()

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

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

publicByteStringgetNameBytes()

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

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPackage()

publicPackagegetPackage()

A note describing a package hosted by various package managers.

.grafeas.v1beta1.package.Package package = 13;

Returns
Type Description
Package

The package.

getPackageOrBuilder()

publicPackageOrBuildergetPackageOrBuilder()

A note describing a package hosted by various package managers.

.grafeas.v1beta1.package.Package package = 13;

Returns
Type Description
PackageOrBuilder

getParserForType()

publicParser<Note>getParserForType()
Returns
Type Description
Parser<Note>
Overrides

getRelatedNoteNames(int index)

publicStringgetRelatedNoteNames(intindex)

Other notes related to this note.

repeated string related_note_names = 9;

Parameter
Name Description
index int

The index of the element to return.

Returns
Type Description
String

The relatedNoteNames at the given index.

getRelatedNoteNamesBytes(int index)

publicByteStringgetRelatedNoteNamesBytes(intindex)

Other notes related to this note.

repeated string related_note_names = 9;

Parameter
Name Description
index int

The index of the value to return.

Returns
Type Description
ByteString

The bytes of the relatedNoteNames at the given index.

getRelatedNoteNamesCount()

publicintgetRelatedNoteNamesCount()

Other notes related to this note.

repeated string related_note_names = 9;

Returns
Type Description
int

The count of relatedNoteNames.

getRelatedNoteNamesList()

publicProtocolStringListgetRelatedNoteNamesList()

Other notes related to this note.

repeated string related_note_names = 9;

Returns
Type Description
ProtocolStringList

A list containing the relatedNoteNames.

getRelatedUrl(int index)

publicRelatedUrlgetRelatedUrl(intindex)

URLs associated with this note.

repeated .grafeas.v1beta1.RelatedUrl related_url = 5;

Parameter
Name Description
index int
Returns
Type Description
RelatedUrl

getRelatedUrlCount()

publicintgetRelatedUrlCount()

URLs associated with this note.

repeated .grafeas.v1beta1.RelatedUrl related_url = 5;

Returns
Type Description
int

getRelatedUrlList()

publicList<RelatedUrl>getRelatedUrlList()

URLs associated with this note.

repeated .grafeas.v1beta1.RelatedUrl related_url = 5;

Returns
Type Description
List<RelatedUrl>

getRelatedUrlOrBuilder(int index)

publicRelatedUrlOrBuildergetRelatedUrlOrBuilder(intindex)

URLs associated with this note.

repeated .grafeas.v1beta1.RelatedUrl related_url = 5;

Parameter
Name Description
index int
Returns
Type Description
RelatedUrlOrBuilder

getRelatedUrlOrBuilderList()

publicList<?extendsRelatedUrlOrBuilder>getRelatedUrlOrBuilderList()

URLs associated with this note.

repeated .grafeas.v1beta1.RelatedUrl related_url = 5;

Returns
Type Description
List<? extends io.grafeas.v1beta1.common.RelatedUrlOrBuilder>

getSerializedSize()

publicintgetSerializedSize()
Returns
Type Description
int
Overrides

getShortDescription()

publicStringgetShortDescription()

A one sentence description of this note.

string short_description = 2;

Returns
Type Description
String

The shortDescription.

getShortDescriptionBytes()

publicByteStringgetShortDescriptionBytes()

A one sentence description of this note.

string short_description = 2;

Returns
Type Description
ByteString

The bytes for shortDescription.

getTypeCase()

publicNote.TypeCasegetTypeCase()
Returns
Type Description
Note.TypeCase

getUpdateTime()

publicTimestampgetUpdateTime()

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
Type Description
Timestamp

The updateTime.

getUpdateTimeOrBuilder()

publicTimestampOrBuildergetUpdateTimeOrBuilder()

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
Type Description
TimestampOrBuilder

getVulnerability()

publicVulnerabilitygetVulnerability()

A note describing a package vulnerability.

.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;

Returns
Type Description
Vulnerability

The vulnerability.

getVulnerabilityOrBuilder()

publicVulnerabilityOrBuildergetVulnerabilityOrBuilder()

A note describing a package vulnerability.

.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;

Returns
Type Description
VulnerabilityOrBuilder

hasAttestationAuthority()

publicbooleanhasAttestationAuthority()

A note describing an attestation role.

.grafeas.v1beta1.attestation.Authority attestation_authority = 16;

Returns
Type Description
boolean

Whether the attestationAuthority field is set.

hasBaseImage()

publicbooleanhasBaseImage()

A note describing a base image.

.grafeas.v1beta1.image.Basis base_image = 12;

Returns
Type Description
boolean

Whether the baseImage field is set.

hasBuild()

publicbooleanhasBuild()

A note describing build provenance for a verifiable build.

.grafeas.v1beta1.build.Build build = 11;

Returns
Type Description
boolean

Whether the build field is set.

hasCreateTime()

publicbooleanhasCreateTime()

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
Type Description
boolean

Whether the createTime field is set.

hasDeployable()

publicbooleanhasDeployable()

A note describing something that can be deployed.

.grafeas.v1beta1.deployment.Deployable deployable = 14;

Returns
Type Description
boolean

Whether the deployable field is set.

hasDiscovery()

publicbooleanhasDiscovery()

A note describing the initial analysis of a resource.

.grafeas.v1beta1.discovery.Discovery discovery = 15;

Returns
Type Description
boolean

Whether the discovery field is set.

hasExpirationTime()

publicbooleanhasExpirationTime()

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

.google.protobuf.Timestamp expiration_time = 6;

Returns
Type Description
boolean

Whether the expirationTime field is set.

hasPackage()

publicbooleanhasPackage()

A note describing a package hosted by various package managers.

.grafeas.v1beta1.package.Package package = 13;

Returns
Type Description
boolean

Whether the package field is set.

hasUpdateTime()

publicbooleanhasUpdateTime()

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
Type Description
boolean

Whether the updateTime field is set.

hasVulnerability()

publicbooleanhasVulnerability()

A note describing a package vulnerability.

.grafeas.v1beta1.vulnerability.Vulnerability vulnerability = 10;

Returns
Type Description
boolean

Whether the vulnerability field is set.

hashCode()

publicinthashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protectedGeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

publicfinalbooleanisInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

publicNote.BuildernewBuilderForType()
Returns
Type Description
Note.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protectedNote.BuildernewBuilderForType(GeneratedMessageV3.BuilderParentparent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
Note.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protectedObjectnewInstance(GeneratedMessageV3.UnusedPrivateParameterunused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

publicNote.BuildertoBuilder()
Returns
Type Description
Note.Builder

writeTo(CodedOutputStream output)

publicvoidwriteTo(CodedOutputStreamoutput)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException

Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025年11月19日 UTC.