Package com.google.cloud.osconfig.v1
Class VulnerabilityReport.Vulnerability.Item.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
- com.google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item.Builder
-
- All Implemented Interfaces:
VulnerabilityReport.Vulnerability.ItemOrBuilder
,com.google.protobuf.Message.Builder
,com.google.protobuf.MessageLite.Builder
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Cloneable
- Enclosing class:
- VulnerabilityReport.Vulnerability.Item
public static final class VulnerabilityReport.Vulnerability.Item.Builder extends com.google.protobuf.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 typegoogle.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description VulnerabilityReport.Vulnerability.Item.Builder
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VulnerabilityReport.Vulnerability.Item
build()
VulnerabilityReport.Vulnerability.Item
buildPartial()
VulnerabilityReport.Vulnerability.Item.Builder
clear()
VulnerabilityReport.Vulnerability.Item.Builder
clearAvailableInventoryItemId()
Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.VulnerabilityReport.Vulnerability.Item.Builder
clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
VulnerabilityReport.Vulnerability.Item.Builder
clearFixedCpeUri()
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.VulnerabilityReport.Vulnerability.Item.Builder
clearInstalledInventoryItemId()
Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.VulnerabilityReport.Vulnerability.Item.Builder
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
VulnerabilityReport.Vulnerability.Item.Builder
clearUpstreamFix()
The upstream OS patch, packages or KB that fixes the vulnerability.VulnerabilityReport.Vulnerability.Item.Builder
clone()
String
getAvailableInventoryItemId()
Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.com.google.protobuf.ByteString
getAvailableInventoryItemIdBytes()
Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.VulnerabilityReport.Vulnerability.Item
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
com.google.protobuf.Descriptors.Descriptor
getDescriptorForType()
String
getFixedCpeUri()
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.com.google.protobuf.ByteString
getFixedCpeUriBytes()
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.String
getInstalledInventoryItemId()
Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.com.google.protobuf.ByteString
getInstalledInventoryItemIdBytes()
Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.String
getUpstreamFix()
The upstream OS patch, packages or KB that fixes the vulnerability.com.google.protobuf.ByteString
getUpstreamFixBytes()
The upstream OS patch, packages or KB that fixes the vulnerability.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
VulnerabilityReport.Vulnerability.Item.Builder
mergeFrom(VulnerabilityReport.Vulnerability.Item other)
VulnerabilityReport.Vulnerability.Item.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
VulnerabilityReport.Vulnerability.Item.Builder
mergeFrom(com.google.protobuf.Message other)
VulnerabilityReport.Vulnerability.Item.Builder
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VulnerabilityReport.Vulnerability.Item.Builder
setAvailableInventoryItemId(String value)
Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.VulnerabilityReport.Vulnerability.Item.Builder
setAvailableInventoryItemIdBytes(com.google.protobuf.ByteString value)
Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.VulnerabilityReport.Vulnerability.Item.Builder
setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
VulnerabilityReport.Vulnerability.Item.Builder
setFixedCpeUri(String value)
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.VulnerabilityReport.Vulnerability.Item.Builder
setFixedCpeUriBytes(com.google.protobuf.ByteString value)
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.VulnerabilityReport.Vulnerability.Item.Builder
setInstalledInventoryItemId(String value)
Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.VulnerabilityReport.Vulnerability.Item.Builder
setInstalledInventoryItemIdBytes(com.google.protobuf.ByteString value)
Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.VulnerabilityReport.Vulnerability.Item.Builder
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
VulnerabilityReport.Vulnerability.Item.Builder
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
VulnerabilityReport.Vulnerability.Item.Builder
setUpstreamFix(String value)
The upstream OS patch, packages or KB that fixes the vulnerability.VulnerabilityReport.Vulnerability.Item.Builder
setUpstreamFixBytes(com.google.protobuf.ByteString value)
The upstream OS patch, packages or KB that fixes the vulnerability.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
clear
public VulnerabilityReport.Vulnerability.Item.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
getDefaultInstanceForType
public VulnerabilityReport.Vulnerability.Item getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public VulnerabilityReport.Vulnerability.Item build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public VulnerabilityReport.Vulnerability.Item buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public VulnerabilityReport.Vulnerability.Item.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
setField
public VulnerabilityReport.Vulnerability.Item.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
clearField
public VulnerabilityReport.Vulnerability.Item.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
clearOneof
public VulnerabilityReport.Vulnerability.Item.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
setRepeatedField
public VulnerabilityReport.Vulnerability.Item.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
addRepeatedField
public VulnerabilityReport.Vulnerability.Item.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
mergeFrom
public VulnerabilityReport.Vulnerability.Item.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
mergeFrom
public VulnerabilityReport.Vulnerability.Item.Builder mergeFrom(VulnerabilityReport.Vulnerability.Item other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
mergeFrom
public VulnerabilityReport.Vulnerability.Item.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
- Throws:
IOException
-
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;
- Specified by:
getInstalledInventoryItemId
in interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder
- Returns:
- The installedInventoryItemId.
-
getInstalledInventoryItemIdBytes
public com.google.protobuf.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;
- Specified by:
getInstalledInventoryItemIdBytes
in interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder
- Returns:
- The bytes for installedInventoryItemId.
-
setInstalledInventoryItemId
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;
- Parameters:
value
- The installedInventoryItemId to set.- Returns:
- 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:
- This builder for chaining.
-
setInstalledInventoryItemIdBytes
public VulnerabilityReport.Vulnerability.Item.Builder setInstalledInventoryItemIdBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for installedInventoryItemId to set.- Returns:
- This builder for chaining.
-
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;
- Specified by:
getAvailableInventoryItemId
in interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder
- Returns:
- The availableInventoryItemId.
-
getAvailableInventoryItemIdBytes
public com.google.protobuf.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;
- Specified by:
getAvailableInventoryItemIdBytes
in interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder
- Returns:
- The bytes for availableInventoryItemId.
-
setAvailableInventoryItemId
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;
- Parameters:
value
- The availableInventoryItemId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setAvailableInventoryItemIdBytes
public VulnerabilityReport.Vulnerability.Item.Builder setAvailableInventoryItemIdBytes(com.google.protobuf.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;
- Parameters:
value
- The bytes for availableInventoryItemId to set.- Returns:
- This builder for chaining.
-
getFixedCpeUri
public String getFixedCpeUri()
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.
string fixed_cpe_uri = 3;
- Specified by:
getFixedCpeUri
in interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder
- Returns:
- The fixedCpeUri.
-
getFixedCpeUriBytes
public com.google.protobuf.ByteString getFixedCpeUriBytes()
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.
string fixed_cpe_uri = 3;
- Specified by:
getFixedCpeUriBytes
in interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder
- Returns:
- The bytes for fixedCpeUri.
-
setFixedCpeUri
public VulnerabilityReport.Vulnerability.Item.Builder setFixedCpeUri(String value)
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.
string fixed_cpe_uri = 3;
- Parameters:
value
- The fixedCpeUri to set.- Returns:
- This builder for chaining.
-
clearFixedCpeUri
public VulnerabilityReport.Vulnerability.Item.Builder clearFixedCpeUri()
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.
string fixed_cpe_uri = 3;
- Returns:
- This builder for chaining.
-
setFixedCpeUriBytes
public VulnerabilityReport.Vulnerability.Item.Builder setFixedCpeUriBytes(com.google.protobuf.ByteString value)
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.
string fixed_cpe_uri = 3;
- Parameters:
value
- The bytes for fixedCpeUri to set.- Returns:
- This builder for chaining.
-
getUpstreamFix
public String getUpstreamFix()
The upstream OS patch, packages or KB that fixes the vulnerability.
string upstream_fix = 4;
- Specified by:
getUpstreamFix
in interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder
- Returns:
- The upstreamFix.
-
getUpstreamFixBytes
public com.google.protobuf.ByteString getUpstreamFixBytes()
The upstream OS patch, packages or KB that fixes the vulnerability.
string upstream_fix = 4;
- Specified by:
getUpstreamFixBytes
in interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder
- Returns:
- The bytes for upstreamFix.
-
setUpstreamFix
public VulnerabilityReport.Vulnerability.Item.Builder setUpstreamFix(String value)
The upstream OS patch, packages or KB that fixes the vulnerability.
string upstream_fix = 4;
- Parameters:
value
- The upstreamFix to set.- Returns:
- This builder for chaining.
-
clearUpstreamFix
public VulnerabilityReport.Vulnerability.Item.Builder clearUpstreamFix()
The upstream OS patch, packages or KB that fixes the vulnerability.
string upstream_fix = 4;
- Returns:
- This builder for chaining.
-
setUpstreamFixBytes
public VulnerabilityReport.Vulnerability.Item.Builder setUpstreamFixBytes(com.google.protobuf.ByteString value)
The upstream OS patch, packages or KB that fixes the vulnerability.
string upstream_fix = 4;
- Parameters:
value
- The bytes for upstreamFix to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final VulnerabilityReport.Vulnerability.Item.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
mergeUnknownFields
public final VulnerabilityReport.Vulnerability.Item.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
-