Class Note.Builder (2.74.0)

  public 
  
 static 
  
 final 
  
 class 
 Note 
 . 
 Builder 
  
 extends 
  
 GeneratedMessageV3 
 . 
 Builder<Note 
 . 
 Builder 
>  
 implements 
  
 NoteOrBuilder 
 

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

Protobuf type grafeas.v1.Note

Implements

NoteOrBuilder

Static Methods

getDescriptor()

  public 
  
 static 
  
 final 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptor 
 () 
 
Returns
Type
Description

Methods

addAllRelatedNoteNames(Iterable<String> values)

  public 
  
 Note 
 . 
 Builder 
  
 addAllRelatedNoteNames 
 ( 
 Iterable<String> 
  
 values 
 ) 
 

Other notes related to this note.

repeated string related_note_names = 9;

Parameter
Name
Description
values
Iterable < String >

The relatedNoteNames to add.

Returns
Type
Description

This builder for chaining.

addAllRelatedUrl(Iterable<? extends RelatedUrl> values)

  public 
  
 Note 
 . 
 Builder 
  
 addAllRelatedUrl 
 ( 
 Iterable 
< ? 
  
 extends 
  
 RelatedUrl 
>  
 values 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
Name
Description
values
Iterable < ? extends io.grafeas.v1.RelatedUrl >
Returns
Type
Description

addRelatedNoteNames(String value)

  public 
  
 Note 
 . 
 Builder 
  
 addRelatedNoteNames 
 ( 
 String 
  
 value 
 ) 
 

Other notes related to this note.

repeated string related_note_names = 9;

Parameter
Name
Description
value
String

The relatedNoteNames to add.

Returns
Type
Description

This builder for chaining.

addRelatedNoteNamesBytes(ByteString value)

  public 
  
 Note 
 . 
 Builder 
  
 addRelatedNoteNamesBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

Other notes related to this note.

repeated string related_note_names = 9;

Parameter
Name
Description
value
ByteString

The bytes of the relatedNoteNames to add.

Returns
Type
Description

This builder for chaining.

addRelatedUrl(int index, RelatedUrl value)

  public 
  
 Note 
 . 
 Builder 
  
 addRelatedUrl 
 ( 
 int 
  
 index 
 , 
  
 RelatedUrl 
  
 value 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameters
Name
Description
index
int
value
Returns
Type
Description

addRelatedUrl(int index, RelatedUrl.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 addRelatedUrl 
 ( 
 int 
  
 index 
 , 
  
 RelatedUrl 
 . 
 Builder 
  
 builderForValue 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

addRelatedUrl(RelatedUrl value)

  public 
  
 Note 
 . 
 Builder 
  
 addRelatedUrl 
 ( 
 RelatedUrl 
  
 value 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
Name
Description
value
Returns
Type
Description

addRelatedUrl(RelatedUrl.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 addRelatedUrl 
 ( 
 RelatedUrl 
 . 
 Builder 
  
 builderForValue 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
Name
Description
builderForValue
Returns
Type
Description

addRelatedUrlBuilder()

  public 
  
 RelatedUrl 
 . 
 Builder 
  
 addRelatedUrlBuilder 
 () 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Returns
Type
Description

addRelatedUrlBuilder(int index)

  public 
  
 RelatedUrl 
 . 
 Builder 
  
 addRelatedUrlBuilder 
 ( 
 int 
  
 index 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
Name
Description
index
int
Returns
Type
Description

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 Note 
 . 
 Builder 
  
 addRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

build()

  public 
  
 Note 
  
 build 
 () 
 
Returns
Type
Description

buildPartial()

  public 
  
 Note 
  
 buildPartial 
 () 
 
Returns
Type
Description

clear()

  public 
  
 Note 
 . 
 Builder 
  
 clear 
 () 
 
Returns
Type
Description
Overrides

clearAttestation()

  public 
  
 Note 
 . 
 Builder 
  
 clearAttestation 
 () 
 

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Returns
Type
Description

clearBuild()

  public 
  
 Note 
 . 
 Builder 
  
 clearBuild 
 () 
 

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Returns
Type
Description

clearCompliance()

  public 
  
 Note 
 . 
 Builder 
  
 clearCompliance 
 () 
 

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Returns
Type
Description

clearCreateTime()

  public 
  
 Note 
 . 
 Builder 
  
 clearCreateTime 
 () 
 

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

clearDeployment()

  public 
  
 Note 
 . 
 Builder 
  
 clearDeployment 
 () 
 

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Returns
Type
Description

clearDiscovery()

  public 
  
 Note 
 . 
 Builder 
  
 clearDiscovery 
 () 
 

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Returns
Type
Description

clearDsseAttestation()

  public 
  
 Note 
 . 
 Builder 
  
 clearDsseAttestation 
 () 
 

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Returns
Type
Description

clearExpirationTime()

  public 
  
 Note 
 . 
 Builder 
  
 clearExpirationTime 
 () 
 

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

.google.protobuf.Timestamp expiration_time = 6;

Returns
Type
Description

clearField(Descriptors.FieldDescriptor field)

  public 
  
 Note 
 . 
 Builder 
  
 clearField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clearImage()

  public 
  
 Note 
 . 
 Builder 
  
 clearImage 
 () 
 

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Returns
Type
Description

clearKind()

  public 
  
 Note 
 . 
 Builder 
  
 clearKind 
 () 
 

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

.grafeas.v1.NoteKind kind = 4;

Returns
Type
Description

This builder for chaining.

clearLongDescription()

  public 
  
 Note 
 . 
 Builder 
  
 clearLongDescription 
 () 
 

A detailed description of this note.

string long_description = 3;

Returns
Type
Description

This builder for chaining.

clearName()

  public 
  
 Note 
 . 
 Builder 
  
 clearName 
 () 
 

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

string name = 1;

Returns
Type
Description

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

  public 
  
 Note 
 . 
 Builder 
  
 clearOneof 
 ( 
 Descriptors 
 . 
 OneofDescriptor 
  
 oneof 
 ) 
 
Parameter
Name
Description
Returns
Type
Description
Overrides

clearPackage()

  public 
  
 Note 
 . 
 Builder 
  
 clearPackage 
 () 
 

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Returns
Type
Description

clearRelatedNoteNames()

  public 
  
 Note 
 . 
 Builder 
  
 clearRelatedNoteNames 
 () 
 

Other notes related to this note.

repeated string related_note_names = 9;

Returns
Type
Description

This builder for chaining.

clearRelatedUrl()

  public 
  
 Note 
 . 
 Builder 
  
 clearRelatedUrl 
 () 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Returns
Type
Description

clearSbomReference()

  public 
  
 Note 
 . 
 Builder 
  
 clearSbomReference 
 () 
 

A note describing an SBOM reference.

.grafeas.v1.SBOMReferenceNote sbom_reference = 21;

Returns
Type
Description

clearSecret()

  public 
  
 Note 
 . 
 Builder 
  
 clearSecret 
 () 
 

A note describing a secret.

.grafeas.v1.SecretNote secret = 22;

Returns
Type
Description

clearShortDescription()

  public 
  
 Note 
 . 
 Builder 
  
 clearShortDescription 
 () 
 

A one sentence description of this note.

string short_description = 2;

Returns
Type
Description

This builder for chaining.

clearType()

  public 
  
 Note 
 . 
 Builder 
  
 clearType 
 () 
 
Returns
Type
Description

clearUpdateTime()

  public 
  
 Note 
 . 
 Builder 
  
 clearUpdateTime 
 () 
 

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

clearUpgrade()

  public 
  
 Note 
 . 
 Builder 
  
 clearUpgrade 
 () 
 

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Returns
Type
Description

clearVulnerability()

  public 
  
 Note 
 . 
 Builder 
  
 clearVulnerability 
 () 
 

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Returns
Type
Description

clearVulnerabilityAssessment()

  public 
  
 Note 
 . 
 Builder 
  
 clearVulnerabilityAssessment 
 () 
 

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Returns
Type
Description

clone()

  public 
  
 Note 
 . 
 Builder 
  
 clone 
 () 
 
Returns
Type
Description
Overrides

getAttestation()

  public 
  
 AttestationNote 
  
 getAttestation 
 () 
 

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Returns
Type
Description

The attestation.

getAttestationBuilder()

  public 
  
 AttestationNote 
 . 
 Builder 
  
 getAttestationBuilder 
 () 
 

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Returns
Type
Description

getAttestationOrBuilder()

  public 
  
 AttestationNoteOrBuilder 
  
 getAttestationOrBuilder 
 () 
 

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Returns
Type
Description

getBuild()

  public 
  
 BuildNote 
  
 getBuild 
 () 
 

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Returns
Type
Description

The build.

getBuildBuilder()

  public 
  
 BuildNote 
 . 
 Builder 
  
 getBuildBuilder 
 () 
 

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Returns
Type
Description

getBuildOrBuilder()

  public 
  
 BuildNoteOrBuilder 
  
 getBuildOrBuilder 
 () 
 

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Returns
Type
Description

getCompliance()

  public 
  
 ComplianceNote 
  
 getCompliance 
 () 
 

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Returns
Type
Description

The compliance.

getComplianceBuilder()

  public 
  
 ComplianceNote 
 . 
 Builder 
  
 getComplianceBuilder 
 () 
 

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Returns
Type
Description

getComplianceOrBuilder()

  public 
  
 ComplianceNoteOrBuilder 
  
 getComplianceOrBuilder 
 () 
 

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Returns
Type
Description

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

The createTime.

getCreateTimeBuilder()

  public 
  
 Timestamp 
 . 
 Builder 
  
 getCreateTimeBuilder 
 () 
 

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

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

getDefaultInstanceForType()

  public 
  
 Note 
  
 getDefaultInstanceForType 
 () 
 
Returns
Type
Description

getDeployment()

  public 
  
 DeploymentNote 
  
 getDeployment 
 () 
 

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Returns
Type
Description

The deployment.

getDeploymentBuilder()

  public 
  
 DeploymentNote 
 . 
 Builder 
  
 getDeploymentBuilder 
 () 
 

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Returns
Type
Description

getDeploymentOrBuilder()

  public 
  
 DeploymentNoteOrBuilder 
  
 getDeploymentOrBuilder 
 () 
 

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Returns
Type
Description

getDescriptorForType()

  public 
  
 Descriptors 
 . 
 Descriptor 
  
 getDescriptorForType 
 () 
 
Returns
Type
Description
Overrides

getDiscovery()

  public 
  
 DiscoveryNote 
  
 getDiscovery 
 () 
 

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Returns
Type
Description

The discovery.

getDiscoveryBuilder()

  public 
  
 DiscoveryNote 
 . 
 Builder 
  
 getDiscoveryBuilder 
 () 
 

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Returns
Type
Description

getDiscoveryOrBuilder()

  public 
  
 DiscoveryNoteOrBuilder 
  
 getDiscoveryOrBuilder 
 () 
 

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Returns
Type
Description

getDsseAttestation()

  public 
  
 DSSEAttestationNote 
  
 getDsseAttestation 
 () 
 

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Returns
Type
Description

The dsseAttestation.

getDsseAttestationBuilder()

  public 
  
 DSSEAttestationNote 
 . 
 Builder 
  
 getDsseAttestationBuilder 
 () 
 

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Returns
Type
Description

getDsseAttestationOrBuilder()

  public 
  
 DSSEAttestationNoteOrBuilder 
  
 getDsseAttestationOrBuilder 
 () 
 

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Returns
Type
Description

getExpirationTime()

  public 
  
 Timestamp 
  
 getExpirationTime 
 () 
 

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

.google.protobuf.Timestamp expiration_time = 6;

Returns
Type
Description

The expirationTime.

getExpirationTimeBuilder()

  public 
  
 Timestamp 
 . 
 Builder 
  
 getExpirationTimeBuilder 
 () 
 

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

.google.protobuf.Timestamp expiration_time = 6;

Returns
Type
Description

getExpirationTimeOrBuilder()

  public 
  
 TimestampOrBuilder 
  
 getExpirationTimeOrBuilder 
 () 
 

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

.google.protobuf.Timestamp expiration_time = 6;

Returns
Type
Description

getImage()

  public 
  
 ImageNote 
  
 getImage 
 () 
 

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Returns
Type
Description

The image.

getImageBuilder()

  public 
  
 ImageNote 
 . 
 Builder 
  
 getImageBuilder 
 () 
 

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Returns
Type
Description

getImageOrBuilder()

  public 
  
 ImageNoteOrBuilder 
  
 getImageOrBuilder 
 () 
 

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Returns
Type
Description

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

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

The longDescription.

getLongDescriptionBytes()

  public 
  
 ByteString 
  
 getLongDescriptionBytes 
 () 
 

A detailed description of this note.

string long_description = 3;

Returns
Type
Description

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

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

The bytes for name.

getPackage()

  public 
  
 PackageNote 
  
 getPackage 
 () 
 

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Returns
Type
Description

The package.

getPackageBuilder()

  public 
  
 PackageNote 
 . 
 Builder 
  
 getPackageBuilder 
 () 
 

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Returns
Type
Description

getPackageOrBuilder()

  public 
  
 PackageNoteOrBuilder 
  
 getPackageOrBuilder 
 () 
 

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Returns
Type
Description

getRelatedNoteNames(int index)

  public 
  
 String 
  
 getRelatedNoteNames 
 ( 
 int 
  
 index 
 ) 
 

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

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
Name
Description
index
int

The index of the value to return.

Returns
Type
Description

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

The count of relatedNoteNames.

getRelatedNoteNamesList()

  public 
  
 ProtocolStringList 
  
 getRelatedNoteNamesList 
 () 
 

Other notes related to this note.

repeated string related_note_names = 9;

Returns
Type
Description

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
Name
Description
index
int
Returns
Type
Description

getRelatedUrlBuilder(int index)

  public 
  
 RelatedUrl 
 . 
 Builder 
  
 getRelatedUrlBuilder 
 ( 
 int 
  
 index 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
Name
Description
index
int
Returns
Type
Description

getRelatedUrlBuilderList()

  public 
  
 List<RelatedUrl 
 . 
 Builder 
>  
 getRelatedUrlBuilderList 
 () 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Returns
Type
Description

getRelatedUrlCount()

  public 
  
 int 
  
 getRelatedUrlCount 
 () 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Returns
Type
Description
int

getRelatedUrlList()

  public 
  
 List<RelatedUrl> 
  
 getRelatedUrlList 
 () 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Returns
Type
Description

getRelatedUrlOrBuilder(int index)

  public 
  
 RelatedUrlOrBuilder 
  
 getRelatedUrlOrBuilder 
 ( 
 int 
  
 index 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
Name
Description
index
int
Returns
Type
Description

getRelatedUrlOrBuilderList()

  public 
  
 List 
< ? 
  
 extends 
  
 RelatedUrlOrBuilder 
>  
 getRelatedUrlOrBuilderList 
 () 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

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

getSbomReference()

  public 
  
 SBOMReferenceNote 
  
 getSbomReference 
 () 
 

A note describing an SBOM reference.

.grafeas.v1.SBOMReferenceNote sbom_reference = 21;

Returns
Type
Description

The sbomReference.

getSbomReferenceBuilder()

  public 
  
 SBOMReferenceNote 
 . 
 Builder 
  
 getSbomReferenceBuilder 
 () 
 

A note describing an SBOM reference.

.grafeas.v1.SBOMReferenceNote sbom_reference = 21;

Returns
Type
Description

getSbomReferenceOrBuilder()

  public 
  
 SBOMReferenceNoteOrBuilder 
  
 getSbomReferenceOrBuilder 
 () 
 

A note describing an SBOM reference.

.grafeas.v1.SBOMReferenceNote sbom_reference = 21;

Returns
Type
Description

getSecret()

  public 
  
 SecretNote 
  
 getSecret 
 () 
 

A note describing a secret.

.grafeas.v1.SecretNote secret = 22;

Returns
Type
Description

The secret.

getSecretBuilder()

  public 
  
 SecretNote 
 . 
 Builder 
  
 getSecretBuilder 
 () 
 

A note describing a secret.

.grafeas.v1.SecretNote secret = 22;

Returns
Type
Description

getSecretOrBuilder()

  public 
  
 SecretNoteOrBuilder 
  
 getSecretOrBuilder 
 () 
 

A note describing a secret.

.grafeas.v1.SecretNote secret = 22;

Returns
Type
Description

getShortDescription()

  public 
  
 String 
  
 getShortDescription 
 () 
 

A one sentence description of this note.

string short_description = 2;

Returns
Type
Description

The shortDescription.

getShortDescriptionBytes()

  public 
  
 ByteString 
  
 getShortDescriptionBytes 
 () 
 

A one sentence description of this note.

string short_description = 2;

Returns
Type
Description

The bytes for shortDescription.

getTypeCase()

  public 
  
 Note 
 . 
 TypeCase 
  
 getTypeCase 
 () 
 
Returns
Type
Description

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

The updateTime.

getUpdateTimeBuilder()

  public 
  
 Timestamp 
 . 
 Builder 
  
 getUpdateTimeBuilder 
 () 
 

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

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

getUpgrade()

  public 
  
 UpgradeNote 
  
 getUpgrade 
 () 
 

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Returns
Type
Description

The upgrade.

getUpgradeBuilder()

  public 
  
 UpgradeNote 
 . 
 Builder 
  
 getUpgradeBuilder 
 () 
 

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Returns
Type
Description

getUpgradeOrBuilder()

  public 
  
 UpgradeNoteOrBuilder 
  
 getUpgradeOrBuilder 
 () 
 

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Returns
Type
Description

getVulnerability()

  public 
  
 VulnerabilityNote 
  
 getVulnerability 
 () 
 

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Returns
Type
Description

The vulnerability.

getVulnerabilityAssessment()

  public 
  
 VulnerabilityAssessmentNote 
  
 getVulnerabilityAssessment 
 () 
 

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Returns
Type
Description

The vulnerabilityAssessment.

getVulnerabilityAssessmentBuilder()

  public 
  
 VulnerabilityAssessmentNote 
 . 
 Builder 
  
 getVulnerabilityAssessmentBuilder 
 () 
 

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Returns
Type
Description

getVulnerabilityAssessmentOrBuilder()

  public 
  
 VulnerabilityAssessmentNoteOrBuilder 
  
 getVulnerabilityAssessmentOrBuilder 
 () 
 

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Returns
Type
Description

getVulnerabilityBuilder()

  public 
  
 VulnerabilityNote 
 . 
 Builder 
  
 getVulnerabilityBuilder 
 () 
 

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Returns
Type
Description

getVulnerabilityOrBuilder()

  public 
  
 VulnerabilityNoteOrBuilder 
  
 getVulnerabilityOrBuilder 
 () 
 

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Returns
Type
Description

hasAttestation()

  public 
  
 boolean 
  
 hasAttestation 
 () 
 

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Returns
Type
Description

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

Whether the build field is set.

hasCompliance()

  public 
  
 boolean 
  
 hasCompliance 
 () 
 

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Returns
Type
Description

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

Whether the createTime field is set.

hasDeployment()

  public 
  
 boolean 
  
 hasDeployment 
 () 
 

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Returns
Type
Description

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

Whether the discovery field is set.

hasDsseAttestation()

  public 
  
 boolean 
  
 hasDsseAttestation 
 () 
 

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Returns
Type
Description

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

Whether the expirationTime field is set.

hasImage()

  public 
  
 boolean 
  
 hasImage 
 () 
 

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Returns
Type
Description

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

Whether the package field is set.

hasSbomReference()

  public 
  
 boolean 
  
 hasSbomReference 
 () 
 

A note describing an SBOM reference.

.grafeas.v1.SBOMReferenceNote sbom_reference = 21;

Returns
Type
Description

Whether the sbomReference field is set.

hasSecret()

  public 
  
 boolean 
  
 hasSecret 
 () 
 

A note describing a secret.

.grafeas.v1.SecretNote secret = 22;

Returns
Type
Description

Whether the secret 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
Type
Description

Whether the updateTime field is set.

hasUpgrade()

  public 
  
 boolean 
  
 hasUpgrade 
 () 
 

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Returns
Type
Description

Whether the upgrade field is set.

hasVulnerability()

  public 
  
 boolean 
  
 hasVulnerability 
 () 
 

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Returns
Type
Description

Whether the vulnerability field is set.

hasVulnerabilityAssessment()

  public 
  
 boolean 
  
 hasVulnerabilityAssessment 
 () 
 

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Returns
Type
Description

Whether the vulnerabilityAssessment field is set.

internalGetFieldAccessorTable()

  protected 
  
 GeneratedMessageV3 
 . 
 FieldAccessorTable 
  
 internalGetFieldAccessorTable 
 () 
 
Returns
Type
Description
Overrides

isInitialized()

  public 
  
 final 
  
 boolean 
  
 isInitialized 
 () 
 
Returns
Type
Description
Overrides

mergeAttestation(AttestationNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeAttestation 
 ( 
 AttestationNote 
  
 value 
 ) 
 

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Parameter
Name
Description
Returns
Type
Description

mergeBuild(BuildNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeBuild 
 ( 
 BuildNote 
  
 value 
 ) 
 

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Parameter
Name
Description
value
Returns
Type
Description

mergeCompliance(ComplianceNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeCompliance 
 ( 
 ComplianceNote 
  
 value 
 ) 
 

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Parameter
Name
Description
Returns
Type
Description

mergeCreateTime(Timestamp value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeCreateTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

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;

Parameter
Name
Description
value
Returns
Type
Description

mergeDeployment(DeploymentNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeDeployment 
 ( 
 DeploymentNote 
  
 value 
 ) 
 

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Parameter
Name
Description
Returns
Type
Description

mergeDiscovery(DiscoveryNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeDiscovery 
 ( 
 DiscoveryNote 
  
 value 
 ) 
 

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Parameter
Name
Description
Returns
Type
Description

mergeDsseAttestation(DSSEAttestationNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeDsseAttestation 
 ( 
 DSSEAttestationNote 
  
 value 
 ) 
 

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Parameter
Name
Description
Returns
Type
Description

mergeExpirationTime(Timestamp value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeExpirationTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

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

.google.protobuf.Timestamp expiration_time = 6;

Parameter
Name
Description
value
Returns
Type
Description

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

  public 
  
 Note 
 . 
 Builder 
  
 mergeFrom 
 ( 
 CodedInputStream 
  
 input 
 , 
  
 ExtensionRegistryLite 
  
 extensionRegistry 
 ) 
 
Parameters
Name
Description
extensionRegistry
Returns
Type
Description
Overrides
Exceptions
Type
Description

mergeFrom(Message other)

  public 
  
 Note 
 . 
 Builder 
  
 mergeFrom 
 ( 
 Message 
  
 other 
 ) 
 
Parameter
Name
Description
other
Returns
Type
Description
Overrides

mergeFrom(Note other)

  public 
  
 Note 
 . 
 Builder 
  
 mergeFrom 
 ( 
 Note 
  
 other 
 ) 
 
Parameter
Name
Description
other
Returns
Type
Description

mergeImage(ImageNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeImage 
 ( 
 ImageNote 
  
 value 
 ) 
 

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Parameter
Name
Description
value
Returns
Type
Description

mergePackage(PackageNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergePackage 
 ( 
 PackageNote 
  
 value 
 ) 
 

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Parameter
Name
Description
value
Returns
Type
Description

mergeSbomReference(SBOMReferenceNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeSbomReference 
 ( 
 SBOMReferenceNote 
  
 value 
 ) 
 

A note describing an SBOM reference.

.grafeas.v1.SBOMReferenceNote sbom_reference = 21;

Parameter
Name
Description
Returns
Type
Description

mergeSecret(SecretNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeSecret 
 ( 
 SecretNote 
  
 value 
 ) 
 

A note describing a secret.

.grafeas.v1.SecretNote secret = 22;

Parameter
Name
Description
value
Returns
Type
Description

mergeUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 Note 
 . 
 Builder 
  
 mergeUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides

mergeUpdateTime(Timestamp value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeUpdateTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

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;

Parameter
Name
Description
value
Returns
Type
Description

mergeUpgrade(UpgradeNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeUpgrade 
 ( 
 UpgradeNote 
  
 value 
 ) 
 

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Parameter
Name
Description
value
Returns
Type
Description

mergeVulnerability(VulnerabilityNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeVulnerability 
 ( 
 VulnerabilityNote 
  
 value 
 ) 
 

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Parameter
Name
Description
Returns
Type
Description

mergeVulnerabilityAssessment(VulnerabilityAssessmentNote value)

  public 
  
 Note 
 . 
 Builder 
  
 mergeVulnerabilityAssessment 
 ( 
 VulnerabilityAssessmentNote 
  
 value 
 ) 
 

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Parameter
Name
Description
Returns
Type
Description

removeRelatedUrl(int index)

  public 
  
 Note 
 . 
 Builder 
  
 removeRelatedUrl 
 ( 
 int 
  
 index 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameter
Name
Description
index
int
Returns
Type
Description

setAttestation(AttestationNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setAttestation 
 ( 
 AttestationNote 
  
 value 
 ) 
 

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Parameter
Name
Description
Returns
Type
Description

setAttestation(AttestationNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setAttestation 
 ( 
 AttestationNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing an attestation role.

.grafeas.v1.AttestationNote attestation = 16;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setBuild(BuildNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setBuild 
 ( 
 BuildNote 
  
 value 
 ) 
 

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Parameter
Name
Description
value
Returns
Type
Description

setBuild(BuildNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setBuild 
 ( 
 BuildNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing build provenance for a verifiable build.

.grafeas.v1.BuildNote build = 11;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setCompliance(ComplianceNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setCompliance 
 ( 
 ComplianceNote 
  
 value 
 ) 
 

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Parameter
Name
Description
Returns
Type
Description

setCompliance(ComplianceNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setCompliance 
 ( 
 ComplianceNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing a compliance check.

.grafeas.v1.ComplianceNote compliance = 18;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setCreateTime(Timestamp value)

  public 
  
 Note 
 . 
 Builder 
  
 setCreateTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

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;

Parameter
Name
Description
value
Returns
Type
Description

setCreateTime(Timestamp.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setCreateTime 
 ( 
 Timestamp 
 . 
 Builder 
  
 builderForValue 
 ) 
 

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;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setDeployment(DeploymentNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setDeployment 
 ( 
 DeploymentNote 
  
 value 
 ) 
 

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Parameter
Name
Description
Returns
Type
Description

setDeployment(DeploymentNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setDeployment 
 ( 
 DeploymentNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing something that can be deployed.

.grafeas.v1.DeploymentNote deployment = 14;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setDiscovery(DiscoveryNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setDiscovery 
 ( 
 DiscoveryNote 
  
 value 
 ) 
 

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Parameter
Name
Description
Returns
Type
Description

setDiscovery(DiscoveryNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setDiscovery 
 ( 
 DiscoveryNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing the initial analysis of a resource.

.grafeas.v1.DiscoveryNote discovery = 15;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setDsseAttestation(DSSEAttestationNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setDsseAttestation 
 ( 
 DSSEAttestationNote 
  
 value 
 ) 
 

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Parameter
Name
Description
Returns
Type
Description

setDsseAttestation(DSSEAttestationNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setDsseAttestation 
 ( 
 DSSEAttestationNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing a dsse attestation note.

.grafeas.v1.DSSEAttestationNote dsse_attestation = 19;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setExpirationTime(Timestamp value)

  public 
  
 Note 
 . 
 Builder 
  
 setExpirationTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

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

.google.protobuf.Timestamp expiration_time = 6;

Parameter
Name
Description
value
Returns
Type
Description

setExpirationTime(Timestamp.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setExpirationTime 
 ( 
 Timestamp 
 . 
 Builder 
  
 builderForValue 
 ) 
 

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

.google.protobuf.Timestamp expiration_time = 6;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setField(Descriptors.FieldDescriptor field, Object value)

  public 
  
 Note 
 . 
 Builder 
  
 setField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
value
Returns
Type
Description
Overrides

setImage(ImageNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setImage 
 ( 
 ImageNote 
  
 value 
 ) 
 

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Parameter
Name
Description
value
Returns
Type
Description

setImage(ImageNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setImage 
 ( 
 ImageNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing a base image.

.grafeas.v1.ImageNote image = 12;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setKind(NoteKind value)

  public 
  
 Note 
 . 
 Builder 
  
 setKind 
 ( 
 NoteKind 
  
 value 
 ) 
 

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

.grafeas.v1.NoteKind kind = 4;

Parameter
Name
Description
value
NoteKind

The kind to set.

Returns
Type
Description

This builder for chaining.

setKindValue(int value)

  public 
  
 Note 
 . 
 Builder 
  
 setKindValue 
 ( 
 int 
  
 value 
 ) 
 

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

.grafeas.v1.NoteKind kind = 4;

Parameter
Name
Description
value
int

The enum numeric value on the wire for kind to set.

Returns
Type
Description

This builder for chaining.

setLongDescription(String value)

  public 
  
 Note 
 . 
 Builder 
  
 setLongDescription 
 ( 
 String 
  
 value 
 ) 
 

A detailed description of this note.

string long_description = 3;

Parameter
Name
Description
value
String

The longDescription to set.

Returns
Type
Description

This builder for chaining.

setLongDescriptionBytes(ByteString value)

  public 
  
 Note 
 . 
 Builder 
  
 setLongDescriptionBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

A detailed description of this note.

string long_description = 3;

Parameter
Name
Description
value
ByteString

The bytes for longDescription to set.

Returns
Type
Description

This builder for chaining.

setName(String value)

  public 
  
 Note 
 . 
 Builder 
  
 setName 
 ( 
 String 
  
 value 
 ) 
 

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

string name = 1;

Parameter
Name
Description
value
String

The name to set.

Returns
Type
Description

This builder for chaining.

setNameBytes(ByteString value)

  public 
  
 Note 
 . 
 Builder 
  
 setNameBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

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

string name = 1;

Parameter
Name
Description
value
ByteString

The bytes for name to set.

Returns
Type
Description

This builder for chaining.

setPackage(PackageNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setPackage 
 ( 
 PackageNote 
  
 value 
 ) 
 

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Parameter
Name
Description
value
Returns
Type
Description

setPackage(PackageNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setPackage 
 ( 
 PackageNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing a package hosted by various package managers.

.grafeas.v1.PackageNote package = 13;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setRelatedNoteNames(int index, String value)

  public 
  
 Note 
 . 
 Builder 
  
 setRelatedNoteNames 
 ( 
 int 
  
 index 
 , 
  
 String 
  
 value 
 ) 
 

Other notes related to this note.

repeated string related_note_names = 9;

Parameters
Name
Description
index
int

The index to set the value at.

value
String

The relatedNoteNames to set.

Returns
Type
Description

This builder for chaining.

setRelatedUrl(int index, RelatedUrl value)

  public 
  
 Note 
 . 
 Builder 
  
 setRelatedUrl 
 ( 
 int 
  
 index 
 , 
  
 RelatedUrl 
  
 value 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameters
Name
Description
index
int
value
Returns
Type
Description

setRelatedUrl(int index, RelatedUrl.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setRelatedUrl 
 ( 
 int 
  
 index 
 , 
  
 RelatedUrl 
 . 
 Builder 
  
 builderForValue 
 ) 
 

URLs associated with this note.

repeated .grafeas.v1.RelatedUrl related_url = 5;

Parameters
Name
Description
index
int
builderForValue
Returns
Type
Description

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

  public 
  
 Note 
 . 
 Builder 
  
 setRepeatedField 
 ( 
 Descriptors 
 . 
 FieldDescriptor 
  
 field 
 , 
  
 int 
  
 index 
 , 
  
 Object 
  
 value 
 ) 
 
Parameters
Name
Description
index
int
value
Returns
Type
Description
Overrides

setSbomReference(SBOMReferenceNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setSbomReference 
 ( 
 SBOMReferenceNote 
  
 value 
 ) 
 

A note describing an SBOM reference.

.grafeas.v1.SBOMReferenceNote sbom_reference = 21;

Parameter
Name
Description
Returns
Type
Description

setSbomReference(SBOMReferenceNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setSbomReference 
 ( 
 SBOMReferenceNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing an SBOM reference.

.grafeas.v1.SBOMReferenceNote sbom_reference = 21;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setSecret(SecretNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setSecret 
 ( 
 SecretNote 
  
 value 
 ) 
 

A note describing a secret.

.grafeas.v1.SecretNote secret = 22;

Parameter
Name
Description
value
Returns
Type
Description

setSecret(SecretNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setSecret 
 ( 
 SecretNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing a secret.

.grafeas.v1.SecretNote secret = 22;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setShortDescription(String value)

  public 
  
 Note 
 . 
 Builder 
  
 setShortDescription 
 ( 
 String 
  
 value 
 ) 
 

A one sentence description of this note.

string short_description = 2;

Parameter
Name
Description
value
String

The shortDescription to set.

Returns
Type
Description

This builder for chaining.

setShortDescriptionBytes(ByteString value)

  public 
  
 Note 
 . 
 Builder 
  
 setShortDescriptionBytes 
 ( 
 ByteString 
  
 value 
 ) 
 

A one sentence description of this note.

string short_description = 2;

Parameter
Name
Description
value
ByteString

The bytes for shortDescription to set.

Returns
Type
Description

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

  public 
  
 final 
  
 Note 
 . 
 Builder 
  
 setUnknownFields 
 ( 
 UnknownFieldSet 
  
 unknownFields 
 ) 
 
Parameter
Name
Description
unknownFields
Returns
Type
Description
Overrides

setUpdateTime(Timestamp value)

  public 
  
 Note 
 . 
 Builder 
  
 setUpdateTime 
 ( 
 Timestamp 
  
 value 
 ) 
 

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;

Parameter
Name
Description
value
Returns
Type
Description

setUpdateTime(Timestamp.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setUpdateTime 
 ( 
 Timestamp 
 . 
 Builder 
  
 builderForValue 
 ) 
 

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;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setUpgrade(UpgradeNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setUpgrade 
 ( 
 UpgradeNote 
  
 value 
 ) 
 

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Parameter
Name
Description
value
Returns
Type
Description

setUpgrade(UpgradeNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setUpgrade 
 ( 
 UpgradeNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing available package upgrades.

.grafeas.v1.UpgradeNote upgrade = 17;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setVulnerability(VulnerabilityNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setVulnerability 
 ( 
 VulnerabilityNote 
  
 value 
 ) 
 

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Parameter
Name
Description
Returns
Type
Description

setVulnerability(VulnerabilityNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setVulnerability 
 ( 
 VulnerabilityNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing a package vulnerability.

.grafeas.v1.VulnerabilityNote vulnerability = 10;

Parameter
Name
Description
builderForValue
Returns
Type
Description

setVulnerabilityAssessment(VulnerabilityAssessmentNote value)

  public 
  
 Note 
 . 
 Builder 
  
 setVulnerabilityAssessment 
 ( 
 VulnerabilityAssessmentNote 
  
 value 
 ) 
 

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Parameter
Name
Description
Returns
Type
Description

setVulnerabilityAssessment(VulnerabilityAssessmentNote.Builder builderForValue)

  public 
  
 Note 
 . 
 Builder 
  
 setVulnerabilityAssessment 
 ( 
 VulnerabilityAssessmentNote 
 . 
 Builder 
  
 builderForValue 
 ) 
 

A note describing a vulnerability assessment.

.grafeas.v1.VulnerabilityAssessmentNote vulnerability_assessment = 20;

Parameter
Name
Description
Returns
Type
Description
Design a Mobile Site
View Site in Mobile | Classic
Share by: