Class PatchJobs.ExecStep.Builder (2.5.6)

public static final class PatchJobs.ExecStep.Builder extends GeneratedMessageV3.Builder<PatchJobs.ExecStep.Builder> implements PatchJobs.ExecStepOrBuilder

A step that runs an executable for a PatchJob.

Protobuf type google.cloud.osconfig.v1.ExecStep

com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

public PatchJobs.ExecStep.Builder clear()
Returns Overrides

clearField(Descriptors.FieldDescriptor field)

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

clearLinuxExecStepConfig()

public PatchJobs.ExecStep.Builder clearLinuxExecStepConfig()

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1;

Returns

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearWindowsExecStepConfig()

public PatchJobs.ExecStep.Builder clearWindowsExecStepConfig()

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2;

Returns

clone()

public PatchJobs.ExecStep.Builder clone()
Returns Overrides

getDefaultInstanceForType()

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

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getLinuxExecStepConfig()

public PatchJobs.ExecStepConfig getLinuxExecStepConfig()

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1;

Returns
TypeDescription
PatchJobs.ExecStepConfig

The linuxExecStepConfig.

getLinuxExecStepConfigBuilder()

public PatchJobs.ExecStepConfig.Builder getLinuxExecStepConfigBuilder()

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1;

Returns

getLinuxExecStepConfigOrBuilder()

public PatchJobs.ExecStepConfigOrBuilder getLinuxExecStepConfigOrBuilder()

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1;

Returns

getWindowsExecStepConfig()

public PatchJobs.ExecStepConfig getWindowsExecStepConfig()

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2;

Returns
TypeDescription
PatchJobs.ExecStepConfig

The windowsExecStepConfig.

getWindowsExecStepConfigBuilder()

public PatchJobs.ExecStepConfig.Builder getWindowsExecStepConfigBuilder()

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2;

Returns

getWindowsExecStepConfigOrBuilder()

public PatchJobs.ExecStepConfigOrBuilder getWindowsExecStepConfigOrBuilder()

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2;

Returns

hasLinuxExecStepConfig()

public boolean hasLinuxExecStepConfig()

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1;

Returns
TypeDescription
boolean

Whether the linuxExecStepConfig field is set.

hasWindowsExecStepConfig()

public boolean hasWindowsExecStepConfig()

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2;

Returns
TypeDescription
boolean

Whether the windowsExecStepConfig field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(PatchJobs.ExecStep other)

public PatchJobs.ExecStep.Builder mergeFrom(PatchJobs.ExecStep other)
Parameter
NameDescription
otherPatchJobs.ExecStep
Returns

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PatchJobs.ExecStep.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public PatchJobs.ExecStep.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns Overrides

mergeLinuxExecStepConfig(PatchJobs.ExecStepConfig value)

public PatchJobs.ExecStep.Builder mergeLinuxExecStepConfig(PatchJobs.ExecStepConfig value)

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1;

Parameter
NameDescription
valuePatchJobs.ExecStepConfig
Returns

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.ExecStep.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns Overrides

mergeWindowsExecStepConfig(PatchJobs.ExecStepConfig value)

public PatchJobs.ExecStep.Builder mergeWindowsExecStepConfig(PatchJobs.ExecStepConfig value)

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2;

Parameter
NameDescription
valuePatchJobs.ExecStepConfig
Returns

setField(Descriptors.FieldDescriptor field, Object value)

public PatchJobs.ExecStep.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns Overrides

setLinuxExecStepConfig(PatchJobs.ExecStepConfig value)

public PatchJobs.ExecStep.Builder setLinuxExecStepConfig(PatchJobs.ExecStepConfig value)

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1;

Parameter
NameDescription
valuePatchJobs.ExecStepConfig
Returns

setLinuxExecStepConfig(PatchJobs.ExecStepConfig.Builder builderForValue)

public PatchJobs.ExecStep.Builder setLinuxExecStepConfig(PatchJobs.ExecStepConfig.Builder builderForValue)

The ExecStepConfig for all Linux VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig linux_exec_step_config = 1;

Parameter
NameDescription
builderForValuePatchJobs.ExecStepConfig.Builder
Returns

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public PatchJobs.ExecStep.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PatchJobs.ExecStep.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns Overrides

setWindowsExecStepConfig(PatchJobs.ExecStepConfig value)

public PatchJobs.ExecStep.Builder setWindowsExecStepConfig(PatchJobs.ExecStepConfig value)

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2;

Parameter
NameDescription
valuePatchJobs.ExecStepConfig
Returns

setWindowsExecStepConfig(PatchJobs.ExecStepConfig.Builder builderForValue)

public PatchJobs.ExecStep.Builder setWindowsExecStepConfig(PatchJobs.ExecStepConfig.Builder builderForValue)

The ExecStepConfig for all Windows VMs targeted by the PatchJob.

.google.cloud.osconfig.v1.ExecStepConfig windows_exec_step_config = 2;

Parameter
NameDescription
builderForValuePatchJobs.ExecStepConfig.Builder
Returns