- 2.54.0 (latest)
- 2.53.0
- 2.52.0
- 2.50.0
- 2.49.0
- 2.48.0
- 2.47.0
- 2.46.0
- 2.45.0
- 2.44.0
- 2.43.0
- 2.42.0
- 2.41.0
- 2.40.0
- 2.38.0
- 2.37.0
- 2.36.0
- 2.35.0
- 2.34.0
- 2.33.0
- 2.32.0
- 2.31.0
- 2.30.0
- 2.29.0
- 2.28.0
- 2.25.0
- 2.24.0
- 2.23.0
- 2.22.0
- 2.21.0
- 2.20.0
- 2.19.0
- 2.18.0
- 2.17.0
- 2.16.0
- 2.15.0
- 2.14.0
- 2.13.0
- 2.12.0
- 2.10.0
- 2.9.0
- 2.8.0
- 2.7.0
- 2.6.0
- 2.5.0
- 2.4.5
- 2.3.1
- 2.2.3
- 2.1.3
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.v1.Occurrence
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > Occurrence.BuilderImplements
OccurrenceOrBuilderMethods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public Occurrence.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Occurrence.Builder |
build()
public Occurrence build()
Type | Description |
Occurrence |
buildPartial()
public Occurrence buildPartial()
Type | Description |
Occurrence |
clear()
public Occurrence.Builder clear()
Type | Description |
Occurrence.Builder |
clearAttestation()
public Occurrence.Builder clearAttestation()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Type | Description |
Occurrence.Builder |
clearBuild()
public Occurrence.Builder clearBuild()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Type | Description |
Occurrence.Builder |
clearCreateTime()
public Occurrence.Builder clearCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Type | Description |
Occurrence.Builder |
clearDeployment()
public Occurrence.Builder clearDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Type | Description |
Occurrence.Builder |
clearDetails()
public Occurrence.Builder clearDetails()
Type | Description |
Occurrence.Builder |
clearDiscovery()
public Occurrence.Builder clearDiscovery()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Type | Description |
Occurrence.Builder |
clearField(Descriptors.FieldDescriptor field)
public Occurrence.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
Occurrence.Builder |
clearImage()
public Occurrence.Builder clearImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Type | Description |
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.v1.NoteKind kind = 4;
Type | Description |
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;
Type | Description |
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;
Type | Description |
Occurrence.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public Occurrence.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
Occurrence.Builder |
clearPackage()
public Occurrence.Builder clearPackage()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Type | Description |
Occurrence.Builder |
clearRemediation()
public Occurrence.Builder clearRemediation()
A description of actions that can be taken to remedy the note.
string remediation = 5;
Type | Description |
Occurrence.Builder | This builder for chaining. |
clearResourceUri()
public Occurrence.Builder clearResourceUri()
Required. Immutable. A URI that represents the resource for which the
occurrence applies. For example,
https://gcr.io/project/image@sha256:123abc
for a Docker image.
string resource_uri = 2;
Type | Description |
Occurrence.Builder | This builder for chaining. |
clearUpdateTime()
public Occurrence.Builder clearUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Type | Description |
Occurrence.Builder |
clearUpgrade()
public Occurrence.Builder clearUpgrade()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Type | Description |
Occurrence.Builder |
clearVulnerability()
public Occurrence.Builder clearVulnerability()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Type | Description |
Occurrence.Builder |
clone()
public Occurrence.Builder clone()
Type | Description |
Occurrence.Builder |
getAttestation()
public AttestationOccurrence getAttestation()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Type | Description |
AttestationOccurrence | The attestation. |
getAttestationBuilder()
public AttestationOccurrence.Builder getAttestationBuilder()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Type | Description |
AttestationOccurrence.Builder |
getAttestationOrBuilder()
public AttestationOccurrenceOrBuilder getAttestationOrBuilder()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Type | Description |
AttestationOccurrenceOrBuilder |
getBuild()
public BuildOccurrence getBuild()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Type | Description |
BuildOccurrence | The build. |
getBuildBuilder()
public BuildOccurrence.Builder getBuildBuilder()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Type | Description |
BuildOccurrence.Builder |
getBuildOrBuilder()
public BuildOccurrenceOrBuilder getBuildOrBuilder()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Type | Description |
BuildOccurrenceOrBuilder |
getCreateTime()
public Timestamp getCreateTime()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Type | Description |
Timestamp | The createTime. |
getCreateTimeBuilder()
public Timestamp.Builder getCreateTimeBuilder()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Type | Description |
Builder |
getCreateTimeOrBuilder()
public TimestampOrBuilder getCreateTimeOrBuilder()
Output only. The time this occurrence was created.
.google.protobuf.Timestamp create_time = 6;
Type | Description |
TimestampOrBuilder |
getDefaultInstanceForType()
public Occurrence getDefaultInstanceForType()
Type | Description |
Occurrence |
getDeployment()
public DeploymentOccurrence getDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Type | Description |
DeploymentOccurrence | The deployment. |
getDeploymentBuilder()
public DeploymentOccurrence.Builder getDeploymentBuilder()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Type | Description |
DeploymentOccurrence.Builder |
getDeploymentOrBuilder()
public DeploymentOccurrenceOrBuilder getDeploymentOrBuilder()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Type | Description |
DeploymentOccurrenceOrBuilder |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
getDetailsCase()
public Occurrence.DetailsCase getDetailsCase()
Type | Description |
Occurrence.DetailsCase |
getDiscovery()
public DiscoveryOccurrence getDiscovery()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Type | Description |
DiscoveryOccurrence | The discovery. |
getDiscoveryBuilder()
public DiscoveryOccurrence.Builder getDiscoveryBuilder()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Type | Description |
DiscoveryOccurrence.Builder |
getDiscoveryOrBuilder()
public DiscoveryOccurrenceOrBuilder getDiscoveryOrBuilder()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Type | Description |
DiscoveryOccurrenceOrBuilder |
getImage()
public ImageOccurrence getImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Type | Description |
ImageOccurrence | The image. |
getImageBuilder()
public ImageOccurrence.Builder getImageBuilder()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Type | Description |
ImageOccurrence.Builder |
getImageOrBuilder()
public ImageOccurrenceOrBuilder getImageOrBuilder()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Type | Description |
ImageOccurrenceOrBuilder |
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.v1.NoteKind kind = 4;
Type | Description |
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.v1.NoteKind kind = 4;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
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;
Type | Description |
ByteString | The bytes for noteName. |
getPackage()
public PackageOccurrence getPackage()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Type | Description |
PackageOccurrence | The package. |
getPackageBuilder()
public PackageOccurrence.Builder getPackageBuilder()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Type | Description |
PackageOccurrence.Builder |
getPackageOrBuilder()
public PackageOccurrenceOrBuilder getPackageOrBuilder()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Type | Description |
PackageOccurrenceOrBuilder |
getRemediation()
public String getRemediation()
A description of actions that can be taken to remedy the note.
string remediation = 5;
Type | Description |
String | The remediation. |
getRemediationBytes()
public ByteString getRemediationBytes()
A description of actions that can be taken to remedy the note.
string remediation = 5;
Type | Description |
ByteString | The bytes for remediation. |
getResourceUri()
public String getResourceUri()
Required. Immutable. A URI that represents the resource for which the
occurrence applies. For example,
https://gcr.io/project/image@sha256:123abc
for a Docker image.
string resource_uri = 2;
Type | Description |
String | The resourceUri. |
getResourceUriBytes()
public ByteString getResourceUriBytes()
Required. Immutable. A URI that represents the resource for which the
occurrence applies. For example,
https://gcr.io/project/image@sha256:123abc
for a Docker image.
string resource_uri = 2;
Type | Description |
ByteString | The bytes for resourceUri. |
getUpdateTime()
public Timestamp getUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Type | Description |
Timestamp | The updateTime. |
getUpdateTimeBuilder()
public Timestamp.Builder getUpdateTimeBuilder()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Type | Description |
Builder |
getUpdateTimeOrBuilder()
public TimestampOrBuilder getUpdateTimeOrBuilder()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Type | Description |
TimestampOrBuilder |
getUpgrade()
public UpgradeOccurrence getUpgrade()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Type | Description |
UpgradeOccurrence | The upgrade. |
getUpgradeBuilder()
public UpgradeOccurrence.Builder getUpgradeBuilder()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Type | Description |
UpgradeOccurrence.Builder |
getUpgradeOrBuilder()
public UpgradeOccurrenceOrBuilder getUpgradeOrBuilder()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Type | Description |
UpgradeOccurrenceOrBuilder |
getVulnerability()
public VulnerabilityOccurrence getVulnerability()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Type | Description |
VulnerabilityOccurrence | The vulnerability. |
getVulnerabilityBuilder()
public VulnerabilityOccurrence.Builder getVulnerabilityBuilder()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Type | Description |
VulnerabilityOccurrence.Builder |
getVulnerabilityOrBuilder()
public VulnerabilityOccurrenceOrBuilder getVulnerabilityOrBuilder()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Type | Description |
VulnerabilityOccurrenceOrBuilder |
hasAttestation()
public boolean hasAttestation()
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Type | Description |
boolean | Whether the attestation field is set. |
hasBuild()
public boolean hasBuild()
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Type | Description |
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;
Type | Description |
boolean | Whether the createTime field is set. |
hasDeployment()
public boolean hasDeployment()
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Type | Description |
boolean | Whether the deployment field is set. |
hasDiscovery()
public boolean hasDiscovery()
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Type | Description |
boolean | Whether the discovery field is set. |
hasImage()
public boolean hasImage()
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Type | Description |
boolean | Whether the image field is set. |
hasPackage()
public boolean hasPackage()
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Type | Description |
boolean | Whether the package field is set. |
hasUpdateTime()
public boolean hasUpdateTime()
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Type | Description |
boolean | Whether the updateTime field is set. |
hasUpgrade()
public boolean hasUpgrade()
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Type | Description |
boolean | Whether the upgrade field is set. |
hasVulnerability()
public boolean hasVulnerability()
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Type | Description |
boolean | Whether the vulnerability field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
mergeAttestation(AttestationOccurrence value)
public Occurrence.Builder mergeAttestation(AttestationOccurrence value)
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Name | Description |
value | AttestationOccurrence |
Type | Description |
Occurrence.Builder |
mergeBuild(BuildOccurrence value)
public Occurrence.Builder mergeBuild(BuildOccurrence value)
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Name | Description |
value | BuildOccurrence |
Type | Description |
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;
Name | Description |
value | Timestamp |
Type | Description |
Occurrence.Builder |
mergeDeployment(DeploymentOccurrence value)
public Occurrence.Builder mergeDeployment(DeploymentOccurrence value)
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Name | Description |
value | DeploymentOccurrence |
Type | Description |
Occurrence.Builder |
mergeDiscovery(DiscoveryOccurrence value)
public Occurrence.Builder mergeDiscovery(DiscoveryOccurrence value)
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Name | Description |
value | DiscoveryOccurrence |
Type | Description |
Occurrence.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Occurrence.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
Occurrence.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public Occurrence.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
Occurrence.Builder |
mergeFrom(Occurrence other)
public Occurrence.Builder mergeFrom(Occurrence other)
Name | Description |
other | Occurrence |
Type | Description |
Occurrence.Builder |
mergeImage(ImageOccurrence value)
public Occurrence.Builder mergeImage(ImageOccurrence value)
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Name | Description |
value | ImageOccurrence |
Type | Description |
Occurrence.Builder |
mergePackage(PackageOccurrence value)
public Occurrence.Builder mergePackage(PackageOccurrence value)
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Name | Description |
value | PackageOccurrence |
Type | Description |
Occurrence.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final Occurrence.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Occurrence.Builder |
mergeUpdateTime(Timestamp value)
public Occurrence.Builder mergeUpdateTime(Timestamp value)
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Name | Description |
value | Timestamp |
Type | Description |
Occurrence.Builder |
mergeUpgrade(UpgradeOccurrence value)
public Occurrence.Builder mergeUpgrade(UpgradeOccurrence value)
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Name | Description |
value | UpgradeOccurrence |
Type | Description |
Occurrence.Builder |
mergeVulnerability(VulnerabilityOccurrence value)
public Occurrence.Builder mergeVulnerability(VulnerabilityOccurrence value)
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Name | Description |
value | VulnerabilityOccurrence |
Type | Description |
Occurrence.Builder |
setAttestation(AttestationOccurrence value)
public Occurrence.Builder setAttestation(AttestationOccurrence value)
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Name | Description |
value | AttestationOccurrence |
Type | Description |
Occurrence.Builder |
setAttestation(AttestationOccurrence.Builder builderForValue)
public Occurrence.Builder setAttestation(AttestationOccurrence.Builder builderForValue)
Describes an attestation of an artifact.
.grafeas.v1.AttestationOccurrence attestation = 14;
Name | Description |
builderForValue | AttestationOccurrence.Builder |
Type | Description |
Occurrence.Builder |
setBuild(BuildOccurrence value)
public Occurrence.Builder setBuild(BuildOccurrence value)
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Name | Description |
value | BuildOccurrence |
Type | Description |
Occurrence.Builder |
setBuild(BuildOccurrence.Builder builderForValue)
public Occurrence.Builder setBuild(BuildOccurrence.Builder builderForValue)
Describes a verifiable build.
.grafeas.v1.BuildOccurrence build = 9;
Name | Description |
builderForValue | BuildOccurrence.Builder |
Type | Description |
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;
Name | Description |
value | Timestamp |
Type | Description |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
Occurrence.Builder |
setDeployment(DeploymentOccurrence value)
public Occurrence.Builder setDeployment(DeploymentOccurrence value)
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Name | Description |
value | DeploymentOccurrence |
Type | Description |
Occurrence.Builder |
setDeployment(DeploymentOccurrence.Builder builderForValue)
public Occurrence.Builder setDeployment(DeploymentOccurrence.Builder builderForValue)
Describes the deployment of an artifact on a runtime.
.grafeas.v1.DeploymentOccurrence deployment = 12;
Name | Description |
builderForValue | DeploymentOccurrence.Builder |
Type | Description |
Occurrence.Builder |
setDiscovery(DiscoveryOccurrence value)
public Occurrence.Builder setDiscovery(DiscoveryOccurrence value)
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Name | Description |
value | DiscoveryOccurrence |
Type | Description |
Occurrence.Builder |
setDiscovery(DiscoveryOccurrence.Builder builderForValue)
public Occurrence.Builder setDiscovery(DiscoveryOccurrence.Builder builderForValue)
Describes when a resource was discovered.
.grafeas.v1.DiscoveryOccurrence discovery = 13;
Name | Description |
builderForValue | DiscoveryOccurrence.Builder |
Type | Description |
Occurrence.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public Occurrence.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
Occurrence.Builder |
setImage(ImageOccurrence value)
public Occurrence.Builder setImage(ImageOccurrence value)
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Name | Description |
value | ImageOccurrence |
Type | Description |
Occurrence.Builder |
setImage(ImageOccurrence.Builder builderForValue)
public Occurrence.Builder setImage(ImageOccurrence.Builder builderForValue)
Describes how this resource derives from the basis in the associated note.
.grafeas.v1.ImageOccurrence image = 10;
Name | Description |
builderForValue | ImageOccurrence.Builder |
Type | Description |
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.v1.NoteKind kind = 4;
Name | Description |
value | NoteKind The kind to set. |
Type | Description |
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.v1.NoteKind kind = 4;
Name | Description |
value | int The enum numeric value on the wire for kind to set. |
Type | Description |
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;
Name | Description |
value | String The name to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for name to set. |
Type | Description |
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;
Name | Description |
value | String The noteName to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for noteName to set. |
Type | Description |
Occurrence.Builder | This builder for chaining. |
setPackage(PackageOccurrence value)
public Occurrence.Builder setPackage(PackageOccurrence value)
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Name | Description |
value | PackageOccurrence |
Type | Description |
Occurrence.Builder |
setPackage(PackageOccurrence.Builder builderForValue)
public Occurrence.Builder setPackage(PackageOccurrence.Builder builderForValue)
Describes the installation of a package on the linked resource.
.grafeas.v1.PackageOccurrence package = 11;
Name | Description |
builderForValue | PackageOccurrence.Builder |
Type | Description |
Occurrence.Builder |
setRemediation(String value)
public Occurrence.Builder setRemediation(String value)
A description of actions that can be taken to remedy the note.
string remediation = 5;
Name | Description |
value | String The remediation to set. |
Type | Description |
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;
Name | Description |
value | ByteString The bytes for remediation to set. |
Type | Description |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
Occurrence.Builder |
setResourceUri(String value)
public Occurrence.Builder setResourceUri(String value)
Required. Immutable. A URI that represents the resource for which the
occurrence applies. For example,
https://gcr.io/project/image@sha256:123abc
for a Docker image.
string resource_uri = 2;
Name | Description |
value | String The resourceUri to set. |
Type | Description |
Occurrence.Builder | This builder for chaining. |
setResourceUriBytes(ByteString value)
public Occurrence.Builder setResourceUriBytes(ByteString value)
Required. Immutable. A URI that represents the resource for which the
occurrence applies. For example,
https://gcr.io/project/image@sha256:123abc
for a Docker image.
string resource_uri = 2;
Name | Description |
value | ByteString The bytes for resourceUri to set. |
Type | Description |
Occurrence.Builder | This builder for chaining. |
setUnknownFields(UnknownFieldSet unknownFields)
public final Occurrence.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
Occurrence.Builder |
setUpdateTime(Timestamp value)
public Occurrence.Builder setUpdateTime(Timestamp value)
Output only. The time this occurrence was last updated.
.google.protobuf.Timestamp update_time = 7;
Name | Description |
value | Timestamp |
Type | Description |
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;
Name | Description |
builderForValue | Builder |
Type | Description |
Occurrence.Builder |
setUpgrade(UpgradeOccurrence value)
public Occurrence.Builder setUpgrade(UpgradeOccurrence value)
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Name | Description |
value | UpgradeOccurrence |
Type | Description |
Occurrence.Builder |
setUpgrade(UpgradeOccurrence.Builder builderForValue)
public Occurrence.Builder setUpgrade(UpgradeOccurrence.Builder builderForValue)
Describes an available package upgrade on the linked resource.
.grafeas.v1.UpgradeOccurrence upgrade = 15;
Name | Description |
builderForValue | UpgradeOccurrence.Builder |
Type | Description |
Occurrence.Builder |
setVulnerability(VulnerabilityOccurrence value)
public Occurrence.Builder setVulnerability(VulnerabilityOccurrence value)
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Name | Description |
value | VulnerabilityOccurrence |
Type | Description |
Occurrence.Builder |
setVulnerability(VulnerabilityOccurrence.Builder builderForValue)
public Occurrence.Builder setVulnerability(VulnerabilityOccurrence.Builder builderForValue)
Describes a security vulnerability.
.grafeas.v1.VulnerabilityOccurrence vulnerability = 8;
Name | Description |
builderForValue | VulnerabilityOccurrence.Builder |
Type | Description |
Occurrence.Builder |