Class PatchJobs.PatchConfig (2.49.0)

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

Static Fields

APT_FIELD_NUMBER

public static final int APT_FIELD_NUMBER
Field Value
Type Description
int

GOO_FIELD_NUMBER

public static final int GOO_FIELD_NUMBER
Field Value
Type Description
int

MIG_INSTANCES_ALLOWED_FIELD_NUMBER

public static final int MIG_INSTANCES_ALLOWED_FIELD_NUMBER
Field Value
Type Description
int

POST_STEP_FIELD_NUMBER

public static final int POST_STEP_FIELD_NUMBER
Field Value
Type Description
int

PRE_STEP_FIELD_NUMBER

public static final int PRE_STEP_FIELD_NUMBER
Field Value
Type Description
int

REBOOT_CONFIG_FIELD_NUMBER

public static final int REBOOT_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

WINDOWS_UPDATE_FIELD_NUMBER

public static final int WINDOWS_UPDATE_FIELD_NUMBER
Field Value
Type Description
int

YUM_FIELD_NUMBER

public static final int YUM_FIELD_NUMBER
Field Value
Type Description
int

ZYPPER_FIELD_NUMBER

public static final int ZYPPER_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static PatchJobs.PatchConfig getDefaultInstance()
Returns
Type Description
PatchJobs.PatchConfig

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static PatchJobs.PatchConfig.Builder newBuilder()
Returns
Type Description
PatchJobs.PatchConfig.Builder

newBuilder(PatchJobs.PatchConfig prototype)

public static PatchJobs.PatchConfig.Builder newBuilder(PatchJobs.PatchConfig prototype)
Parameter
Name Description
prototype PatchJobs.PatchConfig
Returns
Type Description
PatchJobs.PatchConfig.Builder

parseDelimitedFrom(InputStream input)

public static PatchJobs.PatchConfig parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static PatchJobs.PatchConfig parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PatchJobs.PatchConfig parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PatchJobs.PatchConfig parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static PatchJobs.PatchConfig parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static PatchJobs.PatchConfig parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PatchJobs.PatchConfig
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<PatchJobs.PatchConfig> parser()
Returns
Type Description
Parser<PatchConfig>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
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
Type Description
PatchJobs.AptSettings

The apt.

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
Type Description
PatchJobs.AptSettingsOrBuilder

getDefaultInstanceForType()

public PatchJobs.PatchConfig getDefaultInstanceForType()
Returns
Type Description
PatchJobs.PatchConfig

getGoo()

public PatchJobs.GooSettings getGoo()

Goo update settings. Use this setting to override the default goo patch rules.

.google.cloud.osconfig.v1.GooSettings goo = 5;

Returns
Type Description
PatchJobs.GooSettings

The goo.

getGooOrBuilder()

public PatchJobs.GooSettingsOrBuilder getGooOrBuilder()

Goo update settings. Use this setting to override the default goo patch rules.

.google.cloud.osconfig.v1.GooSettings goo = 5;

Returns
Type Description
PatchJobs.GooSettingsOrBuilder

getMigInstancesAllowed()

public boolean getMigInstancesAllowed()

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

bool mig_instances_allowed = 10;

Returns
Type Description
boolean

The migInstancesAllowed.

getParserForType()

public Parser<PatchJobs.PatchConfig> getParserForType()
Returns
Type Description
Parser<PatchConfig>
Overrides

getPostStep()

public PatchJobs.ExecStep getPostStep()

The ExecStep to run after the patch update.

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

Returns
Type Description
PatchJobs.ExecStep

The postStep.

getPostStepOrBuilder()

public PatchJobs.ExecStepOrBuilder getPostStepOrBuilder()

The ExecStep to run after the patch update.

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

Returns
Type Description
PatchJobs.ExecStepOrBuilder

getPreStep()

public PatchJobs.ExecStep getPreStep()

The ExecStep to run before the patch update.

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

Returns
Type Description
PatchJobs.ExecStep

The preStep.

getPreStepOrBuilder()

public PatchJobs.ExecStepOrBuilder getPreStepOrBuilder()

The ExecStep to run before the patch update.

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

Returns
Type Description
PatchJobs.ExecStepOrBuilder

getRebootConfig()

public PatchJobs.PatchConfig.RebootConfig getRebootConfig()

Post-patch reboot settings.

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

Returns
Type Description
PatchJobs.PatchConfig.RebootConfig

The rebootConfig.

getRebootConfigValue()

public int getRebootConfigValue()

Post-patch reboot settings.

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

Returns
Type Description
int

The enum numeric value on the wire for rebootConfig.

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

getWindowsUpdate()

public PatchJobs.WindowsUpdateSettings getWindowsUpdate()

Windows update settings. Use this override the default windows patch rules.

.google.cloud.osconfig.v1.WindowsUpdateSettings windows_update = 7;

Returns
Type Description
PatchJobs.WindowsUpdateSettings

The windowsUpdate.

getWindowsUpdateOrBuilder()

public PatchJobs.WindowsUpdateSettingsOrBuilder getWindowsUpdateOrBuilder()

Windows update settings. Use this override the default windows patch rules.

.google.cloud.osconfig.v1.WindowsUpdateSettings windows_update = 7;

Returns
Type Description
PatchJobs.WindowsUpdateSettingsOrBuilder

getYum()

public PatchJobs.YumSettings getYum()

Yum update settings. Use this setting to override the default yum patch rules.

.google.cloud.osconfig.v1.YumSettings yum = 4;

Returns
Type Description
PatchJobs.YumSettings

The yum.

getYumOrBuilder()

public PatchJobs.YumSettingsOrBuilder getYumOrBuilder()

Yum update settings. Use this setting to override the default yum patch rules.

.google.cloud.osconfig.v1.YumSettings yum = 4;

Returns
Type Description
PatchJobs.YumSettingsOrBuilder

getZypper()

public PatchJobs.ZypperSettings getZypper()

Zypper update settings. Use this setting to override the default zypper patch rules.

.google.cloud.osconfig.v1.ZypperSettings zypper = 6;

Returns
Type Description
PatchJobs.ZypperSettings

The zypper.

getZypperOrBuilder()

public PatchJobs.ZypperSettingsOrBuilder getZypperOrBuilder()

Zypper update settings. Use this setting to override the default zypper patch rules.

.google.cloud.osconfig.v1.ZypperSettings zypper = 6;

Returns
Type Description
PatchJobs.ZypperSettingsOrBuilder

hasApt()

public boolean hasApt()

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

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

Returns
Type Description
boolean

Whether the apt 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;

Returns
Type Description
boolean

Whether the goo field is set.

hasPostStep()

public boolean hasPostStep()

The ExecStep to run after the patch update.

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

Returns
Type Description
boolean

Whether the postStep field is set.

hasPreStep()

public boolean hasPreStep()

The ExecStep to run before the patch update.

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

Returns
Type Description
boolean

Whether the preStep 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;

Returns
Type Description
boolean

Whether the windowsUpdate 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;

Returns
Type Description
boolean

Whether the yum 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;

Returns
Type Description
boolean

Whether the zypper field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public PatchJobs.PatchConfig.Builder newBuilderForType()
Returns
Type Description
PatchJobs.PatchConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PatchJobs.PatchConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
PatchJobs.PatchConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public PatchJobs.PatchConfig.Builder toBuilder()
Returns
Type Description
PatchJobs.PatchConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException