Class VulnerabilityReport.Builder (2.30.0)

public static final class VulnerabilityReport.Builder extends GeneratedMessageV3.Builder<VulnerabilityReport.Builder> implements VulnerabilityReportOrBuilder

This API resource represents the vulnerability report for a specified Compute Engine virtual machine (VM) instance at a given point in time.

For more information, see Vulnerability reports.

Protobuf type google.cloud.osconfig.v1alpha.VulnerabilityReport

Static Methods

getDescriptor()

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

Methods

addAllVulnerabilities(Iterable<? extends VulnerabilityReport.Vulnerability> values)

public VulnerabilityReport.Builder addAllVulnerabilities(Iterable<? extends VulnerabilityReport.Vulnerability> values)

Output only. List of vulnerabilities affecting the VM.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability>
Returns
TypeDescription
VulnerabilityReport.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

addVulnerabilities(VulnerabilityReport.Vulnerability value)

public VulnerabilityReport.Builder addVulnerabilities(VulnerabilityReport.Vulnerability value)

Output only. List of vulnerabilities affecting the VM.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueVulnerabilityReport.Vulnerability
Returns
TypeDescription
VulnerabilityReport.Builder

addVulnerabilities(VulnerabilityReport.Vulnerability.Builder builderForValue)

public VulnerabilityReport.Builder addVulnerabilities(VulnerabilityReport.Vulnerability.Builder builderForValue)

Output only. List of vulnerabilities affecting the VM.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
builderForValueVulnerabilityReport.Vulnerability.Builder
Returns
TypeDescription
VulnerabilityReport.Builder

addVulnerabilities(int index, VulnerabilityReport.Vulnerability value)

public VulnerabilityReport.Builder addVulnerabilities(int index, VulnerabilityReport.Vulnerability value)

Output only. List of vulnerabilities affecting the VM.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
valueVulnerabilityReport.Vulnerability
Returns
TypeDescription
VulnerabilityReport.Builder

addVulnerabilities(int index, VulnerabilityReport.Vulnerability.Builder builderForValue)

public VulnerabilityReport.Builder addVulnerabilities(int index, VulnerabilityReport.Vulnerability.Builder builderForValue)

Output only. List of vulnerabilities affecting the VM.

repeated .google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
NameDescription
indexint
builderForValueVulnerabilityReport.Vulnerability.Builder
Returns
TypeDescription
VulnerabilityReport.Builder