Class VulnerabilityReport.Builder (2.29.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

addVulnerabilitiesBuilder()

public VulnerabilityReport.Vulnerability.Builder addVulnerabilitiesBuilder()

Output only. List of vulnerabilities affecting the VM.

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

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

addVulnerabilitiesBuilder(int index)

public VulnerabilityReport.Vulnerability.Builder addVulnerabilitiesBuilder(int index)

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
indexint
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

build()

public VulnerabilityReport build()
Returns
TypeDescription
VulnerabilityReport

buildPartial()

public VulnerabilityReport buildPartial()
Returns
TypeDescription
VulnerabilityReport

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearName()

public VulnerabilityReport.Builder clearName()

Output only. The vulnerabilityReport API resource name.

Format: projects/{project_number}/locations/{location}/instances/{instance_id}/vulnerabilityReport

string name = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
VulnerabilityReport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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