@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + ELEMENTINSTANCEKEY_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getElementInstanceKey()); 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.UpdateWorkflowInstancePayloadRequest)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest other = (io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest) obj; boolean result = true; result = result && (getElementInstanceKey() == other.getElementInstanceKey()); result = result && getPayload() .equals(other.getPayload()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.UpdateWorkflowInstancePayloadRequest.getDefaultInstance()) return this; if (other.getElementInstanceKey() != 0L) { setElementInstanceKey(other.getElementInstanceKey()); } if (!other.getPayload().isEmpty()) { payload_ = other.payload_; onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public static BrokerUpdateWorkflowInstancePayloadRequest toUpdateWorkflowInstancePayloadRequest( UpdateWorkflowInstancePayloadRequest grpcRequest) { final BrokerUpdateWorkflowInstancePayloadRequest brokerRequest = new BrokerUpdateWorkflowInstancePayloadRequest(); brokerRequest.setElementInstanceKey(grpcRequest.getElementInstanceKey()); brokerRequest.setPayload(ensureJsonSet(grpcRequest.getPayload())); return brokerRequest; }