Class PatchJobs.PatchConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.osconfig.v1beta.PatchJobs.PatchConfig
All Implemented Interfaces:
PatchJobs.PatchConfigOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable
Enclosing class:
PatchJobs

public static final class PatchJobs.PatchConfig extends com.google.protobuf.GeneratedMessage 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
See Also:
  • Field Details

  • 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
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • 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.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • writeTo

      public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
      Specified by:
      writeTo in interface com.google.protobuf.MessageLite
      Overrides:
      writeTo in class com.google.protobuf.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • equals

      public boolean equals(Object obj)
      Specified by:
      equals in interface com.google.protobuf.Message
      Overrides:
      equals in class com.google.protobuf.AbstractMessage
    • hashCode

      public int hashCode()
      Specified by:
      hashCode in interface com.google.protobuf.Message
      Overrides:
      hashCode in class com.google.protobuf.AbstractMessage
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
      Throws:
      com.google.protobuf.InvalidProtocolBufferException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PatchJobs.PatchConfig parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static PatchJobs.PatchConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static PatchJobs.PatchConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static PatchJobs.PatchConfig.Builder newBuilder()
    • newBuilder

      public static PatchJobs.PatchConfig.Builder newBuilder(PatchJobs.PatchConfig prototype)
    • toBuilder

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

      protected PatchJobs.PatchConfig.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static PatchJobs.PatchConfig getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<PatchJobs.PatchConfig> parser()
    • getParserForType

      public com.google.protobuf.Parser<PatchJobs.PatchConfig> getParserForType()
      Specified by:
      getParserForType in interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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