Class 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.GeneratedMessageV3
    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
    See Also:
    Serialized Form
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • 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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.GeneratedMessageV3
      • 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.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • 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
      • newBuilderForType

        public PatchJobs.PatchConfig.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • 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.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • 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.GeneratedMessageV3
      • getDefaultInstanceForType

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