Class PatchJobs.PatchConfig.Builder

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

    public static final class PatchJobs.PatchConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.PatchConfig.Builder>
    implements PatchJobs.PatchConfigOrBuilder
     Patch configuration specifications. Contains details on how to apply the
     patch(es) to a VM instance.
     
    Protobuf type google.cloud.osconfig.v1.PatchConfig
    • 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.PatchConfig.Builder>
      • clear

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

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

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

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

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

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

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

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

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

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

        public int getRebootConfigValue()
         Post-patch reboot settings.
         
        .google.cloud.osconfig.v1.PatchConfig.RebootConfig reboot_config = 1;
        Specified by:
        getRebootConfigValue in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        The enum numeric value on the wire for rebootConfig.
      • setRebootConfigValue

        public PatchJobs.PatchConfig.Builder setRebootConfigValue​(int value)
         Post-patch reboot settings.
         
        .google.cloud.osconfig.v1.PatchConfig.RebootConfig reboot_config = 1;
        Parameters:
        value - The enum numeric value on the wire for rebootConfig to set.
        Returns:
        This builder for chaining.
      • clearRebootConfig

        public PatchJobs.PatchConfig.Builder clearRebootConfig()
         Post-patch reboot settings.
         
        .google.cloud.osconfig.v1.PatchConfig.RebootConfig reboot_config = 1;
        Returns:
        This builder for chaining.
      • hasApt

        public boolean hasApt()
         Apt update settings. Use this setting to override the default `apt` patch
         rules.
         
        .google.cloud.osconfig.v1.AptSettings apt = 3;
        Specified by:
        hasApt in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        Whether the apt field is set.
      • clearApt

        public PatchJobs.PatchConfig.Builder clearApt()
         Apt update settings. Use this setting to override the default `apt` patch
         rules.
         
        .google.cloud.osconfig.v1.AptSettings apt = 3;
      • getAptBuilder

        public PatchJobs.AptSettings.Builder getAptBuilder()
         Apt update settings. Use this setting to override the default `apt` patch
         rules.
         
        .google.cloud.osconfig.v1.AptSettings apt = 3;
      • hasYum

        public boolean hasYum()
         Yum update settings. Use this setting to override the default `yum` patch
         rules.
         
        .google.cloud.osconfig.v1.YumSettings yum = 4;
        Specified by:
        hasYum in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        Whether the yum field is set.
      • clearYum

        public PatchJobs.PatchConfig.Builder clearYum()
         Yum update settings. Use this setting to override the default `yum` patch
         rules.
         
        .google.cloud.osconfig.v1.YumSettings yum = 4;
      • getYumBuilder

        public PatchJobs.YumSettings.Builder getYumBuilder()
         Yum update settings. Use this setting to override the default `yum` patch
         rules.
         
        .google.cloud.osconfig.v1.YumSettings yum = 4;
      • hasGoo

        public boolean hasGoo()
         Goo update settings. Use this setting to override the default `goo` patch
         rules.
         
        .google.cloud.osconfig.v1.GooSettings goo = 5;
        Specified by:
        hasGoo in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        Whether the goo field is set.
      • clearGoo

        public PatchJobs.PatchConfig.Builder clearGoo()
         Goo update settings. Use this setting to override the default `goo` patch
         rules.
         
        .google.cloud.osconfig.v1.GooSettings goo = 5;
      • getGooBuilder

        public PatchJobs.GooSettings.Builder getGooBuilder()
         Goo update settings. Use this setting to override the default `goo` patch
         rules.
         
        .google.cloud.osconfig.v1.GooSettings goo = 5;
      • hasZypper

        public boolean hasZypper()
         Zypper update settings. Use this setting to override the default `zypper`
         patch rules.
         
        .google.cloud.osconfig.v1.ZypperSettings zypper = 6;
        Specified by:
        hasZypper in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        Whether the zypper field is set.
      • clearZypper

        public PatchJobs.PatchConfig.Builder clearZypper()
         Zypper update settings. Use this setting to override the default `zypper`
         patch rules.
         
        .google.cloud.osconfig.v1.ZypperSettings zypper = 6;
      • getZypperBuilder

        public PatchJobs.ZypperSettings.Builder getZypperBuilder()
         Zypper update settings. Use this setting to override the default `zypper`
         patch rules.
         
        .google.cloud.osconfig.v1.ZypperSettings zypper = 6;
      • hasWindowsUpdate

        public boolean hasWindowsUpdate()
         Windows update settings. Use this override the default windows patch rules.
         
        .google.cloud.osconfig.v1.WindowsUpdateSettings windows_update = 7;
        Specified by:
        hasWindowsUpdate in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        Whether the windowsUpdate field is set.
      • clearWindowsUpdate

        public PatchJobs.PatchConfig.Builder clearWindowsUpdate()
         Windows update settings. Use this override the default windows patch rules.
         
        .google.cloud.osconfig.v1.WindowsUpdateSettings windows_update = 7;
      • getWindowsUpdateBuilder

        public PatchJobs.WindowsUpdateSettings.Builder getWindowsUpdateBuilder()
         Windows update settings. Use this override the default windows patch rules.
         
        .google.cloud.osconfig.v1.WindowsUpdateSettings windows_update = 7;
      • hasPreStep

        public boolean hasPreStep()
         The `ExecStep` to run before the patch update.
         
        .google.cloud.osconfig.v1.ExecStep pre_step = 8;
        Specified by:
        hasPreStep in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        Whether the preStep field is set.
      • clearPreStep

        public PatchJobs.PatchConfig.Builder clearPreStep()
         The `ExecStep` to run before the patch update.
         
        .google.cloud.osconfig.v1.ExecStep pre_step = 8;
      • getPreStepBuilder

        public PatchJobs.ExecStep.Builder getPreStepBuilder()
         The `ExecStep` to run before the patch update.
         
        .google.cloud.osconfig.v1.ExecStep pre_step = 8;
      • hasPostStep

        public boolean hasPostStep()
         The `ExecStep` to run after the patch update.
         
        .google.cloud.osconfig.v1.ExecStep post_step = 9;
        Specified by:
        hasPostStep in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        Whether the postStep field is set.
      • clearPostStep

        public PatchJobs.PatchConfig.Builder clearPostStep()
         The `ExecStep` to run after the patch update.
         
        .google.cloud.osconfig.v1.ExecStep post_step = 9;
      • getPostStepBuilder

        public PatchJobs.ExecStep.Builder getPostStepBuilder()
         The `ExecStep` to run after the patch update.
         
        .google.cloud.osconfig.v1.ExecStep post_step = 9;
      • getMigInstancesAllowed

        public boolean getMigInstancesAllowed()
         Allows the patch job to run on Managed instance groups (MIGs).
         
        bool mig_instances_allowed = 10;
        Specified by:
        getMigInstancesAllowed in interface PatchJobs.PatchConfigOrBuilder
        Returns:
        The migInstancesAllowed.
      • setMigInstancesAllowed

        public PatchJobs.PatchConfig.Builder setMigInstancesAllowed​(boolean value)
         Allows the patch job to run on Managed instance groups (MIGs).
         
        bool mig_instances_allowed = 10;
        Parameters:
        value - The migInstancesAllowed to set.
        Returns:
        This builder for chaining.
      • clearMigInstancesAllowed

        public PatchJobs.PatchConfig.Builder clearMigInstancesAllowed()
         Allows the patch job to run on Managed instance groups (MIGs).
         
        bool mig_instances_allowed = 10;
        Returns:
        This builder for chaining.
      • setUnknownFields

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

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