Class VulnerabilityReport.Vulnerability.Item.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
com.google.cloud.osconfig.v1alpha.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.GeneratedMessage.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-
Method Summary
Modifier and TypeMethodDescriptionbuild()clear()Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.The upstream OS patch, packages or KB that fixes the vulnerability.Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.com.google.protobuf.ByteStringCorresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.com.google.protobuf.ByteStringThe recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.com.google.protobuf.ByteStringCorresponds to the `INSTALLED_PACKAGE` inventory item on the VM.The upstream OS patch, packages or KB that fixes the vulnerability.com.google.protobuf.ByteStringThe upstream OS patch, packages or KB that fixes the vulnerability.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.setAvailableInventoryItemIdBytes(com.google.protobuf.ByteString value) Corresponds to the `AVAILABLE_PACKAGE` inventory item on the VM.setFixedCpeUri(String value) The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.setFixedCpeUriBytes(com.google.protobuf.ByteString value) The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.setInstalledInventoryItemIdBytes(com.google.protobuf.ByteString value) Corresponds to the `INSTALLED_PACKAGE` inventory item on the VM.setUpstreamFix(String value) The upstream OS patch, packages or KB that fixes the vulnerability.setUpstreamFixBytes(com.google.protobuf.ByteString value) The upstream OS patch, packages or KB that fixes the vulnerability.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin 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:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>- Throws:
IOException
-
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:
getInstalledInventoryItemIdin 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:
getInstalledInventoryItemIdBytesin interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder- Returns:
- The bytes for installedInventoryItemId.
-
setInstalledInventoryItemId
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
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
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:
getAvailableInventoryItemIdin 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:
getAvailableInventoryItemIdBytesin interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder- Returns:
- The bytes for availableInventoryItemId.
-
setAvailableInventoryItemId
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
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
The recommended [CPE URI](https://cpe.mitre.org/specification/) update that contains a fix for this vulnerability.
string fixed_cpe_uri = 3;- Specified by:
getFixedCpeUriin 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:
getFixedCpeUriBytesin interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder- Returns:
- The bytes for fixedCpeUri.
-
setFixedCpeUri
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
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
The upstream OS patch, packages or KB that fixes the vulnerability.
string upstream_fix = 4;- Specified by:
getUpstreamFixin 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:
getUpstreamFixBytesin interfaceVulnerabilityReport.Vulnerability.ItemOrBuilder- Returns:
- The bytes for upstreamFix.
-
setUpstreamFix
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
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.
-