Package com.google.cloud.osconfig.v1beta
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()clearApt()Apt update settings.clearGoo()Goo update settings.Allows the patch job to run on Managed instance groups (MIGs).The `ExecStep` to run after the patch update.The `ExecStep` to run before the patch update.Post-patch reboot settings.Windows update settings.clearYum()Yum update settings.Zypper update settings.getApt()Apt update settings.Apt update settings.Apt update settings.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetGoo()Goo update settings.Goo update settings.Goo update settings.booleanAllows the patch job to run on Managed instance groups (MIGs).The `ExecStep` to run after the patch update.The `ExecStep` to run after the patch update.The `ExecStep` to run after the patch update.The `ExecStep` to run before the patch update.The `ExecStep` to run before the patch update.The `ExecStep` to run before the patch update.Post-patch reboot settings.intPost-patch reboot settings.Windows update settings.Windows update settings.Windows update settings.getYum()Yum update settings.Yum update settings.Yum update settings.Zypper update settings.Zypper update settings.Zypper update settings.booleanhasApt()Apt update settings.booleanhasGoo()Goo update settings.booleanThe `ExecStep` to run after the patch update.booleanThe `ExecStep` to run before the patch update.booleanWindows update settings.booleanhasYum()Yum update settings.booleanZypper update settings.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeApt(PatchJobs.AptSettings value) Apt update settings.mergeFrom(PatchJobs.PatchConfig other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeGoo(PatchJobs.GooSettings value) Goo update settings.mergePostStep(PatchJobs.ExecStep value) The `ExecStep` to run after the patch update.mergePreStep(PatchJobs.ExecStep value) The `ExecStep` to run before the patch update.Windows update settings.mergeYum(PatchJobs.YumSettings value) Yum update settings.Zypper update settings.setApt(PatchJobs.AptSettings value) Apt update settings.setApt(PatchJobs.AptSettings.Builder builderForValue) Apt update settings.setGoo(PatchJobs.GooSettings value) Goo update settings.setGoo(PatchJobs.GooSettings.Builder builderForValue) Goo update settings.setMigInstancesAllowed(boolean value) Allows the patch job to run on Managed instance groups (MIGs).setPostStep(PatchJobs.ExecStep value) The `ExecStep` to run after the patch update.setPostStep(PatchJobs.ExecStep.Builder builderForValue) The `ExecStep` to run after the patch update.setPreStep(PatchJobs.ExecStep value) The `ExecStep` to run before the patch update.setPreStep(PatchJobs.ExecStep.Builder builderForValue) The `ExecStep` to run before the patch update.Post-patch reboot settings.setRebootConfigValue(int value) Post-patch reboot settings.Windows update settings.setWindowsUpdate(PatchJobs.WindowsUpdateSettings.Builder builderForValue) Windows update settings.setYum(PatchJobs.YumSettings value) Yum update settings.setYum(PatchJobs.YumSettings.Builder builderForValue) Yum update settings.Zypper update settings.setZypper(PatchJobs.ZypperSettings.Builder builderForValue) Zypper update settings.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.PatchConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.PatchConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getRebootConfigValuein interfacePatchJobs.PatchConfigOrBuilder- Returns:
- The enum numeric value on the wire for rebootConfig.
-
setRebootConfigValue
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
Post-patch reboot settings.
.google.cloud.osconfig.v1beta.PatchConfig.RebootConfig reboot_config = 1;- Specified by:
getRebootConfigin interfacePatchJobs.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
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:
hasAptin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- Whether the apt field is set.
-
getApt
Apt update settings. Use this setting to override the default `apt` patch rules.
.google.cloud.osconfig.v1beta.AptSettings apt = 3;- Specified by:
getAptin interfacePatchJobs.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
Apt update settings. Use this setting to override the default `apt` patch rules.
.google.cloud.osconfig.v1beta.AptSettings apt = 3; -
getAptBuilder
Apt update settings. Use this setting to override the default `apt` patch rules.
.google.cloud.osconfig.v1beta.AptSettings apt = 3; -
getAptOrBuilder
Apt update settings. Use this setting to override the default `apt` patch rules.
.google.cloud.osconfig.v1beta.AptSettings apt = 3;- Specified by:
getAptOrBuilderin interfacePatchJobs.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:
hasYumin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- Whether the yum field is set.
-
getYum
Yum update settings. Use this setting to override the default `yum` patch rules.
.google.cloud.osconfig.v1beta.YumSettings yum = 4;- Specified by:
getYumin interfacePatchJobs.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
Yum update settings. Use this setting to override the default `yum` patch rules.
.google.cloud.osconfig.v1beta.YumSettings yum = 4; -
getYumBuilder
Yum update settings. Use this setting to override the default `yum` patch rules.
.google.cloud.osconfig.v1beta.YumSettings yum = 4; -
getYumOrBuilder
Yum update settings. Use this setting to override the default `yum` patch rules.
.google.cloud.osconfig.v1beta.YumSettings yum = 4;- Specified by:
getYumOrBuilderin interfacePatchJobs.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:
hasGooin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- Whether the goo field is set.
-
getGoo
Goo update settings. Use this setting to override the default `goo` patch rules.
.google.cloud.osconfig.v1beta.GooSettings goo = 5;- Specified by:
getGooin interfacePatchJobs.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
Goo update settings. Use this setting to override the default `goo` patch rules.
.google.cloud.osconfig.v1beta.GooSettings goo = 5; -
getGooBuilder
Goo update settings. Use this setting to override the default `goo` patch rules.
.google.cloud.osconfig.v1beta.GooSettings goo = 5; -
getGooOrBuilder
Goo update settings. Use this setting to override the default `goo` patch rules.
.google.cloud.osconfig.v1beta.GooSettings goo = 5;- Specified by:
getGooOrBuilderin interfacePatchJobs.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:
hasZypperin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- Whether the zypper field is set.
-
getZypper
Zypper update settings. Use this setting to override the default `zypper` patch rules.
.google.cloud.osconfig.v1beta.ZypperSettings zypper = 6;- Specified by:
getZypperin interfacePatchJobs.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
Zypper update settings. Use this setting to override the default `zypper` patch rules.
.google.cloud.osconfig.v1beta.ZypperSettings zypper = 6; -
getZypperBuilder
Zypper update settings. Use this setting to override the default `zypper` patch rules.
.google.cloud.osconfig.v1beta.ZypperSettings zypper = 6; -
getZypperOrBuilder
Zypper update settings. Use this setting to override the default `zypper` patch rules.
.google.cloud.osconfig.v1beta.ZypperSettings zypper = 6;- Specified by:
getZypperOrBuilderin interfacePatchJobs.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:
hasWindowsUpdatein interfacePatchJobs.PatchConfigOrBuilder- Returns:
- Whether the windowsUpdate field is set.
-
getWindowsUpdate
Windows update settings. Use this override the default windows patch rules.
.google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7;- Specified by:
getWindowsUpdatein interfacePatchJobs.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
public PatchJobs.PatchConfig.Builder setWindowsUpdate(PatchJobs.WindowsUpdateSettings.Builder builderForValue) 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
Windows update settings. Use this override the default windows patch rules.
.google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7; -
getWindowsUpdateBuilder
Windows update settings. Use this override the default windows patch rules.
.google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7; -
getWindowsUpdateOrBuilder
Windows update settings. Use this override the default windows patch rules.
.google.cloud.osconfig.v1beta.WindowsUpdateSettings windows_update = 7;- Specified by:
getWindowsUpdateOrBuilderin interfacePatchJobs.PatchConfigOrBuilder
-
hasPreStep
public boolean hasPreStep()The `ExecStep` to run before the patch update.
.google.cloud.osconfig.v1beta.ExecStep pre_step = 8;- Specified by:
hasPreStepin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- Whether the preStep field is set.
-
getPreStep
The `ExecStep` to run before the patch update.
.google.cloud.osconfig.v1beta.ExecStep pre_step = 8;- Specified by:
getPreStepin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- The preStep.
-
setPreStep
The `ExecStep` to run before the patch update.
.google.cloud.osconfig.v1beta.ExecStep pre_step = 8; -
setPreStep
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
The `ExecStep` to run before the patch update.
.google.cloud.osconfig.v1beta.ExecStep pre_step = 8; -
getPreStepBuilder
The `ExecStep` to run before the patch update.
.google.cloud.osconfig.v1beta.ExecStep pre_step = 8; -
getPreStepOrBuilder
The `ExecStep` to run before the patch update.
.google.cloud.osconfig.v1beta.ExecStep pre_step = 8;- Specified by:
getPreStepOrBuilderin interfacePatchJobs.PatchConfigOrBuilder
-
hasPostStep
public boolean hasPostStep()The `ExecStep` to run after the patch update.
.google.cloud.osconfig.v1beta.ExecStep post_step = 9;- Specified by:
hasPostStepin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- Whether the postStep field is set.
-
getPostStep
The `ExecStep` to run after the patch update.
.google.cloud.osconfig.v1beta.ExecStep post_step = 9;- Specified by:
getPostStepin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- The postStep.
-
setPostStep
The `ExecStep` to run after the patch update.
.google.cloud.osconfig.v1beta.ExecStep post_step = 9; -
setPostStep
The `ExecStep` to run after the patch update.
.google.cloud.osconfig.v1beta.ExecStep post_step = 9; -
mergePostStep
The `ExecStep` to run after the patch update.
.google.cloud.osconfig.v1beta.ExecStep post_step = 9; -
clearPostStep
The `ExecStep` to run after the patch update.
.google.cloud.osconfig.v1beta.ExecStep post_step = 9; -
getPostStepBuilder
The `ExecStep` to run after the patch update.
.google.cloud.osconfig.v1beta.ExecStep post_step = 9; -
getPostStepOrBuilder
The `ExecStep` to run after the patch update.
.google.cloud.osconfig.v1beta.ExecStep post_step = 9;- Specified by:
getPostStepOrBuilderin interfacePatchJobs.PatchConfigOrBuilder
-
getMigInstancesAllowed
public boolean getMigInstancesAllowed()Allows the patch job to run on Managed instance groups (MIGs).
bool mig_instances_allowed = 10;- Specified by:
getMigInstancesAllowedin interfacePatchJobs.PatchConfigOrBuilder- Returns:
- The migInstancesAllowed.
-
setMigInstancesAllowed
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
Allows the patch job to run on Managed instance groups (MIGs).
bool mig_instances_allowed = 10;- Returns:
- This builder for chaining.
-