Class PatchJobs.ExecStepConfig.Builder (2.30.0)

public static final class PatchJobs.ExecStepConfig.Builder extends GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder> implements PatchJobs.ExecStepConfigOrBuilder

Common configurations for an ExecStep.

Protobuf type google.cloud.osconfig.v1beta.ExecStepConfig

Static Methods

getDescriptor()

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

Methods

addAllAllowedSuccessCodes(Iterable<? extends Integer> values)

public PatchJobs.ExecStepConfig.Builder addAllAllowedSuccessCodes(Iterable<? extends Integer> values)

Defaults to [0]. A list of possible return values that the execution can return to indicate a success.

repeated int32 allowed_success_codes = 3;

Parameter
NameDescription
valuesIterable<? extends java.lang.Integer>

The allowedSuccessCodes to add.

Returns
TypeDescription
PatchJobs.ExecStepConfig.Builder

This builder for chaining.

addAllowedSuccessCodes(int value)

public PatchJobs.ExecStepConfig.Builder addAllowedSuccessCodes(int value)

Defaults to [0]. A list of possible return values that the execution can return to indicate a success.

repeated int32 allowed_success_codes = 3;

Parameter
NameDescription
valueint

The allowedSuccessCodes to add.

Returns
TypeDescription
PatchJobs.ExecStepConfig.Builder

This builder for chaining.

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

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

buildPartial()

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

clear()

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

clearAllowedSuccessCodes()

public PatchJobs.ExecStepConfig.Builder clearAllowedSuccessCodes()

Defaults to [0]. A list of possible return values that the execution can return to indicate a success.

repeated int32 allowed_success_codes = 3;

Returns
TypeDescription
PatchJobs.ExecStepConfig.Builder

This builder for chaining.

clearExecutable()

public PatchJobs.ExecStepConfig.Builder clearExecutable()