Class Occurrence.Builder (2.21.0)

public static final class Occurrence.Builder extends GeneratedMessageV3.Builder<Occurrence.Builder> implements OccurrenceOrBuilder

An instance of an analysis type that has been found on a resource.

Protobuf type grafeas.v1beta1.Occurrence

Implements

OccurrenceOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Occurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Occurrence.Builder
Overrides

build()

public Occurrence build()
Returns
TypeDescription
Occurrence

buildPartial()

public Occurrence buildPartial()
Returns
TypeDescription
Occurrence

clear()

public Occurrence.Builder clear()
Returns
TypeDescription
Occurrence.Builder
Overrides

clearAttestation()

public Occurrence.Builder clearAttestation()

Describes an attestation of an artifact.

.grafeas.v1beta1.attestation.Details attestation = 14;

Returns
TypeDescription
Occurrence.Builder

clearBuild()

public Occurrence.Builder clearBuild()

Describes a verifiable build.

.grafeas.v1beta1.build.Details build = 9;

Returns
TypeDescription
Occurrence.Builder

clearCreateTime()

public Occurrence.Builder clearCreateTime()

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Occurrence.Builder

clearDeployment()

public Occurrence.Builder clearDeployment()

Describes the deployment of an artifact on a runtime.

.grafeas.v1beta1.deployment.Details deployment = 12;

Returns
TypeDescription
Occurrence.Builder

clearDerivedImage()

public Occurrence.Builder clearDerivedImage()

Describes how this resource derives from the basis in the associated note.

.grafeas.v1beta1.image.Details derived_image = 10;

Returns
TypeDescription
Occurrence.Builder

clearDetails()

public Occurrence.Builder clearDetails()
Returns
TypeDescription
Occurrence.Builder

clearDiscovered()

public Occurrence.Builder clearDiscovered()

Describes when a resource was discovered.

.grafeas.v1beta1.discovery.Details discovered = 13;

Returns
TypeDescription
Occurrence.Builder

clearField(Descriptors.FieldDescriptor field)

public Occurrence.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Occurrence.Builder
Overrides

clearInstallation()

public Occurrence.Builder clearInstallation()

Describes the installation of a package on the linked resource.

.grafeas.v1beta1.package.Details installation = 11;

Returns
TypeDescription
Occurrence.Builder

clearKind()

public Occurrence.Builder clearKind()

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1beta1.NoteKind kind = 4;

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

clearName()

public Occurrence.Builder clearName()

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

clearNoteName()

public Occurrence.Builder clearNoteName()

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can be used as a filter in list requests.

string note_name = 3;

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Occurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Occurrence.Builder
Overrides

clearRemediation()

public Occurrence.Builder clearRemediation()

A description of actions that can be taken to remedy the note.

string remediation = 5;

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

clearResource()

public Occurrence.Builder clearResource()

Required. Immutable. The resource for which the occurrence applies.

.grafeas.v1beta1.Resource resource = 2;

Returns
TypeDescription
Occurrence.Builder

clearUpdateTime()

public Occurrence.Builder clearUpdateTime()

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Occurrence.Builder

clearVulnerability()

public Occurrence.Builder clearVulnerability()

Describes a security vulnerability.

.grafeas.v1beta1.vulnerability.Details vulnerability = 8;

Returns
TypeDescription
Occurrence.Builder

clone()

public Occurrence.Builder clone()
Returns
TypeDescription
Occurrence.Builder
Overrides

getAttestation()

public Details getAttestation()

Describes an attestation of an artifact.

.grafeas.v1beta1.attestation.Details attestation = 14;

Returns
TypeDescription
Details

The attestation.

getAttestationBuilder()

public Details.Builder getAttestationBuilder()

Describes an attestation of an artifact.

.grafeas.v1beta1.attestation.Details attestation = 14;

Returns
TypeDescription
Details.Builder

getAttestationOrBuilder()

public DetailsOrBuilder getAttestationOrBuilder()

Describes an attestation of an artifact.

.grafeas.v1beta1.attestation.Details attestation = 14;

Returns
TypeDescription
DetailsOrBuilder

getBuild()

public Details getBuild()

Describes a verifiable build.

.grafeas.v1beta1.build.Details build = 9;

Returns
TypeDescription
Details

The build.

getBuildBuilder()

public Details.Builder getBuildBuilder()

Describes a verifiable build.

.grafeas.v1beta1.build.Details build = 9;

Returns
TypeDescription
Details.Builder

getBuildOrBuilder()

public DetailsOrBuilder getBuildOrBuilder()

Describes a verifiable build.

.grafeas.v1beta1.build.Details build = 9;

Returns
TypeDescription
DetailsOrBuilder

getCreateTime()

public Timestamp getCreateTime()

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

public Occurrence getDefaultInstanceForType()
Returns
TypeDescription
Occurrence

getDeployment()

public Details getDeployment()

Describes the deployment of an artifact on a runtime.

.grafeas.v1beta1.deployment.Details deployment = 12;

Returns
TypeDescription
Details

The deployment.

getDeploymentBuilder()

public Details.Builder getDeploymentBuilder()

Describes the deployment of an artifact on a runtime.

.grafeas.v1beta1.deployment.Details deployment = 12;

Returns
TypeDescription
Details.Builder

getDeploymentOrBuilder()

public DetailsOrBuilder getDeploymentOrBuilder()

Describes the deployment of an artifact on a runtime.

.grafeas.v1beta1.deployment.Details deployment = 12;

Returns
TypeDescription
DetailsOrBuilder

getDerivedImage()

public Details getDerivedImage()

Describes how this resource derives from the basis in the associated note.

.grafeas.v1beta1.image.Details derived_image = 10;

Returns
TypeDescription
Details

The derivedImage.

getDerivedImageBuilder()

public Details.Builder getDerivedImageBuilder()

Describes how this resource derives from the basis in the associated note.

.grafeas.v1beta1.image.Details derived_image = 10;

Returns
TypeDescription
Details.Builder

getDerivedImageOrBuilder()

public DetailsOrBuilder getDerivedImageOrBuilder()

Describes how this resource derives from the basis in the associated note.

.grafeas.v1beta1.image.Details derived_image = 10;

Returns
TypeDescription
DetailsOrBuilder

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetailsCase()

public Occurrence.DetailsCase getDetailsCase()
Returns
TypeDescription
Occurrence.DetailsCase

getDiscovered()

public Details getDiscovered()

Describes when a resource was discovered.

.grafeas.v1beta1.discovery.Details discovered = 13;

Returns
TypeDescription
Details

The discovered.

getDiscoveredBuilder()

public Details.Builder getDiscoveredBuilder()

Describes when a resource was discovered.

.grafeas.v1beta1.discovery.Details discovered = 13;

Returns
TypeDescription
Details.Builder

getDiscoveredOrBuilder()

public DetailsOrBuilder getDiscoveredOrBuilder()

Describes when a resource was discovered.

.grafeas.v1beta1.discovery.Details discovered = 13;

Returns
TypeDescription
DetailsOrBuilder

getInstallation()

public Details getInstallation()

Describes the installation of a package on the linked resource.

.grafeas.v1beta1.package.Details installation = 11;

Returns
TypeDescription
Details

The installation.

getInstallationBuilder()

public Details.Builder getInstallationBuilder()

Describes the installation of a package on the linked resource.

.grafeas.v1beta1.package.Details installation = 11;

Returns
TypeDescription
Details.Builder

getInstallationOrBuilder()

public DetailsOrBuilder getInstallationOrBuilder()

Describes the installation of a package on the linked resource.

.grafeas.v1beta1.package.Details installation = 11;

Returns
TypeDescription
DetailsOrBuilder

getKind()

public NoteKind getKind()

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1beta1.NoteKind kind = 4;

Returns
TypeDescription
NoteKind

The kind.

getKindValue()

public int getKindValue()

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1beta1.NoteKind kind = 4;

Returns
TypeDescription
int

The enum numeric value on the wire for kind.

getName()

public String getName()

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Returns
TypeDescription
String

The name.

getNameBytes()

public ByteString getNameBytes()

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Returns
TypeDescription
ByteString

The bytes for name.

getNoteName()

public String getNoteName()

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can be used as a filter in list requests.

string note_name = 3;

Returns
TypeDescription
String

The noteName.

getNoteNameBytes()

public ByteString getNoteNameBytes()

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can be used as a filter in list requests.

string note_name = 3;

Returns
TypeDescription
ByteString

The bytes for noteName.

getRemediation()

public String getRemediation()

A description of actions that can be taken to remedy the note.

string remediation = 5;

Returns
TypeDescription
String

The remediation.

getRemediationBytes()

public ByteString getRemediationBytes()

A description of actions that can be taken to remedy the note.

string remediation = 5;

Returns
TypeDescription
ByteString

The bytes for remediation.

getResource()

public Resource getResource()

Required. Immutable. The resource for which the occurrence applies.

.grafeas.v1beta1.Resource resource = 2;

Returns
TypeDescription
Resource

The resource.

getResourceBuilder()

public Resource.Builder getResourceBuilder()

Required. Immutable. The resource for which the occurrence applies.

.grafeas.v1beta1.Resource resource = 2;

Returns
TypeDescription
Resource.Builder

getResourceOrBuilder()

public ResourceOrBuilder getResourceOrBuilder()

Required. Immutable. The resource for which the occurrence applies.

.grafeas.v1beta1.Resource resource = 2;

Returns
TypeDescription
ResourceOrBuilder

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
TimestampOrBuilder

getVulnerability()

public Details getVulnerability()

Describes a security vulnerability.

.grafeas.v1beta1.vulnerability.Details vulnerability = 8;

Returns
TypeDescription
Details

The vulnerability.

getVulnerabilityBuilder()

public Details.Builder getVulnerabilityBuilder()

Describes a security vulnerability.

.grafeas.v1beta1.vulnerability.Details vulnerability = 8;

Returns
TypeDescription
Details.Builder

getVulnerabilityOrBuilder()

public DetailsOrBuilder getVulnerabilityOrBuilder()

Describes a security vulnerability.

.grafeas.v1beta1.vulnerability.Details vulnerability = 8;

Returns
TypeDescription
DetailsOrBuilder

hasAttestation()

public boolean hasAttestation()

Describes an attestation of an artifact.

.grafeas.v1beta1.attestation.Details attestation = 14;

Returns
TypeDescription
boolean

Whether the attestation field is set.

hasBuild()

public boolean hasBuild()

Describes a verifiable build.

.grafeas.v1beta1.build.Details build = 9;

Returns
TypeDescription
boolean

Whether the build field is set.

hasCreateTime()

public boolean hasCreateTime()

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDeployment()

public boolean hasDeployment()

Describes the deployment of an artifact on a runtime.

.grafeas.v1beta1.deployment.Details deployment = 12;

Returns
TypeDescription
boolean

Whether the deployment field is set.

hasDerivedImage()

public boolean hasDerivedImage()

Describes how this resource derives from the basis in the associated note.

.grafeas.v1beta1.image.Details derived_image = 10;

Returns
TypeDescription
boolean

Whether the derivedImage field is set.

hasDiscovered()

public boolean hasDiscovered()

Describes when a resource was discovered.

.grafeas.v1beta1.discovery.Details discovered = 13;

Returns
TypeDescription
boolean

Whether the discovered field is set.

hasInstallation()

public boolean hasInstallation()

Describes the installation of a package on the linked resource.

.grafeas.v1beta1.package.Details installation = 11;

Returns
TypeDescription
boolean

Whether the installation field is set.

hasResource()

public boolean hasResource()

Required. Immutable. The resource for which the occurrence applies.

.grafeas.v1beta1.Resource resource = 2;

Returns
TypeDescription
boolean

Whether the resource field is set.

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Returns
TypeDescription
boolean

Whether the updateTime field is set.

hasVulnerability()

public boolean hasVulnerability()

Describes a security vulnerability.

.grafeas.v1beta1.vulnerability.Details vulnerability = 8;

Returns
TypeDescription
boolean

Whether the vulnerability field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeAttestation(Details value)

public Occurrence.Builder mergeAttestation(Details value)

Describes an attestation of an artifact.

.grafeas.v1beta1.attestation.Details attestation = 14;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

mergeBuild(Details value)

public Occurrence.Builder mergeBuild(Details value)

Describes a verifiable build.

.grafeas.v1beta1.build.Details build = 9;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

mergeCreateTime(Timestamp value)

public Occurrence.Builder mergeCreateTime(Timestamp value)

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Occurrence.Builder

mergeDeployment(Details value)

public Occurrence.Builder mergeDeployment(Details value)

Describes the deployment of an artifact on a runtime.

.grafeas.v1beta1.deployment.Details deployment = 12;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

mergeDerivedImage(Details value)

public Occurrence.Builder mergeDerivedImage(Details value)

Describes how this resource derives from the basis in the associated note.

.grafeas.v1beta1.image.Details derived_image = 10;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

mergeDiscovered(Details value)

public Occurrence.Builder mergeDiscovered(Details value)

Describes when a resource was discovered.

.grafeas.v1beta1.discovery.Details discovered = 13;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Occurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Occurrence.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Occurrence.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Occurrence.Builder
Overrides

mergeFrom(Occurrence other)

public Occurrence.Builder mergeFrom(Occurrence other)
Parameter
NameDescription
otherOccurrence
Returns
TypeDescription
Occurrence.Builder

mergeInstallation(Details value)

public Occurrence.Builder mergeInstallation(Details value)

Describes the installation of a package on the linked resource.

.grafeas.v1beta1.package.Details installation = 11;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

mergeResource(Resource value)

public Occurrence.Builder mergeResource(Resource value)

Required. Immutable. The resource for which the occurrence applies.

.grafeas.v1beta1.Resource resource = 2;

Parameter
NameDescription
valueResource
Returns
TypeDescription
Occurrence.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Occurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Occurrence.Builder
Overrides

mergeUpdateTime(Timestamp value)

public Occurrence.Builder mergeUpdateTime(Timestamp value)

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Occurrence.Builder

mergeVulnerability(Details value)

public Occurrence.Builder mergeVulnerability(Details value)

Describes a security vulnerability.

.grafeas.v1beta1.vulnerability.Details vulnerability = 8;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

setAttestation(Details value)

public Occurrence.Builder setAttestation(Details value)

Describes an attestation of an artifact.

.grafeas.v1beta1.attestation.Details attestation = 14;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

setAttestation(Details.Builder builderForValue)

public Occurrence.Builder setAttestation(Details.Builder builderForValue)

Describes an attestation of an artifact.

.grafeas.v1beta1.attestation.Details attestation = 14;

Parameter
NameDescription
builderForValueDetails.Builder
Returns
TypeDescription
Occurrence.Builder

setBuild(Details value)

public Occurrence.Builder setBuild(Details value)

Describes a verifiable build.

.grafeas.v1beta1.build.Details build = 9;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

setBuild(Details.Builder builderForValue)

public Occurrence.Builder setBuild(Details.Builder builderForValue)

Describes a verifiable build.

.grafeas.v1beta1.build.Details build = 9;

Parameter
NameDescription
builderForValueDetails.Builder
Returns
TypeDescription
Occurrence.Builder

setCreateTime(Timestamp value)

public Occurrence.Builder setCreateTime(Timestamp value)

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Occurrence.Builder

setCreateTime(Timestamp.Builder builderForValue)

public Occurrence.Builder setCreateTime(Timestamp.Builder builderForValue)

Output only. The time this occurrence was created.

.google.protobuf.Timestamp create_time = 6;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Occurrence.Builder

setDeployment(Details value)

public Occurrence.Builder setDeployment(Details value)

Describes the deployment of an artifact on a runtime.

.grafeas.v1beta1.deployment.Details deployment = 12;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

setDeployment(Details.Builder builderForValue)

public Occurrence.Builder setDeployment(Details.Builder builderForValue)

Describes the deployment of an artifact on a runtime.

.grafeas.v1beta1.deployment.Details deployment = 12;

Parameter
NameDescription
builderForValueDetails.Builder
Returns
TypeDescription
Occurrence.Builder

setDerivedImage(Details value)

public Occurrence.Builder setDerivedImage(Details value)

Describes how this resource derives from the basis in the associated note.

.grafeas.v1beta1.image.Details derived_image = 10;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

setDerivedImage(Details.Builder builderForValue)

public Occurrence.Builder setDerivedImage(Details.Builder builderForValue)

Describes how this resource derives from the basis in the associated note.

.grafeas.v1beta1.image.Details derived_image = 10;

Parameter
NameDescription
builderForValueDetails.Builder
Returns
TypeDescription
Occurrence.Builder

setDiscovered(Details value)

public Occurrence.Builder setDiscovered(Details value)

Describes when a resource was discovered.

.grafeas.v1beta1.discovery.Details discovered = 13;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

setDiscovered(Details.Builder builderForValue)

public Occurrence.Builder setDiscovered(Details.Builder builderForValue)

Describes when a resource was discovered.

.grafeas.v1beta1.discovery.Details discovered = 13;

Parameter
NameDescription
builderForValueDetails.Builder
Returns
TypeDescription
Occurrence.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public Occurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Occurrence.Builder
Overrides

setInstallation(Details value)

public Occurrence.Builder setInstallation(Details value)

Describes the installation of a package on the linked resource.

.grafeas.v1beta1.package.Details installation = 11;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

setInstallation(Details.Builder builderForValue)

public Occurrence.Builder setInstallation(Details.Builder builderForValue)

Describes the installation of a package on the linked resource.

.grafeas.v1beta1.package.Details installation = 11;

Parameter
NameDescription
builderForValueDetails.Builder
Returns
TypeDescription
Occurrence.Builder

setKind(NoteKind value)

public Occurrence.Builder setKind(NoteKind value)

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1beta1.NoteKind kind = 4;

Parameter
NameDescription
valueNoteKind

The kind to set.

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

setKindValue(int value)

public Occurrence.Builder setKindValue(int value)

Output only. This explicitly denotes which of the occurrence details are specified. This field can be used as a filter in list requests.

.grafeas.v1beta1.NoteKind kind = 4;

Parameter
NameDescription
valueint

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

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

setName(String value)

public Occurrence.Builder setName(String value)

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Parameter
NameDescription
valueString

The name to set.

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

setNameBytes(ByteString value)

public Occurrence.Builder setNameBytes(ByteString value)

Output only. The name of the occurrence in the form of projects/[PROJECT_ID]/occurrences/[OCCURRENCE_ID].

string name = 1;

Parameter
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

setNoteName(String value)

public Occurrence.Builder setNoteName(String value)

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can be used as a filter in list requests.

string note_name = 3;

Parameter
NameDescription
valueString

The noteName to set.

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

setNoteNameBytes(ByteString value)

public Occurrence.Builder setNoteNameBytes(ByteString value)

Required. Immutable. The analysis note associated with this occurrence, in the form of projects/[PROVIDER_ID]/notes/[NOTE_ID]. This field can be used as a filter in list requests.

string note_name = 3;

Parameter
NameDescription
valueByteString

The bytes for noteName to set.

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

setRemediation(String value)

public Occurrence.Builder setRemediation(String value)

A description of actions that can be taken to remedy the note.

string remediation = 5;

Parameter
NameDescription
valueString

The remediation to set.

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

setRemediationBytes(ByteString value)

public Occurrence.Builder setRemediationBytes(ByteString value)

A description of actions that can be taken to remedy the note.

string remediation = 5;

Parameter
NameDescription
valueByteString

The bytes for remediation to set.

Returns
TypeDescription
Occurrence.Builder

This builder for chaining.

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

public Occurrence.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Occurrence.Builder
Overrides

setResource(Resource value)

public Occurrence.Builder setResource(Resource value)

Required. Immutable. The resource for which the occurrence applies.

.grafeas.v1beta1.Resource resource = 2;

Parameter
NameDescription
valueResource
Returns
TypeDescription
Occurrence.Builder

setResource(Resource.Builder builderForValue)

public Occurrence.Builder setResource(Resource.Builder builderForValue)

Required. Immutable. The resource for which the occurrence applies.

.grafeas.v1beta1.Resource resource = 2;

Parameter
NameDescription
builderForValueResource.Builder
Returns
TypeDescription
Occurrence.Builder

setUnknownFields(UnknownFieldSet unknownFields)

public final Occurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Occurrence.Builder
Overrides

setUpdateTime(Timestamp value)

public Occurrence.Builder setUpdateTime(Timestamp value)

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
Occurrence.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public Occurrence.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The time this occurrence was last updated.

.google.protobuf.Timestamp update_time = 7;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
Occurrence.Builder

setVulnerability(Details value)

public Occurrence.Builder setVulnerability(Details value)

Describes a security vulnerability.

.grafeas.v1beta1.vulnerability.Details vulnerability = 8;

Parameter
NameDescription
valueDetails
Returns
TypeDescription
Occurrence.Builder

setVulnerability(Details.Builder builderForValue)

public Occurrence.Builder setVulnerability(Details.Builder builderForValue)

Describes a security vulnerability.

.grafeas.v1beta1.vulnerability.Details vulnerability = 8;

Parameter
NameDescription
builderForValueDetails.Builder
Returns
TypeDescription
Occurrence.Builder