Class PatchJobs.WindowsUpdateSettings.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<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.GeneratedMessageV3.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

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

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.WindowsUpdateSettings.Builder>
      • 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.
      • setClassifications

        public PatchJobs.WindowsUpdateSettings.Builder setClassifications​(int index,
                                                                          PatchJobs.WindowsUpdateSettings.Classification 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 classifications to set.
        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.
      • 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.
      • 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.