Package com.google.cloud.osconfig.v1beta
Class PatchJobs.ExecStepConfig
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.osconfig.v1beta.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.v1beta.ExecStepConfig
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PatchJobs.ExecStepConfig.Builder
Common configurations for an ExecStep.static class
PatchJobs.ExecStepConfig.ExecutableCase
static class
PatchJobs.ExecStepConfig.Interpreter
The 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 int
ALLOWED_SUCCESS_CODES_FIELD_NUMBER
static int
GCS_OBJECT_FIELD_NUMBER
static int
INTERPRETER_FIELD_NUMBER
static int
LOCAL_PATH_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
int
getAllowedSuccessCodes(int index)
Defaults to [0].int
getAllowedSuccessCodesCount()
Defaults to [0].List<Integer>
getAllowedSuccessCodesList()
Defaults to [0].static PatchJobs.ExecStepConfig
getDefaultInstance()
PatchJobs.ExecStepConfig
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
PatchJobs.ExecStepConfig.ExecutableCase
getExecutableCase()
PatchJobs.GcsObject
getGcsObject()
A Google Cloud Storage object containing the executable.PatchJobs.GcsObjectOrBuilder
getGcsObjectOrBuilder()
A Google 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.com.google.protobuf.Parser<PatchJobs.ExecStepConfig>
getParserForType()
int
getSerializedSize()
boolean
hasGcsObject()
A Google Cloud Storage object containing the executable.int
hashCode()
boolean
hasLocalPath()
An absolute path to the executable on the VM.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static PatchJobs.ExecStepConfig.Builder
newBuilder()
static PatchJobs.ExecStepConfig.Builder
newBuilder(PatchJobs.ExecStepConfig prototype)
PatchJobs.ExecStepConfig.Builder
newBuilderForType()
protected PatchJobs.ExecStepConfig.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static PatchJobs.ExecStepConfig
parseDelimitedFrom(InputStream input)
static PatchJobs.ExecStepConfig
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PatchJobs.ExecStepConfig
parseFrom(byte[] data)
static PatchJobs.ExecStepConfig
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PatchJobs.ExecStepConfig
parseFrom(com.google.protobuf.ByteString data)
static PatchJobs.ExecStepConfig
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PatchJobs.ExecStepConfig
parseFrom(com.google.protobuf.CodedInputStream input)
static PatchJobs.ExecStepConfig
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PatchJobs.ExecStepConfig
parseFrom(InputStream input)
static PatchJobs.ExecStepConfig
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static PatchJobs.ExecStepConfig
parseFrom(ByteBuffer data)
static PatchJobs.ExecStepConfig
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<PatchJobs.ExecStepConfig>
parser()
PatchJobs.ExecStepConfig.Builder
toBuilder()
void
writeTo(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:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
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
-
getExecutableCase
public PatchJobs.ExecStepConfig.ExecutableCase getExecutableCase()
- Specified by:
getExecutableCase
in interfacePatchJobs.ExecStepConfigOrBuilder
-
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.
-
hasGcsObject
public boolean hasGcsObject()
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
- Specified by:
hasGcsObject
in 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:
getGcsObject
in interfacePatchJobs.ExecStepConfigOrBuilder
- Returns:
- The gcsObject.
-
getGcsObjectOrBuilder
public PatchJobs.GcsObjectOrBuilder getGcsObjectOrBuilder()
A Google Cloud Storage object containing the executable.
.google.cloud.osconfig.v1beta.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.
-
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:
getInterpreterValue
in 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.v1beta.ExecStepConfig.Interpreter interpreter = 4;
- Specified by:
getInterpreter
in interfacePatchJobs.ExecStepConfigOrBuilder
- Returns:
- The interpreter.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in 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:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in 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:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected PatchJobs.ExecStepConfig.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in 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:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public PatchJobs.ExecStepConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-