@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + BPMNPROCESSID_FIELD_NUMBER; hash = (53 * hash) + getBpmnProcessId().hashCode(); hash = (37 * hash) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + WORKFLOWKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getWorkflowKey()); hash = (37 * hash) + RESOURCENAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().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.WorkflowMetadata)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata other = (io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata) obj; boolean result = true; result = result && getBpmnProcessId() .equals(other.getBpmnProcessId()); result = result && (getVersion() == other.getVersion()); result = result && (getWorkflowKey() == other.getWorkflowKey()); result = result && getResourceName() .equals(other.getResourceName()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.WorkflowMetadata.getDefaultInstance()) return this; if (!other.getBpmnProcessId().isEmpty()) { bpmnProcessId_ = other.bpmnProcessId_; onChanged(); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (other.getWorkflowKey() != 0L) { setWorkflowKey(other.getWorkflowKey()); } if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * the resource name (see: WorkflowRequestObject.name) from which this workflow was * parsed * </pre> * * <code>string resourceName = 4;</code> */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /**
public WorkflowImpl(WorkflowMetadata workflow) { this( workflow.getWorkflowKey(), workflow.getBpmnProcessId(), workflow.getVersion(), workflow.getResourceName()); }
public WorkflowImpl(WorkflowMetadata workflow) { this( workflow.getWorkflowKey(), workflow.getBpmnProcessId(), workflow.getVersion(), workflow.getResourceName()); }