
cosmos.staking.v1beta1.MsgGrpc Maven / Gradle / Ivy
package cosmos.staking.v1beta1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Msg defines the staking Msg service.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.40.1)",
comments = "Source: cosmos/staking/v1beta1/tx.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class MsgGrpc {
private MsgGrpc() {}
public static final String SERVICE_NAME = "cosmos.staking.v1beta1.Msg";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getCreateValidatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateValidator",
requestType = cosmos.staking.v1beta1.Tx.MsgCreateValidator.class,
responseType = cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateValidatorMethod() {
io.grpc.MethodDescriptor getCreateValidatorMethod;
if ((getCreateValidatorMethod = MsgGrpc.getCreateValidatorMethod) == null) {
synchronized (MsgGrpc.class) {
if ((getCreateValidatorMethod = MsgGrpc.getCreateValidatorMethod) == null) {
MsgGrpc.getCreateValidatorMethod = getCreateValidatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateValidator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgCreateValidator.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse.getDefaultInstance()))
.setSchemaDescriptor(new MsgMethodDescriptorSupplier("CreateValidator"))
.build();
}
}
}
return getCreateValidatorMethod;
}
private static volatile io.grpc.MethodDescriptor getEditValidatorMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "EditValidator",
requestType = cosmos.staking.v1beta1.Tx.MsgEditValidator.class,
responseType = cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getEditValidatorMethod() {
io.grpc.MethodDescriptor getEditValidatorMethod;
if ((getEditValidatorMethod = MsgGrpc.getEditValidatorMethod) == null) {
synchronized (MsgGrpc.class) {
if ((getEditValidatorMethod = MsgGrpc.getEditValidatorMethod) == null) {
MsgGrpc.getEditValidatorMethod = getEditValidatorMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "EditValidator"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgEditValidator.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse.getDefaultInstance()))
.setSchemaDescriptor(new MsgMethodDescriptorSupplier("EditValidator"))
.build();
}
}
}
return getEditValidatorMethod;
}
private static volatile io.grpc.MethodDescriptor getDelegateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Delegate",
requestType = cosmos.staking.v1beta1.Tx.MsgDelegate.class,
responseType = cosmos.staking.v1beta1.Tx.MsgDelegateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDelegateMethod() {
io.grpc.MethodDescriptor getDelegateMethod;
if ((getDelegateMethod = MsgGrpc.getDelegateMethod) == null) {
synchronized (MsgGrpc.class) {
if ((getDelegateMethod = MsgGrpc.getDelegateMethod) == null) {
MsgGrpc.getDelegateMethod = getDelegateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Delegate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgDelegate.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgDelegateResponse.getDefaultInstance()))
.setSchemaDescriptor(new MsgMethodDescriptorSupplier("Delegate"))
.build();
}
}
}
return getDelegateMethod;
}
private static volatile io.grpc.MethodDescriptor getBeginRedelegateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BeginRedelegate",
requestType = cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.class,
responseType = cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBeginRedelegateMethod() {
io.grpc.MethodDescriptor getBeginRedelegateMethod;
if ((getBeginRedelegateMethod = MsgGrpc.getBeginRedelegateMethod) == null) {
synchronized (MsgGrpc.class) {
if ((getBeginRedelegateMethod = MsgGrpc.getBeginRedelegateMethod) == null) {
MsgGrpc.getBeginRedelegateMethod = getBeginRedelegateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BeginRedelegate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgBeginRedelegate.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse.getDefaultInstance()))
.setSchemaDescriptor(new MsgMethodDescriptorSupplier("BeginRedelegate"))
.build();
}
}
}
return getBeginRedelegateMethod;
}
private static volatile io.grpc.MethodDescriptor getUndelegateMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Undelegate",
requestType = cosmos.staking.v1beta1.Tx.MsgUndelegate.class,
responseType = cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUndelegateMethod() {
io.grpc.MethodDescriptor getUndelegateMethod;
if ((getUndelegateMethod = MsgGrpc.getUndelegateMethod) == null) {
synchronized (MsgGrpc.class) {
if ((getUndelegateMethod = MsgGrpc.getUndelegateMethod) == null) {
MsgGrpc.getUndelegateMethod = getUndelegateMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Undelegate"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgUndelegate.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
cosmos.staking.v1beta1.Tx.MsgUndelegateResponse.getDefaultInstance()))
.setSchemaDescriptor(new MsgMethodDescriptorSupplier("Undelegate"))
.build();
}
}
}
return getUndelegateMethod;
}
/**
* 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 staking Msg service.
*
*/
public static abstract class MsgImplBase implements io.grpc.BindableService {
/**
*
* CreateValidator defines a method for creating a new validator.
*
*/
public void createValidator(cosmos.staking.v1beta1.Tx.MsgCreateValidator request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateValidatorMethod(), responseObserver);
}
/**
*
* EditValidator defines a method for editing an existing validator.
*
*/
public void editValidator(cosmos.staking.v1beta1.Tx.MsgEditValidator request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEditValidatorMethod(), responseObserver);
}
/**
*
* Delegate defines a method for performing a delegation of coins
* from a delegator to a validator.
*
*/
public void delegate(cosmos.staking.v1beta1.Tx.MsgDelegate request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDelegateMethod(), responseObserver);
}
/**
*
* BeginRedelegate defines a method for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*
*/
public void beginRedelegate(cosmos.staking.v1beta1.Tx.MsgBeginRedelegate request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBeginRedelegateMethod(), responseObserver);
}
/**
*
* Undelegate defines a method for performing an undelegation from a
* delegate and a validator.
*
*/
public void undelegate(cosmos.staking.v1beta1.Tx.MsgUndelegate request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndelegateMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getCreateValidatorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.Tx.MsgCreateValidator,
cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse>(
this, METHODID_CREATE_VALIDATOR)))
.addMethod(
getEditValidatorMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.Tx.MsgEditValidator,
cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse>(
this, METHODID_EDIT_VALIDATOR)))
.addMethod(
getDelegateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.Tx.MsgDelegate,
cosmos.staking.v1beta1.Tx.MsgDelegateResponse>(
this, METHODID_DELEGATE)))
.addMethod(
getBeginRedelegateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.Tx.MsgBeginRedelegate,
cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse>(
this, METHODID_BEGIN_REDELEGATE)))
.addMethod(
getUndelegateMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
cosmos.staking.v1beta1.Tx.MsgUndelegate,
cosmos.staking.v1beta1.Tx.MsgUndelegateResponse>(
this, METHODID_UNDELEGATE)))
.build();
}
}
/**
*
* Msg defines the staking 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);
}
/**
*
* CreateValidator defines a method for creating a new validator.
*
*/
public void createValidator(cosmos.staking.v1beta1.Tx.MsgCreateValidator request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateValidatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* EditValidator defines a method for editing an existing validator.
*
*/
public void editValidator(cosmos.staking.v1beta1.Tx.MsgEditValidator request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getEditValidatorMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Delegate defines a method for performing a delegation of coins
* from a delegator to a validator.
*
*/
public void delegate(cosmos.staking.v1beta1.Tx.MsgDelegate request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDelegateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* BeginRedelegate defines a method for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*
*/
public void beginRedelegate(cosmos.staking.v1beta1.Tx.MsgBeginRedelegate request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBeginRedelegateMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Undelegate defines a method for performing an undelegation from a
* delegate and a validator.
*
*/
public void undelegate(cosmos.staking.v1beta1.Tx.MsgUndelegate request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUndelegateMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Msg defines the staking 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);
}
/**
*
* CreateValidator defines a method for creating a new validator.
*
*/
public cosmos.staking.v1beta1.Tx.MsgCreateValidatorResponse createValidator(cosmos.staking.v1beta1.Tx.MsgCreateValidator request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateValidatorMethod(), getCallOptions(), request);
}
/**
*
* EditValidator defines a method for editing an existing validator.
*
*/
public cosmos.staking.v1beta1.Tx.MsgEditValidatorResponse editValidator(cosmos.staking.v1beta1.Tx.MsgEditValidator request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getEditValidatorMethod(), getCallOptions(), request);
}
/**
*
* Delegate defines a method for performing a delegation of coins
* from a delegator to a validator.
*
*/
public cosmos.staking.v1beta1.Tx.MsgDelegateResponse delegate(cosmos.staking.v1beta1.Tx.MsgDelegate request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDelegateMethod(), getCallOptions(), request);
}
/**
*
* BeginRedelegate defines a method for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*
*/
public cosmos.staking.v1beta1.Tx.MsgBeginRedelegateResponse beginRedelegate(cosmos.staking.v1beta1.Tx.MsgBeginRedelegate request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBeginRedelegateMethod(), getCallOptions(), request);
}
/**
*
* Undelegate defines a method for performing an undelegation from a
* delegate and a validator.
*
*/
public cosmos.staking.v1beta1.Tx.MsgUndelegateResponse undelegate(cosmos.staking.v1beta1.Tx.MsgUndelegate request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUndelegateMethod(), getCallOptions(), request);
}
}
/**
*
* Msg defines the staking 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);
}
/**
*
* CreateValidator defines a method for creating a new validator.
*
*/
public com.google.common.util.concurrent.ListenableFuture createValidator(
cosmos.staking.v1beta1.Tx.MsgCreateValidator request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateValidatorMethod(), getCallOptions()), request);
}
/**
*
* EditValidator defines a method for editing an existing validator.
*
*/
public com.google.common.util.concurrent.ListenableFuture editValidator(
cosmos.staking.v1beta1.Tx.MsgEditValidator request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getEditValidatorMethod(), getCallOptions()), request);
}
/**
*
* Delegate defines a method for performing a delegation of coins
* from a delegator to a validator.
*
*/
public com.google.common.util.concurrent.ListenableFuture delegate(
cosmos.staking.v1beta1.Tx.MsgDelegate request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDelegateMethod(), getCallOptions()), request);
}
/**
*
* BeginRedelegate defines a method for performing a redelegation
* of coins from a delegator and source validator to a destination validator.
*
*/
public com.google.common.util.concurrent.ListenableFuture beginRedelegate(
cosmos.staking.v1beta1.Tx.MsgBeginRedelegate request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBeginRedelegateMethod(), getCallOptions()), request);
}
/**
*
* Undelegate defines a method for performing an undelegation from a
* delegate and a validator.
*
*/
public com.google.common.util.concurrent.ListenableFuture undelegate(
cosmos.staking.v1beta1.Tx.MsgUndelegate request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUndelegateMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CREATE_VALIDATOR = 0;
private static final int METHODID_EDIT_VALIDATOR = 1;
private static final int METHODID_DELEGATE = 2;
private static final int METHODID_BEGIN_REDELEGATE = 3;
private static final int METHODID_UNDELEGATE = 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 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_VALIDATOR:
serviceImpl.createValidator((cosmos.staking.v1beta1.Tx.MsgCreateValidator) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_EDIT_VALIDATOR:
serviceImpl.editValidator((cosmos.staking.v1beta1.Tx.MsgEditValidator) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELEGATE:
serviceImpl.delegate((cosmos.staking.v1beta1.Tx.MsgDelegate) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BEGIN_REDELEGATE:
serviceImpl.beginRedelegate((cosmos.staking.v1beta1.Tx.MsgBeginRedelegate) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UNDELEGATE:
serviceImpl.undelegate((cosmos.staking.v1beta1.Tx.MsgUndelegate) 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.staking.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(getCreateValidatorMethod())
.addMethod(getEditValidatorMethod())
.addMethod(getDelegateMethod())
.addMethod(getBeginRedelegateMethod())
.addMethod(getUndelegateMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy