Class PatchJobs.AptSettings.Builder

  • All Implemented Interfaces:
    PatchJobs.AptSettingsOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    PatchJobs.AptSettings

    public static final class PatchJobs.AptSettings.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
    implements PatchJobs.AptSettingsOrBuilder
     Apt patching is completed by executing `apt-get update && apt-get
     upgrade`. Additional options can be set to control how this is executed.
     
    Protobuf type google.cloud.osconfig.v1.AptSettings
    • 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.AptSettings.Builder>
      • clear

        public PatchJobs.AptSettings.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.GeneratedMessageV3.Builder<PatchJobs.AptSettings.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.AptSettings.Builder>
      • getDefaultInstanceForType

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

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

        public PatchJobs.AptSettings buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public PatchJobs.AptSettings.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
      • clearField

        public PatchJobs.AptSettings.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
      • clearOneof

        public PatchJobs.AptSettings.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
      • setRepeatedField

        public PatchJobs.AptSettings.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              int index,
                                                              Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
      • addRepeatedField

        public PatchJobs.AptSettings.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                              Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.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.AptSettings.Builder>
      • mergeFrom

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

        public int getTypeValue()
         By changing the type to DIST, the patching is performed
         using `apt-get dist-upgrade` instead.
         
        .google.cloud.osconfig.v1.AptSettings.Type type = 1;
        Specified by:
        getTypeValue in interface PatchJobs.AptSettingsOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public PatchJobs.AptSettings.Builder setTypeValue​(int value)
         By changing the type to DIST, the patching is performed
         using `apt-get dist-upgrade` instead.
         
        .google.cloud.osconfig.v1.AptSettings.Type type = 1;
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • setType

        public PatchJobs.AptSettings.Builder setType​(PatchJobs.AptSettings.Type value)
         By changing the type to DIST, the patching is performed
         using `apt-get dist-upgrade` instead.
         
        .google.cloud.osconfig.v1.AptSettings.Type type = 1;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public PatchJobs.AptSettings.Builder clearType()
         By changing the type to DIST, the patching is performed
         using `apt-get dist-upgrade` instead.
         
        .google.cloud.osconfig.v1.AptSettings.Type type = 1;
        Returns:
        This builder for chaining.
      • getExcludesList

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

        public int getExcludesCount()
         List of packages to exclude from update. These packages will be excluded
         
        repeated string excludes = 2;
        Specified by:
        getExcludesCount in interface PatchJobs.AptSettingsOrBuilder
        Returns:
        The count of excludes.
      • getExcludes

        public String getExcludes​(int index)
         List of packages to exclude from update. These packages will be excluded
         
        repeated string excludes = 2;
        Specified by:
        getExcludes in interface PatchJobs.AptSettingsOrBuilder
        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 packages to exclude from update. These packages will be excluded
         
        repeated string excludes = 2;
        Specified by:
        getExcludesBytes in interface PatchJobs.AptSettingsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the excludes at the given index.
      • setExcludes

        public PatchJobs.AptSettings.Builder setExcludes​(int index,
                                                         String value)
         List of packages to exclude from update. These packages will be excluded
         
        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.AptSettings.Builder addExcludes​(String value)
         List of packages to exclude from update. These packages will be excluded
         
        repeated string excludes = 2;
        Parameters:
        value - The excludes to add.
        Returns:
        This builder for chaining.
      • addAllExcludes

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

        public PatchJobs.AptSettings.Builder clearExcludes()
         List of packages to exclude from update. These packages will be excluded
         
        repeated string excludes = 2;
        Returns:
        This builder for chaining.
      • addExcludesBytes

        public PatchJobs.AptSettings.Builder addExcludesBytes​(com.google.protobuf.ByteString value)
         List of packages to exclude from update. These packages will be excluded
         
        repeated string excludes = 2;
        Parameters:
        value - The bytes of the excludes to add.
        Returns:
        This builder for chaining.
      • getExclusivePackagesList

        public com.google.protobuf.ProtocolStringList getExclusivePackagesList()
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Specified by:
        getExclusivePackagesList in interface PatchJobs.AptSettingsOrBuilder
        Returns:
        A list containing the exclusivePackages.
      • getExclusivePackagesCount

        public int getExclusivePackagesCount()
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Specified by:
        getExclusivePackagesCount in interface PatchJobs.AptSettingsOrBuilder
        Returns:
        The count of exclusivePackages.
      • getExclusivePackages

        public String getExclusivePackages​(int index)
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Specified by:
        getExclusivePackages in interface PatchJobs.AptSettingsOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The exclusivePackages at the given index.
      • getExclusivePackagesBytes

        public com.google.protobuf.ByteString getExclusivePackagesBytes​(int index)
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Specified by:
        getExclusivePackagesBytes in interface PatchJobs.AptSettingsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the exclusivePackages at the given index.
      • setExclusivePackages

        public PatchJobs.AptSettings.Builder setExclusivePackages​(int index,
                                                                  String value)
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Parameters:
        index - The index to set the value at.
        value - The exclusivePackages to set.
        Returns:
        This builder for chaining.
      • addExclusivePackages

        public PatchJobs.AptSettings.Builder addExclusivePackages​(String value)
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Parameters:
        value - The exclusivePackages to add.
        Returns:
        This builder for chaining.
      • addAllExclusivePackages

        public PatchJobs.AptSettings.Builder addAllExclusivePackages​(Iterable<String> values)
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Parameters:
        values - The exclusivePackages to add.
        Returns:
        This builder for chaining.
      • clearExclusivePackages

        public PatchJobs.AptSettings.Builder clearExclusivePackages()
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Returns:
        This builder for chaining.
      • addExclusivePackagesBytes

        public PatchJobs.AptSettings.Builder addExclusivePackagesBytes​(com.google.protobuf.ByteString value)
         An exclusive list of packages to be updated. These are the only packages
         that will be updated. If these packages are not installed, they will be
         ignored. This field cannot be specified with any other patch configuration
         fields.
         
        repeated string exclusive_packages = 3;
        Parameters:
        value - The bytes of the exclusivePackages to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final PatchJobs.AptSettings.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>
      • mergeUnknownFields

        public final PatchJobs.AptSettings.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.AptSettings.Builder>