Class VulnerabilityReport.Vulnerability.Item.Builder (2.57.0)

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

OS inventory item that is affected by a vulnerability or fixed as a result of a vulnerability.

Protobuf type google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Item

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public VulnerabilityReport.Vulnerability.Item build()
Returns
Type Description
VulnerabilityReport.Vulnerability.Item

buildPartial()

public VulnerabilityReport.Vulnerability.Item buildPartial()
Returns
Type Description
VulnerabilityReport.Vulnerability.Item

clear()

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

clearAvailableInventoryItemId()

public VulnerabilityReport.Vulnerability.Item.Builder clearAvailableInventoryItemId()

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.

string available_inventory_item_id = 2;

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityReport.Vulnerability.Item.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder
Overrides

clearFixedCpeUri()

public VulnerabilityReport.Vulnerability.Item.Builder clearFixedCpeUri()

The recommended CPE URI update that contains a fix for this vulnerability.

string fixed_cpe_uri = 3;

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

clearInstalledInventoryItemId()

public VulnerabilityReport.Vulnerability.Item.Builder clearInstalledInventoryItemId()

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 operating systems, this field might be empty.

string installed_inventory_item_id = 1;

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearUpstreamFix()

public VulnerabilityReport.Vulnerability.Item.Builder clearUpstreamFix()

The upstream OS patch, packages or KB that fixes the vulnerability.

string upstream_fix = 4;

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

clone()

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

getAvailableInventoryItemId()

public String getAvailableInventoryItemId()

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.

string available_inventory_item_id = 2;

Returns
Type Description
String

The availableInventoryItemId.

getAvailableInventoryItemIdBytes()

public ByteString getAvailableInventoryItemIdBytes()

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.

string available_inventory_item_id = 2;

Returns
Type Description
ByteString

The bytes for availableInventoryItemId.

getDefaultInstanceForType()

public VulnerabilityReport.Vulnerability.Item getDefaultInstanceForType()
Returns
Type Description
VulnerabilityReport.Vulnerability.Item

getDescriptorForType()

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

getFixedCpeUri()

public String getFixedCpeUri()

The recommended CPE URI update that contains a fix for this vulnerability.

string fixed_cpe_uri = 3;

Returns
Type Description
String

The fixedCpeUri.

getFixedCpeUriBytes()

public ByteString getFixedCpeUriBytes()

The recommended CPE URI update that contains a fix for this vulnerability.

string fixed_cpe_uri = 3;

Returns
Type Description
ByteString

The bytes for fixedCpeUri.

getInstalledInventoryItemId()

public String getInstalledInventoryItemId()

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 operating systems, this field might be empty.

string installed_inventory_item_id = 1;

Returns
Type Description
String

The installedInventoryItemId.

getInstalledInventoryItemIdBytes()

public ByteString getInstalledInventoryItemIdBytes()

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 operating systems, this field might be empty.

string installed_inventory_item_id = 1;

Returns
Type Description
ByteString

The bytes for installedInventoryItemId.

getUpstreamFix()

public String getUpstreamFix()

The upstream OS patch, packages or KB that fixes the vulnerability.

string upstream_fix = 4;

Returns
Type Description
String

The upstreamFix.

getUpstreamFixBytes()

public ByteString getUpstreamFixBytes()

The upstream OS patch, packages or KB that fixes the vulnerability.

string upstream_fix = 4;

Returns
Type Description
ByteString

The bytes for upstreamFix.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(VulnerabilityReport.Vulnerability.Item other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAvailableInventoryItemId(String value)

public VulnerabilityReport.Vulnerability.Item.Builder setAvailableInventoryItemId(String value)

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.

string available_inventory_item_id = 2;

Parameter
Name Description
value String

The availableInventoryItemId to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

setAvailableInventoryItemIdBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Item.Builder setAvailableInventoryItemIdBytes(ByteString value)

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.

string available_inventory_item_id = 2;

Parameter
Name Description
value ByteString

The bytes for availableInventoryItemId to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setFixedCpeUri(String value)

public VulnerabilityReport.Vulnerability.Item.Builder setFixedCpeUri(String value)

The recommended CPE URI update that contains a fix for this vulnerability.

string fixed_cpe_uri = 3;

Parameter
Name Description
value String

The fixedCpeUri to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

setFixedCpeUriBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Item.Builder setFixedCpeUriBytes(ByteString value)

The recommended CPE URI update that contains a fix for this vulnerability.

string fixed_cpe_uri = 3;

Parameter
Name Description
value ByteString

The bytes for fixedCpeUri to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

setInstalledInventoryItemId(String value)

public VulnerabilityReport.Vulnerability.Item.Builder setInstalledInventoryItemId(String value)

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 operating systems, this field might be empty.

string installed_inventory_item_id = 1;

Parameter
Name Description
value String

The installedInventoryItemId to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

setInstalledInventoryItemIdBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Item.Builder setInstalledInventoryItemIdBytes(ByteString value)

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 operating systems, this field might be empty.

string installed_inventory_item_id = 1;

Parameter
Name Description
value ByteString

The bytes for installedInventoryItemId to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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

setUpstreamFix(String value)

public VulnerabilityReport.Vulnerability.Item.Builder setUpstreamFix(String value)

The upstream OS patch, packages or KB that fixes the vulnerability.

string upstream_fix = 4;

Parameter
Name Description
value String

The upstreamFix to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

setUpstreamFixBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Item.Builder setUpstreamFixBytes(ByteString value)

The upstream OS patch, packages or KB that fixes the vulnerability.

string upstream_fix = 4;

Parameter
Name Description
value ByteString

The bytes for upstreamFix to set.

Returns
Type Description
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.