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

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

package ibc.core.connection.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Msg defines the ibc/connection Msg service.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.40.1)", comments = "Source: ibc/core/connection/v1/tx.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MsgGrpc { private MsgGrpc() {} public static final String SERVICE_NAME = "ibc.core.connection.v1.Msg"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getConnectionOpenInitMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ConnectionOpenInit", requestType = ibc.core.connection.v1.Tx.MsgConnectionOpenInit.class, responseType = ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getConnectionOpenInitMethod() { io.grpc.MethodDescriptor getConnectionOpenInitMethod; if ((getConnectionOpenInitMethod = MsgGrpc.getConnectionOpenInitMethod) == null) { synchronized (MsgGrpc.class) { if ((getConnectionOpenInitMethod = MsgGrpc.getConnectionOpenInitMethod) == null) { MsgGrpc.getConnectionOpenInitMethod = getConnectionOpenInitMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConnectionOpenInit")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.Tx.MsgConnectionOpenInit.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ConnectionOpenInit")) .build(); } } } return getConnectionOpenInitMethod; } private static volatile io.grpc.MethodDescriptor getConnectionOpenTryMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ConnectionOpenTry", requestType = ibc.core.connection.v1.Tx.MsgConnectionOpenTry.class, responseType = ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getConnectionOpenTryMethod() { io.grpc.MethodDescriptor getConnectionOpenTryMethod; if ((getConnectionOpenTryMethod = MsgGrpc.getConnectionOpenTryMethod) == null) { synchronized (MsgGrpc.class) { if ((getConnectionOpenTryMethod = MsgGrpc.getConnectionOpenTryMethod) == null) { MsgGrpc.getConnectionOpenTryMethod = getConnectionOpenTryMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConnectionOpenTry")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.Tx.MsgConnectionOpenTry.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ConnectionOpenTry")) .build(); } } } return getConnectionOpenTryMethod; } private static volatile io.grpc.MethodDescriptor getConnectionOpenAckMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ConnectionOpenAck", requestType = ibc.core.connection.v1.Tx.MsgConnectionOpenAck.class, responseType = ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getConnectionOpenAckMethod() { io.grpc.MethodDescriptor getConnectionOpenAckMethod; if ((getConnectionOpenAckMethod = MsgGrpc.getConnectionOpenAckMethod) == null) { synchronized (MsgGrpc.class) { if ((getConnectionOpenAckMethod = MsgGrpc.getConnectionOpenAckMethod) == null) { MsgGrpc.getConnectionOpenAckMethod = getConnectionOpenAckMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConnectionOpenAck")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.Tx.MsgConnectionOpenAck.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ConnectionOpenAck")) .build(); } } } return getConnectionOpenAckMethod; } private static volatile io.grpc.MethodDescriptor getConnectionOpenConfirmMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "ConnectionOpenConfirm", requestType = ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.class, responseType = ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getConnectionOpenConfirmMethod() { io.grpc.MethodDescriptor getConnectionOpenConfirmMethod; if ((getConnectionOpenConfirmMethod = MsgGrpc.getConnectionOpenConfirmMethod) == null) { synchronized (MsgGrpc.class) { if ((getConnectionOpenConfirmMethod = MsgGrpc.getConnectionOpenConfirmMethod) == null) { MsgGrpc.getConnectionOpenConfirmMethod = getConnectionOpenConfirmMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConnectionOpenConfirm")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("ConnectionOpenConfirm")) .build(); } } } return getConnectionOpenConfirmMethod; } /** * Creates a new async stub that supports all call types for the service */ public static MsgStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MsgStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgStub(channel, callOptions); } }; return MsgStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static MsgBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MsgBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgBlockingStub(channel, callOptions); } }; return MsgBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static MsgFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MsgFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgFutureStub(channel, callOptions); } }; return MsgFutureStub.newStub(factory, channel); } /** *
   * Msg defines the ibc/connection Msg service.
   * 
*/ public static abstract class MsgImplBase implements io.grpc.BindableService { /** *
     * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
     * 
*/ public void connectionOpenInit(ibc.core.connection.v1.Tx.MsgConnectionOpenInit request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConnectionOpenInitMethod(), responseObserver); } /** *
     * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
     * 
*/ public void connectionOpenTry(ibc.core.connection.v1.Tx.MsgConnectionOpenTry request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConnectionOpenTryMethod(), responseObserver); } /** *
     * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
     * 
*/ public void connectionOpenAck(ibc.core.connection.v1.Tx.MsgConnectionOpenAck request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConnectionOpenAckMethod(), responseObserver); } /** *
     * ConnectionOpenConfirm defines a rpc handler method for
     * MsgConnectionOpenConfirm.
     * 
*/ public void connectionOpenConfirm(ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConnectionOpenConfirmMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getConnectionOpenInitMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.Tx.MsgConnectionOpenInit, ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse>( this, METHODID_CONNECTION_OPEN_INIT))) .addMethod( getConnectionOpenTryMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.Tx.MsgConnectionOpenTry, ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse>( this, METHODID_CONNECTION_OPEN_TRY))) .addMethod( getConnectionOpenAckMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.Tx.MsgConnectionOpenAck, ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse>( this, METHODID_CONNECTION_OPEN_ACK))) .addMethod( getConnectionOpenConfirmMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm, ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse>( this, METHODID_CONNECTION_OPEN_CONFIRM))) .build(); } } /** *
   * Msg defines the ibc/connection Msg service.
   * 
*/ public static final class MsgStub extends io.grpc.stub.AbstractAsyncStub { private MsgStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MsgStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgStub(channel, callOptions); } /** *
     * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
     * 
*/ public void connectionOpenInit(ibc.core.connection.v1.Tx.MsgConnectionOpenInit request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getConnectionOpenInitMethod(), getCallOptions()), request, responseObserver); } /** *
     * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
     * 
*/ public void connectionOpenTry(ibc.core.connection.v1.Tx.MsgConnectionOpenTry request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getConnectionOpenTryMethod(), getCallOptions()), request, responseObserver); } /** *
     * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
     * 
*/ public void connectionOpenAck(ibc.core.connection.v1.Tx.MsgConnectionOpenAck request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getConnectionOpenAckMethod(), getCallOptions()), request, responseObserver); } /** *
     * ConnectionOpenConfirm defines a rpc handler method for
     * MsgConnectionOpenConfirm.
     * 
*/ public void connectionOpenConfirm(ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getConnectionOpenConfirmMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Msg defines the ibc/connection Msg service.
   * 
*/ public static final class MsgBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MsgBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MsgBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgBlockingStub(channel, callOptions); } /** *
     * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
     * 
*/ public ibc.core.connection.v1.Tx.MsgConnectionOpenInitResponse connectionOpenInit(ibc.core.connection.v1.Tx.MsgConnectionOpenInit request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getConnectionOpenInitMethod(), getCallOptions(), request); } /** *
     * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
     * 
*/ public ibc.core.connection.v1.Tx.MsgConnectionOpenTryResponse connectionOpenTry(ibc.core.connection.v1.Tx.MsgConnectionOpenTry request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getConnectionOpenTryMethod(), getCallOptions(), request); } /** *
     * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
     * 
*/ public ibc.core.connection.v1.Tx.MsgConnectionOpenAckResponse connectionOpenAck(ibc.core.connection.v1.Tx.MsgConnectionOpenAck request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getConnectionOpenAckMethod(), getCallOptions(), request); } /** *
     * ConnectionOpenConfirm defines a rpc handler method for
     * MsgConnectionOpenConfirm.
     * 
*/ public ibc.core.connection.v1.Tx.MsgConnectionOpenConfirmResponse connectionOpenConfirm(ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getConnectionOpenConfirmMethod(), getCallOptions(), request); } } /** *
   * Msg defines the ibc/connection Msg service.
   * 
*/ public static final class MsgFutureStub extends io.grpc.stub.AbstractFutureStub { private MsgFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MsgFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MsgFutureStub(channel, callOptions); } /** *
     * ConnectionOpenInit defines a rpc handler method for MsgConnectionOpenInit.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture connectionOpenInit( ibc.core.connection.v1.Tx.MsgConnectionOpenInit request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getConnectionOpenInitMethod(), getCallOptions()), request); } /** *
     * ConnectionOpenTry defines a rpc handler method for MsgConnectionOpenTry.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture connectionOpenTry( ibc.core.connection.v1.Tx.MsgConnectionOpenTry request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getConnectionOpenTryMethod(), getCallOptions()), request); } /** *
     * ConnectionOpenAck defines a rpc handler method for MsgConnectionOpenAck.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture connectionOpenAck( ibc.core.connection.v1.Tx.MsgConnectionOpenAck request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getConnectionOpenAckMethod(), getCallOptions()), request); } /** *
     * ConnectionOpenConfirm defines a rpc handler method for
     * MsgConnectionOpenConfirm.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture connectionOpenConfirm( ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getConnectionOpenConfirmMethod(), getCallOptions()), request); } } private static final int METHODID_CONNECTION_OPEN_INIT = 0; private static final int METHODID_CONNECTION_OPEN_TRY = 1; private static final int METHODID_CONNECTION_OPEN_ACK = 2; private static final int METHODID_CONNECTION_OPEN_CONFIRM = 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 MsgImplBase serviceImpl; private final int methodId; MethodHandlers(MsgImplBase 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_OPEN_INIT: serviceImpl.connectionOpenInit((ibc.core.connection.v1.Tx.MsgConnectionOpenInit) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CONNECTION_OPEN_TRY: serviceImpl.connectionOpenTry((ibc.core.connection.v1.Tx.MsgConnectionOpenTry) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CONNECTION_OPEN_ACK: serviceImpl.connectionOpenAck((ibc.core.connection.v1.Tx.MsgConnectionOpenAck) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_CONNECTION_OPEN_CONFIRM: serviceImpl.connectionOpenConfirm((ibc.core.connection.v1.Tx.MsgConnectionOpenConfirm) 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 MsgBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MsgBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return ibc.core.connection.v1.Tx.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("Msg"); } } private static final class MsgFileDescriptorSupplier extends MsgBaseDescriptorSupplier { MsgFileDescriptorSupplier() {} } private static final class MsgMethodDescriptorSupplier extends MsgBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; MsgMethodDescriptorSupplier(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 (MsgGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MsgFileDescriptorSupplier()) .addMethod(getConnectionOpenInitMethod()) .addMethod(getConnectionOpenTryMethod()) .addMethod(getConnectionOpenAckMethod()) .addMethod(getConnectionOpenConfirmMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy