Class PatchJobs.PatchConfig.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchConfig.Builder>
com.google.cloud.osconfig.v1beta.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.GeneratedMessage.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.v1beta.PatchConfig
  • 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.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.GeneratedMessage.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.GeneratedMessage.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
    • mergeFrom

      public PatchJobs.PatchConfig.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.PatchConfig.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.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.v1beta.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.v1beta.PatchConfig.RebootConfig reboot_config = 1;
      Parameters:
      value - The enum numeric value on the wire for rebootConfig to set.
      Returns:
      This builder for chaining.
    • getRebootConfig

      public PatchJobs.PatchConfig.RebootConfig getRebootConfig()
       Post-patch reboot settings.
       
      .google.cloud.osconfig.v1beta.PatchConfig.RebootConfig reboot_config = 1;
      Specified by:
      getRebootConfig in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      The rebootConfig.
    • setRebootConfig

       Post-patch reboot settings.
       
      .google.cloud.osconfig.v1beta.PatchConfig.RebootConfig reboot_config = 1;
      Parameters:
      value - The rebootConfig to set.
      Returns:
      This builder for chaining.
    • clearRebootConfig

      public PatchJobs.PatchConfig.Builder clearRebootConfig()
       Post-patch reboot settings.
       
      .google.cloud.osconfig.v1beta.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.v1beta.AptSettings apt = 3;
      Specified by:
      hasApt in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      Whether the apt field is set.
    • getApt

      public PatchJobs.AptSettings getApt()
       Apt update settings. Use this setting to override the default `apt` patch
       rules.
       
      .google.cloud.osconfig.v1beta.AptSettings apt = 3;
      Specified by:
      getApt in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      The apt.
    • setApt

       Apt update settings. Use this setting to override the default `apt` patch
       rules.
       
      .google.cloud.osconfig.v1beta.AptSettings apt = 3;
    • setApt

       Apt update settings. Use this setting to override the default `apt` patch
       rules.
       
      .google.cloud.osconfig.v1beta.AptSettings apt = 3;
    • mergeApt

       Apt update settings. Use this setting to override the default `apt` patch
       rules.
       
      .google.cloud.osconfig.v1beta.AptSettings apt = 3;
    • clearApt

      public PatchJobs.PatchConfig.Builder clearApt()
       Apt update settings. Use this setting to override the default `apt` patch
       rules.
       
      .google.cloud.osconfig.v1beta.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.v1beta.AptSettings apt = 3;
    • getAptOrBuilder

      public PatchJobs.AptSettingsOrBuilder getAptOrBuilder()
       Apt update settings. Use this setting to override the default `apt` patch
       rules.
       
      .google.cloud.osconfig.v1beta.AptSettings apt = 3;
      Specified by:
      getAptOrBuilder in interface PatchJobs.PatchConfigOrBuilder
    • hasYum

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

      public PatchJobs.YumSettings getYum()
       Yum update settings. Use this setting to override the default `yum` patch
       rules.
       
      .google.cloud.osconfig.v1beta.YumSettings yum = 4;
      Specified by:
      getYum in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      The yum.
    • setYum

       Yum update settings. Use this setting to override the default `yum` patch
       rules.
       
      .google.cloud.osconfig.v1beta.YumSettings yum = 4;
    • setYum

       Yum update settings. Use this setting to override the default `yum` patch
       rules.
       
      .google.cloud.osconfig.v1beta.YumSettings yum = 4;
    • mergeYum

       Yum update settings. Use this setting to override the default `yum` patch
       rules.
       
      .google.cloud.osconfig.v1beta.YumSettings yum = 4;
    • clearYum

      public PatchJobs.PatchConfig.Builder clearYum()
       Yum update settings. Use this setting to override the default `yum` patch
       rules.
       
      .google.cloud.osconfig.v1beta.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.v1beta.YumSettings yum = 4;
    • getYumOrBuilder

      public PatchJobs.YumSettingsOrBuilder getYumOrBuilder()
       Yum update settings. Use this setting to override the default `yum` patch
       rules.
       
      .google.cloud.osconfig.v1beta.YumSettings yum = 4;
      Specified by:
      getYumOrBuilder in interface PatchJobs.PatchConfigOrBuilder
    • hasGoo

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

      public PatchJobs.GooSettings getGoo()
       Goo update settings. Use this setting to override the default `goo` patch
       rules.
       
      .google.cloud.osconfig.v1beta.GooSettings goo = 5;
      Specified by:
      getGoo in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      The goo.
    • setGoo

       Goo update settings. Use this setting to override the default `goo` patch
       rules.
       
      .google.cloud.osconfig.v1beta.GooSettings goo = 5;
    • setGoo

       Goo update settings. Use this setting to override the default `goo` patch
       rules.
       
      .google.cloud.osconfig.v1beta.GooSettings goo = 5;
    • mergeGoo

       Goo update settings. Use this setting to override the default `goo` patch
       rules.
       
      .google.cloud.osconfig.v1beta.GooSettings goo = 5;
    • clearGoo

      public PatchJobs.PatchConfig.Builder clearGoo()
       Goo update settings. Use this setting to override the default `goo` patch
       rules.
       
      .google.cloud.osconfig.v1beta.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.v1beta.GooSettings goo = 5;
    • getGooOrBuilder

      public PatchJobs.GooSettingsOrBuilder getGooOrBuilder()
       Goo update settings. Use this setting to override the default `goo` patch
       rules.
       
      .google.cloud.osconfig.v1beta.GooSettings goo = 5;
      Specified by:
      getGooOrBuilder in interface PatchJobs.PatchConfigOrBuilder
    • hasZypper

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

      public PatchJobs.ZypperSettings getZypper()
       Zypper update settings. Use this setting to override the default `zypper`
       patch rules.
       
      .google.cloud.osconfig.v1beta.ZypperSettings zypper = 6;
      Specified by:
      getZypper in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      The zypper.
    • setZypper

       Zypper update settings. Use this setting to override the default `zypper`
       patch rules.
       
      .google.cloud.osconfig.v1beta.ZypperSettings zypper = 6;
    • setZypper

       Zypper update settings. Use this setting to override the default `zypper`
       patch rules.
       
      .google.cloud.osconfig.v1beta.ZypperSettings zypper = 6;
    • mergeZypper

       Zypper update settings. Use this setting to override the default `zypper`
       patch rules.
       
      .google.cloud.osconfig.v1beta.ZypperSettings zypper = 6;
    • clearZypper

      public PatchJobs.PatchConfig.Builder clearZypper()
       Zypper update settings. Use this setting to override the default `zypper`
       patch rules.
       
      .google.cloud.osconfig.v1beta.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.v1beta.ZypperSettings zypper = 6;
    • getZypperOrBuilder

      public PatchJobs.ZypperSettingsOrBuilder getZypperOrBuilder()
       Zypper update settings. Use this setting to override the default `zypper`
       patch rules.
       
      .google.cloud.osconfig.v1beta.ZypperSettings zypper = 6;
      Specified by:
      getZypperOrBuilder in interface PatchJobs.PatchConfigOrBuilder
    • hasWindowsUpdate

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

      public PatchJobs.WindowsUpdateSettings getWindowsUpdate()
       Windows update settings. Use this override the default windows patch rules.
       
      .google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7;
      Specified by:
      getWindowsUpdate in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      The windowsUpdate.
    • setWindowsUpdate

       Windows update settings. Use this override the default windows patch rules.
       
      .google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7;
    • setWindowsUpdate

       Windows update settings. Use this override the default windows patch rules.
       
      .google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7;
    • mergeWindowsUpdate

       Windows update settings. Use this override the default windows patch rules.
       
      .google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7;
    • clearWindowsUpdate

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

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

      public PatchJobs.WindowsUpdateSettingsOrBuilder getWindowsUpdateOrBuilder()
       Windows update settings. Use this override the default windows patch rules.
       
      .google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7;
      Specified by:
      getWindowsUpdateOrBuilder in interface PatchJobs.PatchConfigOrBuilder
    • hasPreStep

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

      public PatchJobs.ExecStep getPreStep()
       The `ExecStep` to run before the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep pre_step = 8;
      Specified by:
      getPreStep in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      The preStep.
    • setPreStep

       The `ExecStep` to run before the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep pre_step = 8;
    • setPreStep

      public PatchJobs.PatchConfig.Builder setPreStep(PatchJobs.ExecStep.Builder builderForValue)
       The `ExecStep` to run before the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep pre_step = 8;
    • mergePreStep

       The `ExecStep` to run before the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep pre_step = 8;
    • clearPreStep

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

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

      public PatchJobs.ExecStepOrBuilder getPreStepOrBuilder()
       The `ExecStep` to run before the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep pre_step = 8;
      Specified by:
      getPreStepOrBuilder in interface PatchJobs.PatchConfigOrBuilder
    • hasPostStep

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

      public PatchJobs.ExecStep getPostStep()
       The `ExecStep` to run after the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep post_step = 9;
      Specified by:
      getPostStep in interface PatchJobs.PatchConfigOrBuilder
      Returns:
      The postStep.
    • setPostStep

       The `ExecStep` to run after the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep post_step = 9;
    • setPostStep

      public PatchJobs.PatchConfig.Builder setPostStep(PatchJobs.ExecStep.Builder builderForValue)
       The `ExecStep` to run after the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep post_step = 9;
    • mergePostStep

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

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

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

      public PatchJobs.ExecStepOrBuilder getPostStepOrBuilder()
       The `ExecStep` to run after the patch update.
       
      .google.cloud.osconfig.v1beta.ExecStep post_step = 9;
      Specified by:
      getPostStepOrBuilder in interface PatchJobs.PatchConfigOrBuilder
    • 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.