Package com.google.cloud.osconfig.v1beta
Class PatchJobs.ExecStepConfig.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecStepConfig.Builder>
com.google.cloud.osconfig.v1beta.PatchJobs.ExecStepConfig.Builder
- All Implemented Interfaces:
PatchJobs.ExecStepConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- PatchJobs.ExecStepConfig
public static final class PatchJobs.ExecStepConfig.Builder
extends com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecStepConfig.Builder>
implements PatchJobs.ExecStepConfigOrBuilder
Common configurations for an ExecStep.Protobuf type
google.cloud.osconfig.v1beta.ExecStepConfig-
Method Summary
Modifier and TypeMethodDescriptionaddAllAllowedSuccessCodes(Iterable<? extends Integer> values) Defaults to [0].addAllowedSuccessCodes(int value) Defaults to [0].build()clear()Defaults to [0].A Google Cloud Storage object containing the executable.The script interpreter to use to run the script.An absolute path to the executable on the VM.intgetAllowedSuccessCodes(int index) Defaults to [0].intDefaults to [0].Defaults to [0].static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorA Google Cloud Storage object containing the executable.A Google Cloud Storage object containing the executable.A Google Cloud Storage object containing the executable.The script interpreter to use to run the script.intThe script interpreter to use to run the script.An absolute path to the executable on the VM.com.google.protobuf.ByteStringAn absolute path to the executable on the VM.booleanA Google Cloud Storage object containing the executable.booleanAn absolute path to the executable on the VM.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) A Google Cloud Storage object containing the executable.setAllowedSuccessCodes(int index, int value) Defaults to [0].setGcsObject(PatchJobs.GcsObject value) A Google Cloud Storage object containing the executable.setGcsObject(PatchJobs.GcsObject.Builder builderForValue) A Google Cloud Storage object containing the executable.The script interpreter to use to run the script.setInterpreterValue(int value) The script interpreter to use to run the script.setLocalPath(String value) An absolute path to the executable on the VM.setLocalPathBytes(com.google.protobuf.ByteString value) An absolute path to the executable on the VM.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecStepConfig.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecStepConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecStepConfig.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecStepConfig.Builder>
-
mergeFrom
public PatchJobs.ExecStepConfig.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>- Throws:
IOException
-
getExecutableCase
- Specified by:
getExecutableCasein interfacePatchJobs.ExecStepConfigOrBuilder
-
clearExecutable
-
hasLocalPath
public boolean hasLocalPath()An absolute path to the executable on the VM.
string local_path = 1;- Specified by:
hasLocalPathin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- Whether the localPath field is set.
-
getLocalPath
An absolute path to the executable on the VM.
string local_path = 1;- Specified by:
getLocalPathin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The localPath.
-
getLocalPathBytes
public com.google.protobuf.ByteString getLocalPathBytes()An absolute path to the executable on the VM.
string local_path = 1;- Specified by:
getLocalPathBytesin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The bytes for localPath.
-
setLocalPath
An absolute path to the executable on the VM.
string local_path = 1;- Parameters:
value- The localPath to set.- Returns:
- This builder for chaining.
-
clearLocalPath
An absolute path to the executable on the VM.
string local_path = 1;- Returns:
- This builder for chaining.
-
setLocalPathBytes
An absolute path to the executable on the VM.
string local_path = 1;- Parameters:
value- The bytes for localPath to set.- Returns:
- This builder for chaining.
-
hasGcsObject
public boolean hasGcsObject()A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;- Specified by:
hasGcsObjectin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- Whether the gcsObject field is set.
-
getGcsObject
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;- Specified by:
getGcsObjectin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The gcsObject.
-
setGcsObject
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2; -
setGcsObject
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2; -
mergeGcsObject
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2; -
clearGcsObject
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2; -
getGcsObjectBuilder
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2; -
getGcsObjectOrBuilder
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;- Specified by:
getGcsObjectOrBuilderin interfacePatchJobs.ExecStepConfigOrBuilder
-
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;- Specified by:
getAllowedSuccessCodesListin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- A list containing the allowedSuccessCodes.
-
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;- Specified by:
getAllowedSuccessCodesCountin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The count of allowedSuccessCodes.
-
getAllowedSuccessCodes
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;- Specified by:
getAllowedSuccessCodesin interfacePatchJobs.ExecStepConfigOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The allowedSuccessCodes at the given index.
-
setAllowedSuccessCodes
Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
repeated int32 allowed_success_codes = 3;- Parameters:
index- The index to set the value at.value- The allowedSuccessCodes to set.- Returns:
- This builder for chaining.
-
addAllowedSuccessCodes
Defaults to [0]. A list of possible return values that the execution can return to indicate a success.
repeated int32 allowed_success_codes = 3;- Parameters:
value- The allowedSuccessCodes to add.- Returns:
- This builder for chaining.
-
addAllAllowedSuccessCodes
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;- Parameters:
values- The allowedSuccessCodes to add.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
getInterpreterValue
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.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Specified by:
getInterpreterValuein interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The enum numeric value on the wire for interpreter.
-
setInterpreterValue
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.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Parameters:
value- The enum numeric value on the wire for interpreter to set.- Returns:
- This builder for chaining.
-
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.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Specified by:
getInterpreterin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The interpreter.
-
setInterpreter
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.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Parameters:
value- The interpreter to set.- Returns:
- This builder for chaining.
-
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.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Returns:
- This builder for chaining.
-