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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
values Iterable<? extends com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability>
Returns
Type Description
VulnerabilityReport.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityReport.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value VulnerabilityReport.Vulnerability
Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue VulnerabilityReport.Vulnerability.Builder
Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
value VulnerabilityReport.Vulnerability
Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameters
Name Description
index int
builderForValue VulnerabilityReport.Vulnerability.Builder
Returns
Type Description
VulnerabilityReport.Builder

addVulnerabilitiesBuilder()

public VulnerabilityReport.Vulnerability.Builder addVulnerabilitiesBuilder()

Output only. List of vulnerabilities affecting the VM.

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

Returns
Type Description
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.v1.VulnerabilityReport.Vulnerability vulnerabilities = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityReport.Vulnerability.Builder

build()

public VulnerabilityReport build()
Returns
Type Description
VulnerabilityReport

buildPartial()

public VulnerabilityReport buildPartial()
Returns
Type Description
VulnerabilityReport

clear()

public VulnerabilityReport.Builder clear()
Returns
Type Description
VulnerabilityReport.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityReport.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
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
Type Description
VulnerabilityReport.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpdateTime()

public VulnerabilityReport.Builder clearUpdateTime()

Output only. The timestamp for when the last vulnerability report was generated for the VM.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
VulnerabilityReport.Builder

clearVulnerabilities()

public VulnerabilityReport.Builder clearVulnerabilities()

Output only. List of vulnerabilities affecting the VM.

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

Returns
Type Description
VulnerabilityReport.Builder

clone()

public VulnerabilityReport.Builder clone()
Returns
Type Description
VulnerabilityReport.Builder
Overrides

getDefaultInstanceForType()

public VulnerabilityReport getDefaultInstanceForType()
Returns
Type Description
VulnerabilityReport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getName()

public String getName()

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

The name.

getNameBytes()

public ByteString getNameBytes()

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

The bytes for name.

getUpdateTime()

public Timestamp getUpdateTime()

Output only. The timestamp for when the last vulnerability report was generated for the VM.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

Output only. The timestamp for when the last vulnerability report was generated for the VM.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

Output only. The timestamp for when the last vulnerability report was generated for the VM.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
TimestampOrBuilder

getVulnerabilities(int index)

public VulnerabilityReport.Vulnerability getVulnerabilities(int index)

Output only. List of vulnerabilities affecting the VM.

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

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityReport.Vulnerability

getVulnerabilitiesBuilder(int index)

public VulnerabilityReport.Vulnerability.Builder getVulnerabilitiesBuilder(int index)

Output only. List of vulnerabilities affecting the VM.

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

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityReport.Vulnerability.Builder

getVulnerabilitiesBuilderList()

public List<VulnerabilityReport.Vulnerability.Builder> getVulnerabilitiesBuilderList()

Output only. List of vulnerabilities affecting the VM.

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

Returns
Type Description
List<Builder>

getVulnerabilitiesCount()

public int getVulnerabilitiesCount()

Output only. List of vulnerabilities affecting the VM.

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

Returns
Type Description
int

getVulnerabilitiesList()

public List<VulnerabilityReport.Vulnerability> getVulnerabilitiesList()

Output only. List of vulnerabilities affecting the VM.

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

Returns
Type Description
List<Vulnerability>

getVulnerabilitiesOrBuilder(int index)

public VulnerabilityReport.VulnerabilityOrBuilder getVulnerabilitiesOrBuilder(int index)

Output only. List of vulnerabilities affecting the VM.

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

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityReport.VulnerabilityOrBuilder

getVulnerabilitiesOrBuilderList()

public List<? extends VulnerabilityReport.VulnerabilityOrBuilder> getVulnerabilitiesOrBuilderList()

Output only. List of vulnerabilities affecting the VM.

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

Returns
Type Description
List<? extends com.google.cloud.osconfig.v1.VulnerabilityReport.VulnerabilityOrBuilder>

hasUpdateTime()

public boolean hasUpdateTime()

Output only. The timestamp for when the last vulnerability report was generated for the VM.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VulnerabilityReport other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

mergeUpdateTime(Timestamp value)

public VulnerabilityReport.Builder mergeUpdateTime(Timestamp value)

Output only. The timestamp for when the last vulnerability report was generated for the VM.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
VulnerabilityReport.Builder

removeVulnerabilities(int index)

public VulnerabilityReport.Builder removeVulnerabilities(int index)

Output only. List of vulnerabilities affecting the VM.

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

Parameter
Name Description
index int
Returns
Type Description
VulnerabilityReport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setName(String value)

public VulnerabilityReport.Builder setName(String value)

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];

Parameter
Name Description
value String

The name to set.

Returns
Type Description
VulnerabilityReport.Builder

This builder for chaining.

setNameBytes(ByteString value)

public VulnerabilityReport.Builder setNameBytes(ByteString value)

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];

Parameter
Name Description
value ByteString

The bytes for name to set.

Returns
Type Description
VulnerabilityReport.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpdateTime(Timestamp value)

public VulnerabilityReport.Builder setUpdateTime(Timestamp value)

Output only. The timestamp for when the last vulnerability report was generated for the VM.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value Timestamp
Returns
Type Description
VulnerabilityReport.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public VulnerabilityReport.Builder setUpdateTime(Timestamp.Builder builderForValue)

Output only. The timestamp for when the last vulnerability report was generated for the VM.

.google.protobuf.Timestamp update_time = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue Builder
Returns
Type Description
VulnerabilityReport.Builder

setVulnerabilities(int index, VulnerabilityReport.Vulnerability value)

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

Output only. List of vulnerabilities affecting the VM.

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

Parameters
Name Description
index int
value VulnerabilityReport.Vulnerability
Returns
Type Description
VulnerabilityReport.Builder

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

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

Output only. List of vulnerabilities affecting the VM.

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

Parameters
Name Description
index int
builderForValue VulnerabilityReport.Vulnerability.Builder
Returns
Type Description
VulnerabilityReport.Builder