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

cosmos.gov.v1beta1.MsgGrpc Maven / Gradle / Ivy

package cosmos.gov.v1beta1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Msg defines the bank Msg service.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.40.1)", comments = "Source: cosmos/gov/v1beta1/tx.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MsgGrpc { private MsgGrpc() {} public static final String SERVICE_NAME = "cosmos.gov.v1beta1.Msg"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getSubmitProposalMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SubmitProposal", requestType = cosmos.gov.v1beta1.Tx.MsgSubmitProposal.class, responseType = cosmos.gov.v1beta1.Tx.MsgSubmitProposalResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSubmitProposalMethod() { io.grpc.MethodDescriptor getSubmitProposalMethod; if ((getSubmitProposalMethod = MsgGrpc.getSubmitProposalMethod) == null) { synchronized (MsgGrpc.class) { if ((getSubmitProposalMethod = MsgGrpc.getSubmitProposalMethod) == null) { MsgGrpc.getSubmitProposalMethod = getSubmitProposalMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitProposal")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.Tx.MsgSubmitProposal.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.Tx.MsgSubmitProposalResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("SubmitProposal")) .build(); } } } return getSubmitProposalMethod; } private static volatile io.grpc.MethodDescriptor getVoteMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Vote", requestType = cosmos.gov.v1beta1.Tx.MsgVote.class, responseType = cosmos.gov.v1beta1.Tx.MsgVoteResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVoteMethod() { io.grpc.MethodDescriptor getVoteMethod; if ((getVoteMethod = MsgGrpc.getVoteMethod) == null) { synchronized (MsgGrpc.class) { if ((getVoteMethod = MsgGrpc.getVoteMethod) == null) { MsgGrpc.getVoteMethod = getVoteMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Vote")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.Tx.MsgVote.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.Tx.MsgVoteResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Vote")) .build(); } } } return getVoteMethod; } private static volatile io.grpc.MethodDescriptor getVoteWeightedMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "VoteWeighted", requestType = cosmos.gov.v1beta1.Tx.MsgVoteWeighted.class, responseType = cosmos.gov.v1beta1.Tx.MsgVoteWeightedResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getVoteWeightedMethod() { io.grpc.MethodDescriptor getVoteWeightedMethod; if ((getVoteWeightedMethod = MsgGrpc.getVoteWeightedMethod) == null) { synchronized (MsgGrpc.class) { if ((getVoteWeightedMethod = MsgGrpc.getVoteWeightedMethod) == null) { MsgGrpc.getVoteWeightedMethod = getVoteWeightedMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "VoteWeighted")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.Tx.MsgVoteWeighted.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.Tx.MsgVoteWeightedResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("VoteWeighted")) .build(); } } } return getVoteWeightedMethod; } private static volatile io.grpc.MethodDescriptor getDepositMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "Deposit", requestType = cosmos.gov.v1beta1.Tx.MsgDeposit.class, responseType = cosmos.gov.v1beta1.Tx.MsgDepositResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getDepositMethod() { io.grpc.MethodDescriptor getDepositMethod; if ((getDepositMethod = MsgGrpc.getDepositMethod) == null) { synchronized (MsgGrpc.class) { if ((getDepositMethod = MsgGrpc.getDepositMethod) == null) { MsgGrpc.getDepositMethod = getDepositMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Deposit")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.Tx.MsgDeposit.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cosmos.gov.v1beta1.Tx.MsgDepositResponse.getDefaultInstance())) .setSchemaDescriptor(new MsgMethodDescriptorSupplier("Deposit")) .build(); } } } return getDepositMethod; } /** * 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 bank Msg service.
   * 
*/ public static abstract class MsgImplBase implements io.grpc.BindableService { /** *
     * SubmitProposal defines a method to create new proposal given a content.
     * 
*/ public void submitProposal(cosmos.gov.v1beta1.Tx.MsgSubmitProposal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitProposalMethod(), responseObserver); } /** *
     * Vote defines a method to add a vote on a specific proposal.
     * 
*/ public void vote(cosmos.gov.v1beta1.Tx.MsgVote request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVoteMethod(), responseObserver); } /** *
     * VoteWeighted defines a method to add a weighted vote on a specific proposal.
     * 
*/ public void voteWeighted(cosmos.gov.v1beta1.Tx.MsgVoteWeighted request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getVoteWeightedMethod(), responseObserver); } /** *
     * Deposit defines a method to add deposit on a specific proposal.
     * 
*/ public void deposit(cosmos.gov.v1beta1.Tx.MsgDeposit request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDepositMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSubmitProposalMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.Tx.MsgSubmitProposal, cosmos.gov.v1beta1.Tx.MsgSubmitProposalResponse>( this, METHODID_SUBMIT_PROPOSAL))) .addMethod( getVoteMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.Tx.MsgVote, cosmos.gov.v1beta1.Tx.MsgVoteResponse>( this, METHODID_VOTE))) .addMethod( getVoteWeightedMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.Tx.MsgVoteWeighted, cosmos.gov.v1beta1.Tx.MsgVoteWeightedResponse>( this, METHODID_VOTE_WEIGHTED))) .addMethod( getDepositMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< cosmos.gov.v1beta1.Tx.MsgDeposit, cosmos.gov.v1beta1.Tx.MsgDepositResponse>( this, METHODID_DEPOSIT))) .build(); } } /** *
   * Msg defines the bank 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); } /** *
     * SubmitProposal defines a method to create new proposal given a content.
     * 
*/ public void submitProposal(cosmos.gov.v1beta1.Tx.MsgSubmitProposal request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitProposalMethod(), getCallOptions()), request, responseObserver); } /** *
     * Vote defines a method to add a vote on a specific proposal.
     * 
*/ public void vote(cosmos.gov.v1beta1.Tx.MsgVote request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getVoteMethod(), getCallOptions()), request, responseObserver); } /** *
     * VoteWeighted defines a method to add a weighted vote on a specific proposal.
     * 
*/ public void voteWeighted(cosmos.gov.v1beta1.Tx.MsgVoteWeighted request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getVoteWeightedMethod(), getCallOptions()), request, responseObserver); } /** *
     * Deposit defines a method to add deposit on a specific proposal.
     * 
*/ public void deposit(cosmos.gov.v1beta1.Tx.MsgDeposit request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDepositMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Msg defines the bank 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); } /** *
     * SubmitProposal defines a method to create new proposal given a content.
     * 
*/ public cosmos.gov.v1beta1.Tx.MsgSubmitProposalResponse submitProposal(cosmos.gov.v1beta1.Tx.MsgSubmitProposal request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSubmitProposalMethod(), getCallOptions(), request); } /** *
     * Vote defines a method to add a vote on a specific proposal.
     * 
*/ public cosmos.gov.v1beta1.Tx.MsgVoteResponse vote(cosmos.gov.v1beta1.Tx.MsgVote request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVoteMethod(), getCallOptions(), request); } /** *
     * VoteWeighted defines a method to add a weighted vote on a specific proposal.
     * 
*/ public cosmos.gov.v1beta1.Tx.MsgVoteWeightedResponse voteWeighted(cosmos.gov.v1beta1.Tx.MsgVoteWeighted request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getVoteWeightedMethod(), getCallOptions(), request); } /** *
     * Deposit defines a method to add deposit on a specific proposal.
     * 
*/ public cosmos.gov.v1beta1.Tx.MsgDepositResponse deposit(cosmos.gov.v1beta1.Tx.MsgDeposit request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDepositMethod(), getCallOptions(), request); } } /** *
   * Msg defines the bank 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); } /** *
     * SubmitProposal defines a method to create new proposal given a content.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture submitProposal( cosmos.gov.v1beta1.Tx.MsgSubmitProposal request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSubmitProposalMethod(), getCallOptions()), request); } /** *
     * Vote defines a method to add a vote on a specific proposal.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture vote( cosmos.gov.v1beta1.Tx.MsgVote request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getVoteMethod(), getCallOptions()), request); } /** *
     * VoteWeighted defines a method to add a weighted vote on a specific proposal.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture voteWeighted( cosmos.gov.v1beta1.Tx.MsgVoteWeighted request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getVoteWeightedMethod(), getCallOptions()), request); } /** *
     * Deposit defines a method to add deposit on a specific proposal.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deposit( cosmos.gov.v1beta1.Tx.MsgDeposit request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDepositMethod(), getCallOptions()), request); } } private static final int METHODID_SUBMIT_PROPOSAL = 0; private static final int METHODID_VOTE = 1; private static final int METHODID_VOTE_WEIGHTED = 2; private static final int METHODID_DEPOSIT = 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_SUBMIT_PROPOSAL: serviceImpl.submitProposal((cosmos.gov.v1beta1.Tx.MsgSubmitProposal) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VOTE: serviceImpl.vote((cosmos.gov.v1beta1.Tx.MsgVote) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_VOTE_WEIGHTED: serviceImpl.voteWeighted((cosmos.gov.v1beta1.Tx.MsgVoteWeighted) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DEPOSIT: serviceImpl.deposit((cosmos.gov.v1beta1.Tx.MsgDeposit) 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 cosmos.gov.v1beta1.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(getSubmitProposalMethod()) .addMethod(getVoteMethod()) .addMethod(getVoteWeightedMethod()) .addMethod(getDepositMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy