Class Inventory.WindowsUpdatePackage.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<Inventory.WindowsUpdatePackage.Builder>
com.google.cloud.osconfig.v1alpha.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.GeneratedMessage.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 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<Inventory.WindowsUpdatePackage.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<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.GeneratedMessage.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

      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
    • mergeFrom

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

      public Inventory.WindowsUpdatePackage.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<Inventory.WindowsUpdatePackage.Builder>
      Throws:
      IOException
    • getTitle

      public String getTitle()
       The localized title of the update package.
       
      string title = 1;
      Specified by:
      getTitle in interface Inventory.WindowsUpdatePackageOrBuilder
      Returns:
      The title.
    • getTitleBytes

      public com.google.protobuf.ByteString getTitleBytes()
       The localized title of the update package.
       
      string title = 1;
      Specified by:
      getTitleBytes in interface Inventory.WindowsUpdatePackageOrBuilder
      Returns:
      The bytes for title.
    • setTitle

       The localized title of the update package.
       
      string title = 1;
      Parameters:
      value - The title to set.
      Returns:
      This builder for chaining.
    • clearTitle

       The localized title of the update package.
       
      string title = 1;
      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.
    • getDescription

      public String getDescription()
       The localized description of the update package.
       
      string description = 2;
      Specified by:
      getDescription in interface Inventory.WindowsUpdatePackageOrBuilder
      Returns:
      The description.
    • getDescriptionBytes

      public com.google.protobuf.ByteString getDescriptionBytes()
       The localized description of the update package.
       
      string description = 2;
      Specified by:
      getDescriptionBytes in interface Inventory.WindowsUpdatePackageOrBuilder
      Returns:
      The bytes for description.
    • 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.
    • getCategoriesList

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
      Specified by:
      getCategoriesList in interface Inventory.WindowsUpdatePackageOrBuilder
    • 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
    • getCategories

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

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
    • setCategories

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
    • addCategories

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
    • addCategories

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
    • addCategories

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
    • addCategories

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
    • addAllCategories

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
    • 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;
    • getCategoriesBuilder

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

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

      public List<? extends Inventory.WindowsUpdatePackage.WindowsUpdateCategoryOrBuilder> getCategoriesOrBuilderList()
       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
      Specified by:
      getCategoriesOrBuilderList in interface Inventory.WindowsUpdatePackageOrBuilder
    • addCategoriesBuilder

       The categories that are associated with this update package.
       
      repeated .google.cloud.osconfig.v1alpha.Inventory.WindowsUpdatePackage.WindowsUpdateCategory categories = 3;
    • addCategoriesBuilder

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

       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.
    • getSupportUrl

      public String getSupportUrl()
       A hyperlink to the language-specific support information for the update.
       
      string support_url = 11;
      Specified by:
      getSupportUrl in interface Inventory.WindowsUpdatePackageOrBuilder
      Returns:
      The supportUrl.
    • 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.
    • getUpdateId

      public String getUpdateId()
       Gets the identifier of an update package.  Stays the same across
       revisions.
       
      string update_id = 6;
      Specified by:
      getUpdateId in interface Inventory.WindowsUpdatePackageOrBuilder
      Returns:
      The updateId.
    • 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

       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.
    • getRevisionNumber

      public int getRevisionNumber()
       The revision number of this update package.
       
      int32 revision_number = 7;
      Specified by:
      getRevisionNumber in interface Inventory.WindowsUpdatePackageOrBuilder
      Returns:
      The revisionNumber.
    • 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;
    • getLastDeploymentChangeTimeOrBuilder

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