size += 1 * getFetchVariableList().size();
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + TYPE_FIELD_NUMBER; hash = (53 * hash) + getType().hashCode(); hash = (37 * hash) + WORKER_FIELD_NUMBER; hash = (53 * hash) + getWorker().hashCode(); hash = (37 * hash) + TIMEOUT_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getTimeout()); hash = (37 * hash) + AMOUNT_FIELD_NUMBER; hash = (53 * hash) + getAmount(); if (getFetchVariableCount() > 0) { hash = (37 * hash) + FETCHVARIABLE_FIELD_NUMBER; hash = (53 * hash) + getFetchVariableList().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.ActivateJobsRequest)) { return super.equals(obj); } io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest other = (io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest) obj; boolean result = true; result = result && getType() .equals(other.getType()); result = result && getWorker() .equals(other.getWorker()); result = result && (getTimeout() == other.getTimeout()); result = result && (getAmount() == other.getAmount()); result = result && getFetchVariableList() .equals(other.getFetchVariableList()); result = result && unknownFields.equals(other.unknownFields); return result; }
public static BrokerActivateJobsRequest toActivateJobsRequest(ActivateJobsRequest grpcRequest) { return new BrokerActivateJobsRequest(grpcRequest.getType()) .setTimeout(grpcRequest.getTimeout()) .setWorker(grpcRequest.getWorker()) .setAmount(grpcRequest.getAmount()) .setVariables(grpcRequest.getFetchVariableList()); }