Package com.google.cloud.osconfig.v1
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.v1.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.v1.ExecStepConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method 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(PatchJobs.ExecStepConfig other)
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
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 value)
A Cloud Storage object containing the executable.PatchJobs.ExecStepConfig.Builder
setGcsObject(PatchJobs.GcsObject.Builder builderForValue)
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)
-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
clear
public PatchJobs.ExecStepConfig.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
getDefaultInstanceForType
public PatchJobs.ExecStepConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public PatchJobs.ExecStepConfig build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PatchJobs.ExecStepConfig buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public PatchJobs.ExecStepConfig.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
setField
public PatchJobs.ExecStepConfig.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
clearField
public PatchJobs.ExecStepConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
clearOneof
public PatchJobs.ExecStepConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in 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:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
addRepeatedField
public PatchJobs.ExecStepConfig.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
mergeFrom
public PatchJobs.ExecStepConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>
-
mergeFrom
public PatchJobs.ExecStepConfig.Builder mergeFrom(PatchJobs.ExecStepConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>
- Throws:
IOException
-
getExecutableCase
public PatchJobs.ExecStepConfig.ExecutableCase getExecutableCase()
- Specified by:
getExecutableCase
in 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:
hasLocalPath
in 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:
getLocalPath
in 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:
getLocalPathBytes
in 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 Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;
- Specified by:
hasGcsObject
in interfacePatchJobs.ExecStepConfigOrBuilder
- Returns:
- Whether the gcsObject field is set.
-
getGcsObject
public PatchJobs.GcsObject getGcsObject()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;
- Specified by:
getGcsObject
in interfacePatchJobs.ExecStepConfigOrBuilder
- Returns:
- The gcsObject.
-
setGcsObject
public PatchJobs.ExecStepConfig.Builder setGcsObject(PatchJobs.GcsObject value)
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;
-
setGcsObject
public PatchJobs.ExecStepConfig.Builder setGcsObject(PatchJobs.GcsObject.Builder builderForValue)
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;
-
mergeGcsObject
public PatchJobs.ExecStepConfig.Builder mergeGcsObject(PatchJobs.GcsObject value)
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;
-
clearGcsObject
public PatchJobs.ExecStepConfig.Builder clearGcsObject()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;
-
getGcsObjectBuilder
public PatchJobs.GcsObject.Builder getGcsObjectBuilder()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;
-
getGcsObjectOrBuilder
public PatchJobs.GcsObjectOrBuilder getGcsObjectOrBuilder()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;
- Specified by:
getGcsObjectOrBuilder
in 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:
getAllowedSuccessCodesList
in 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:
getAllowedSuccessCodesCount
in 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:
getAllowedSuccessCodes
in 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.v1.ExecStepConfig.Interpreter interpreter = 4;
- Specified by:
getInterpreterValue
in 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.v1.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.v1.ExecStepConfig.Interpreter interpreter = 4;
- Specified by:
getInterpreter
in 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.v1.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.v1.ExecStepConfig.Interpreter interpreter = 4;
- Returns:
- This builder for chaining.
-
setUnknownFields
public final PatchJobs.ExecStepConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
mergeUnknownFields
public final PatchJobs.ExecStepConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
-
-