All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.aerospike.vector.client.proto.ClusterInfoServiceGrpc Maven / Gradle / Ivy

Go to download

This project includes the Java client for Aerospike Vector Search for high-performance data interactions.

The newest version!
package com.aerospike.vector.client.proto;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Vector DB cluster service.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.65.1)", comments = "Source: vector-db.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ClusterInfoServiceGrpc { private ClusterInfoServiceGrpc() {} public static final java.lang.String SERVICE_NAME = "aerospike.vector.ClusterInfoService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetNodeIdMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetNodeId", requestType = com.google.protobuf.Empty.class, responseType = com.aerospike.vector.client.proto.NodeId.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetNodeIdMethod() { io.grpc.MethodDescriptor getGetNodeIdMethod; if ((getGetNodeIdMethod = ClusterInfoServiceGrpc.getGetNodeIdMethod) == null) { synchronized (ClusterInfoServiceGrpc.class) { if ((getGetNodeIdMethod = ClusterInfoServiceGrpc.getGetNodeIdMethod) == null) { ClusterInfoServiceGrpc.getGetNodeIdMethod = getGetNodeIdMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeId")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.aerospike.vector.client.proto.NodeId.getDefaultInstance())) .setSchemaDescriptor(new ClusterInfoServiceMethodDescriptorSupplier("GetNodeId")) .build(); } } } return getGetNodeIdMethod; } private static volatile io.grpc.MethodDescriptor getGetClusterIdMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetClusterId", requestType = com.google.protobuf.Empty.class, responseType = com.aerospike.vector.client.proto.ClusterId.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetClusterIdMethod() { io.grpc.MethodDescriptor getGetClusterIdMethod; if ((getGetClusterIdMethod = ClusterInfoServiceGrpc.getGetClusterIdMethod) == null) { synchronized (ClusterInfoServiceGrpc.class) { if ((getGetClusterIdMethod = ClusterInfoServiceGrpc.getGetClusterIdMethod) == null) { ClusterInfoServiceGrpc.getGetClusterIdMethod = getGetClusterIdMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClusterId")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.aerospike.vector.client.proto.ClusterId.getDefaultInstance())) .setSchemaDescriptor(new ClusterInfoServiceMethodDescriptorSupplier("GetClusterId")) .build(); } } } return getGetClusterIdMethod; } private static volatile io.grpc.MethodDescriptor getGetClusteringStateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetClusteringState", requestType = com.google.protobuf.Empty.class, responseType = com.aerospike.vector.client.proto.ClusteringState.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetClusteringStateMethod() { io.grpc.MethodDescriptor getGetClusteringStateMethod; if ((getGetClusteringStateMethod = ClusterInfoServiceGrpc.getGetClusteringStateMethod) == null) { synchronized (ClusterInfoServiceGrpc.class) { if ((getGetClusteringStateMethod = ClusterInfoServiceGrpc.getGetClusteringStateMethod) == null) { ClusterInfoServiceGrpc.getGetClusteringStateMethod = getGetClusteringStateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClusteringState")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.aerospike.vector.client.proto.ClusteringState.getDefaultInstance())) .setSchemaDescriptor(new ClusterInfoServiceMethodDescriptorSupplier("GetClusteringState")) .build(); } } } return getGetClusteringStateMethod; } private static volatile io.grpc.MethodDescriptor getGetClusterEndpointsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetClusterEndpoints", requestType = com.aerospike.vector.client.proto.ClusterNodeEndpointsRequest.class, responseType = com.aerospike.vector.client.proto.ClusterNodeEndpoints.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetClusterEndpointsMethod() { io.grpc.MethodDescriptor getGetClusterEndpointsMethod; if ((getGetClusterEndpointsMethod = ClusterInfoServiceGrpc.getGetClusterEndpointsMethod) == null) { synchronized (ClusterInfoServiceGrpc.class) { if ((getGetClusterEndpointsMethod = ClusterInfoServiceGrpc.getGetClusterEndpointsMethod) == null) { ClusterInfoServiceGrpc.getGetClusterEndpointsMethod = getGetClusterEndpointsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetClusterEndpoints")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.aerospike.vector.client.proto.ClusterNodeEndpointsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.aerospike.vector.client.proto.ClusterNodeEndpoints.getDefaultInstance())) .setSchemaDescriptor(new ClusterInfoServiceMethodDescriptorSupplier("GetClusterEndpoints")) .build(); } } } return getGetClusterEndpointsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ClusterInfoServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClusterInfoServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterInfoServiceStub(channel, callOptions); } }; return ClusterInfoServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ClusterInfoServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClusterInfoServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterInfoServiceBlockingStub(channel, callOptions); } }; return ClusterInfoServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ClusterInfoServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ClusterInfoServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterInfoServiceFutureStub(channel, callOptions); } }; return ClusterInfoServiceFutureStub.newStub(factory, channel); } /** *
   * Vector DB cluster service.
   * 
*/ public interface AsyncService { /** *
     * Get the internal cluster node-Id for this server.
     * 
*/ default void getNodeId(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeIdMethod(), responseObserver); } /** *
     * Get current cluster-Id for the current cluster.
     * 
*/ default void getClusterId(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterIdMethod(), responseObserver); } /** *
     * Get current cluster-Id for the current cluster.
     * 
*/ default void getClusteringState(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusteringStateMethod(), responseObserver); } /** *
     * Get the advertised/listening endpoints for all nodes in the cluster, given a listener name.
     * 
*/ default void getClusterEndpoints(com.aerospike.vector.client.proto.ClusterNodeEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterEndpointsMethod(), responseObserver); } } /** * Base class for the server implementation of the service ClusterInfoService. *
   * Vector DB cluster service.
   * 
*/ public static abstract class ClusterInfoServiceImplBase implements io.grpc.BindableService, AsyncService { @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return ClusterInfoServiceGrpc.bindService(this); } } /** * A stub to allow clients to do asynchronous rpc calls to service ClusterInfoService. *
   * Vector DB cluster service.
   * 
*/ public static final class ClusterInfoServiceStub extends io.grpc.stub.AbstractAsyncStub { private ClusterInfoServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClusterInfoServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterInfoServiceStub(channel, callOptions); } /** *
     * Get the internal cluster node-Id for this server.
     * 
*/ public void getNodeId(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetNodeIdMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get current cluster-Id for the current cluster.
     * 
*/ public void getClusterId(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetClusterIdMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get current cluster-Id for the current cluster.
     * 
*/ public void getClusteringState(com.google.protobuf.Empty request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetClusteringStateMethod(), getCallOptions()), request, responseObserver); } /** *
     * Get the advertised/listening endpoints for all nodes in the cluster, given a listener name.
     * 
*/ public void getClusterEndpoints(com.aerospike.vector.client.proto.ClusterNodeEndpointsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetClusterEndpointsMethod(), getCallOptions()), request, responseObserver); } } /** * A stub to allow clients to do synchronous rpc calls to service ClusterInfoService. *
   * Vector DB cluster service.
   * 
*/ public static final class ClusterInfoServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ClusterInfoServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClusterInfoServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterInfoServiceBlockingStub(channel, callOptions); } /** *
     * Get the internal cluster node-Id for this server.
     * 
*/ public com.aerospike.vector.client.proto.NodeId getNodeId(com.google.protobuf.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetNodeIdMethod(), getCallOptions(), request); } /** *
     * Get current cluster-Id for the current cluster.
     * 
*/ public com.aerospike.vector.client.proto.ClusterId getClusterId(com.google.protobuf.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetClusterIdMethod(), getCallOptions(), request); } /** *
     * Get current cluster-Id for the current cluster.
     * 
*/ public com.aerospike.vector.client.proto.ClusteringState getClusteringState(com.google.protobuf.Empty request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetClusteringStateMethod(), getCallOptions(), request); } /** *
     * Get the advertised/listening endpoints for all nodes in the cluster, given a listener name.
     * 
*/ public com.aerospike.vector.client.proto.ClusterNodeEndpoints getClusterEndpoints(com.aerospike.vector.client.proto.ClusterNodeEndpointsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetClusterEndpointsMethod(), getCallOptions(), request); } } /** * A stub to allow clients to do ListenableFuture-style rpc calls to service ClusterInfoService. *
   * Vector DB cluster service.
   * 
*/ public static final class ClusterInfoServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ClusterInfoServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ClusterInfoServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ClusterInfoServiceFutureStub(channel, callOptions); } /** *
     * Get the internal cluster node-Id for this server.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getNodeId( com.google.protobuf.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetNodeIdMethod(), getCallOptions()), request); } /** *
     * Get current cluster-Id for the current cluster.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getClusterId( com.google.protobuf.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetClusterIdMethod(), getCallOptions()), request); } /** *
     * Get current cluster-Id for the current cluster.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getClusteringState( com.google.protobuf.Empty request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetClusteringStateMethod(), getCallOptions()), request); } /** *
     * Get the advertised/listening endpoints for all nodes in the cluster, given a listener name.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getClusterEndpoints( com.aerospike.vector.client.proto.ClusterNodeEndpointsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetClusterEndpointsMethod(), getCallOptions()), request); } } private static final int METHODID_GET_NODE_ID = 0; private static final int METHODID_GET_CLUSTER_ID = 1; private static final int METHODID_GET_CLUSTERING_STATE = 2; private static final int METHODID_GET_CLUSTER_ENDPOINTS = 3; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, io.grpc.stub.ServerCalls.ServerStreamingMethod, io.grpc.stub.ServerCalls.ClientStreamingMethod, io.grpc.stub.ServerCalls.BidiStreamingMethod { private final AsyncService serviceImpl; private final int methodId; MethodHandlers(AsyncService serviceImpl, int methodId) { this.serviceImpl = serviceImpl; this.methodId = methodId; } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { case METHODID_GET_NODE_ID: serviceImpl.getNodeId((com.google.protobuf.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CLUSTER_ID: serviceImpl.getClusterId((com.google.protobuf.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CLUSTERING_STATE: serviceImpl.getClusteringState((com.google.protobuf.Empty) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_CLUSTER_ENDPOINTS: serviceImpl.getClusterEndpoints((com.aerospike.vector.client.proto.ClusterNodeEndpointsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetNodeIdMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.protobuf.Empty, com.aerospike.vector.client.proto.NodeId>( service, METHODID_GET_NODE_ID))) .addMethod( getGetClusterIdMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.protobuf.Empty, com.aerospike.vector.client.proto.ClusterId>( service, METHODID_GET_CLUSTER_ID))) .addMethod( getGetClusteringStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.google.protobuf.Empty, com.aerospike.vector.client.proto.ClusteringState>( service, METHODID_GET_CLUSTERING_STATE))) .addMethod( getGetClusterEndpointsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.aerospike.vector.client.proto.ClusterNodeEndpointsRequest, com.aerospike.vector.client.proto.ClusterNodeEndpoints>( service, METHODID_GET_CLUSTER_ENDPOINTS))) .build(); } private static abstract class ClusterInfoServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ClusterInfoServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.aerospike.vector.client.proto.VectorDb.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ClusterInfoService"); } } private static final class ClusterInfoServiceFileDescriptorSupplier extends ClusterInfoServiceBaseDescriptorSupplier { ClusterInfoServiceFileDescriptorSupplier() {} } private static final class ClusterInfoServiceMethodDescriptorSupplier extends ClusterInfoServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final java.lang.String methodName; ClusterInfoServiceMethodDescriptorSupplier(java.lang.String methodName) { this.methodName = methodName; } @java.lang.Override public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { return getServiceDescriptor().findMethodByName(methodName); } } private static volatile io.grpc.ServiceDescriptor serviceDescriptor; public static io.grpc.ServiceDescriptor getServiceDescriptor() { io.grpc.ServiceDescriptor result = serviceDescriptor; if (result == null) { synchronized (ClusterInfoServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ClusterInfoServiceFileDescriptorSupplier()) .addMethod(getGetNodeIdMethod()) .addMethod(getGetClusterIdMethod()) .addMethod(getGetClusteringStateMethod()) .addMethod(getGetClusterEndpointsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy