Class VulnerabilityReport.Vulnerability.Builder (2.3.2)

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.v1alpha.VulnerabilityReport.Vulnerability

Static Methods

getDescriptor()

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

Methods

addAllAvailableInventoryItemIds(Iterable<String> values)

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

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;

Parameter
NameDescription
valuesIterable<String>

The availableInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addAllInstalledInventoryItemIds(Iterable<String> values)

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

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;

Parameter
NameDescription
valuesIterable<String>

The installedInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addAvailableInventoryItemIds(String value)

public VulnerabilityReport.Vulnerability.Builder addAvailableInventoryItemIds(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.

repeated string available_inventory_item_ids = 3;

Parameter
NameDescription
valueString

The availableInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addAvailableInventoryItemIdsBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Builder addAvailableInventoryItemIdsBytes(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.

repeated string available_inventory_item_ids = 3;

Parameter
NameDescription
valueByteString

The bytes of the availableInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addInstalledInventoryItemIds(String value)

public VulnerabilityReport.Vulnerability.Builder addInstalledInventoryItemIds(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 distros, this field may be empty.

repeated string installed_inventory_item_ids = 2;

Parameter
NameDescription
valueString

The installedInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addInstalledInventoryItemIdsBytes(ByteString value)

public VulnerabilityReport.Vulnerability.Builder addInstalledInventoryItemIdsBytes(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 distros, this field may be empty.

repeated string installed_inventory_item_ids = 2;

Parameter
NameDescription
valueByteString

The bytes of the installedInventoryItemIds to add.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public VulnerabilityReport.Vulnerability.Builder clear()
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder
Overrides

clearAvailableInventoryItemIds()

public VulnerabilityReport.Vulnerability.Builder clearAvailableInventoryItemIds()

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;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

clearCreateTime()

public VulnerabilityReport.Vulnerability.Builder clearCreateTime()

The timestamp for when the vulnerability was first detected.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

clearDetails()

public VulnerabilityReport.Vulnerability.Builder clearDetails()

Contains metadata as per the upstream feed of the operating system and NVD.

.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

clearField(Descriptors.FieldDescriptor field)

public VulnerabilityReport.Vulnerability.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder
Overrides

clearInstalledInventoryItemIds()

public VulnerabilityReport.Vulnerability.Builder clearInstalledInventoryItemIds()

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;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public VulnerabilityReport.Vulnerability.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder
Overrides

clearUpdateTime()

public VulnerabilityReport.Vulnerability.Builder clearUpdateTime()

The timestamp for when the vulnerability was last modified.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

clone()

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

getAvailableInventoryItemIds(int index)

public String getAvailableInventoryItemIds(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The availableInventoryItemIds at the given index.

getAvailableInventoryItemIdsBytes(int index)

public ByteString getAvailableInventoryItemIdsBytes(int index)

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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the availableInventoryItemIds at the given index.

getAvailableInventoryItemIdsCount()

public int getAvailableInventoryItemIdsCount()

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;

Returns
TypeDescription
int

The count of availableInventoryItemIds.

getAvailableInventoryItemIdsList()

public ProtocolStringList getAvailableInventoryItemIdsList()

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;

Returns
TypeDescription
ProtocolStringList

A list containing the availableInventoryItemIds.

getCreateTime()

public Timestamp getCreateTime()

The timestamp for when the vulnerability was first detected.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Timestamp

The createTime.

getCreateTimeBuilder()

public Timestamp.Builder getCreateTimeBuilder()

The timestamp for when the vulnerability was first detected.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
Builder

getCreateTimeOrBuilder()

public TimestampOrBuilder getCreateTimeOrBuilder()

The timestamp for when the vulnerability was first detected.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
TimestampOrBuilder

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDetails()

public VulnerabilityReport.Vulnerability.Details getDetails()

Contains metadata as per the upstream feed of the operating system and NVD.

.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details

The details.

getDetailsBuilder()

public VulnerabilityReport.Vulnerability.Details.Builder getDetailsBuilder()

Contains metadata as per the upstream feed of the operating system and NVD.

.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Details.Builder

getDetailsOrBuilder()

public VulnerabilityReport.Vulnerability.DetailsOrBuilder getDetailsOrBuilder()

Contains metadata as per the upstream feed of the operating system and NVD.

.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1;

Returns
TypeDescription
VulnerabilityReport.Vulnerability.DetailsOrBuilder

getInstalledInventoryItemIds(int index)

public String getInstalledInventoryItemIds(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The installedInventoryItemIds at the given index.

getInstalledInventoryItemIdsBytes(int index)

public ByteString getInstalledInventoryItemIdsBytes(int index)

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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the installedInventoryItemIds at the given index.

getInstalledInventoryItemIdsCount()

public int getInstalledInventoryItemIdsCount()

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;

Returns
TypeDescription
int

The count of installedInventoryItemIds.

getInstalledInventoryItemIdsList()

public ProtocolStringList getInstalledInventoryItemIdsList()

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;

Returns
TypeDescription
ProtocolStringList

A list containing the installedInventoryItemIds.

getUpdateTime()

public Timestamp getUpdateTime()

The timestamp for when the vulnerability was last modified.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Timestamp

The updateTime.

getUpdateTimeBuilder()

public Timestamp.Builder getUpdateTimeBuilder()

The timestamp for when the vulnerability was last modified.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
Builder

getUpdateTimeOrBuilder()

public TimestampOrBuilder getUpdateTimeOrBuilder()

The timestamp for when the vulnerability was last modified.

.google.protobuf.Timestamp update_time = 5;

Returns
TypeDescription
TimestampOrBuilder

hasCreateTime()

public boolean hasCreateTime()

The timestamp for when the vulnerability was first detected.

.google.protobuf.Timestamp create_time = 4;

Returns
TypeDescription
boolean

Whether the createTime field is set.

hasDetails()

public boolean hasDetails()

Contains metadata as per the upstream feed of the operating system and NVD.

.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1;

Returns
TypeDescription
boolean

Whether the details field is set.

hasUpdateTime()

public boolean hasUpdateTime()

The timestamp for when the vulnerability was last modified.

.google.protobuf.Timestamp update_time = 5;

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

mergeCreateTime(Timestamp value)

public VulnerabilityReport.Vulnerability.Builder mergeCreateTime(Timestamp value)

The timestamp for when the vulnerability was first detected.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

mergeDetails(VulnerabilityReport.Vulnerability.Details value)

public VulnerabilityReport.Vulnerability.Builder mergeDetails(VulnerabilityReport.Vulnerability.Details value)

Contains metadata as per the upstream feed of the operating system and NVD.

.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1;

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

mergeFrom(VulnerabilityReport.Vulnerability other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Vulnerability.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder
Overrides

mergeUpdateTime(Timestamp value)

public VulnerabilityReport.Vulnerability.Builder mergeUpdateTime(Timestamp value)

The timestamp for when the vulnerability was last modified.

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

setAvailableInventoryItemIds(int index, String value)

public VulnerabilityReport.Vulnerability.Builder setAvailableInventoryItemIds(int index, 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.

repeated string available_inventory_item_ids = 3;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The availableInventoryItemIds to set.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

setCreateTime(Timestamp value)

public VulnerabilityReport.Vulnerability.Builder setCreateTime(Timestamp value)

The timestamp for when the vulnerability was first detected.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

setCreateTime(Timestamp.Builder builderForValue)

public VulnerabilityReport.Vulnerability.Builder setCreateTime(Timestamp.Builder builderForValue)

The timestamp for when the vulnerability was first detected.

.google.protobuf.Timestamp create_time = 4;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

setDetails(VulnerabilityReport.Vulnerability.Details value)

public VulnerabilityReport.Vulnerability.Builder setDetails(VulnerabilityReport.Vulnerability.Details value)

Contains metadata as per the upstream feed of the operating system and NVD.

.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1;

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

setDetails(VulnerabilityReport.Vulnerability.Details.Builder builderForValue)

public VulnerabilityReport.Vulnerability.Builder setDetails(VulnerabilityReport.Vulnerability.Details.Builder builderForValue)

Contains metadata as per the upstream feed of the operating system and NVD.

.google.cloud.osconfig.v1alpha.VulnerabilityReport.Vulnerability.Details details = 1;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setInstalledInventoryItemIds(int index, String value)

public VulnerabilityReport.Vulnerability.Builder setInstalledInventoryItemIds(int index, 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 distros, this field may be empty.

repeated string installed_inventory_item_ids = 2;

Parameters
NameDescription
indexint

The index to set the value at.

valueString

The installedInventoryItemIds to set.

Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

This builder for chaining.

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

public VulnerabilityReport.Vulnerability.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final VulnerabilityReport.Vulnerability.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder
Overrides

setUpdateTime(Timestamp value)

public VulnerabilityReport.Vulnerability.Builder setUpdateTime(Timestamp value)

The timestamp for when the vulnerability was last modified.

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
valueTimestamp
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder

setUpdateTime(Timestamp.Builder builderForValue)

public VulnerabilityReport.Vulnerability.Builder setUpdateTime(Timestamp.Builder builderForValue)

The timestamp for when the vulnerability was last modified.

.google.protobuf.Timestamp update_time = 5;

Parameter
NameDescription
builderForValueBuilder
Returns
TypeDescription
VulnerabilityReport.Vulnerability.Builder