Class GatewayOuterClass.ActivatedJob.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
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 Summary
Modifier and TypeMethodDescriptionbuild()clear()the bpmn process ID of the job process definitiona set of custom headers defined during modelling; returned as a serialized JSON documentwhen the job can be activated again, sent as a UNIX epoch timestampthe associated task element IDthe unique key identifying the associated task, unique within the scope of the process instanceclearKey()the key, a unique identifier for the jobthe key of the job process definitionthe version of the job process definitionthe job's process instance keythe amount of retries left to this job (should always be positive)the type of the job (should match what was requested)JSON document, computed at activation time, consisting of all visible variables to the task scopethe name of the worker which activated this jobthe bpmn process ID of the job process definitioncom.google.protobuf.ByteStringthe bpmn process ID of the job process definitiona set of custom headers defined during modelling; returned as a serialized JSON documentcom.google.protobuf.ByteStringa set of custom headers defined during modelling; returned as a serialized JSON documentlongwhen the job can be activated again, sent as a UNIX epoch timestampstatic final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.Descriptorthe associated task element IDcom.google.protobuf.ByteStringthe associated task element IDlongthe unique key identifying the associated task, unique within the scope of the process instancelonggetKey()the key, a unique identifier for the joblongthe key of the job process definitionintthe version of the job process definitionlongthe job's process instance keyintthe amount of retries left to this job (should always be positive)getType()the type of the job (should match what was requested)com.google.protobuf.ByteStringthe type of the job (should match what was requested)JSON document, computed at activation time, consisting of all visible variables to the task scopecom.google.protobuf.ByteStringJSON document, computed at activation time, consisting of all visible variables to the task scopethe name of the worker which activated this jobcom.google.protobuf.ByteStringthe name of the worker which activated this jobprotected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setBpmnProcessId(String value) the bpmn process ID of the job process definitionsetBpmnProcessIdBytes(com.google.protobuf.ByteString value) the bpmn process ID of the job process definitionsetCustomHeaders(String value) a set of custom headers defined during modelling; returned as a serialized JSON documentsetCustomHeadersBytes(com.google.protobuf.ByteString value) a set of custom headers defined during modelling; returned as a serialized JSON documentsetDeadline(long value) when the job can be activated again, sent as a UNIX epoch timestampsetElementId(String value) the associated task element IDsetElementIdBytes(com.google.protobuf.ByteString value) the associated task element IDsetElementInstanceKey(long value) the unique key identifying the associated task, unique within the scope of the process instancesetKey(long value) the key, a unique identifier for the jobsetProcessDefinitionKey(long value) the key of the job process definitionsetProcessDefinitionVersion(int value) the version of the job process definitionsetProcessInstanceKey(long value) the job's process instance keysetRetries(int value) the amount of retries left to this job (should always be positive)the type of the job (should match what was requested)setTypeBytes(com.google.protobuf.ByteString value) the type of the job (should match what was requested)setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) setVariables(String value) JSON document, computed at activation time, consisting of all visible variables to the task scopesetVariablesBytes(com.google.protobuf.ByteString value) JSON document, computed at activation time, consisting of all visible variables to the task scopethe name of the worker which activated this jobsetWorkerBytes(com.google.protobuf.ByteString value) the name of the worker which activated this jobMethods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<GatewayOuterClass.ActivatedJob.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.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:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.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:
getKeyin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The key.
-
setKey
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
the type of the job (should match what was requested)
string type = 2;- Specified by:
getTypein interfaceGatewayOuterClass.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:
getTypeBytesin interfaceGatewayOuterClass.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
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:
getProcessInstanceKeyin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The processInstanceKey.
-
setProcessInstanceKey
the job's process instance key
int64 processInstanceKey = 3;- Parameters:
value- The processInstanceKey to set.- Returns:
- This builder for chaining.
-
clearProcessInstanceKey
the job's process instance key
int64 processInstanceKey = 3;- Returns:
- This builder for chaining.
-
getBpmnProcessId
the bpmn process ID of the job process definition
string bpmnProcessId = 4;- Specified by:
getBpmnProcessIdin interfaceGatewayOuterClass.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:
getBpmnProcessIdBytesin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The bytes for bpmnProcessId.
-
setBpmnProcessId
the bpmn process ID of the job process definition
string bpmnProcessId = 4;- Parameters:
value- The bpmnProcessId to set.- Returns:
- This builder for chaining.
-
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:
getProcessDefinitionVersionin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The processDefinitionVersion.
-
setProcessDefinitionVersion
the version of the job process definition
int32 processDefinitionVersion = 5;- Parameters:
value- The processDefinitionVersion to set.- Returns:
- This builder for chaining.
-
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:
getProcessDefinitionKeyin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The processDefinitionKey.
-
setProcessDefinitionKey
the key of the job process definition
int64 processDefinitionKey = 6;- Parameters:
value- The processDefinitionKey to set.- Returns:
- This builder for chaining.
-
clearProcessDefinitionKey
the key of the job process definition
int64 processDefinitionKey = 6;- Returns:
- This builder for chaining.
-
getElementId
the associated task element ID
string elementId = 7;- Specified by:
getElementIdin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The elementId.
-
getElementIdBytes
public com.google.protobuf.ByteString getElementIdBytes()the associated task element ID
string elementId = 7;- Specified by:
getElementIdBytesin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The bytes for elementId.
-
setElementId
the associated task element ID
string elementId = 7;- Parameters:
value- The elementId to set.- Returns:
- This builder for chaining.
-
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:
getElementInstanceKeyin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The elementInstanceKey.
-
setElementInstanceKey
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
the unique key identifying the associated task, unique within the scope of the process instance
int64 elementInstanceKey = 8;- Returns:
- This builder for chaining.
-
getCustomHeaders
a set of custom headers defined during modelling; returned as a serialized JSON document
string customHeaders = 9;- Specified by:
getCustomHeadersin interfaceGatewayOuterClass.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:
getCustomHeadersBytesin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The bytes for customHeaders.
-
setCustomHeaders
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
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
the name of the worker which activated this job
string worker = 10;- Specified by:
getWorkerin interfaceGatewayOuterClass.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:
getWorkerBytesin interfaceGatewayOuterClass.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
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:
getRetriesin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The retries.
-
setRetries
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:
getDeadlinein interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The deadline.
-
setDeadline
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
JSON document, computed at activation time, consisting of all visible variables to the task scope
string variables = 13;- Specified by:
getVariablesin interfaceGatewayOuterClass.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:
getVariablesBytesin interfaceGatewayOuterClass.ActivatedJobOrBuilder- Returns:
- The bytes for variables.
-
setVariables
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
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:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
-
mergeUnknownFields
public final GatewayOuterClass.ActivatedJob.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<GatewayOuterClass.ActivatedJob.Builder>
-