@Override public void onCompleted() { putObs.onCompleted(); responseObserver.onNext(Kv.Empty.newBuilder().build()); responseObserver.onCompleted(); LOGGER.info(String.format("%s put all %d entries", store.toString(), count)); } };
@java.lang.Override public int hashCode() { if (memoizedHashCode != 0) { return memoizedHashCode; } int hash = 41; hash = (19 * hash) + getDescriptor().hashCode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; }
break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
break; default: { if (!parseUnknownFieldProto3( input, unknownFields, extensionRegistry, tag)) { done = true; } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable();
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "putAll", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutAllMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutAllMethod; if ((getPutAllMethod = KVServiceGrpc.getPutAllMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutAllMethod = KVServiceGrpc.getPutAllMethod) == null) { KVServiceGrpc.getPutAllMethod = getPutAllMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "putAll")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("putAll")) .build(); } } } return getPutAllMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "destroy", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.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.Empty> getDestroyMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getDestroyMethod; if ((getDestroyMethod = KVServiceGrpc.getDestroyMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getDestroyMethod = KVServiceGrpc.getDestroyMethod) == null) { KVServiceGrpc.getDestroyMethod = getDestroyMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "destroy")) .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.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("destroy")) .build(); } } } return getDestroyMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "destroy", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.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.Empty> getDestroyMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getDestroyMethod; if ((getDestroyMethod = KVServiceGrpc.getDestroyMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getDestroyMethod = KVServiceGrpc.getDestroyMethod) == null) { KVServiceGrpc.getDestroyMethod = getDestroyMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Empty, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "destroy")) .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.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("destroy")) .build(); } } } return getDestroyMethod; }
@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 + '/' + "put", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutMethod; if ((getPutMethod = KVServiceGrpc.getPutMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutMethod = KVServiceGrpc.getPutMethod) == null) { KVServiceGrpc.getPutMethod = getPutMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "put")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("put")) .build(); } } } return getPutMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "put", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutMethod; if ((getPutMethod = KVServiceGrpc.getPutMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutMethod = KVServiceGrpc.getPutMethod) == null) { KVServiceGrpc.getPutMethod = getPutMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "put")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("put")) .build(); } } } return getPutMethod; }
@io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "putAll", requestType = com.webank.ai.fate.api.eggroll.storage.Kv.Operand.class, responseType = com.webank.ai.fate.api.eggroll.storage.Kv.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) public static io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutAllMethod() { io.grpc.MethodDescriptor<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty> getPutAllMethod; if ((getPutAllMethod = KVServiceGrpc.getPutAllMethod) == null) { synchronized (KVServiceGrpc.class) { if ((getPutAllMethod = KVServiceGrpc.getPutAllMethod) == null) { KVServiceGrpc.getPutAllMethod = getPutAllMethod = io.grpc.MethodDescriptor.<com.webank.ai.fate.api.eggroll.storage.Kv.Operand, com.webank.ai.fate.api.eggroll.storage.Kv.Empty>newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING) .setFullMethodName(generateFullMethodName( "com.webank.ai.fate.api.eggroll.storage.KVService", "putAll")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Operand.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance())) .setSchemaDescriptor(new KVServiceMethodDescriptorSupplier("putAll")) .build(); } } } return getPutAllMethod; }
@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 Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public Builder newBuilderForType() { return newBuilder(); } public static Builder newBuilder() {
@java.lang.Override public com.webank.ai.fate.api.eggroll.storage.Kv.Empty getDefaultInstanceForType() { return com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance(); }
public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } public static Builder newBuilder(com.webank.ai.fate.api.eggroll.storage.Kv.Empty prototype) {
public static Builder newBuilder(com.webank.ai.fate.api.eggroll.storage.Kv.Empty 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.Empty prototype) {
@java.lang.Override public com.webank.ai.fate.api.eggroll.storage.Kv.Empty getDefaultInstanceForType() { return com.webank.ai.fate.api.eggroll.storage.Kv.Empty.getDefaultInstance(); }
public static Builder newBuilder(com.webank.ai.fate.api.eggroll.storage.Kv.Empty prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } @java.lang.Override