Class PatchJobs.WindowsUpdateSettings.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.WindowsUpdateSettings.Builder>
com.google.cloud.osconfig.v1beta.PatchJobs.WindowsUpdateSettings.Builder
All Implemented Interfaces:
PatchJobs.WindowsUpdateSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
PatchJobs.WindowsUpdateSettings

public static final class PatchJobs.WindowsUpdateSettings.Builder extends com.google.protobuf.GeneratedMessage.Builder<PatchJobs.WindowsUpdateSettings.Builder> implements PatchJobs.WindowsUpdateSettingsOrBuilder
 Windows patching is performed using the Windows Update Agent.
 
Protobuf type google.cloud.osconfig.v1beta.WindowsUpdateSettings
  • 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<PatchJobs.WindowsUpdateSettings.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<PatchJobs.WindowsUpdateSettings.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<PatchJobs.WindowsUpdateSettings.Builder>
    • getDefaultInstanceForType

      public PatchJobs.WindowsUpdateSettings 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 PatchJobs.WindowsUpdateSettings buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public PatchJobs.WindowsUpdateSettings.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<PatchJobs.WindowsUpdateSettings.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<PatchJobs.WindowsUpdateSettings.Builder>
    • mergeFrom

      public PatchJobs.WindowsUpdateSettings.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<PatchJobs.WindowsUpdateSettings.Builder>
      Throws:
      IOException
    • getClassificationsList

      public List<PatchJobs.WindowsUpdateSettings.Classification> getClassificationsList()
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Specified by:
      getClassificationsList in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Returns:
      A list containing the classifications.
    • getClassificationsCount

      public int getClassificationsCount()
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Specified by:
      getClassificationsCount in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Returns:
      The count of classifications.
    • getClassifications

      public PatchJobs.WindowsUpdateSettings.Classification getClassifications(int index)
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Specified by:
      getClassifications in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The classifications at the given index.
    • setClassifications

       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Parameters:
      index - The index to set the value at.
      value - The classifications to set.
      Returns:
      This builder for chaining.
    • addClassifications

       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Parameters:
      value - The classifications to add.
      Returns:
      This builder for chaining.
    • addAllClassifications

       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Parameters:
      values - The classifications to add.
      Returns:
      This builder for chaining.
    • clearClassifications

      public PatchJobs.WindowsUpdateSettings.Builder clearClassifications()
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Returns:
      This builder for chaining.
    • getClassificationsValueList

      public List<Integer> getClassificationsValueList()
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Specified by:
      getClassificationsValueList in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Returns:
      A list containing the enum numeric values on the wire for classifications.
    • getClassificationsValue

      public int getClassificationsValue(int index)
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Specified by:
      getClassificationsValue in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The enum numeric value on the wire of classifications at the given index.
    • setClassificationsValue

      public PatchJobs.WindowsUpdateSettings.Builder setClassificationsValue(int index, int value)
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Parameters:
      index - The index to set the value at.
      value - The enum numeric value on the wire for classifications to set.
      Returns:
      This builder for chaining.
    • addClassificationsValue

      public PatchJobs.WindowsUpdateSettings.Builder addClassificationsValue(int value)
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Parameters:
      value - The enum numeric value on the wire for classifications to add.
      Returns:
      This builder for chaining.
    • addAllClassificationsValue

      public PatchJobs.WindowsUpdateSettings.Builder addAllClassificationsValue(Iterable<Integer> values)
       Only apply updates of these windows update classifications. If empty, all
       updates are applied.
       
      repeated .google.cloud.osconfig.v1beta.WindowsUpdateSettings.Classification classifications = 1;
      Parameters:
      values - The enum numeric values on the wire for classifications to add.
      Returns:
      This builder for chaining.
    • getExcludesList

      public com.google.protobuf.ProtocolStringList getExcludesList()
       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Specified by:
      getExcludesList in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Returns:
      A list containing the excludes.
    • getExcludesCount

      public int getExcludesCount()
       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Specified by:
      getExcludesCount in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Returns:
      The count of excludes.
    • getExcludes

      public String getExcludes(int index)
       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Specified by:
      getExcludes in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The excludes at the given index.
    • getExcludesBytes

      public com.google.protobuf.ByteString getExcludesBytes(int index)
       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Specified by:
      getExcludesBytes in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the excludes at the given index.
    • setExcludes

      public PatchJobs.WindowsUpdateSettings.Builder setExcludes(int index, String value)
       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Parameters:
      index - The index to set the value at.
      value - The excludes to set.
      Returns:
      This builder for chaining.
    • addExcludes

      public PatchJobs.WindowsUpdateSettings.Builder addExcludes(String value)
       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Parameters:
      value - The excludes to add.
      Returns:
      This builder for chaining.
    • addAllExcludes

      public PatchJobs.WindowsUpdateSettings.Builder addAllExcludes(Iterable<String> values)
       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Parameters:
      values - The excludes to add.
      Returns:
      This builder for chaining.
    • clearExcludes

       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Returns:
      This builder for chaining.
    • addExcludesBytes

      public PatchJobs.WindowsUpdateSettings.Builder addExcludesBytes(com.google.protobuf.ByteString value)
       List of KBs to exclude from update.
       
      repeated string excludes = 2;
      Parameters:
      value - The bytes of the excludes to add.
      Returns:
      This builder for chaining.
    • getExclusivePatchesList

      public com.google.protobuf.ProtocolStringList getExclusivePatchesList()
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Specified by:
      getExclusivePatchesList in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Returns:
      A list containing the exclusivePatches.
    • getExclusivePatchesCount

      public int getExclusivePatchesCount()
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Specified by:
      getExclusivePatchesCount in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Returns:
      The count of exclusivePatches.
    • getExclusivePatches

      public String getExclusivePatches(int index)
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Specified by:
      getExclusivePatches in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The exclusivePatches at the given index.
    • getExclusivePatchesBytes

      public com.google.protobuf.ByteString getExclusivePatchesBytes(int index)
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Specified by:
      getExclusivePatchesBytes in interface PatchJobs.WindowsUpdateSettingsOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the exclusivePatches at the given index.
    • setExclusivePatches

      public PatchJobs.WindowsUpdateSettings.Builder setExclusivePatches(int index, String value)
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Parameters:
      index - The index to set the value at.
      value - The exclusivePatches to set.
      Returns:
      This builder for chaining.
    • addExclusivePatches

      public PatchJobs.WindowsUpdateSettings.Builder addExclusivePatches(String value)
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Parameters:
      value - The exclusivePatches to add.
      Returns:
      This builder for chaining.
    • addAllExclusivePatches

      public PatchJobs.WindowsUpdateSettings.Builder addAllExclusivePatches(Iterable<String> values)
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Parameters:
      values - The exclusivePatches to add.
      Returns:
      This builder for chaining.
    • clearExclusivePatches

      public PatchJobs.WindowsUpdateSettings.Builder clearExclusivePatches()
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Returns:
      This builder for chaining.
    • addExclusivePatchesBytes

      public PatchJobs.WindowsUpdateSettings.Builder addExclusivePatchesBytes(com.google.protobuf.ByteString value)
       An exclusive list of kbs to be updated. These are the only patches
       that will be updated. This field must not be used with other
       patch configurations.
       
      repeated string exclusive_patches = 3;
      Parameters:
      value - The bytes of the exclusivePatches to add.
      Returns:
      This builder for chaining.