@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 Builder mergeFrom(io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest other) { if (other == io.zeebe.gateway.protocol.GatewayOuterClass.ActivateJobsRequest.getDefaultInstance()) return this; if (!other.getType().isEmpty()) { type_ = other.type_; onChanged(); } if (!other.getWorker().isEmpty()) { worker_ = other.worker_; onChanged(); } if (other.getTimeout() != 0L) { setTimeout(other.getTimeout()); } if (other.getAmount() != 0) { setAmount(other.getAmount()); } if (!other.fetchVariable_.isEmpty()) { if (fetchVariable_.isEmpty()) { fetchVariable_ = other.fetchVariable_; bitField0_ = (bitField0_ & ~0x00000010); } else { ensureFetchVariableIsMutable(); fetchVariable_.addAll(other.fetchVariable_); } onChanged(); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
public void activateJobs( int partitionsCount, ActivateJobsRequest request, StreamObserver<ActivateJobsResponse> responseObserver) { activateJobs( RequestMapper.toActivateJobsRequest(request), partitionIdIteratorForType(request.getType(), partitionsCount), request.getAmount(), request.getType(), responseObserver); }
public static BrokerActivateJobsRequest toActivateJobsRequest(ActivateJobsRequest grpcRequest) { return new BrokerActivateJobsRequest(grpcRequest.getType()) .setTimeout(grpcRequest.getTimeout()) .setWorker(grpcRequest.getWorker()) .setAmount(grpcRequest.getAmount()) .setVariables(grpcRequest.getFetchVariableList()); }