Class PatchJobs.PatchConfig (2.35.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
TypeDescription
int

GOO_FIELD_NUMBER

public static final int GOO_FIELD_NUMBER
Field Value
TypeDescription
int

MIG_INSTANCES_ALLOWED_FIELD_NUMBER

public static final int MIG_INSTANCES_ALLOWED_FIELD_NUMBER
Field Value
TypeDescription
int

POST_STEP_FIELD_NUMBER

public static final int POST_STEP_FIELD_NUMBER
Field Value
TypeDescription
int

PRE_STEP_FIELD_NUMBER

public static final int PRE_STEP_FIELD_NUMBER
Field Value
TypeDescription
int

REBOOT_CONFIG_FIELD_NUMBER

public static final int REBOOT_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

WINDOWS_UPDATE_FIELD_NUMBER

public static final int WINDOWS_UPDATE_FIELD_NUMBER
Field Value
TypeDescription
int

YUM_FIELD_NUMBER

public static final int YUM_FIELD_NUMBER
Field Value
TypeDescription
int

ZYPPER_FIELD_NUMBER

public static final int ZYPPER_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PatchJobs.PatchConfig getDefaultInstance()
Returns
TypeDescription
PatchJobs.PatchConfig

getDescriptor()

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

newBuilder()

public static PatchJobs.PatchConfig.Builder newBuilder()
Returns
TypeDescription
PatchJobs.PatchConfig.Builder

newBuilder(PatchJobs.PatchConfig prototype)

public static PatchJobs.PatchConfig.Builder newBuilder(PatchJobs.PatchConfig prototype)
Parameter
NameDescription
prototypePatchJobs.PatchConfig
Returns
TypeDescription
PatchJobs.PatchConfig.Builder

parseDelimitedFrom(InputStream input)

public static PatchJobs.PatchConfig parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static PatchJobs.PatchConfig parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static PatchJobs.PatchConfig parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static PatchJobs.PatchConfig parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static PatchJobs.PatchConfig parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static PatchJobs.PatchConfig parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static PatchJobs.PatchConfig parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
PatchJobs.PatchConfig
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

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

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PatchJobs.AptSettingsOrBuilder

getDefaultInstanceForType()

public PatchJobs.PatchConfig getDefaultInstanceForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PatchJobs.GooSettingsOrBuilder

getMigInstancesAllowed()

public boolean getMigInstancesAllowed()

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

bool mig_instances_allowed = 10;

Returns
TypeDescription
boolean

The migInstancesAllowed.

getParserForType()

public Parser<PatchJobs.PatchConfig> getParserForType()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
PatchJobs.ExecStepOrBuilder

getPreStep()

public PatchJobs.ExecStep getPreStep()

The ExecStep to run before the patch update.

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

Returns
TypeDescription
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
TypeDescription
PatchJobs.ExecStepOrBuilder

getRebootConfig()

public PatchJobs.PatchConfig.RebootConfig getRebootConfig()

Post-patch reboot settings.

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

Returns
TypeDescription
PatchJobs.PatchConfig.RebootConfig

The rebootConfig.

getRebootConfigValue()

public int getRebootConfigValue()

Post-patch reboot settings.

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

Returns
TypeDescription
int

The enum numeric value on the wire for rebootConfig.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the zypper field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public PatchJobs.PatchConfig.Builder newBuilderForType()
Returns
TypeDescription
PatchJobs.PatchConfig.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected PatchJobs.PatchConfig.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
PatchJobs.PatchConfig.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public PatchJobs.PatchConfig.Builder toBuilder()
Returns
TypeDescription
PatchJobs.PatchConfig.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException