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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder> implements PatchJobs.ExecStepConfigOrBuilder
Common configurations for an ExecStep.
Protobuf typegoogle.cloud.osconfig.v1beta.ExecStepConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PatchJobs.ExecStepConfig.BuilderaddAllAllowedSuccessCodes(Iterable<? extends Integer> values)Defaults to [0].PatchJobs.ExecStepConfig.BuilderaddAllowedSuccessCodes(int value)Defaults to [0].PatchJobs.ExecStepConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.ExecStepConfigbuild()PatchJobs.ExecStepConfigbuildPartial()PatchJobs.ExecStepConfig.Builderclear()PatchJobs.ExecStepConfig.BuilderclearAllowedSuccessCodes()Defaults to [0].PatchJobs.ExecStepConfig.BuilderclearExecutable()PatchJobs.ExecStepConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)PatchJobs.ExecStepConfig.BuilderclearGcsObject()A Google Cloud Storage object containing the executable.PatchJobs.ExecStepConfig.BuilderclearInterpreter()The script interpreter to use to run the script.PatchJobs.ExecStepConfig.BuilderclearLocalPath()An absolute path to the executable on the VM.PatchJobs.ExecStepConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)PatchJobs.ExecStepConfig.Builderclone()intgetAllowedSuccessCodes(int index)Defaults to [0].intgetAllowedSuccessCodesCount()Defaults to [0].List<Integer>getAllowedSuccessCodesList()Defaults to [0].PatchJobs.ExecStepConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()PatchJobs.ExecStepConfig.ExecutableCasegetExecutableCase()PatchJobs.GcsObjectgetGcsObject()A Google Cloud Storage object containing the executable.PatchJobs.GcsObject.BuildergetGcsObjectBuilder()A Google Cloud Storage object containing the executable.PatchJobs.GcsObjectOrBuildergetGcsObjectOrBuilder()A Google Cloud Storage object containing the executable.PatchJobs.ExecStepConfig.InterpretergetInterpreter()The script interpreter to use to run the script.intgetInterpreterValue()The script interpreter to use to run the script.StringgetLocalPath()An absolute path to the executable on the VM.com.google.protobuf.ByteStringgetLocalPathBytes()An absolute path to the executable on the VM.booleanhasGcsObject()A Google Cloud Storage object containing the executable.booleanhasLocalPath()An absolute path to the executable on the VM.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PatchJobs.ExecStepConfig.BuildermergeFrom(PatchJobs.ExecStepConfig other)PatchJobs.ExecStepConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PatchJobs.ExecStepConfig.BuildermergeFrom(com.google.protobuf.Message other)PatchJobs.ExecStepConfig.BuildermergeGcsObject(PatchJobs.GcsObject value)A Google Cloud Storage object containing the executable.PatchJobs.ExecStepConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)PatchJobs.ExecStepConfig.BuildersetAllowedSuccessCodes(int index, int value)Defaults to [0].PatchJobs.ExecStepConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)PatchJobs.ExecStepConfig.BuildersetGcsObject(PatchJobs.GcsObject value)A Google Cloud Storage object containing the executable.PatchJobs.ExecStepConfig.BuildersetGcsObject(PatchJobs.GcsObject.Builder builderForValue)A Google Cloud Storage object containing the executable.PatchJobs.ExecStepConfig.BuildersetInterpreter(PatchJobs.ExecStepConfig.Interpreter value)The script interpreter to use to run the script.PatchJobs.ExecStepConfig.BuildersetInterpreterValue(int value)The script interpreter to use to run the script.PatchJobs.ExecStepConfig.BuildersetLocalPath(String value)An absolute path to the executable on the VM.PatchJobs.ExecStepConfig.BuildersetLocalPathBytes(com.google.protobuf.ByteString value)An absolute path to the executable on the VM.PatchJobs.ExecStepConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)PatchJobs.ExecStepConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
clear
public 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.GeneratedMessageV3.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.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
getDefaultInstanceForType
public PatchJobs.ExecStepConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.ExecStepConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.ExecStepConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.ExecStepConfig.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
setField
public PatchJobs.ExecStepConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
clearField
public PatchJobs.ExecStepConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
clearOneof
public PatchJobs.ExecStepConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
setRepeatedField
public PatchJobs.ExecStepConfig.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
addRepeatedField
public PatchJobs.ExecStepConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
mergeFrom
public PatchJobs.ExecStepConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>
-
mergeFrom
public PatchJobs.ExecStepConfig.Builder mergeFrom(PatchJobs.ExecStepConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.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
public PatchJobs.ExecStepConfig.ExecutableCase getExecutableCase()
- Specified by:
getExecutableCasein interfacePatchJobs.ExecStepConfigOrBuilder
-
clearExecutable
public PatchJobs.ExecStepConfig.Builder 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
public String 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
public PatchJobs.ExecStepConfig.Builder setLocalPath(String value)
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
public PatchJobs.ExecStepConfig.Builder clearLocalPath()
An absolute path to the executable on the VM.
string local_path = 1;- Returns:
- This builder for chaining.
-
setLocalPathBytes
public PatchJobs.ExecStepConfig.Builder setLocalPathBytes(com.google.protobuf.ByteString value)
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
public PatchJobs.GcsObject 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
public PatchJobs.ExecStepConfig.Builder setGcsObject(PatchJobs.GcsObject value)
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
-
setGcsObject
public PatchJobs.ExecStepConfig.Builder setGcsObject(PatchJobs.GcsObject.Builder builderForValue)
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
-
mergeGcsObject
public PatchJobs.ExecStepConfig.Builder mergeGcsObject(PatchJobs.GcsObject value)
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
-
clearGcsObject
public PatchJobs.ExecStepConfig.Builder clearGcsObject()
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
-
getGcsObjectBuilder
public PatchJobs.GcsObject.Builder getGcsObjectBuilder()
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
-
getGcsObjectOrBuilder
public PatchJobs.GcsObjectOrBuilder getGcsObjectOrBuilder()
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;- Specified by:
getGcsObjectOrBuilderin interfacePatchJobs.ExecStepConfigOrBuilder
-
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;- 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
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;- Parameters:
index- The index to set the value at.value- The allowedSuccessCodes to set.- Returns:
- This builder for chaining.
-
addAllowedSuccessCodes
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;- 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
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:
- 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
public 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.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Parameters:
value- The enum numeric value on the wire for interpreter to set.- Returns:
- This builder for chaining.
-
getInterpreter
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.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Specified by:
getInterpreterin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The interpreter.
-
setInterpreter
public 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.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Parameters:
value- The interpreter to set.- Returns:
- This builder for chaining.
-
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] (https://en.wikipedia.org/wiki/Shebang_\(Unix\)).
.google.cloud.osconfig.v1beta.ExecStepConfig.Interpreter interpreter = 4;- Returns:
- This builder for chaining.
-
setUnknownFields
public final PatchJobs.ExecStepConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
mergeUnknownFields
public final PatchJobs.ExecStepConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
-