Class PatchJobs.ExecStepConfig.Builder (2.16.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()
Returns
TypeDescription
PatchJobs.ExecStepConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearGcsObject()

public PatchJobs.ExecStepConfig.Builder clearGcsObject()

A Google Cloud Storage object containing the executable.

.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;

Returns
TypeDescription
PatchJobs.ExecStepConfig.Builder

clearInterpreter()

public PatchJobs.ExecStepConfig.Builder clearInterpreter()

The script interpreter to use to run the script. If no interpreter is specified the script will be executed directly, which will likely only succeed for scripts with shebang lines.

.google.cloud.osconfig.v1beta.ExecStepConfig.Interpreter interpreter = 4;

Returns
TypeDescription
PatchJobs.ExecStepConfig.Builder

This builder for chaining.

clearLocalPath()

public PatchJobs.ExecStepConfig.Builder clearLocalPath()

An absolute path to the executable on the VM.

string local_path = 1;

Returns
TypeDescription
PatchJobs.ExecStepConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getAllowedSuccessCodes(int index)

public int getAllowedSuccessCodes(int index)

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
indexint

The index of the element to return.

Returns
TypeDescription
int

The allowedSuccessCodes at the given index.

getAllowedSuccessCodesCount()

public int getAllowedSuccessCodesCount()

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
int

The count of allowedSuccessCodes.

getAllowedSuccessCodesList()

public List<Integer> getAllowedSuccessCodesList()

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
Type