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

ibc.core.connection.v1.QueryGrpc Maven / Gradle / Ivy

package ibc.core.connection.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Query provides defines the gRPC querier service
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.40.1)", comments = "Source: ibc/core/connection/v1/query.proto") @io.grpc.stub.annotations.GrpcGenerated public final class QueryGrpc { private QueryGrpc() {} public static final String SERVICE_NAME = "ibc.core.connection.v1.Query"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getConnectionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Connection", requestType = ibc.core.connection.v1.QueryOuterClass.QueryConnectionRequest.class, responseType = ibc.core.connection.v1.QueryOuterClass.QueryConnectionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getConnectionMethod() { io.grpc.MethodDescriptor getConnectionMethod; if ((getConnectionMethod = QueryGrpc.getConnectionMethod) == null) { synchronized (QueryGrpc.class) { if ((getConnectionMethod = QueryGrpc.getConnectionMethod) == null) { QueryGrpc.getConnectionMethod = getConnectionMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Connection")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryConnectionRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryConnectionResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Connection")) .build(); } } } return getConnectionMethod; } private static volatile io.grpc.MethodDescriptor getConnectionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Connections", requestType = ibc.core.connection.v1.QueryOuterClass.QueryConnectionsRequest.class, responseType = ibc.core.connection.v1.QueryOuterClass.QueryConnectionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getConnectionsMethod() { io.grpc.MethodDescriptor getConnectionsMethod; if ((getConnectionsMethod = QueryGrpc.getConnectionsMethod) == null) { synchronized (QueryGrpc.class) { if ((getConnectionsMethod = QueryGrpc.getConnectionsMethod) == null) { QueryGrpc.getConnectionsMethod = getConnectionsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Connections")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryConnectionsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryConnectionsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("Connections")) .build(); } } } return getConnectionsMethod; } private static volatile io.grpc.MethodDescriptor getClientConnectionsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ClientConnections", requestType = ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsRequest.class, responseType = ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getClientConnectionsMethod() { io.grpc.MethodDescriptor getClientConnectionsMethod; if ((getClientConnectionsMethod = QueryGrpc.getClientConnectionsMethod) == null) { synchronized (QueryGrpc.class) { if ((getClientConnectionsMethod = QueryGrpc.getClientConnectionsMethod) == null) { QueryGrpc.getClientConnectionsMethod = getClientConnectionsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ClientConnections")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ClientConnections")) .build(); } } } return getClientConnectionsMethod; } private static volatile io.grpc.MethodDescriptor getConnectionClientStateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ConnectionClientState", requestType = ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateRequest.class, responseType = ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getConnectionClientStateMethod() { io.grpc.MethodDescriptor getConnectionClientStateMethod; if ((getConnectionClientStateMethod = QueryGrpc.getConnectionClientStateMethod) == null) { synchronized (QueryGrpc.class) { if ((getConnectionClientStateMethod = QueryGrpc.getConnectionClientStateMethod) == null) { QueryGrpc.getConnectionClientStateMethod = getConnectionClientStateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConnectionClientState")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ConnectionClientState")) .build(); } } } return getConnectionClientStateMethod; } private static volatile io.grpc.MethodDescriptor getConnectionConsensusStateMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ConnectionConsensusState", requestType = ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateRequest.class, responseType = ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getConnectionConsensusStateMethod() { io.grpc.MethodDescriptor getConnectionConsensusStateMethod; if ((getConnectionConsensusStateMethod = QueryGrpc.getConnectionConsensusStateMethod) == null) { synchronized (QueryGrpc.class) { if ((getConnectionConsensusStateMethod = QueryGrpc.getConnectionConsensusStateMethod) == null) { QueryGrpc.getConnectionConsensusStateMethod = getConnectionConsensusStateMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConnectionConsensusState")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateResponse.getDefaultInstance())) .setSchemaDescriptor(new QueryMethodDescriptorSupplier("ConnectionConsensusState")) .build(); } } } return getConnectionConsensusStateMethod; } /** * Creates a new async stub that supports all call types for the service */ public static QueryStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public QueryStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new QueryStub(channel, callOptions); } }; return QueryStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static QueryBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public QueryBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new QueryBlockingStub(channel, callOptions); } }; return QueryBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static QueryFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public QueryFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new QueryFutureStub(channel, callOptions); } }; return QueryFutureStub.newStub(factory, channel); } /** *
   * Query provides defines the gRPC querier service
   * 
*/ public static abstract class QueryImplBase implements io.grpc.BindableService { /** *
     * Connection queries an IBC connection end.
     * 
*/ public void connection(ibc.core.connection.v1.QueryOuterClass.QueryConnectionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConnectionMethod(), responseObserver); } /** *
     * Connections queries all the IBC connections of a chain.
     * 
*/ public void connections(ibc.core.connection.v1.QueryOuterClass.QueryConnectionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConnectionsMethod(), responseObserver); } /** *
     * ClientConnections queries the connection paths associated with a client
     * state.
     * 
*/ public void clientConnections(ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getClientConnectionsMethod(), responseObserver); } /** *
     * ConnectionClientState queries the client state associated with the
     * connection.
     * 
*/ public void connectionClientState(ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConnectionClientStateMethod(), responseObserver); } /** *
     * ConnectionConsensusState queries the consensus state associated with the
     * connection.
     * 
*/ public void connectionConsensusState(ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConnectionConsensusStateMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getConnectionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.QueryOuterClass.QueryConnectionRequest, ibc.core.connection.v1.QueryOuterClass.QueryConnectionResponse>( this, METHODID_CONNECTION))) .addMethod( getConnectionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.QueryOuterClass.QueryConnectionsRequest, ibc.core.connection.v1.QueryOuterClass.QueryConnectionsResponse>( this, METHODID_CONNECTIONS))) .addMethod( getClientConnectionsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsRequest, ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsResponse>( this, METHODID_CLIENT_CONNECTIONS))) .addMethod( getConnectionClientStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateRequest, ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateResponse>( this, METHODID_CONNECTION_CLIENT_STATE))) .addMethod( getConnectionConsensusStateMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateRequest, ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateResponse>( this, METHODID_CONNECTION_CONSENSUS_STATE))) .build(); } } /** *
   * Query provides defines the gRPC querier service
   * 
*/ public static final class QueryStub extends io.grpc.stub.AbstractAsyncStub { private QueryStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected QueryStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new QueryStub(channel, callOptions); } /** *
     * Connection queries an IBC connection end.
     * 
*/ public void connection(ibc.core.connection.v1.QueryOuterClass.QueryConnectionRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getConnectionMethod(), getCallOptions()), request, responseObserver); } /** *
     * Connections queries all the IBC connections of a chain.
     * 
*/ public void connections(ibc.core.connection.v1.QueryOuterClass.QueryConnectionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getConnectionsMethod(), getCallOptions()), request, responseObserver); } /** *
     * ClientConnections queries the connection paths associated with a client
     * state.
     * 
*/ public void clientConnections(ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getClientConnectionsMethod(), getCallOptions()), request, responseObserver); } /** *
     * ConnectionClientState queries the client state associated with the
     * connection.
     * 
*/ public void connectionClientState(ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getConnectionClientStateMethod(), getCallOptions()), request, responseObserver); } /** *
     * ConnectionConsensusState queries the consensus state associated with the
     * connection.
     * 
*/ public void connectionConsensusState(ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getConnectionConsensusStateMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Query provides defines the gRPC querier service
   * 
*/ public static final class QueryBlockingStub extends io.grpc.stub.AbstractBlockingStub { private QueryBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected QueryBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new QueryBlockingStub(channel, callOptions); } /** *
     * Connection queries an IBC connection end.
     * 
*/ public ibc.core.connection.v1.QueryOuterClass.QueryConnectionResponse connection(ibc.core.connection.v1.QueryOuterClass.QueryConnectionRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getConnectionMethod(), getCallOptions(), request); } /** *
     * Connections queries all the IBC connections of a chain.
     * 
*/ public ibc.core.connection.v1.QueryOuterClass.QueryConnectionsResponse connections(ibc.core.connection.v1.QueryOuterClass.QueryConnectionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getConnectionsMethod(), getCallOptions(), request); } /** *
     * ClientConnections queries the connection paths associated with a client
     * state.
     * 
*/ public ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsResponse clientConnections(ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getClientConnectionsMethod(), getCallOptions(), request); } /** *
     * ConnectionClientState queries the client state associated with the
     * connection.
     * 
*/ public ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateResponse connectionClientState(ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getConnectionClientStateMethod(), getCallOptions(), request); } /** *
     * ConnectionConsensusState queries the consensus state associated with the
     * connection.
     * 
*/ public ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateResponse connectionConsensusState(ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getConnectionConsensusStateMethod(), getCallOptions(), request); } } /** *
   * Query provides defines the gRPC querier service
   * 
*/ public static final class QueryFutureStub extends io.grpc.stub.AbstractFutureStub { private QueryFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected QueryFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new QueryFutureStub(channel, callOptions); } /** *
     * Connection queries an IBC connection end.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture connection( ibc.core.connection.v1.QueryOuterClass.QueryConnectionRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getConnectionMethod(), getCallOptions()), request); } /** *
     * Connections queries all the IBC connections of a chain.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture connections( ibc.core.connection.v1.QueryOuterClass.QueryConnectionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getConnectionsMethod(), getCallOptions()), request); } /** *
     * ClientConnections queries the connection paths associated with a client
     * state.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture clientConnections( ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getClientConnectionsMethod(), getCallOptions()), request); } /** *
     * ConnectionClientState queries the client state associated with the
     * connection.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture connectionClientState( ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getConnectionClientStateMethod(), getCallOptions()), request); } /** *
     * ConnectionConsensusState queries the consensus state associated with the
     * connection.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture connectionConsensusState( ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getConnectionConsensusStateMethod(), getCallOptions()), request); } } private static final int METHODID_CONNECTION = 0; private static final int METHODID_CONNECTIONS = 1; private static final int METHODID_CLIENT_CONNECTIONS = 2; private static final int METHODID_CONNECTION_CLIENT_STATE = 3; private static final int METHODID_CONNECTION_CONSENSUS_STATE = 4; 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 QueryImplBase serviceImpl; private final int methodId; MethodHandlers(QueryImplBase 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_CONNECTION: serviceImpl.connection((ibc.core.connection.v1.QueryOuterClass.QueryConnectionRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CONNECTIONS: serviceImpl.connections((ibc.core.connection.v1.QueryOuterClass.QueryConnectionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CLIENT_CONNECTIONS: serviceImpl.clientConnections((ibc.core.connection.v1.QueryOuterClass.QueryClientConnectionsRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CONNECTION_CLIENT_STATE: serviceImpl.connectionClientState((ibc.core.connection.v1.QueryOuterClass.QueryConnectionClientStateRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CONNECTION_CONSENSUS_STATE: serviceImpl.connectionConsensusState((ibc.core.connection.v1.QueryOuterClass.QueryConnectionConsensusStateRequest) 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(); } } } private static abstract class QueryBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { QueryBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return ibc.core.connection.v1.QueryOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Query"); } } private static final class QueryFileDescriptorSupplier extends QueryBaseDescriptorSupplier { QueryFileDescriptorSupplier() {} } private static final class QueryMethodDescriptorSupplier extends QueryBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; QueryMethodDescriptorSupplier(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 (QueryGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new QueryFileDescriptorSupplier()) .addMethod(getConnectionMethod()) .addMethod(getConnectionsMethod()) .addMethod(getClientConnectionsMethod()) .addMethod(getConnectionClientStateMethod()) .addMethod(getConnectionConsensusStateMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy