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

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

package ibc.core.client.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Msg defines the ibc/client Msg service.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.40.1)", comments = "Source: ibc/core/client/v1/tx.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MsgGrpc { private MsgGrpc() {} public static final String SERVICE_NAME = "ibc.core.client.v1.Msg"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getCreateClientMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "CreateClient", requestType = ibc.core.client.v1.Tx.MsgCreateClient.class, responseType = ibc.core.client.v1.Tx.MsgCreateClientResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getCreateClientMethod() { io.grpc.MethodDescriptor getCreateClientMethod; if ((getCreateClientMethod = MsgGrpc.getCreateClientMethod) == null) { synchronized (MsgGrpc.class) { if ((getCreateClientMethod = MsgGrpc.getCreateClientMethod) == null) { MsgGrpc.getCreateClientMethod = getCreateClientMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateClient")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.client.v1.Tx.MsgCreateClient.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.client.v1.Tx.MsgCreateClientResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("CreateClient")) .build(); } } } return getCreateClientMethod; } private static volatile io.grpc.MethodDescriptor getUpdateClientMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpdateClient", requestType = ibc.core.client.v1.Tx.MsgUpdateClient.class, responseType = ibc.core.client.v1.Tx.MsgUpdateClientResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUpdateClientMethod() { io.grpc.MethodDescriptor getUpdateClientMethod; if ((getUpdateClientMethod = MsgGrpc.getUpdateClientMethod) == null) { synchronized (MsgGrpc.class) { if ((getUpdateClientMethod = MsgGrpc.getUpdateClientMethod) == null) { MsgGrpc.getUpdateClientMethod = getUpdateClientMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateClient")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.client.v1.Tx.MsgUpdateClient.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.client.v1.Tx.MsgUpdateClientResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("UpdateClient")) .build(); } } } return getUpdateClientMethod; } private static volatile io.grpc.MethodDescriptor getUpgradeClientMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "UpgradeClient", requestType = ibc.core.client.v1.Tx.MsgUpgradeClient.class, responseType = ibc.core.client.v1.Tx.MsgUpgradeClientResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getUpgradeClientMethod() { io.grpc.MethodDescriptor getUpgradeClientMethod; if ((getUpgradeClientMethod = MsgGrpc.getUpgradeClientMethod) == null) { synchronized (MsgGrpc.class) { if ((getUpgradeClientMethod = MsgGrpc.getUpgradeClientMethod) == null) { MsgGrpc.getUpgradeClientMethod = getUpgradeClientMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpgradeClient")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.client.v1.Tx.MsgUpgradeClient.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.client.v1.Tx.MsgUpgradeClientResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("UpgradeClient")) .build(); } } } return getUpgradeClientMethod; } private static volatile io.grpc.MethodDescriptor getSubmitMisbehaviourMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SubmitMisbehaviour", requestType = ibc.core.client.v1.Tx.MsgSubmitMisbehaviour.class, responseType = ibc.core.client.v1.Tx.MsgSubmitMisbehaviourResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSubmitMisbehaviourMethod() { io.grpc.MethodDescriptor getSubmitMisbehaviourMethod; if ((getSubmitMisbehaviourMethod = MsgGrpc.getSubmitMisbehaviourMethod) == null) { synchronized (MsgGrpc.class) { if ((getSubmitMisbehaviourMethod = MsgGrpc.getSubmitMisbehaviourMethod) == null) { MsgGrpc.getSubmitMisbehaviourMethod = getSubmitMisbehaviourMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitMisbehaviour")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.client.v1.Tx.MsgSubmitMisbehaviour.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( ibc.core.client.v1.Tx.MsgSubmitMisbehaviourResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("SubmitMisbehaviour")) .build(); } } } return getSubmitMisbehaviourMethod; } /** * 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/client Msg service.
   * 
*/ public static abstract class MsgImplBase implements io.grpc.BindableService { /** *
     * CreateClient defines a rpc handler method for MsgCreateClient.
     * 
*/ public void createClient(ibc.core.client.v1.Tx.MsgCreateClient request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateClientMethod(), responseObserver); } /** *
     * UpdateClient defines a rpc handler method for MsgUpdateClient.
     * 
*/ public void updateClient(ibc.core.client.v1.Tx.MsgUpdateClient request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateClientMethod(), responseObserver); } /** *
     * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
     * 
*/ public void upgradeClient(ibc.core.client.v1.Tx.MsgUpgradeClient request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpgradeClientMethod(), responseObserver); } /** *
     * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
     * 
*/ public void submitMisbehaviour(ibc.core.client.v1.Tx.MsgSubmitMisbehaviour request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitMisbehaviourMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getCreateClientMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.client.v1.Tx.MsgCreateClient, ibc.core.client.v1.Tx.MsgCreateClientResponse>( this, METHODID_CREATE_CLIENT))) .addMethod( getUpdateClientMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.client.v1.Tx.MsgUpdateClient, ibc.core.client.v1.Tx.MsgUpdateClientResponse>( this, METHODID_UPDATE_CLIENT))) .addMethod( getUpgradeClientMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.client.v1.Tx.MsgUpgradeClient, ibc.core.client.v1.Tx.MsgUpgradeClientResponse>( this, METHODID_UPGRADE_CLIENT))) .addMethod( getSubmitMisbehaviourMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< ibc.core.client.v1.Tx.MsgSubmitMisbehaviour, ibc.core.client.v1.Tx.MsgSubmitMisbehaviourResponse>( this, METHODID_SUBMIT_MISBEHAVIOUR))) .build(); } } /** *
   * Msg defines the ibc/client 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); } /** *
     * CreateClient defines a rpc handler method for MsgCreateClient.
     * 
*/ public void createClient(ibc.core.client.v1.Tx.MsgCreateClient request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getCreateClientMethod(), getCallOptions()), request, responseObserver); } /** *
     * UpdateClient defines a rpc handler method for MsgUpdateClient.
     * 
*/ public void updateClient(ibc.core.client.v1.Tx.MsgUpdateClient request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpdateClientMethod(), getCallOptions()), request, responseObserver); } /** *
     * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
     * 
*/ public void upgradeClient(ibc.core.client.v1.Tx.MsgUpgradeClient request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getUpgradeClientMethod(), getCallOptions()), request, responseObserver); } /** *
     * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
     * 
*/ public void submitMisbehaviour(ibc.core.client.v1.Tx.MsgSubmitMisbehaviour request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitMisbehaviourMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Msg defines the ibc/client 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); } /** *
     * CreateClient defines a rpc handler method for MsgCreateClient.
     * 
*/ public ibc.core.client.v1.Tx.MsgCreateClientResponse createClient(ibc.core.client.v1.Tx.MsgCreateClient request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getCreateClientMethod(), getCallOptions(), request); } /** *
     * UpdateClient defines a rpc handler method for MsgUpdateClient.
     * 
*/ public ibc.core.client.v1.Tx.MsgUpdateClientResponse updateClient(ibc.core.client.v1.Tx.MsgUpdateClient request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpdateClientMethod(), getCallOptions(), request); } /** *
     * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
     * 
*/ public ibc.core.client.v1.Tx.MsgUpgradeClientResponse upgradeClient(ibc.core.client.v1.Tx.MsgUpgradeClient request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getUpgradeClientMethod(), getCallOptions(), request); } /** *
     * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
     * 
*/ public ibc.core.client.v1.Tx.MsgSubmitMisbehaviourResponse submitMisbehaviour(ibc.core.client.v1.Tx.MsgSubmitMisbehaviour request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSubmitMisbehaviourMethod(), getCallOptions(), request); } } /** *
   * Msg defines the ibc/client 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); } /** *
     * CreateClient defines a rpc handler method for MsgCreateClient.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture createClient( ibc.core.client.v1.Tx.MsgCreateClient request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getCreateClientMethod(), getCallOptions()), request); } /** *
     * UpdateClient defines a rpc handler method for MsgUpdateClient.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture updateClient( ibc.core.client.v1.Tx.MsgUpdateClient request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpdateClientMethod(), getCallOptions()), request); } /** *
     * UpgradeClient defines a rpc handler method for MsgUpgradeClient.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture upgradeClient( ibc.core.client.v1.Tx.MsgUpgradeClient request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getUpgradeClientMethod(), getCallOptions()), request); } /** *
     * SubmitMisbehaviour defines a rpc handler method for MsgSubmitMisbehaviour.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture submitMisbehaviour( ibc.core.client.v1.Tx.MsgSubmitMisbehaviour request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSubmitMisbehaviourMethod(), getCallOptions()), request); } } private static final int METHODID_CREATE_CLIENT = 0; private static final int METHODID_UPDATE_CLIENT = 1; private static final int METHODID_UPGRADE_CLIENT = 2; private static final int METHODID_SUBMIT_MISBEHAVIOUR = 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_CREATE_CLIENT: serviceImpl.createClient((ibc.core.client.v1.Tx.MsgCreateClient) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPDATE_CLIENT: serviceImpl.updateClient((ibc.core.client.v1.Tx.MsgUpdateClient) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_UPGRADE_CLIENT: serviceImpl.upgradeClient((ibc.core.client.v1.Tx.MsgUpgradeClient) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SUBMIT_MISBEHAVIOUR: serviceImpl.submitMisbehaviour((ibc.core.client.v1.Tx.MsgSubmitMisbehaviour) 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.client.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(getCreateClientMethod()) .addMethod(getUpdateClientMethod()) .addMethod(getUpgradeClientMethod()) .addMethod(getSubmitMisbehaviourMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy