Class VulnerabilityReport.Vulnerability.Builder

    • Method Detail

      • getDescriptor

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

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.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.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Builder>
      • getDefaultInstanceForType

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

        public VulnerabilityReport.Vulnerability build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public VulnerabilityReport.Vulnerability buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<VulnerabilityReport.Vulnerability.Builder>
      • hasDetails

        public boolean hasDetails()
         Contains metadata as per the upstream feed of the operating system and
         NVD.
         
        .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
        Specified by:
        hasDetails in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        Whether the details field is set.
      • clearDetails

        public VulnerabilityReport.Vulnerability.Builder clearDetails()
         Contains metadata as per the upstream feed of the operating system and
         NVD.
         
        .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
      • getDetailsBuilder

        public VulnerabilityReport.Vulnerability.Details.Builder getDetailsBuilder()
         Contains metadata as per the upstream feed of the operating system and
         NVD.
         
        .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Details details = 1;
      • getInstalledInventoryItemIdsList

        @Deprecated
        public com.google.protobuf.ProtocolStringList getInstalledInventoryItemIdsList()
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Specified by:
        getInstalledInventoryItemIdsList in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        A list containing the installedInventoryItemIds.
      • getInstalledInventoryItemIdsCount

        @Deprecated
        public int getInstalledInventoryItemIdsCount()
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Specified by:
        getInstalledInventoryItemIdsCount in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        The count of installedInventoryItemIds.
      • getInstalledInventoryItemIds

        @Deprecated
        public String getInstalledInventoryItemIds​(int index)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Specified by:
        getInstalledInventoryItemIds in interface VulnerabilityReport.VulnerabilityOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The installedInventoryItemIds at the given index.
      • getInstalledInventoryItemIdsBytes

        @Deprecated
        public com.google.protobuf.ByteString getInstalledInventoryItemIdsBytes​(int index)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Specified by:
        getInstalledInventoryItemIdsBytes in interface VulnerabilityReport.VulnerabilityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the installedInventoryItemIds at the given index.
      • setInstalledInventoryItemIds

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder setInstalledInventoryItemIds​(int index,
                                                                                      String value)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Parameters:
        index - The index to set the value at.
        value - The installedInventoryItemIds to set.
        Returns:
        This builder for chaining.
      • addInstalledInventoryItemIds

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder addInstalledInventoryItemIds​(String value)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Parameters:
        value - The installedInventoryItemIds to add.
        Returns:
        This builder for chaining.
      • addAllInstalledInventoryItemIds

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder addAllInstalledInventoryItemIds​(Iterable<String> values)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Parameters:
        values - The installedInventoryItemIds to add.
        Returns:
        This builder for chaining.
      • clearInstalledInventoryItemIds

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder clearInstalledInventoryItemIds()
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Returns:
        This builder for chaining.
      • addInstalledInventoryItemIdsBytes

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder addInstalledInventoryItemIdsBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.installed_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=112
         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 [deprecated = true];
        Parameters:
        value - The bytes of the installedInventoryItemIds to add.
        Returns:
        This builder for chaining.
      • getAvailableInventoryItemIdsList

        @Deprecated
        public com.google.protobuf.ProtocolStringList getAvailableInventoryItemIdsList()
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Specified by:
        getAvailableInventoryItemIdsList in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        A list containing the availableInventoryItemIds.
      • getAvailableInventoryItemIdsCount

        @Deprecated
        public int getAvailableInventoryItemIdsCount()
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Specified by:
        getAvailableInventoryItemIdsCount in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        The count of availableInventoryItemIds.
      • getAvailableInventoryItemIds

        @Deprecated
        public String getAvailableInventoryItemIds​(int index)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Specified by:
        getAvailableInventoryItemIds in interface VulnerabilityReport.VulnerabilityOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The availableInventoryItemIds at the given index.
      • getAvailableInventoryItemIdsBytes

        @Deprecated
        public com.google.protobuf.ByteString getAvailableInventoryItemIdsBytes​(int index)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Specified by:
        getAvailableInventoryItemIdsBytes in interface VulnerabilityReport.VulnerabilityOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the availableInventoryItemIds at the given index.
      • setAvailableInventoryItemIds

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder setAvailableInventoryItemIds​(int index,
                                                                                      String value)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Parameters:
        index - The index to set the value at.
        value - The availableInventoryItemIds to set.
        Returns:
        This builder for chaining.
      • addAvailableInventoryItemIds

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder addAvailableInventoryItemIds​(String value)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Parameters:
        value - The availableInventoryItemIds to add.
        Returns:
        This builder for chaining.
      • addAllAvailableInventoryItemIds

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder addAllAvailableInventoryItemIds​(Iterable<String> values)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Parameters:
        values - The availableInventoryItemIds to add.
        Returns:
        This builder for chaining.
      • clearAvailableInventoryItemIds

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder clearAvailableInventoryItemIds()
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Returns:
        This builder for chaining.
      • addAvailableInventoryItemIdsBytes

        @Deprecated
        public VulnerabilityReport.Vulnerability.Builder addAvailableInventoryItemIdsBytes​(com.google.protobuf.ByteString value)
        Deprecated.
        google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.available_inventory_item_ids is deprecated. See google/cloud/osconfig/v1/vulnerability.proto;l=120
         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 [deprecated = true];
        Parameters:
        value - The bytes of the availableInventoryItemIds to add.
        Returns:
        This builder for chaining.
      • hasCreateTime

        public boolean hasCreateTime()
         The timestamp for when the vulnerability was first detected.
         
        .google.protobuf.Timestamp create_time = 4;
        Specified by:
        hasCreateTime in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        Whether the createTime field is set.
      • getCreateTime

        public com.google.protobuf.Timestamp getCreateTime()
         The timestamp for when the vulnerability was first detected.
         
        .google.protobuf.Timestamp create_time = 4;
        Specified by:
        getCreateTime in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        The createTime.
      • setCreateTime

        public VulnerabilityReport.Vulnerability.Builder setCreateTime​(com.google.protobuf.Timestamp value)
         The timestamp for when the vulnerability was first detected.
         
        .google.protobuf.Timestamp create_time = 4;
      • setCreateTime

        public VulnerabilityReport.Vulnerability.Builder setCreateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The timestamp for when the vulnerability was first detected.
         
        .google.protobuf.Timestamp create_time = 4;
      • mergeCreateTime

        public VulnerabilityReport.Vulnerability.Builder mergeCreateTime​(com.google.protobuf.Timestamp value)
         The timestamp for when the vulnerability was first detected.
         
        .google.protobuf.Timestamp create_time = 4;
      • getCreateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder()
         The timestamp for when the vulnerability was first detected.
         
        .google.protobuf.Timestamp create_time = 4;
      • hasUpdateTime

        public boolean hasUpdateTime()
         The timestamp for when the vulnerability was last modified.
         
        .google.protobuf.Timestamp update_time = 5;
        Specified by:
        hasUpdateTime in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        Whether the updateTime field is set.
      • getUpdateTime

        public com.google.protobuf.Timestamp getUpdateTime()
         The timestamp for when the vulnerability was last modified.
         
        .google.protobuf.Timestamp update_time = 5;
        Specified by:
        getUpdateTime in interface VulnerabilityReport.VulnerabilityOrBuilder
        Returns:
        The updateTime.
      • setUpdateTime

        public VulnerabilityReport.Vulnerability.Builder setUpdateTime​(com.google.protobuf.Timestamp value)
         The timestamp for when the vulnerability was last modified.
         
        .google.protobuf.Timestamp update_time = 5;
      • setUpdateTime

        public VulnerabilityReport.Vulnerability.Builder setUpdateTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The timestamp for when the vulnerability was last modified.
         
        .google.protobuf.Timestamp update_time = 5;
      • mergeUpdateTime

        public VulnerabilityReport.Vulnerability.Builder mergeUpdateTime​(com.google.protobuf.Timestamp value)
         The timestamp for when the vulnerability was last modified.
         
        .google.protobuf.Timestamp update_time = 5;
      • getUpdateTimeBuilder

        public com.google.protobuf.Timestamp.Builder getUpdateTimeBuilder()
         The timestamp for when the vulnerability was last modified.
         
        .google.protobuf.Timestamp update_time = 5;
      • clearItems

        public VulnerabilityReport.Vulnerability.Builder clearItems()
         List of items affected by the vulnerability.
         
        repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
      • removeItems

        public VulnerabilityReport.Vulnerability.Builder removeItems​(int index)
         List of items affected by the vulnerability.
         
        repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
      • getItemsBuilder

        public VulnerabilityReport.Vulnerability.Item.Builder getItemsBuilder​(int index)
         List of items affected by the vulnerability.
         
        repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;
      • addItemsBuilder

        public VulnerabilityReport.Vulnerability.Item.Builder addItemsBuilder​(int index)
         List of items affected by the vulnerability.
         
        repeated .google.cloud.osconfig.v1.VulnerabilityReport.Vulnerability.Item items = 6;