Class Inventory.WindowsUpdatePackage.Builder

  • All Implemented Interfaces:
    Inventory.WindowsUpdatePackageOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    Inventory.WindowsUpdatePackage

    public static final class Inventory.WindowsUpdatePackage.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<Inventory.WindowsUpdatePackage.Builder>
    implements Inventory.WindowsUpdatePackageOrBuilder
     Details related to a Windows Update package.
     Field data and names are taken from Windows Update API IUpdate Interface:
     https://docs.microsoft.com/en-us/windows/win32/api/_wua/
     Descriptive fields like title, and description are localized based on
     the locale of the VM being updated.
     
    Protobuf type google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage
    • 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<Inventory.WindowsUpdatePackage.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<Inventory.WindowsUpdatePackage.Builder>
      • getDefaultInstanceForType

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

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

        public Inventory.WindowsUpdatePackage 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<Inventory.WindowsUpdatePackage.Builder>
      • setTitle

        public Inventory.WindowsUpdatePackage.Builder setTitle​(String value)
         The localized title of the update package.
         
        string title = 1;
        Parameters:
        value - The title to set.
        Returns:
        This builder for chaining.
      • setTitleBytes

        public Inventory.WindowsUpdatePackage.Builder setTitleBytes​(com.google.protobuf.ByteString value)
         The localized title of the update package.
         
        string title = 1;
        Parameters:
        value - The bytes for title to set.
        Returns:
        This builder for chaining.
      • setDescription

        public Inventory.WindowsUpdatePackage.Builder setDescription​(String value)
         The localized description of the update package.
         
        string description = 2;
        Parameters:
        value - The description to set.
        Returns:
        This builder for chaining.
      • clearDescription

        public Inventory.WindowsUpdatePackage.Builder clearDescription()
         The localized description of the update package.
         
        string description = 2;
        Returns:
        This builder for chaining.
      • setDescriptionBytes

        public Inventory.WindowsUpdatePackage.Builder setDescriptionBytes​(com.google.protobuf.ByteString value)
         The localized description of the update package.
         
        string description = 2;
        Parameters:
        value - The bytes for description to set.
        Returns:
        This builder for chaining.
      • getCategoriesCount

        public int getCategoriesCount()
         The categories that are associated with this update package.
         
        repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
        Specified by:
        getCategoriesCount in interface Inventory.WindowsUpdatePackageOrBuilder
      • clearCategories

        public Inventory.WindowsUpdatePackage.Builder clearCategories()
         The categories that are associated with this update package.
         
        repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
      • removeCategories

        public Inventory.WindowsUpdatePackage.Builder removeCategories​(int index)
         The categories that are associated with this update package.
         
        repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
      • getKbArticleIdsList

        public com.google.protobuf.ProtocolStringList getKbArticleIdsList()
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Specified by:
        getKbArticleIdsList in interface Inventory.WindowsUpdatePackageOrBuilder
        Returns:
        A list containing the kbArticleIds.
      • getKbArticleIdsCount

        public int getKbArticleIdsCount()
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Specified by:
        getKbArticleIdsCount in interface Inventory.WindowsUpdatePackageOrBuilder
        Returns:
        The count of kbArticleIds.
      • getKbArticleIds

        public String getKbArticleIds​(int index)
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Specified by:
        getKbArticleIds in interface Inventory.WindowsUpdatePackageOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The kbArticleIds at the given index.
      • getKbArticleIdsBytes

        public com.google.protobuf.ByteString getKbArticleIdsBytes​(int index)
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Specified by:
        getKbArticleIdsBytes in interface Inventory.WindowsUpdatePackageOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the kbArticleIds at the given index.
      • setKbArticleIds

        public Inventory.WindowsUpdatePackage.Builder setKbArticleIds​(int index,
                                                                      String value)
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Parameters:
        index - The index to set the value at.
        value - The kbArticleIds to set.
        Returns:
        This builder for chaining.
      • addKbArticleIds

        public Inventory.WindowsUpdatePackage.Builder addKbArticleIds​(String value)
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Parameters:
        value - The kbArticleIds to add.
        Returns:
        This builder for chaining.
      • addAllKbArticleIds

        public Inventory.WindowsUpdatePackage.Builder addAllKbArticleIds​(Iterable<String> values)
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Parameters:
        values - The kbArticleIds to add.
        Returns:
        This builder for chaining.
      • clearKbArticleIds

        public Inventory.WindowsUpdatePackage.Builder clearKbArticleIds()
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Returns:
        This builder for chaining.
      • addKbArticleIdsBytes

        public Inventory.WindowsUpdatePackage.Builder addKbArticleIdsBytes​(com.google.protobuf.ByteString value)
         A collection of Microsoft Knowledge Base article IDs that are associated
         with the update package.
         
        repeated string kb_article_ids = 4;
        Parameters:
        value - The bytes of the kbArticleIds to add.
        Returns:
        This builder for chaining.
      • getSupportUrlBytes

        public com.google.protobuf.ByteString getSupportUrlBytes()
         A hyperlink to the language-specific support information for the update.
         
        string support_url = 11;
        Specified by:
        getSupportUrlBytes in interface Inventory.WindowsUpdatePackageOrBuilder
        Returns:
        The bytes for supportUrl.
      • setSupportUrl

        public Inventory.WindowsUpdatePackage.Builder setSupportUrl​(String value)
         A hyperlink to the language-specific support information for the update.
         
        string support_url = 11;
        Parameters:
        value - The supportUrl to set.
        Returns:
        This builder for chaining.
      • clearSupportUrl

        public Inventory.WindowsUpdatePackage.Builder clearSupportUrl()
         A hyperlink to the language-specific support information for the update.
         
        string support_url = 11;
        Returns:
        This builder for chaining.
      • setSupportUrlBytes

        public Inventory.WindowsUpdatePackage.Builder setSupportUrlBytes​(com.google.protobuf.ByteString value)
         A hyperlink to the language-specific support information for the update.
         
        string support_url = 11;
        Parameters:
        value - The bytes for supportUrl to set.
        Returns:
        This builder for chaining.
      • getMoreInfoUrlsList

        public com.google.protobuf.ProtocolStringList getMoreInfoUrlsList()
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Specified by:
        getMoreInfoUrlsList in interface Inventory.WindowsUpdatePackageOrBuilder
        Returns:
        A list containing the moreInfoUrls.
      • getMoreInfoUrlsCount

        public int getMoreInfoUrlsCount()
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Specified by:
        getMoreInfoUrlsCount in interface Inventory.WindowsUpdatePackageOrBuilder
        Returns:
        The count of moreInfoUrls.
      • getMoreInfoUrls

        public String getMoreInfoUrls​(int index)
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Specified by:
        getMoreInfoUrls in interface Inventory.WindowsUpdatePackageOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The moreInfoUrls at the given index.
      • getMoreInfoUrlsBytes

        public com.google.protobuf.ByteString getMoreInfoUrlsBytes​(int index)
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Specified by:
        getMoreInfoUrlsBytes in interface Inventory.WindowsUpdatePackageOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the moreInfoUrls at the given index.
      • setMoreInfoUrls

        public Inventory.WindowsUpdatePackage.Builder setMoreInfoUrls​(int index,
                                                                      String value)
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Parameters:
        index - The index to set the value at.
        value - The moreInfoUrls to set.
        Returns:
        This builder for chaining.
      • addMoreInfoUrls

        public Inventory.WindowsUpdatePackage.Builder addMoreInfoUrls​(String value)
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Parameters:
        value - The moreInfoUrls to add.
        Returns:
        This builder for chaining.
      • addAllMoreInfoUrls

        public Inventory.WindowsUpdatePackage.Builder addAllMoreInfoUrls​(Iterable<String> values)
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Parameters:
        values - The moreInfoUrls to add.
        Returns:
        This builder for chaining.
      • clearMoreInfoUrls

        public Inventory.WindowsUpdatePackage.Builder clearMoreInfoUrls()
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Returns:
        This builder for chaining.
      • addMoreInfoUrlsBytes

        public Inventory.WindowsUpdatePackage.Builder addMoreInfoUrlsBytes​(com.google.protobuf.ByteString value)
         A collection of URLs that provide more information about the update
         package.
         
        repeated string more_info_urls = 5;
        Parameters:
        value - The bytes of the moreInfoUrls to add.
        Returns:
        This builder for chaining.
      • getUpdateIdBytes

        public com.google.protobuf.ByteString getUpdateIdBytes()
         Gets the identifier of an update package.  Stays the same across
         revisions.
         
        string update_id = 6;
        Specified by:
        getUpdateIdBytes in interface Inventory.WindowsUpdatePackageOrBuilder
        Returns:
        The bytes for updateId.
      • setUpdateId

        public Inventory.WindowsUpdatePackage.Builder setUpdateId​(String value)
         Gets the identifier of an update package.  Stays the same across
         revisions.
         
        string update_id = 6;
        Parameters:
        value - The updateId to set.
        Returns:
        This builder for chaining.
      • clearUpdateId

        public Inventory.WindowsUpdatePackage.Builder clearUpdateId()
         Gets the identifier of an update package.  Stays the same across
         revisions.
         
        string update_id = 6;
        Returns:
        This builder for chaining.
      • setUpdateIdBytes

        public Inventory.WindowsUpdatePackage.Builder setUpdateIdBytes​(com.google.protobuf.ByteString value)
         Gets the identifier of an update package.  Stays the same across
         revisions.
         
        string update_id = 6;
        Parameters:
        value - The bytes for updateId to set.
        Returns:
        This builder for chaining.
      • setRevisionNumber

        public Inventory.WindowsUpdatePackage.Builder setRevisionNumber​(int value)
         The revision number of this update package.
         
        int32 revision_number = 7;
        Parameters:
        value - The revisionNumber to set.
        Returns:
        This builder for chaining.
      • clearRevisionNumber

        public Inventory.WindowsUpdatePackage.Builder clearRevisionNumber()
         The revision number of this update package.
         
        int32 revision_number = 7;
        Returns:
        This builder for chaining.
      • hasLastDeploymentChangeTime

        public boolean hasLastDeploymentChangeTime()
         The last published date of the update, in (UTC) date and time.
         
        .google.protobuf.Timestamp last_deployment_change_time = 10;
        Specified by:
        hasLastDeploymentChangeTime in interface Inventory.WindowsUpdatePackageOrBuilder
        Returns:
        Whether the lastDeploymentChangeTime field is set.
      • getLastDeploymentChangeTime

        public com.google.protobuf.Timestamp getLastDeploymentChangeTime()
         The last published date of the update, in (UTC) date and time.
         
        .google.protobuf.Timestamp last_deployment_change_time = 10;
        Specified by:
        getLastDeploymentChangeTime in interface Inventory.WindowsUpdatePackageOrBuilder
        Returns:
        The lastDeploymentChangeTime.
      • setLastDeploymentChangeTime

        public Inventory.WindowsUpdatePackage.Builder setLastDeploymentChangeTime​(com.google.protobuf.Timestamp value)
         The last published date of the update, in (UTC) date and time.
         
        .google.protobuf.Timestamp last_deployment_change_time = 10;
      • setLastDeploymentChangeTime

        public Inventory.WindowsUpdatePackage.Builder setLastDeploymentChangeTime​(com.google.protobuf.Timestamp.Builder builderForValue)
         The last published date of the update, in (UTC) date and time.
         
        .google.protobuf.Timestamp last_deployment_change_time = 10;
      • mergeLastDeploymentChangeTime

        public Inventory.WindowsUpdatePackage.Builder mergeLastDeploymentChangeTime​(com.google.protobuf.Timestamp value)
         The last published date of the update, in (UTC) date and time.
         
        .google.protobuf.Timestamp last_deployment_change_time = 10;
      • clearLastDeploymentChangeTime

        public Inventory.WindowsUpdatePackage.Builder clearLastDeploymentChangeTime()
         The last published date of the update, in (UTC) date and time.
         
        .google.protobuf.Timestamp last_deployment_change_time = 10;
      • getLastDeploymentChangeTimeBuilder

        public com.google.protobuf.Timestamp.Builder getLastDeploymentChangeTimeBuilder()
         The last published date of the update, in (UTC) date and time.
         
        .google.protobuf.Timestamp last_deployment_change_time = 10;