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

Parameter
NameDescription
valuesIterable<? extends com.google.cloud.osconfig.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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.v1.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

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

clone()

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

getDefaultInstanceForType()

public VulnerabilityReport getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityReport

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the updateTime field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VulnerabilityReport other)

public VulnerabilityReport.Builder mergeFrom(VulnerabilityReport other)
Parameter
NameDescription
otherVulnerabilityReport
Returns
TypeDescription
VulnerabilityReport.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
VulnerabilityReport.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityReport.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The name to set.

Returns
TypeDescription
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
NameDescription
valueByteString

The bytes for name to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VulnerabilityReport.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueTimestamp
Returns
TypeDescription
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
NameDescription
builderForValueBuilder
Returns
TypeDescription
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
NameDescription
indexint
valueVulnerabilityReport.Vulnerability
Returns
TypeDescription
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
NameDescription
indexint
builderForValueVulnerabilityReport.Vulnerability.Builder
Returns
TypeDescription
VulnerabilityReport.Builder