@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WORKFLOWINSTANCEKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkflowInstanceKey()); hash = (37 * hash) + BPMNPROCESSID_FIELD_NUMBER; hash = (53 * hash) + getBpmnProcessId().hashCode(); hash = (37 * hash) + WORKFLOWDEFINITIONVERSION_FIELD_NUMBER; hash = (53 * hash) + getWorkflowDefinitionVersion(); hash = (37 * hash) + WORKFLOWKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkflowKey()); hash = (37 * hash) + ELEMENTID_FIELD_NUMBER; hash = (53 * hash) + getElementId().hashCode(); hash = (37 * hash) + ELEMENTINSTANCEKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getElementInstanceKey()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
/** * <pre> * a set of headers tying the job to a workflow instance/task instance * </pre> * * <code>.gateway_protocol.JobHeaders jobHeaders = 3;</code> */ public Builder mergeJobHeaders(io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders value) { if (jobHeadersBuilder_ == null) { if (jobHeaders_ != null) { jobHeaders_ = io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders.newBuilder(jobHeaders_).mergeFrom(value).buildPartial(); } else { jobHeaders_ = value; } onChanged(); } else { jobHeadersBuilder_.mergeFrom(value); } return this; } /**
if (hasJobHeaders()) { result = result && getJobHeaders() .equals(other.getJobHeaders());
.computeInt64Size(1, workflowInstanceKey_); if (!getBpmnProcessIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, bpmnProcessId_); .computeInt64Size(4, workflowKey_); if (!getElementIdBytes().isEmpty()) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, elementId_);
public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders.getDefaultInstance()) return this; if (other.getWorkflowInstanceKey() != 0L) { setWorkflowInstanceKey(other.getWorkflowInstanceKey()); } if (!other.getBpmnProcessId().isEmpty()) { bpmnProcessId_ = other.bpmnProcessId_; onChanged(); } if (other.getWorkflowDefinitionVersion() != 0) { setWorkflowDefinitionVersion(other.getWorkflowDefinitionVersion()); } if (other.getWorkflowKey() != 0L) { setWorkflowKey(other.getWorkflowKey()); } if (!other.getElementId().isEmpty()) { elementId_ = other.elementId_; onChanged(); } if (other.getElementInstanceKey() != 0L) { setElementInstanceKey(other.getElementInstanceKey()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@java.lang.Override public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (workflowInstanceKey_ != 0L) { output.writeInt64(1, workflowInstanceKey_); } if (!getBpmnProcessIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 2, bpmnProcessId_); } if (workflowDefinitionVersion_ != 0) { output.writeInt32(3, workflowDefinitionVersion_); } if (workflowKey_ != 0L) { output.writeInt64(4, workflowKey_); } if (!getElementIdBytes().isEmpty()) { com.google.protobuf.GeneratedMessageV3.writeString(output, 5, elementId_); } if (elementInstanceKey_ != 0L) { output.writeInt64(6, elementInstanceKey_); } unknownFields.writeTo(output); }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders other = (io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders) obj; boolean result = true; result = result && (getWorkflowInstanceKey() == other.getWorkflowInstanceKey()); result = result && getBpmnProcessId() .equals(other.getBpmnProcessId()); result = result && (getWorkflowDefinitionVersion() == other.getWorkflowDefinitionVersion()); result = result && (getWorkflowKey() == other.getWorkflowKey()); result = result && getElementId() .equals(other.getElementId()); result = result && (getElementInstanceKey() == other.getElementInstanceKey()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
/** * <pre> * the associated task element ID * </pre> * * <code>string elementId = 5;</code> */ public Builder clearElementId() { elementId_ = getDefaultInstance().getElementId(); onChanged(); return this; } /**
/** * <pre> * the bpmn process ID of the job workflow definition * </pre> * * <code>string bpmnProcessId = 2;</code> */ public Builder clearBpmnProcessId() { bpmnProcessId_ = getDefaultInstance().getBpmnProcessId(); onChanged(); return this; } /**
private static JobHeaders fromBrokerJobHeaders( io.zeebe.protocol.impl.record.value.job.JobHeaders headers) { return JobHeaders.newBuilder() .setWorkflowInstanceKey(headers.getWorkflowInstanceKey()) .setBpmnProcessId(bufferAsString(headers.getBpmnProcessId())) .setWorkflowDefinitionVersion(headers.getWorkflowDefinitionVersion()) .setWorkflowKey(headers.getWorkflowKey()) .setElementId(bufferAsString(headers.getElementId())) .setElementInstanceKey(headers.getElementInstanceKey()) .build(); }
@java.lang.Override public io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders buildPartial() { io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders result = new io.zeebe.gateway.protocol.GatewayOuterClass.JobHeaders(this); result.workflowInstanceKey_ = workflowInstanceKey_; result.bpmnProcessId_ = bpmnProcessId_; result.workflowDefinitionVersion_ = workflowDefinitionVersion_; result.workflowKey_ = workflowKey_; result.elementId_ = elementId_; result.elementInstanceKey_ = elementInstanceKey_; onBuilt(); return result; }
public JobHeadersImpl(GatewayOuterClass.JobHeaders jobHeaders) { workflowInstanceKey = jobHeaders.getWorkflowInstanceKey(); bpmnProcessId = jobHeaders.getBpmnProcessId(); workflowDefinitionVersion = jobHeaders.getWorkflowDefinitionVersion(); workflowKey = jobHeaders.getWorkflowKey(); elementId = jobHeaders.getElementId(); elementInstanceKey = jobHeaders.getElementInstanceKey(); }
public JobHeadersImpl(GatewayOuterClass.JobHeaders jobHeaders) { workflowInstanceKey = jobHeaders.getWorkflowInstanceKey(); bpmnProcessId = jobHeaders.getBpmnProcessId(); workflowDefinitionVersion = jobHeaders.getWorkflowDefinitionVersion(); workflowKey = jobHeaders.getWorkflowKey(); elementId = jobHeaders.getElementId(); elementInstanceKey = jobHeaders.getElementInstanceKey(); }