Class VulnerabilityReport.Vulnerability.Builder (2.24.0)

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

A vulnerability affecting the VM instance.

Protobuf type google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability

Static Methods

getDescriptor()

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

Methods

addAllAvailableInventoryItemIds(Iterable<String> values) (deprecated)

public VulnerabilityReport.Vulnerability.Builder addAllAvailableInventoryItemIds(Iterable<String> values)

Deprecated. google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120

Corresponds to the AVAILABLE_PACKAGE inventory item on the VM. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. If there is no available fix, the field is empty. The inventory_item value specifies the latest SoftwarePackage available to the VM that fixes the vulnerability.

repeated string available_inventory_item_ids = 3 [deprecated = true];

Parameter
NameDescription
valuesIterable<String>

The availableInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addAllInstalledInventoryItemIds(Iterable<String> values) (deprecated)

public VulnerabilityReport.Vulnerability.Builder addAllInstalledInventoryItemIds(Iterable<String> values)

Deprecated. google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112

Corresponds to the INSTALLED_PACKAGE inventory item on the VM. This field displays the inventory items affected by this vulnerability. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. For some distros, this field may be empty.

repeated string installed_inventory_item_ids = 2 [deprecated = true];

Parameter
NameDescription
valuesIterable<String>

The installedInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addAllItems(Iterable<? extends VulnerabilityReport.Vulnerability.Item> values)

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

List of items affected by the vulnerability.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;

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

addAvailableInventoryItemIds(String value) (deprecated)

public VulnerabilityReport.Vulnerability.Builder addAvailableInventoryItemIds(String value)

Deprecated. google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120

Corresponds to the AVAILABLE_PACKAGE inventory item on the VM. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. If there is no available fix, the field is empty. The inventory_item value specifies the latest SoftwarePackage available to the VM that fixes the vulnerability.

repeated string available_inventory_item_ids = 3 [deprecated = true];

Parameter
NameDescription
valueString

The availableInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addAvailableInventoryItemIdsBytes(ByteString value) (deprecated)

public VulnerabilityReport.Vulnerability.Builder addAvailableInventoryItemIdsBytes(ByteString value)

Deprecated. google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120

Corresponds to the AVAILABLE_PACKAGE inventory item on the VM. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. If there is no available fix, the field is empty. The inventory_item value specifies the latest SoftwarePackage available to the VM that fixes the vulnerability.

repeated string available_inventory_item_ids = 3 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes of the availableInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addInstalledInventoryItemIds(String value) (deprecated)

public VulnerabilityReport.Vulnerability.Builder addInstalledInventoryItemIds(String value)

Deprecated. google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112

Corresponds to the INSTALLED_PACKAGE inventory item on the VM. This field displays the inventory items affected by this vulnerability. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. For some distros, this field may be empty.

repeated string installed_inventory_item_ids = 2 [deprecated = true];

Parameter
NameDescription
valueString

The installedInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addInstalledInventoryItemIdsBytes(ByteString value) (deprecated)

public VulnerabilityReport.Vulnerability.Builder addInstalledInventoryItemIdsBytes(ByteString value)

Deprecated. google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112

Corresponds to the INSTALLED_PACKAGE inventory item on the VM. This field displays the inventory items affected by this vulnerability. If the vulnerability report was not updated after the VM inventory update, these values might not display in VM inventory. For some distros, this field may be empty.

repeated string installed_inventory_item_ids = 2 [deprecated = true];

Parameter
NameDescription
valueByteString

The bytes of the installedInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addItems(VulnerabilityReport.Vulnerability.Item value)

public VulnerabilityReport.Vulnerability.Builder addItems(VulnerabilityReport.Vulnerability.Item value)

List of items affected by the vulnerability.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;

Parameter
NameDescription
valueVulnerabilityReport.Vulnerability.Item
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

addItems(VulnerabilityReport.Vulnerability.Item.Builder builderForValue)

public VulnerabilityReport.Vulnerability.Builder addItems(VulnerabilityReport.Vulnerability.Item.Builder builderForValue)

List of items affected by the vulnerability.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;

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

addItems(int index, VulnerabilityReport.Vulnerability.Item value)

public VulnerabilityReport.Vulnerability.Builder addItems(int index, VulnerabilityReport.Vulnerability.Item value)

List of items affected by the vulnerability.

repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;

Parameters
NameDescription
index