@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + WORKFLOWKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkflowKey()); hash = (37 * hash) + BPMNPROCESSID_FIELD_NUMBER; hash = (53 * hash) + getBpmnProcessId().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; hash = (53 * hash) + getPayload().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest other = (io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest) obj; boolean result = true; result = result && (getWorkflowKey() == other.getWorkflowKey()); result = result && getBpmnProcessId() .equals(other.getBpmnProcessId()); result = result && (getVersion() == other.getVersion()); result = result && getPayload() .equals(other.getPayload()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.CreateWorkflowInstanceRequest.getDefaultInstance()) return this; if (other.getWorkflowKey() != 0L) { setWorkflowKey(other.getWorkflowKey()); } if (!other.getBpmnProcessId().isEmpty()) { bpmnProcessId_ = other.bpmnProcessId_; onChanged(); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (!other.getPayload().isEmpty()) { payload_ = other.payload_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * the BPMN process ID of the workflow definition * </pre> * * <code>string bpmnProcessId = 2;</code> */ public Builder clearBpmnProcessId() { bpmnProcessId_ = getDefaultInstance().getBpmnProcessId(); onChanged(); return this; } /**
public static BrokerCreateWorkflowInstanceRequest toCreateWorkflowInstanceRequest( CreateWorkflowInstanceRequest grpcRequest) { final BrokerCreateWorkflowInstanceRequest brokerRequest = new BrokerCreateWorkflowInstanceRequest(); brokerRequest .setBpmnProcessId(grpcRequest.getBpmnProcessId()) .setWorkflowKey(grpcRequest.getWorkflowKey()) .setVersion(grpcRequest.getVersion()) .setPayload(ensureJsonSet(grpcRequest.getPayload())); return brokerRequest; }