Class PatchJobs.YumSettings.Builder

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

    public static final class PatchJobs.YumSettings.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.YumSettings.Builder>
    implements PatchJobs.YumSettingsOrBuilder
     Yum patching is performed by executing `yum update`. Additional options
     can be set to control how this is executed.
    
     Note that not all settings are supported on all platforms.
     
    Protobuf type google.cloud.osconfig.v1.YumSettings
    • 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.YumSettings.Builder>
      • clear

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

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

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

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

        public PatchJobs.YumSettings.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.YumSettings.Builder>
      • clearField

        public PatchJobs.YumSettings.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.YumSettings.Builder>
      • clearOneof

        public PatchJobs.YumSettings.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.YumSettings.Builder>
      • setRepeatedField

        public PatchJobs.YumSettings.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.YumSettings.Builder>
      • addRepeatedField

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

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

        public boolean getSecurity()
         Adds the `--security` flag to `yum update`. Not supported on
         all platforms.
         
        bool security = 1;
        Specified by:
        getSecurity in interface PatchJobs.YumSettingsOrBuilder
        Returns:
        The security.
      • setSecurity

        public PatchJobs.YumSettings.Builder setSecurity​(boolean value)
         Adds the `--security` flag to `yum update`. Not supported on
         all platforms.
         
        bool security = 1;
        Parameters:
        value - The security to set.
        Returns:
        This builder for chaining.
      • clearSecurity

        public PatchJobs.YumSettings.Builder clearSecurity()
         Adds the `--security` flag to `yum update`. Not supported on
         all platforms.
         
        bool security = 1;
        Returns:
        This builder for chaining.
      • getMinimal

        public boolean getMinimal()
         Will cause patch to run `yum update-minimal` instead.
         
        bool minimal = 2;
        Specified by:
        getMinimal in interface PatchJobs.YumSettingsOrBuilder
        Returns:
        The minimal.
      • setMinimal

        public PatchJobs.YumSettings.Builder setMinimal​(boolean value)
         Will cause patch to run `yum update-minimal` instead.
         
        bool minimal = 2;
        Parameters:
        value - The minimal to set.
        Returns:
        This builder for chaining.
      • clearMinimal

        public PatchJobs.YumSettings.Builder clearMinimal()
         Will cause patch to run `yum update-minimal` instead.
         
        bool minimal = 2;
        Returns:
        This builder for chaining.
      • getExcludesList

        public com.google.protobuf.ProtocolStringList getExcludesList()
         List of packages to exclude from update. These packages are excluded by
         using the yum `--exclude` flag.
         
        repeated string excludes = 3;
        Specified by:
        getExcludesList in interface PatchJobs.YumSettingsOrBuilder
        Returns:
        A list containing the excludes.
      • getExcludesCount

        public int getExcludesCount()
         List of packages to exclude from update. These packages are excluded by
         using the yum `--exclude` flag.
         
        repeated string excludes = 3;
        Specified by:
        getExcludesCount in interface PatchJobs.YumSettingsOrBuilder
        Returns:
        The count of excludes.
      • getExcludes

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

        public PatchJobs.YumSettings.Builder setExcludes​(int index,
                                                         String value)
         List of packages to exclude from update. These packages are excluded by
         using the yum `--exclude` flag.
         
        repeated string excludes = 3;
        Parameters:
        index - The index to set the value at.
        value - The excludes to set.
        Returns:
        This builder for chaining.
      • addExcludes

        public PatchJobs.YumSettings.Builder addExcludes​(String value)
         List of packages to exclude from update. These packages are excluded by
         using the yum `--exclude` flag.
         
        repeated string excludes = 3;
        Parameters:
        value - The excludes to add.
        Returns:
        This builder for chaining.
      • addAllExcludes

        public PatchJobs.YumSettings.Builder addAllExcludes​(Iterable<String> values)
         List of packages to exclude from update. These packages are excluded by
         using the yum `--exclude` flag.
         
        repeated string excludes = 3;
        Parameters:
        values - The excludes to add.
        Returns:
        This builder for chaining.
      • clearExcludes

        public PatchJobs.YumSettings.Builder clearExcludes()
         List of packages to exclude from update. These packages are excluded by
         using the yum `--exclude` flag.
         
        repeated string excludes = 3;
        Returns:
        This builder for chaining.
      • addExcludesBytes

        public PatchJobs.YumSettings.Builder addExcludesBytes​(com.google.protobuf.ByteString value)
         List of packages to exclude from update. These packages are excluded by
         using the yum `--exclude` flag.
         
        repeated string excludes = 3;
        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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Specified by:
        getExclusivePackagesList in interface PatchJobs.YumSettingsOrBuilder
        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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Specified by:
        getExclusivePackagesCount in interface PatchJobs.YumSettingsOrBuilder
        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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Specified by:
        getExclusivePackages in interface PatchJobs.YumSettingsOrBuilder
        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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Specified by:
        getExclusivePackagesBytes in interface PatchJobs.YumSettingsOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the exclusivePackages at the given index.
      • setExclusivePackages

        public PatchJobs.YumSettings.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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Parameters:
        index - The index to set the value at.
        value - The exclusivePackages to set.
        Returns:
        This builder for chaining.
      • addExclusivePackages

        public PatchJobs.YumSettings.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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Parameters:
        value - The exclusivePackages to add.
        Returns:
        This builder for chaining.
      • addAllExclusivePackages

        public PatchJobs.YumSettings.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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Parameters:
        values - The exclusivePackages to add.
        Returns:
        This builder for chaining.
      • clearExclusivePackages

        public PatchJobs.YumSettings.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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Returns:
        This builder for chaining.
      • addExclusivePackagesBytes

        public PatchJobs.YumSettings.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 must not be specified with any other patch
         configuration fields.
         
        repeated string exclusive_packages = 4;
        Parameters:
        value - The bytes of the exclusivePackages to add.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final PatchJobs.YumSettings.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.YumSettings.Builder>
      • mergeUnknownFields

        public final PatchJobs.YumSettings.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.YumSettings.Builder>