Class PatchJobs.ExecStepConfig

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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.GeneratedMessage implements PatchJobs.ExecStepConfigOrBuilder
 Common configurations for an ExecStep.
 
Protobuf type google.cloud.osconfig.v1beta.ExecStepConfig
See Also:
  • Field Details

    • LOCAL_PATH_FIELD_NUMBER

      public static final int LOCAL_PATH_FIELD_NUMBER
      See Also:
    • GCS_OBJECT_FIELD_NUMBER

      public static final int GCS_OBJECT_FIELD_NUMBER
      See Also:
    • ALLOWED_SUCCESS_CODES_FIELD_NUMBER

      public static final int ALLOWED_SUCCESS_CODES_FIELD_NUMBER
      See Also:
    • INTERPRETER_FIELD_NUMBER

      public static final int INTERPRETER_FIELD_NUMBER
      See Also:
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
    • getExecutableCase

      public PatchJobs.ExecStepConfig.ExecutableCase getExecutableCase()
      Specified by:
      getExecutableCase in interface PatchJobs.ExecStepConfigOrBuilder
    • 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.
    • getLocalPath

      public String getLocalPath()
       An absolute path to the executable on the VM.
       
      string local_path = 1;
      Specified by:
      getLocalPath in interface PatchJobs.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 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.
    • 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 interface PatchJobs.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 interface PatchJobs.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 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.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

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

      public static PatchJobs.ExecStepConfig.Builder newBuilder()
    • newBuilder

      public static PatchJobs.ExecStepConfig.Builder newBuilder(PatchJobs.ExecStepConfig prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • 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 interface com.google.protobuf.Message
      Specified by:
      getParserForType in interface com.google.protobuf.MessageLite
      Overrides:
      getParserForType in class com.google.protobuf.GeneratedMessage
    • getDefaultInstanceForType

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