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 Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
    • getDefaultInstanceForType

      public VulnerabilityReport.Vulnerability.Item getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VulnerabilityReport.Vulnerability.Item.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<VulnerabilityReport.Vulnerability.Item.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.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:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.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 interface VulnerabilityReport.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 interface VulnerabilityReport.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 interface VulnerabilityReport.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 interface VulnerabilityReport.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 interface VulnerabilityReport.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 interface VulnerabilityReport.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

      public String getUpstreamFix()
       The upstream OS patch, packages or KB that fixes the vulnerability.
       
      string upstream_fix = 4;
      Specified by:
      getUpstreamFix in interface VulnerabilityReport.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 interface VulnerabilityReport.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.