Class 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 type google.cloud.osconfig.v1beta.ExecStepConfig
    See Also:
    Serialized Form
    • 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 class com.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 class com.google.protobuf.GeneratedMessageV3
      • hasLocalPath

        public boolean hasLocalPath()
         An absolute path to the executable on the VM.
         
        string local_path = 1;
        Specified by:
        hasLocalPath in interface PatchJobs.ExecStepConfigOrBuilder
        Returns:
        Whether the localPath field is set.
      • getLocalPathBytes

        public com.google.protobuf.ByteString getLocalPathBytes()
         An absolute path to the executable on the VM.
         
        string local_path = 1;
        Specified by:
        getLocalPathBytes in interface PatchJobs.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 interface PatchJobs.ExecStepConfigOrBuilder
        Returns:
        Whether the gcsObject field is set.
      • 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 interface PatchJobs.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 interface PatchJobs.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 interface PatchJobs.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 interface PatchJobs.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 interface PatchJobs.ExecStepConfigOrBuilder
        Returns:
        The interpreter.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.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
      • newBuilderForType

        public PatchJobs.ExecStepConfig.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public PatchJobs.ExecStepConfig.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected PatchJobs.ExecStepConfig.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<PatchJobs.ExecStepConfig> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public PatchJobs.ExecStepConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder