@Override public void onSuccess(Kv.Count result) { if (result != null) { long resultValue = result.getValue(); LOGGER.warn("[ROLL][PROCESS][Count][Callback] result value: {}, address : {}:{}", resultValue, ip, port); countResult.addAndGet(result.getValue()); finishLatch.countDown(); } else { LOGGER.warn("[ROLL][PROCESS][Count][Callback] result is null. address: {}:{}", ip, port); } } }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getValue()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + VALUE_FIELD_NUMBER; hash = (53 * hash) + com.google.protobuf.Internal.hashLong( getValue()); 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 com.webank.ai.fate.api.eggroll.storage.Kv.Count)) { return super.equals(obj); } com.webank.ai.fate.api.eggroll.storage.Kv.Count other = (com.webank.ai.fate.api.eggroll.storage.Kv.Count) obj; boolean result = true; result = result && (getValue() == other.getValue()); result = result && unknownFields.equals(other.unknownFields); return result; }
@java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { return true; } if (!(obj instanceof com.webank.ai.fate.api.eggroll.storage.Kv.Count)) { return super.equals(obj); } com.webank.ai.fate.api.eggroll.storage.Kv.Count other = (com.webank.ai.fate.api.eggroll.storage.Kv.Count) obj; boolean result = true; result = result && (getValue() == other.getValue()); result = result && unknownFields.equals(other.unknownFields); return result; }
public Builder mergeFrom(com.webank.ai.fate.api.eggroll.storage.Kv.Count other) { if (other == com.webank.ai.fate.api.eggroll.storage.Kv.Count.getDefaultInstance()) return this; if (other.getValue() != 0L) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }
@Override public long count() { Kv.Count result = blockingStub.count(ModelConstants.EMPTY); return result.getValue(); }
public Builder mergeFrom(com.webank.ai.fate.api.eggroll.storage.Kv.Count other) { if (other == com.webank.ai.fate.api.eggroll.storage.Kv.Count.getDefaultInstance()) return this; if (other.getValue() != 0L) { setValue(other.getValue()); } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; }