Class PatchJobs.ExecStepConfig.Builder

    • Method Detail

      • 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.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.GeneratedMessageV3.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
      • setRepeatedField

        public PatchJobs.ExecStepConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 int index,
                                                                 Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
      • addRepeatedField

        public PatchJobs.ExecStepConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                                 Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.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
      • 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.
      • 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 Cloud Storage object containing the executable.
         
        .google.cloud.osconfig.v1.GcsObject gcs_object = 2;
        Specified by:
        hasGcsObject in interface PatchJobs.ExecStepConfigOrBuilder
        Returns:
        Whether the gcsObject field is set.
      • clearGcsObject

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

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

        public PatchJobs.ExecStepConfig.Builder setInterpreter​(PatchJobs.ExecStepConfig.Interpreter 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.v1.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.v1.ExecStepConfig.Interpreter interpreter = 4;
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final PatchJobs.ExecStepConfig.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>
      • mergeUnknownFields

        public final PatchJobs.ExecStepConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<PatchJobs.ExecStepConfig.Builder>