
com.aerospike.vector.client.TransactGrpc Maven / Gradle / Ivy
package com.aerospike.vector.client;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Record transaction services.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.62.2)",
comments = "Source: transact.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class TransactGrpc {
private TransactGrpc() {}
public static final java.lang.String SERVICE_NAME = "aerospike.vector.Transact";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getPutMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Put",
requestType = com.aerospike.vector.client.PutRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPutMethod() {
io.grpc.MethodDescriptor getPutMethod;
if ((getPutMethod = TransactGrpc.getPutMethod) == null) {
synchronized (TransactGrpc.class) {
if ((getPutMethod = TransactGrpc.getPutMethod) == null) {
TransactGrpc.getPutMethod = getPutMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Put"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.PutRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new TransactMethodDescriptorSupplier("Put"))
.build();
}
}
}
return getPutMethod;
}
private static volatile io.grpc.MethodDescriptor getGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Get",
requestType = com.aerospike.vector.client.GetRequest.class,
responseType = com.aerospike.vector.client.Record.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMethod() {
io.grpc.MethodDescriptor getGetMethod;
if ((getGetMethod = TransactGrpc.getGetMethod) == null) {
synchronized (TransactGrpc.class) {
if ((getGetMethod = TransactGrpc.getGetMethod) == null) {
TransactGrpc.getGetMethod = getGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Get"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.GetRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.Record.getDefaultInstance()))
.setSchemaDescriptor(new TransactMethodDescriptorSupplier("Get"))
.build();
}
}
}
return getGetMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delete",
requestType = com.aerospike.vector.client.DeleteRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteMethod() {
io.grpc.MethodDescriptor getDeleteMethod;
if ((getDeleteMethod = TransactGrpc.getDeleteMethod) == null) {
synchronized (TransactGrpc.class) {
if ((getDeleteMethod = TransactGrpc.getDeleteMethod) == null) {
TransactGrpc.getDeleteMethod = getDeleteMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delete"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.DeleteRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new TransactMethodDescriptorSupplier("Delete"))
.build();
}
}
}
return getDeleteMethod;
}
private static volatile io.grpc.MethodDescriptor getExistsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Exists",
requestType = com.aerospike.vector.client.ExistsRequest.class,
responseType = com.aerospike.vector.client.Boolean.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getExistsMethod() {
io.grpc.MethodDescriptor getExistsMethod;
if ((getExistsMethod = TransactGrpc.getExistsMethod) == null) {
synchronized (TransactGrpc.class) {
if ((getExistsMethod = TransactGrpc.getExistsMethod) == null) {
TransactGrpc.getExistsMethod = getExistsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Exists"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.ExistsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.Boolean.getDefaultInstance()))
.setSchemaDescriptor(new TransactMethodDescriptorSupplier("Exists"))
.build();
}
}
}
return getExistsMethod;
}
private static volatile io.grpc.MethodDescriptor getIsIndexedMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "IsIndexed",
requestType = com.aerospike.vector.client.IsIndexedRequest.class,
responseType = com.aerospike.vector.client.Boolean.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getIsIndexedMethod() {
io.grpc.MethodDescriptor getIsIndexedMethod;
if ((getIsIndexedMethod = TransactGrpc.getIsIndexedMethod) == null) {
synchronized (TransactGrpc.class) {
if ((getIsIndexedMethod = TransactGrpc.getIsIndexedMethod) == null) {
TransactGrpc.getIsIndexedMethod = getIsIndexedMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "IsIndexed"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.IsIndexedRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.Boolean.getDefaultInstance()))
.setSchemaDescriptor(new TransactMethodDescriptorSupplier("IsIndexed"))
.build();
}
}
}
return getIsIndexedMethod;
}
private static volatile io.grpc.MethodDescriptor getVectorSearchMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "VectorSearch",
requestType = com.aerospike.vector.client.VectorSearchRequest.class,
responseType = com.aerospike.vector.client.Neighbor.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getVectorSearchMethod() {
io.grpc.MethodDescriptor getVectorSearchMethod;
if ((getVectorSearchMethod = TransactGrpc.getVectorSearchMethod) == null) {
synchronized (TransactGrpc.class) {
if ((getVectorSearchMethod = TransactGrpc.getVectorSearchMethod) == null) {
TransactGrpc.getVectorSearchMethod = getVectorSearchMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "VectorSearch"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.VectorSearchRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.aerospike.vector.client.Neighbor.getDefaultInstance()))
.setSchemaDescriptor(new TransactMethodDescriptorSupplier("VectorSearch"))
.build();
}
}
}
return getVectorSearchMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static TransactStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TransactStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactStub(channel, callOptions);
}
};
return TransactStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static TransactBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TransactBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactBlockingStub(channel, callOptions);
}
};
return TransactBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TransactFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TransactFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactFutureStub(channel, callOptions);
}
};
return TransactFutureStub.newStub(factory, channel);
}
/**
*
* Record transaction services.
*
*/
public interface AsyncService {
/**
*
* Update/insert records.
*
*/
default void put(com.aerospike.vector.client.PutRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPutMethod(), responseObserver);
}
/**
*
* Get a record.
*
*/
default void get(com.aerospike.vector.client.GetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMethod(), responseObserver);
}
/**
*
* Delete a record.
*
*/
default void delete(com.aerospike.vector.client.DeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteMethod(), responseObserver);
}
/**
*
* Check if a record exists.
*
*/
default void exists(com.aerospike.vector.client.ExistsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getExistsMethod(), responseObserver);
}
/**
*
* Check is a record is indexed.
*
*/
default void isIndexed(com.aerospike.vector.client.IsIndexedRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getIsIndexedMethod(), responseObserver);
}
/**
*
* Perform a vector nearest neighbor search.
*
*/
default void vectorSearch(com.aerospike.vector.client.VectorSearchRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVectorSearchMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Transact.
*
* Record transaction services.
*
*/
public static abstract class TransactImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return TransactGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Transact.
*
* Record transaction services.
*
*/
public static final class TransactStub
extends io.grpc.stub.AbstractAsyncStub {
private TransactStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TransactStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactStub(channel, callOptions);
}
/**
*
* Update/insert records.
*
*/
public void put(com.aerospike.vector.client.PutRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPutMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get a record.
*
*/
public void get(com.aerospike.vector.client.GetRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delete a record.
*
*/
public void delete(com.aerospike.vector.client.DeleteRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Check if a record exists.
*
*/
public void exists(com.aerospike.vector.client.ExistsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getExistsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Check is a record is indexed.
*
*/
public void isIndexed(com.aerospike.vector.client.IsIndexedRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getIsIndexedMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Perform a vector nearest neighbor search.
*
*/
public void vectorSearch(com.aerospike.vector.client.VectorSearchRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getVectorSearchMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Transact.
*
* Record transaction services.
*
*/
public static final class TransactBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private TransactBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TransactBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactBlockingStub(channel, callOptions);
}
/**
*
* Update/insert records.
*
*/
public com.google.protobuf.Empty put(com.aerospike.vector.client.PutRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPutMethod(), getCallOptions(), request);
}
/**
*
* Get a record.
*
*/
public com.aerospike.vector.client.Record get(com.aerospike.vector.client.GetRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMethod(), getCallOptions(), request);
}
/**
*
* Delete a record.
*
*/
public com.google.protobuf.Empty delete(com.aerospike.vector.client.DeleteRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteMethod(), getCallOptions(), request);
}
/**
*
* Check if a record exists.
*
*/
public com.aerospike.vector.client.Boolean exists(com.aerospike.vector.client.ExistsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getExistsMethod(), getCallOptions(), request);
}
/**
*
* Check is a record is indexed.
*
*/
public com.aerospike.vector.client.Boolean isIndexed(com.aerospike.vector.client.IsIndexedRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getIsIndexedMethod(), getCallOptions(), request);
}
/**
*
* Perform a vector nearest neighbor search.
*
*/
public java.util.Iterator vectorSearch(
com.aerospike.vector.client.VectorSearchRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getVectorSearchMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Transact.
*
* Record transaction services.
*
*/
public static final class TransactFutureStub
extends io.grpc.stub.AbstractFutureStub {
private TransactFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TransactFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactFutureStub(channel, callOptions);
}
/**
*
* Update/insert records.
*
*/
public com.google.common.util.concurrent.ListenableFuture put(
com.aerospike.vector.client.PutRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPutMethod(), getCallOptions()), request);
}
/**
*
* Get a record.
*
*/
public com.google.common.util.concurrent.ListenableFuture get(
com.aerospike.vector.client.GetRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMethod(), getCallOptions()), request);
}
/**
*
* Delete a record.
*
*/
public com.google.common.util.concurrent.ListenableFuture delete(
com.aerospike.vector.client.DeleteRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteMethod(), getCallOptions()), request);
}
/**
*
* Check if a record exists.
*
*/
public com.google.common.util.concurrent.ListenableFuture exists(
com.aerospike.vector.client.ExistsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getExistsMethod(), getCallOptions()), request);
}
/**
*
* Check is a record is indexed.
*
*/
public com.google.common.util.concurrent.ListenableFuture isIndexed(
com.aerospike.vector.client.IsIndexedRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getIsIndexedMethod(), getCallOptions()), request);
}
}
private static final int METHODID_PUT = 0;
private static final int METHODID_GET = 1;
private static final int METHODID_DELETE = 2;
private static final int METHODID_EXISTS = 3;
private static final int METHODID_IS_INDEXED = 4;
private static final int METHODID_VECTOR_SEARCH = 5;
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_PUT:
serviceImpl.put((com.aerospike.vector.client.PutRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET:
serviceImpl.get((com.aerospike.vector.client.GetRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE:
serviceImpl.delete((com.aerospike.vector.client.DeleteRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EXISTS:
serviceImpl.exists((com.aerospike.vector.client.ExistsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_IS_INDEXED:
serviceImpl.isIndexed((com.aerospike.vector.client.IsIndexedRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_VECTOR_SEARCH:
serviceImpl.vectorSearch((com.aerospike.vector.client.VectorSearchRequest) 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(
getPutMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.aerospike.vector.client.PutRequest,
com.google.protobuf.Empty>(
service, METHODID_PUT)))
.addMethod(
getGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.aerospike.vector.client.GetRequest,
com.aerospike.vector.client.Record>(
service, METHODID_GET)))
.addMethod(
getDeleteMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.aerospike.vector.client.DeleteRequest,
com.google.protobuf.Empty>(
service, METHODID_DELETE)))
.addMethod(
getExistsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.aerospike.vector.client.ExistsRequest,
com.aerospike.vector.client.Boolean>(
service, METHODID_EXISTS)))
.addMethod(
getIsIndexedMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.aerospike.vector.client.IsIndexedRequest,
com.aerospike.vector.client.Boolean>(
service, METHODID_IS_INDEXED)))
.addMethod(
getVectorSearchMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.aerospike.vector.client.VectorSearchRequest,
com.aerospike.vector.client.Neighbor>(
service, METHODID_VECTOR_SEARCH)))
.build();
}
private static abstract class TransactBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
TransactBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.aerospike.vector.client.TransactOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Transact");
}
}
private static final class TransactFileDescriptorSupplier
extends TransactBaseDescriptorSupplier {
TransactFileDescriptorSupplier() {}
}
private static final class TransactMethodDescriptorSupplier
extends TransactBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
TransactMethodDescriptorSupplier(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 (TransactGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new TransactFileDescriptorSupplier())
.addMethod(getPutMethod())
.addMethod(getGetMethod())
.addMethod(getDeleteMethod())
.addMethod(getExistsMethod())
.addMethod(getIsIndexedMethod())
.addMethod(getVectorSearchMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy