Class PatchJobs.ExecStepConfig.Builder

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

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecStepConfig.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PatchJobs.ExecStepConfig.Builder>
    • getDefaultInstanceForType

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

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

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

      public PatchJobs.ExecStepConfig.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.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 interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PatchJobs.ExecStepConfig.Builder>
      Throws:
      IOException
    • getExecutableCase

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

       A Google Cloud Storage object containing the executable.
       
      .google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
    • setGcsObject

      public PatchJobs.ExecStepConfig.Builder setGcsObject(PatchJobs.GcsObject.Builder builderForValue)
       A Google Cloud Storage object containing the executable.
       
      .google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
    • mergeGcsObject

       A Google Cloud Storage object containing the executable.
       
      .google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
    • clearGcsObject

      public PatchJobs.ExecStepConfig.Builder clearGcsObject()
       A Google Cloud Storage object containing the executable.
       
      .google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
    • getGcsObjectBuilder

      public PatchJobs.GcsObject.Builder getGcsObjectBuilder()
       A Google Cloud Storage object containing the executable.
       
      .google.cloud.osconfig.v1beta.GcsObject gcs_object = 2;
    • 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.
    • 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.v1beta.ExecStepConfig.Interpreter interpreter = 4;
      Specified by:
      getInterpreterValue in interface PatchJobs.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.v1beta.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.v1beta.ExecStepConfig.Interpreter interpreter = 4;
      Specified by:
      getInterpreter in interface PatchJobs.ExecStepConfigOrBuilder
      Returns:
      The interpreter.
    • setInterpreter

       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;
      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.v1beta.ExecStepConfig.Interpreter interpreter = 4;
      Returns:
      This builder for chaining.