Class VulnerabilityReport.Vulnerability.Item.Builder (2.30.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.v1.VulnerabilityReport.Vulnerability.Item

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public VulnerabilityReport.Vulnerability.Item.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Item.Builder
Overrides

build()

public VulnerabilityReport.Vulnerability.Item build()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Item

buildPartial()

public VulnerabilityReport.Vulnerability.Item buildPartial()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Item

clear()

public VulnerabilityReport.Vulnerability.Item.Builder clear()
Returns
TypeDescription
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
TypeDescription
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityReport.Vulnerability.Item.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VulnerabilityReport.Vulnerability.Item.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.

clone()

public VulnerabilityReport.Vulnerability.Item.Builder clone()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
ByteString

The bytes for availableInventoryItemId.

getDefaultInstanceForType()

public VulnerabilityReport.Vulnerability.Item getDefaultInstanceForType()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Item

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getFixedCpeUri()

public String getFixedCpeUri()

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

string fixed_cpe_uri = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
String

The upstreamFix.

getUpstreamFixBytes()

public ByteString getUpstreamFixBytes()

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

string upstream_fix = 4;

Returns
TypeDescription
ByteString

The bytes for upstreamFix.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(VulnerabilityReport.Vulnerability.Item other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

The availableInventoryItemId to set.

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

The bytes for availableInventoryItemId to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueString

The fixedCpeUri to set.

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

The bytes for fixedCpeUri to set.

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

The installedInventoryItemId to set.

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

The bytes for installedInventoryItemId to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Vulnerability.Item.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueString

The upstreamFix to set.

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

The bytes for upstreamFix to set.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Item.Builder

This builder for chaining.