Class PatchJobs.PatchConfig.Builder (2.17.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.PatchConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
PatchJobs.PatchConfig.Builder
Overrides

build()

public PatchJobs.PatchConfig build()
Returns
TypeDescription
PatchJobs.PatchConfig

buildPartial()

public PatchJobs.PatchConfig buildPartial()
Returns
TypeDescription
PatchJobs.PatchConfig

clear()

public PatchJobs.PatchConfig.Builder clear()
Returns
TypeDescription
PatchJobs.PatchConfig.Builder
Overrides

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;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

clearField(Descriptors.FieldDescriptor field)

public PatchJobs.PatchConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
PatchJobs.PatchConfig.Builder
Overrides

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;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

clearMigInstancesAllowed()

public PatchJobs.PatchConfig.Builder clearMigInstancesAllowed()

Allows the patch job to run on Managed instance groups (MIGs).

bool mig_instances_allowed = 10;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public PatchJobs.PatchConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
PatchJobs.PatchConfig.Builder
Overrides

clearPostStep()

public PatchJobs.PatchConfig.Builder clearPostStep()

The ExecStep to run after the patch update.

.google.cloud.osconfig.v1.ExecStep post_step = 9;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

clearPreStep()

public PatchJobs.PatchConfig.Builder clearPreStep()

The ExecStep to run before the patch update.

.google.cloud.osconfig.v1.ExecStep pre_step = 8;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

clearRebootConfig()

public PatchJobs.PatchConfig.Builder clearRebootConfig()

Post-patch reboot settings.

.google.cloud.osconfig.v1.PatchConfig.RebootConfig reboot_config = 1;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

This builder for chaining.

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;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

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;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

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;

Returns
TypeDescription
PatchJobs.PatchConfig.Builder

clone()

public PatchJobs.PatchConfig.Builder clone()
Returns
TypeDescription
PatchJobs.PatchConfig.Builder
Overrides

getApt()

public PatchJobs.AptSettings getApt()

Apt update settings. Use this setting to override the default apt patch rules.

.google.cloud.osconfig.v1.AptSettings apt = 3;

Returns
TypeDescription
PatchJobs.AptSettings

The apt.

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;

Returns
TypeDescription
PatchJobs.AptSettings.Builder

getAptOrBuilder()

public PatchJobs.AptSettingsOrBuilder getAptOrBuilder()

Apt update settings. Use this setting to override the default apt patch rules.

.google.cloud.osconfig.v1.AptSettings apt = 3;

Returns
TypeDescription
PatchJobs.AptSettingsOrBuilder

getDefaultInstanceForType()

public PatchJobs.PatchConfig getDefaultInstanceForType()
Returns
TypeDescription
PatchJobs.PatchConfig

getDescriptorForType()

public Descriptors.Descriptor getDes