public static final class PatchJobs.ExecStepConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder> implements PatchJobs.ExecStepConfigOrBuilder
Common configurations for an ExecStep.Protobuf type
google.cloud.osconfig.v1.ExecStepConfig| Modifier and Type | Method and Description |
|---|---|
PatchJobs.ExecStepConfig.Builder |
addAllAllowedSuccessCodes(Iterable<? extends Integer> values)
Defaults to [0].
|
PatchJobs.ExecStepConfig.Builder |
addAllowedSuccessCodes(int value)
Defaults to [0].
|
PatchJobs.ExecStepConfig.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PatchJobs.ExecStepConfig |
build() |
PatchJobs.ExecStepConfig |
buildPartial() |
PatchJobs.ExecStepConfig.Builder |
clear() |
PatchJobs.ExecStepConfig.Builder |
clearAllowedSuccessCodes()
Defaults to [0].
|
PatchJobs.ExecStepConfig.Builder |
clearExecutable() |
PatchJobs.ExecStepConfig.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
PatchJobs.ExecStepConfig.Builder |
clearGcsObject()
A Cloud Storage object containing the executable.
|
PatchJobs.ExecStepConfig.Builder |
clearInterpreter()
The script interpreter to use to run the script.
|
PatchJobs.ExecStepConfig.Builder |
clearLocalPath()
An absolute path to the executable on the VM.
|
PatchJobs.ExecStepConfig.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
PatchJobs.ExecStepConfig.Builder |
clone() |
int |
getAllowedSuccessCodes(int index)
Defaults to [0].
|
int |
getAllowedSuccessCodesCount()
Defaults to [0].
|
List<Integer> |
getAllowedSuccessCodesList()
Defaults to [0].
|
PatchJobs.ExecStepConfig |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
PatchJobs.ExecStepConfig.ExecutableCase |
getExecutableCase() |
PatchJobs.GcsObject |
getGcsObject()
A Cloud Storage object containing the executable.
|
PatchJobs.GcsObject.Builder |
getGcsObjectBuilder()
A Cloud Storage object containing the executable.
|
PatchJobs.GcsObjectOrBuilder |
getGcsObjectOrBuilder()
A Cloud Storage object containing the executable.
|
PatchJobs.ExecStepConfig.Interpreter |
getInterpreter()
The script interpreter to use to run the script.
|
int |
getInterpreterValue()
The script interpreter to use to run the script.
|
String |
getLocalPath()
An absolute path to the executable on the VM.
|
com.google.protobuf.ByteString |
getLocalPathBytes()
An absolute path to the executable on the VM.
|
boolean |
hasGcsObject()
A Cloud Storage object containing the executable.
|
boolean |
hasLocalPath()
An absolute path to the executable on the VM.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
PatchJobs.ExecStepConfig.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
PatchJobs.ExecStepConfig.Builder |
mergeFrom(com.google.protobuf.Message other) |
PatchJobs.ExecStepConfig.Builder |
mergeFrom(PatchJobs.ExecStepConfig other) |
PatchJobs.ExecStepConfig.Builder |
mergeGcsObject(PatchJobs.GcsObject value)
A Cloud Storage object containing the executable.
|
PatchJobs.ExecStepConfig.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
PatchJobs.ExecStepConfig.Builder |
setAllowedSuccessCodes(int index,
int value)
Defaults to [0].
|
PatchJobs.ExecStepConfig.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
PatchJobs.ExecStepConfig.Builder |
setGcsObject(PatchJobs.GcsObject.Builder builderForValue)
A Cloud Storage object containing the executable.
|
PatchJobs.ExecStepConfig.Builder |
setGcsObject(PatchJobs.GcsObject value)
A Cloud Storage object containing the executable.
|
PatchJobs.ExecStepConfig.Builder |
setInterpreter(PatchJobs.ExecStepConfig.Interpreter value)
The script interpreter to use to run the script.
|
PatchJobs.ExecStepConfig.Builder |
setInterpreterValue(int value)
The script interpreter to use to run the script.
|
PatchJobs.ExecStepConfig.Builder |
setLocalPath(String value)
An absolute path to the executable on the VM.
|
PatchJobs.ExecStepConfig.Builder |
setLocalPathBytes(com.google.protobuf.ByteString value)
An absolute path to the executable on the VM.
|
PatchJobs.ExecStepConfig.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
PatchJobs.ExecStepConfig.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic PatchJobs.ExecStepConfig build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic PatchJobs.ExecStepConfig buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic PatchJobs.ExecStepConfig.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder mergeFrom(PatchJobs.ExecStepConfig other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public PatchJobs.ExecStepConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>IOExceptionpublic PatchJobs.ExecStepConfig.ExecutableCase getExecutableCase()
getExecutableCase in interface PatchJobs.ExecStepConfigOrBuilderpublic PatchJobs.ExecStepConfig.Builder clearExecutable()
public boolean hasLocalPath()
An absolute path to the executable on the VM.
string local_path = 1;hasLocalPath in interface PatchJobs.ExecStepConfigOrBuilderpublic String getLocalPath()
An absolute path to the executable on the VM.
string local_path = 1;getLocalPath in interface PatchJobs.ExecStepConfigOrBuilderpublic com.google.protobuf.ByteString getLocalPathBytes()
An absolute path to the executable on the VM.
string local_path = 1;getLocalPathBytes in interface PatchJobs.ExecStepConfigOrBuilderpublic PatchJobs.ExecStepConfig.Builder setLocalPath(String value)
An absolute path to the executable on the VM.
string local_path = 1;value - The localPath to set.public PatchJobs.ExecStepConfig.Builder clearLocalPath()
An absolute path to the executable on the VM.
string local_path = 1;public PatchJobs.ExecStepConfig.Builder setLocalPathBytes(com.google.protobuf.ByteString value)
An absolute path to the executable on the VM.
string local_path = 1;value - The bytes for localPath to set.public boolean hasGcsObject()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;hasGcsObject in interface PatchJobs.ExecStepConfigOrBuilderpublic PatchJobs.GcsObject getGcsObject()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;getGcsObject in interface PatchJobs.ExecStepConfigOrBuilderpublic PatchJobs.ExecStepConfig.Builder setGcsObject(PatchJobs.GcsObject value)
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;public PatchJobs.ExecStepConfig.Builder setGcsObject(PatchJobs.GcsObject.Builder builderForValue)
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;public PatchJobs.ExecStepConfig.Builder mergeGcsObject(PatchJobs.GcsObject value)
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;public PatchJobs.ExecStepConfig.Builder clearGcsObject()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;public PatchJobs.GcsObject.Builder getGcsObjectBuilder()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;public PatchJobs.GcsObjectOrBuilder getGcsObjectOrBuilder()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;getGcsObjectOrBuilder in interface PatchJobs.ExecStepConfigOrBuilderpublic 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;getAllowedSuccessCodesList in interface PatchJobs.ExecStepConfigOrBuilderpublic 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;getAllowedSuccessCodesCount in interface PatchJobs.ExecStepConfigOrBuilderpublic 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;getAllowedSuccessCodes in interface PatchJobs.ExecStepConfigOrBuilderindex - The index of the element to return.public PatchJobs.ExecStepConfig.Builder setAllowedSuccessCodes(int index, 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;index - The index to set the value at.value - The allowedSuccessCodes to set.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;value - The allowedSuccessCodes to add.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;values - The allowedSuccessCodes to add.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;public int getInterpreterValue()
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] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1.ExecStepConfig.Interpreter interpreter = 4;getInterpreterValue in interface PatchJobs.ExecStepConfigOrBuilderpublic PatchJobs.ExecStepConfig.Builder setInterpreterValue(int value)
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] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1.ExecStepConfig.Interpreter interpreter = 4;value - The enum numeric value on the wire for interpreter to set.public PatchJobs.ExecStepConfig.Interpreter getInterpreter()
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] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1.ExecStepConfig.Interpreter interpreter = 4;getInterpreter in interface PatchJobs.ExecStepConfigOrBuilderpublic PatchJobs.ExecStepConfig.Builder setInterpreter(PatchJobs.ExecStepConfig.Interpreter value)
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] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1.ExecStepConfig.Interpreter interpreter = 4;value - The interpreter to set.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] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1.ExecStepConfig.Interpreter interpreter = 4;public final PatchJobs.ExecStepConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>public final PatchJobs.ExecStepConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>Copyright © 2024 Google LLC. All rights reserved.