Class GatewayOuterClass.ActivatedJob.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderType>
com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
io.camunda.zeebe.gateway.protocol.GatewayOuterClass.ActivatedJob.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, GatewayOuterClass.ActivatedJobOrBuilder, Cloneable
Enclosing class:
GatewayOuterClass.ActivatedJob

public static final class GatewayOuterClass.ActivatedJob.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder> implements GatewayOuterClass.ActivatedJobOrBuilder
Protobuf type gateway_protocol.ActivatedJob
  • Method Details

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

      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
    • clone

      Specified by:
      clone in interface com.google.protobuf.Message.Builder
      Specified by:
      clone in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clone in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
    • setField

      public GatewayOuterClass.ActivatedJob.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
      Specified by:
      setField in interface com.google.protobuf.Message.Builder
      Overrides:
      setField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
    • clearField

      public GatewayOuterClass.ActivatedJob.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
      Specified by:
      clearField in interface com.google.protobuf.Message.Builder
      Overrides:
      clearField in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
    • clearOneof

      public GatewayOuterClass.ActivatedJob.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
      Specified by:
      clearOneof in interface com.google.protobuf.Message.Builder
      Overrides:
      clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
    • setRepeatedField

      public GatewayOuterClass.ActivatedJob.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<GatewayOuterClass.ActivatedJob.Builder>
    • addRepeatedField

      public GatewayOuterClass.ActivatedJob.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<GatewayOuterClass.ActivatedJob.Builder>
    • mergeFrom

      public GatewayOuterClass.ActivatedJob.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<GatewayOuterClass.ActivatedJob.Builder>
    • mergeFrom

    • 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>
    • mergeFrom

      public GatewayOuterClass.ActivatedJob.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<GatewayOuterClass.ActivatedJob.Builder>
      Throws:
      IOException
    • getKey

      public long getKey()
       the key, a unique identifier for the job
       
      int64 key = 1;
      Specified by:
      getKey in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The key.
    • 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.
    • clearKey

       the key, a unique identifier for the job
       
      int64 key = 1;
      Returns:
      This builder for chaining.
    • getType

      public String getType()
       the type of the job (should match what was requested)
       
      string type = 2;
      Specified by:
      getType in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The type.
    • getTypeBytes

      public com.google.protobuf.ByteString getTypeBytes()
       the type of the job (should match what was requested)
       
      string type = 2;
      Specified by:
      getTypeBytes in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The bytes for type.
    • setType

       the type of the job (should match what was requested)
       
      string type = 2;
      Parameters:
      value - The type to set.
      Returns:
      This builder for chaining.
    • clearType

       the type of the job (should match what was requested)
       
      string type = 2;
      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.
    • getProcessInstanceKey

      public long getProcessInstanceKey()
       the job's process instance key
       
      int64 processInstanceKey = 3;
      Specified by:
      getProcessInstanceKey in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The processInstanceKey.
    • setProcessInstanceKey

      public GatewayOuterClass.ActivatedJob.Builder setProcessInstanceKey(long value)
       the job's process instance key
       
      int64 processInstanceKey = 3;
      Parameters:
      value - The processInstanceKey to set.
      Returns:
      This builder for chaining.
    • clearProcessInstanceKey

      public GatewayOuterClass.ActivatedJob.Builder clearProcessInstanceKey()
       the job's process instance key
       
      int64 processInstanceKey = 3;
      Returns:
      This builder for chaining.
    • getBpmnProcessId

      public String getBpmnProcessId()
       the bpmn process ID of the job process definition
       
      string bpmnProcessId = 4;
      Specified by:
      getBpmnProcessId in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The bpmnProcessId.
    • getBpmnProcessIdBytes

      public com.google.protobuf.ByteString getBpmnProcessIdBytes()
       the bpmn process ID of the job process definition
       
      string bpmnProcessId = 4;
      Specified by:
      getBpmnProcessIdBytes in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The bytes for bpmnProcessId.
    • setBpmnProcessId

      public GatewayOuterClass.ActivatedJob.Builder setBpmnProcessId(String value)
       the bpmn process ID of the job process 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 process 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 process definition
       
      string bpmnProcessId = 4;
      Parameters:
      value - The bytes for bpmnProcessId to set.
      Returns:
      This builder for chaining.
    • getProcessDefinitionVersion

      public int getProcessDefinitionVersion()
       the version of the job process definition
       
      int32 processDefinitionVersion = 5;
      Specified by:
      getProcessDefinitionVersion in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The processDefinitionVersion.
    • setProcessDefinitionVersion

      public GatewayOuterClass.ActivatedJob.Builder setProcessDefinitionVersion(int value)
       the version of the job process definition
       
      int32 processDefinitionVersion = 5;
      Parameters:
      value - The processDefinitionVersion to set.
      Returns:
      This builder for chaining.
    • clearProcessDefinitionVersion

      public GatewayOuterClass.ActivatedJob.Builder clearProcessDefinitionVersion()
       the version of the job process definition
       
      int32 processDefinitionVersion = 5;
      Returns:
      This builder for chaining.
    • getProcessDefinitionKey

      public long getProcessDefinitionKey()
       the key of the job process definition
       
      int64 processDefinitionKey = 6;
      Specified by:
      getProcessDefinitionKey in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The processDefinitionKey.
    • setProcessDefinitionKey

      public GatewayOuterClass.ActivatedJob.Builder setProcessDefinitionKey(long value)
       the key of the job process definition
       
      int64 processDefinitionKey = 6;
      Parameters:
      value - The processDefinitionKey to set.
      Returns:
      This builder for chaining.
    • clearProcessDefinitionKey

      public GatewayOuterClass.ActivatedJob.Builder clearProcessDefinitionKey()
       the key of the job process definition
       
      int64 processDefinitionKey = 6;
      Returns:
      This builder for chaining.
    • getElementId

      public String getElementId()
       the associated task element ID
       
      string elementId = 7;
      Specified by:
      getElementId in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The elementId.
    • getElementIdBytes

      public com.google.protobuf.ByteString getElementIdBytes()
       the associated task element ID
       
      string elementId = 7;
      Specified by:
      getElementIdBytes in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The bytes for elementId.
    • 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.
    • clearElementId

      public GatewayOuterClass.ActivatedJob.Builder clearElementId()
       the associated task element ID
       
      string elementId = 7;
      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
       process 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
       process 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
       process instance
       
      int64 elementInstanceKey = 8;
      Returns:
      This builder for chaining.
    • getCustomHeaders

      public String getCustomHeaders()
       a set of custom headers defined during modelling; returned as a serialized
       JSON document
       
      string customHeaders = 9;
      Specified by:
      getCustomHeaders in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The customHeaders.
    • 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.
    • getWorker

      public String getWorker()
       the name of the worker which activated this job
       
      string worker = 10;
      Specified by:
      getWorker in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The worker.
    • getWorkerBytes

      public com.google.protobuf.ByteString getWorkerBytes()
       the name of the worker which activated this job
       
      string worker = 10;
      Specified by:
      getWorkerBytes in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The bytes for worker.
    • setWorker

       the name of the worker which activated this job
       
      string worker = 10;
      Parameters:
      value - The worker to set.
      Returns:
      This builder for chaining.
    • clearWorker

       the name of the worker which activated this job
       
      string worker = 10;
      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.
    • getRetries

      public int getRetries()
       the amount of retries left to this job (should always be positive)
       
      int32 retries = 11;
      Specified by:
      getRetries in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The retries.
    • 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

       the amount of retries left to this job (should always be positive)
       
      int32 retries = 11;
      Returns:
      This builder for chaining.
    • getDeadline

      public long getDeadline()
       when the job can be activated again, sent as a UNIX epoch timestamp
       
      int64 deadline = 12;
      Specified by:
      getDeadline in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The deadline.
    • 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

       when the job can be activated again, sent as a UNIX epoch timestamp
       
      int64 deadline = 12;
      Returns:
      This builder for chaining.
    • getVariables

      public String getVariables()
       JSON document, computed at activation time, consisting of all visible variables to
       the task scope
       
      string variables = 13;
      Specified by:
      getVariables in interface GatewayOuterClass.ActivatedJobOrBuilder
      Returns:
      The variables.
    • 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.
    • setUnknownFields

      public final GatewayOuterClass.ActivatedJob.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<GatewayOuterClass.ActivatedJob.Builder>
    • mergeUnknownFields

      public final GatewayOuterClass.ActivatedJob.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<GatewayOuterClass.ActivatedJob.Builder>