
com.aerospike.vector.client.ClusterInfoGrpc Maven / Gradle / Ivy
package com.aerospike.vector.client;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Vector DB cluster service.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.62.2)",
comments = "Source: vector-db.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ClusterInfoGrpc {
private ClusterInfoGrpc() {}
public static final java.lang.String SERVICE_NAME = "aerospike.vector.ClusterInfo";
// 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.NodeId.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetNodeIdMethod() {
io.grpc.MethodDescriptor getGetNodeIdMethod;
if ((getGetNodeIdMethod = ClusterInfoGrpc.getGetNodeIdMethod) == null) {
synchronized (ClusterInfoGrpc.class) {
if ((getGetNodeIdMethod = ClusterInfoGrpc.getGetNodeIdMethod) == null) {
ClusterInfoGrpc.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.NodeId.getDefaultInstance()))
.setSchemaDescriptor(new ClusterInfoMethodDescriptorSupplier("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.ClusterId.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetClusterIdMethod() {
io.grpc.MethodDescriptor getGetClusterIdMethod;
if ((getGetClusterIdMethod = ClusterInfoGrpc.getGetClusterIdMethod) == null) {
synchronized (ClusterInfoGrpc.class) {
if ((getGetClusterIdMethod = ClusterInfoGrpc.getGetClusterIdMethod) == null) {
ClusterInfoGrpc.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.ClusterId.getDefaultInstance()))
.setSchemaDescriptor(new ClusterInfoMethodDescriptorSupplier("GetClusterId"))
.build();
}
}
}
return getGetClusterIdMethod;
}
private static volatile io.grpc.MethodDescriptor getGetClusterEndpointsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetClusterEndpoints",
requestType = com.aerospike.vector.client.ClusterNodeEndpointsRequest.class,
responseType = com.aerospike.vector.client.ClusterNodeEndpoints.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetClusterEndpointsMethod() {
io.grpc.MethodDescriptor getGetClusterEndpointsMethod;
if ((getGetClusterEndpointsMethod = ClusterInfoGrpc.getGetClusterEndpointsMethod) == null) {
synchronized (ClusterInfoGrpc.class) {
if ((getGetClusterEndpointsMethod = ClusterInfoGrpc.getGetClusterEndpointsMethod) == null) {
ClusterInfoGrpc.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.ClusterNodeEndpointsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.ClusterNodeEndpoints.getDefaultInstance()))
.setSchemaDescriptor(new ClusterInfoMethodDescriptorSupplier("GetClusterEndpoints"))
.build();
}
}
}
return getGetClusterEndpointsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetOwnedPartitionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetOwnedPartitions",
requestType = com.google.protobuf.Empty.class,
responseType = com.aerospike.vector.client.ClusterPartitions.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetOwnedPartitionsMethod() {
io.grpc.MethodDescriptor getGetOwnedPartitionsMethod;
if ((getGetOwnedPartitionsMethod = ClusterInfoGrpc.getGetOwnedPartitionsMethod) == null) {
synchronized (ClusterInfoGrpc.class) {
if ((getGetOwnedPartitionsMethod = ClusterInfoGrpc.getGetOwnedPartitionsMethod) == null) {
ClusterInfoGrpc.getGetOwnedPartitionsMethod = getGetOwnedPartitionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetOwnedPartitions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.ClusterPartitions.getDefaultInstance()))
.setSchemaDescriptor(new ClusterInfoMethodDescriptorSupplier("GetOwnedPartitions"))
.build();
}
}
}
return getGetOwnedPartitionsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ClusterInfoStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClusterInfoStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterInfoStub(channel, callOptions);
}
};
return ClusterInfoStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ClusterInfoBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClusterInfoBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterInfoBlockingStub(channel, callOptions);
}
};
return ClusterInfoBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ClusterInfoFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClusterInfoFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterInfoFutureStub(channel, callOptions);
}
};
return ClusterInfoFutureStub.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 the advertised/listening endpoints for all nodes in the cluster, given a listener name.
*
*/
default void getClusterEndpoints(com.aerospike.vector.client.ClusterNodeEndpointsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetClusterEndpointsMethod(), responseObserver);
}
/**
*
* Get per-node owned partition list for all nodes in the cluster.
*
*/
default void getOwnedPartitions(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetOwnedPartitionsMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service ClusterInfo.
*
* Vector DB cluster service.
*
*/
public static abstract class ClusterInfoImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return ClusterInfoGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service ClusterInfo.
*
* Vector DB cluster service.
*
*/
public static final class ClusterInfoStub
extends io.grpc.stub.AbstractAsyncStub {
private ClusterInfoStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClusterInfoStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterInfoStub(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 the advertised/listening endpoints for all nodes in the cluster, given a listener name.
*
*/
public void getClusterEndpoints(com.aerospike.vector.client.ClusterNodeEndpointsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetClusterEndpointsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get per-node owned partition list for all nodes in the cluster.
*
*/
public void getOwnedPartitions(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetOwnedPartitionsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service ClusterInfo.
*
* Vector DB cluster service.
*
*/
public static final class ClusterInfoBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private ClusterInfoBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClusterInfoBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterInfoBlockingStub(channel, callOptions);
}
/**
*
* Get the internal cluster node-Id for this server.
*
*/
public com.aerospike.vector.client.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.ClusterId getClusterId(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetClusterIdMethod(), getCallOptions(), request);
}
/**
*
* Get the advertised/listening endpoints for all nodes in the cluster, given a listener name.
*
*/
public com.aerospike.vector.client.ClusterNodeEndpoints getClusterEndpoints(com.aerospike.vector.client.ClusterNodeEndpointsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetClusterEndpointsMethod(), getCallOptions(), request);
}
/**
*
* Get per-node owned partition list for all nodes in the cluster.
*
*/
public com.aerospike.vector.client.ClusterPartitions getOwnedPartitions(com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetOwnedPartitionsMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service ClusterInfo.
*
* Vector DB cluster service.
*
*/
public static final class ClusterInfoFutureStub
extends io.grpc.stub.AbstractFutureStub {
private ClusterInfoFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClusterInfoFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClusterInfoFutureStub(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 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.ClusterNodeEndpointsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetClusterEndpointsMethod(), getCallOptions()), request);
}
/**
*
* Get per-node owned partition list for all nodes in the cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture getOwnedPartitions(
com.google.protobuf.Empty request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetOwnedPartitionsMethod(), 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_CLUSTER_ENDPOINTS = 2;
private static final int METHODID_GET_OWNED_PARTITIONS = 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_CLUSTER_ENDPOINTS:
serviceImpl.getClusterEndpoints((com.aerospike.vector.client.ClusterNodeEndpointsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_OWNED_PARTITIONS:
serviceImpl.getOwnedPartitions((com.google.protobuf.Empty) 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.NodeId>(
service, METHODID_GET_NODE_ID)))
.addMethod(
getGetClusterIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
com.aerospike.vector.client.ClusterId>(
service, METHODID_GET_CLUSTER_ID)))
.addMethod(
getGetClusterEndpointsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.aerospike.vector.client.ClusterNodeEndpointsRequest,
com.aerospike.vector.client.ClusterNodeEndpoints>(
service, METHODID_GET_CLUSTER_ENDPOINTS)))
.addMethod(
getGetOwnedPartitionsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
com.aerospike.vector.client.ClusterPartitions>(
service, METHODID_GET_OWNED_PARTITIONS)))
.build();
}
private static abstract class ClusterInfoBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ClusterInfoBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.aerospike.vector.client.VectorDb.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ClusterInfo");
}
}
private static final class ClusterInfoFileDescriptorSupplier
extends ClusterInfoBaseDescriptorSupplier {
ClusterInfoFileDescriptorSupplier() {}
}
private static final class ClusterInfoMethodDescriptorSupplier
extends ClusterInfoBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
ClusterInfoMethodDescriptorSupplier(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 (ClusterInfoGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ClusterInfoFileDescriptorSupplier())
.addMethod(getGetNodeIdMethod())
.addMethod(getGetClusterIdMethod())
.addMethod(getGetClusterEndpointsMethod())
.addMethod(getGetOwnedPartitionsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy