Class GatewayOuterClass.ActivatedJob.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<GatewayOuterClass.ActivatedJob.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<GatewayOuterClass.ActivatedJob.Builder>
      • getDefaultInstanceForType

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

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

        public GatewayOuterClass.ActivatedJob buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
      • setKey

        public GatewayOuterClass.ActivatedJob.Builder setKey​(long value)
         the key, a unique identifier for the job
         
        int64 key = 1;
        Parameters:
        value - The key to set.
        Returns:
        This builder for chaining.
      • setType

        public GatewayOuterClass.ActivatedJob.Builder setType​(String value)
         the type of the job (should match what was requested)
         
        string type = 2;
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • setTypeBytes

        public GatewayOuterClass.ActivatedJob.Builder setTypeBytes​(com.google.protobuf.ByteString value)
         the type of the job (should match what was requested)
         
        string type = 2;
        Parameters:
        value - The bytes for type to set.
        Returns:
        This builder for chaining.
      • setWorkflowInstanceKey

        public GatewayOuterClass.ActivatedJob.Builder setWorkflowInstanceKey​(long value)
         the job's workflow instance key
         
        int64 workflowInstanceKey = 3;
        Parameters:
        value - The workflowInstanceKey to set.
        Returns:
        This builder for chaining.
      • clearWorkflowInstanceKey

        public GatewayOuterClass.ActivatedJob.Builder clearWorkflowInstanceKey()
         the job's workflow instance key
         
        int64 workflowInstanceKey = 3;
        Returns:
        This builder for chaining.
      • setBpmnProcessId

        public GatewayOuterClass.ActivatedJob.Builder setBpmnProcessId​(String value)
         the bpmn process ID of the job workflow definition
         
        string bpmnProcessId = 4;
        Parameters:
        value - The bpmnProcessId to set.
        Returns:
        This builder for chaining.
      • clearBpmnProcessId

        public GatewayOuterClass.ActivatedJob.Builder clearBpmnProcessId()
         the bpmn process ID of the job workflow definition
         
        string bpmnProcessId = 4;
        Returns:
        This builder for chaining.
      • setBpmnProcessIdBytes

        public GatewayOuterClass.ActivatedJob.Builder setBpmnProcessIdBytes​(com.google.protobuf.ByteString value)
         the bpmn process ID of the job workflow definition
         
        string bpmnProcessId = 4;
        Parameters:
        value - The bytes for bpmnProcessId to set.
        Returns:
        This builder for chaining.
      • setWorkflowDefinitionVersion

        public GatewayOuterClass.ActivatedJob.Builder setWorkflowDefinitionVersion​(int value)
         the version of the job workflow definition
         
        int32 workflowDefinitionVersion = 5;
        Parameters:
        value - The workflowDefinitionVersion to set.
        Returns:
        This builder for chaining.
      • clearWorkflowDefinitionVersion

        public GatewayOuterClass.ActivatedJob.Builder clearWorkflowDefinitionVersion()
         the version of the job workflow definition
         
        int32 workflowDefinitionVersion = 5;
        Returns:
        This builder for chaining.
      • setWorkflowKey

        public GatewayOuterClass.ActivatedJob.Builder setWorkflowKey​(long value)
         the key of the job workflow definition
         
        int64 workflowKey = 6;
        Parameters:
        value - The workflowKey to set.
        Returns:
        This builder for chaining.
      • setElementId

        public GatewayOuterClass.ActivatedJob.Builder setElementId​(String value)
         the associated task element ID
         
        string elementId = 7;
        Parameters:
        value - The elementId to set.
        Returns:
        This builder for chaining.
      • setElementIdBytes

        public GatewayOuterClass.ActivatedJob.Builder setElementIdBytes​(com.google.protobuf.ByteString value)
         the associated task element ID
         
        string elementId = 7;
        Parameters:
        value - The bytes for elementId to set.
        Returns:
        This builder for chaining.
      • getElementInstanceKey

        public long getElementInstanceKey()
         the unique key identifying the associated task, unique within the scope of the
         workflow instance
         
        int64 elementInstanceKey = 8;
        Specified by:
        getElementInstanceKey in interface GatewayOuterClass.ActivatedJobOrBuilder
        Returns:
        The elementInstanceKey.
      • setElementInstanceKey

        public GatewayOuterClass.ActivatedJob.Builder setElementInstanceKey​(long value)
         the unique key identifying the associated task, unique within the scope of the
         workflow instance
         
        int64 elementInstanceKey = 8;
        Parameters:
        value - The elementInstanceKey to set.
        Returns:
        This builder for chaining.
      • clearElementInstanceKey

        public GatewayOuterClass.ActivatedJob.Builder clearElementInstanceKey()
         the unique key identifying the associated task, unique within the scope of the
         workflow instance
         
        int64 elementInstanceKey = 8;
        Returns:
        This builder for chaining.
      • getCustomHeadersBytes

        public com.google.protobuf.ByteString getCustomHeadersBytes()
         a set of custom headers defined during modelling; returned as a serialized
         JSON document
         
        string customHeaders = 9;
        Specified by:
        getCustomHeadersBytes in interface GatewayOuterClass.ActivatedJobOrBuilder
        Returns:
        The bytes for customHeaders.
      • setCustomHeaders

        public GatewayOuterClass.ActivatedJob.Builder setCustomHeaders​(String value)
         a set of custom headers defined during modelling; returned as a serialized
         JSON document
         
        string customHeaders = 9;
        Parameters:
        value - The customHeaders to set.
        Returns:
        This builder for chaining.
      • clearCustomHeaders

        public GatewayOuterClass.ActivatedJob.Builder clearCustomHeaders()
         a set of custom headers defined during modelling; returned as a serialized
         JSON document
         
        string customHeaders = 9;
        Returns:
        This builder for chaining.
      • setCustomHeadersBytes

        public GatewayOuterClass.ActivatedJob.Builder setCustomHeadersBytes​(com.google.protobuf.ByteString value)
         a set of custom headers defined during modelling; returned as a serialized
         JSON document
         
        string customHeaders = 9;
        Parameters:
        value - The bytes for customHeaders to set.
        Returns:
        This builder for chaining.
      • setWorker

        public GatewayOuterClass.ActivatedJob.Builder setWorker​(String value)
         the name of the worker which activated this job
         
        string worker = 10;
        Parameters:
        value - The worker to set.
        Returns:
        This builder for chaining.
      • setWorkerBytes

        public GatewayOuterClass.ActivatedJob.Builder setWorkerBytes​(com.google.protobuf.ByteString value)
         the name of the worker which activated this job
         
        string worker = 10;
        Parameters:
        value - The bytes for worker to set.
        Returns:
        This builder for chaining.
      • setRetries

        public GatewayOuterClass.ActivatedJob.Builder setRetries​(int value)
         the amount of retries left to this job (should always be positive)
         
        int32 retries = 11;
        Parameters:
        value - The retries to set.
        Returns:
        This builder for chaining.
      • clearRetries

        public GatewayOuterClass.ActivatedJob.Builder clearRetries()
         the amount of retries left to this job (should always be positive)
         
        int32 retries = 11;
        Returns:
        This builder for chaining.
      • setDeadline

        public GatewayOuterClass.ActivatedJob.Builder setDeadline​(long value)
         when the job can be activated again, sent as a UNIX epoch timestamp
         
        int64 deadline = 12;
        Parameters:
        value - The deadline to set.
        Returns:
        This builder for chaining.
      • clearDeadline

        public GatewayOuterClass.ActivatedJob.Builder clearDeadline()
         when the job can be activated again, sent as a UNIX epoch timestamp
         
        int64 deadline = 12;
        Returns:
        This builder for chaining.
      • getVariablesBytes

        public com.google.protobuf.ByteString getVariablesBytes()
         JSON document, computed at activation time, consisting of all visible variables to
         the task scope
         
        string variables = 13;
        Specified by:
        getVariablesBytes in interface GatewayOuterClass.ActivatedJobOrBuilder
        Returns:
        The bytes for variables.
      • setVariables

        public GatewayOuterClass.ActivatedJob.Builder setVariables​(String value)
         JSON document, computed at activation time, consisting of all visible variables to
         the task scope
         
        string variables = 13;
        Parameters:
        value - The variables to set.
        Returns:
        This builder for chaining.
      • clearVariables

        public GatewayOuterClass.ActivatedJob.Builder clearVariables()
         JSON document, computed at activation time, consisting of all visible variables to
         the task scope
         
        string variables = 13;
        Returns:
        This builder for chaining.
      • setVariablesBytes

        public GatewayOuterClass.ActivatedJob.Builder setVariablesBytes​(com.google.protobuf.ByteString value)
         JSON document, computed at activation time, consisting of all visible variables to
         the task scope
         
        string variables = 13;
        Parameters:
        value - The bytes for variables to set.
        Returns:
        This builder for chaining.