@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) + VERSION_FIELD_NUMBER; hash = (53 * hash) + getVersion(); hash = (37 * hash) + BPMNPROCESSID_FIELD_NUMBER; hash = (53 * hash) + getBpmnProcessId().hashCode(); hash = (37 * hash) + RESOURCENAME_FIELD_NUMBER; hash = (53 * hash) + getResourceName().hashCode(); hash = (37 * hash) + BPMNXML_FIELD_NUMBER; hash = (53 * hash) + getBpmnXml().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.GetWorkflowResponse)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.GetWorkflowResponse other = (io.zeebe.gateway.protocol.GatewayOuterClass.GetWorkflowResponse) obj; boolean result = true; result = result && (getWorkflowKey() == other.getWorkflowKey()); result = result && (getVersion() == other.getVersion()); result = result && getBpmnProcessId() .equals(other.getBpmnProcessId()); result = result && getResourceName() .equals(other.getResourceName()); result = result && getBpmnXml() .equals(other.getBpmnXml()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.GetWorkflowResponse other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.GetWorkflowResponse.getDefaultInstance()) return this; if (other.getWorkflowKey() != 0L) { setWorkflowKey(other.getWorkflowKey()); } if (other.getVersion() != 0) { setVersion(other.getVersion()); } if (!other.getBpmnProcessId().isEmpty()) { bpmnProcessId_ = other.bpmnProcessId_; onChanged(); } if (!other.getResourceName().isEmpty()) { resourceName_ = other.resourceName_; onChanged(); } if (!other.getBpmnXml().isEmpty()) { bpmnXml_ = other.bpmnXml_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
/** * <pre> * the name of the resource used to deployed the workflow * </pre> * * <code>string resourceName = 4;</code> */ public Builder clearResourceName() { resourceName_ = getDefaultInstance().getResourceName(); onChanged(); return this; } /**
public WorkflowResourceImpl(GetWorkflowResponse response) { this( response.getWorkflowKey(), response.getBpmnProcessId(), response.getVersion(), response.getResourceName(), response.getBpmnXml()); }
public WorkflowResourceImpl(GetWorkflowResponse response) { this( response.getWorkflowKey(), response.getBpmnProcessId(), response.getVersion(), response.getResourceName(), response.getBpmnXml()); }