Package com.google.cloud.osconfig.v1
Class PatchJobs.ExecStepConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.osconfig.v1.PatchJobs.ExecStepConfig
-
- All Implemented Interfaces:
PatchJobs.ExecStepConfigOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
- Enclosing class:
- PatchJobs
public static final class PatchJobs.ExecStepConfig extends com.google.protobuf.GeneratedMessageV3 implements PatchJobs.ExecStepConfigOrBuilder
Common configurations for an ExecStep.
Protobuf typegoogle.cloud.osconfig.v1.ExecStepConfig- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPatchJobs.ExecStepConfig.BuilderCommon configurations for an ExecStep.static classPatchJobs.ExecStepConfig.ExecutableCasestatic classPatchJobs.ExecStepConfig.InterpreterThe interpreter used to execute the a file.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intALLOWED_SUCCESS_CODES_FIELD_NUMBERstatic intGCS_OBJECT_FIELD_NUMBERstatic intINTERPRETER_FIELD_NUMBERstatic intLOCAL_PATH_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)intgetAllowedSuccessCodes(int index)Defaults to [0].intgetAllowedSuccessCodesCount()Defaults to [0].List<Integer>getAllowedSuccessCodesList()Defaults to [0].static PatchJobs.ExecStepConfiggetDefaultInstance()PatchJobs.ExecStepConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()PatchJobs.ExecStepConfig.ExecutableCasegetExecutableCase()PatchJobs.GcsObjectgetGcsObject()A Cloud Storage object containing the executable.PatchJobs.GcsObjectOrBuildergetGcsObjectOrBuilder()A 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.com.google.protobuf.Parser<PatchJobs.ExecStepConfig>getParserForType()intgetSerializedSize()booleanhasGcsObject()A Cloud Storage object containing the executable.inthashCode()booleanhasLocalPath()An absolute path to the executable on the VM.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static PatchJobs.ExecStepConfig.BuildernewBuilder()static PatchJobs.ExecStepConfig.BuildernewBuilder(PatchJobs.ExecStepConfig prototype)PatchJobs.ExecStepConfig.BuildernewBuilderForType()protected PatchJobs.ExecStepConfig.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static PatchJobs.ExecStepConfigparseDelimitedFrom(InputStream input)static PatchJobs.ExecStepConfigparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.ExecStepConfigparseFrom(byte[] data)static PatchJobs.ExecStepConfigparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.ExecStepConfigparseFrom(com.google.protobuf.ByteString data)static PatchJobs.ExecStepConfigparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.ExecStepConfigparseFrom(com.google.protobuf.CodedInputStream input)static PatchJobs.ExecStepConfigparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.ExecStepConfigparseFrom(InputStream input)static PatchJobs.ExecStepConfigparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static PatchJobs.ExecStepConfigparseFrom(ByteBuffer data)static PatchJobs.ExecStepConfigparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<PatchJobs.ExecStepConfig>parser()PatchJobs.ExecStepConfig.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
LOCAL_PATH_FIELD_NUMBER
public static final int LOCAL_PATH_FIELD_NUMBER
- See Also:
- Constant Field Values
-
GCS_OBJECT_FIELD_NUMBER
public static final int GCS_OBJECT_FIELD_NUMBER
- See Also:
- Constant Field Values
-
ALLOWED_SUCCESS_CODES_FIELD_NUMBER
public static final int ALLOWED_SUCCESS_CODES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
INTERPRETER_FIELD_NUMBER
public static final int INTERPRETER_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
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
-
getExecutableCase
public PatchJobs.ExecStepConfig.ExecutableCase getExecutableCase()
- Specified by:
getExecutableCasein interfacePatchJobs.ExecStepConfigOrBuilder
-
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.
-
hasGcsObject
public boolean hasGcsObject()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.GcsObject gcs_object = 2;- Specified by:
hasGcsObjectin 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:
getGcsObjectin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The gcsObject.
-
getGcsObjectOrBuilder
public PatchJobs.GcsObjectOrBuilder getGcsObjectOrBuilder()
A Cloud Storage object containing the executable.
.google.cloud.osconfig.v1.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.
-
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:
getInterpreterValuein interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The enum numeric value on the wire for interpreter.
-
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:
getInterpreterin interfacePatchJobs.ExecStepConfigOrBuilder- Returns:
- The interpreter.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PatchJobs.ExecStepConfig parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static PatchJobs.ExecStepConfig parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static PatchJobs.ExecStepConfig parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public PatchJobs.ExecStepConfig.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static PatchJobs.ExecStepConfig.Builder newBuilder()
-
newBuilder
public static PatchJobs.ExecStepConfig.Builder newBuilder(PatchJobs.ExecStepConfig prototype)
-
toBuilder
public PatchJobs.ExecStepConfig.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PatchJobs.ExecStepConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static PatchJobs.ExecStepConfig getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<PatchJobs.ExecStepConfig> parser()
-
getParserForType
public com.google.protobuf.Parser<PatchJobs.ExecStepConfig> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PatchJobs.ExecStepConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-