@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; }
} else { long result = countValueResult.get(); Kv.Count countResult = Kv.Count.newBuilder().setValue(result).build(); LOGGER.info("[ROLL][COUNT][EGG] result: {}", result); responseObserver.onNext(countResult);
@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; }
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "count", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Count.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Count> getCountMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Count> getCountMethod; if ((getCountMethod = KVServiceGrpc.getCountMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getCountMethod = KVServiceGrpc.getCountMethod) == null) { KVServiceGrpc.getCountMethod = getCountMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Count>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "count")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Count.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("count")) .build(); } } } return getCountMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "count", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Count.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Count> getCountMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Count> getCountMethod; if ((getCountMethod = KVServiceGrpc.getCountMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getCountMethod = KVServiceGrpc.getCountMethod) == null) { KVServiceGrpc.getCountMethod = getCountMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Count>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "count")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Count.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("count")) .build(); } } } return getCountMethod; }
@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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
public static Builder newBuilder(com.webank.ai.fate.api.eggroll.storage.Kv.Count prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.webank.ai.fate.api.eggroll.storage.Kv.Count prototype) {
@java.lang.Override public com.webank.ai.fate.api.eggroll.storage.Kv.Count getDefaultInstanceForType() { return com.webank.ai.fate.api.eggroll.storage.Kv.Count.getDefaultInstance(); }
public static Builder newBuilder(com.webank.ai.fate.api.eggroll.storage.Kv.Count prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.webank.ai.fate.api.eggroll.storage.Kv.Count prototype) {
@Override public long count() { Kv.Count result = blockingStub.count(ModelConstants.EMPTY); return result.getValue(); }
@java.lang.Override public com.webank.ai.fate.api.eggroll.storage.Kv.Count buildPartial() { com.webank.ai.fate.api.eggroll.storage.Kv.Count result = new com.webank.ai.fate.api.eggroll.storage.Kv.Count(this); result.value_ = value_; onBuilt(); return result; }
@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; }
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; }