grpc.webhook.WebhookGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of client-protos-jvm Show documentation
Show all versions of client-protos-jvm Show documentation
Kotlin protobuf protocols for the JVM that define the Momento gRPC wire format
package grpc.webhook;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* A Webhook is a mechanism to consume messages on a Topic.
* The primary purpose of webhooks in Momento is to enable
* Lambda to be a subscriber to the messages sent on a topic.
* Secondarily, webhooks open us up to a whole lot of integrations
* (slack, discord, event bridge, etc).
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.57.2)",
comments = "Source: webhook.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class WebhookGrpc {
private WebhookGrpc() {}
public static final java.lang.String SERVICE_NAME = "webhook.Webhook";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getPutWebhookMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PutWebhook",
requestType = grpc.webhook._PutWebhookRequest.class,
responseType = grpc.webhook._PutWebhookResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPutWebhookMethod() {
io.grpc.MethodDescriptor getPutWebhookMethod;
if ((getPutWebhookMethod = WebhookGrpc.getPutWebhookMethod) == null) {
synchronized (WebhookGrpc.class) {
if ((getPutWebhookMethod = WebhookGrpc.getPutWebhookMethod) == null) {
WebhookGrpc.getPutWebhookMethod = getPutWebhookMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PutWebhook"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._PutWebhookRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._PutWebhookResponse.getDefaultInstance()))
.setSchemaDescriptor(new WebhookMethodDescriptorSupplier("PutWebhook"))
.build();
}
}
}
return getPutWebhookMethod;
}
private static volatile io.grpc.MethodDescriptor getDeleteWebhookMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeleteWebhook",
requestType = grpc.webhook._DeleteWebhookRequest.class,
responseType = grpc.webhook._DeleteWebhookResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDeleteWebhookMethod() {
io.grpc.MethodDescriptor getDeleteWebhookMethod;
if ((getDeleteWebhookMethod = WebhookGrpc.getDeleteWebhookMethod) == null) {
synchronized (WebhookGrpc.class) {
if ((getDeleteWebhookMethod = WebhookGrpc.getDeleteWebhookMethod) == null) {
WebhookGrpc.getDeleteWebhookMethod = getDeleteWebhookMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteWebhook"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._DeleteWebhookRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._DeleteWebhookResponse.getDefaultInstance()))
.setSchemaDescriptor(new WebhookMethodDescriptorSupplier("DeleteWebhook"))
.build();
}
}
}
return getDeleteWebhookMethod;
}
private static volatile io.grpc.MethodDescriptor getListWebhooksMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListWebhooks",
requestType = grpc.webhook._ListWebhookRequest.class,
responseType = grpc.webhook._ListWebhooksResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListWebhooksMethod() {
io.grpc.MethodDescriptor getListWebhooksMethod;
if ((getListWebhooksMethod = WebhookGrpc.getListWebhooksMethod) == null) {
synchronized (WebhookGrpc.class) {
if ((getListWebhooksMethod = WebhookGrpc.getListWebhooksMethod) == null) {
WebhookGrpc.getListWebhooksMethod = getListWebhooksMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListWebhooks"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._ListWebhookRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._ListWebhooksResponse.getDefaultInstance()))
.setSchemaDescriptor(new WebhookMethodDescriptorSupplier("ListWebhooks"))
.build();
}
}
}
return getListWebhooksMethod;
}
private static volatile io.grpc.MethodDescriptor getGetWebhookSecretMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetWebhookSecret",
requestType = grpc.webhook._GetWebhookSecretRequest.class,
responseType = grpc.webhook._GetWebhookSecretResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetWebhookSecretMethod() {
io.grpc.MethodDescriptor getGetWebhookSecretMethod;
if ((getGetWebhookSecretMethod = WebhookGrpc.getGetWebhookSecretMethod) == null) {
synchronized (WebhookGrpc.class) {
if ((getGetWebhookSecretMethod = WebhookGrpc.getGetWebhookSecretMethod) == null) {
WebhookGrpc.getGetWebhookSecretMethod = getGetWebhookSecretMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetWebhookSecret"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._GetWebhookSecretRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._GetWebhookSecretResponse.getDefaultInstance()))
.setSchemaDescriptor(new WebhookMethodDescriptorSupplier("GetWebhookSecret"))
.build();
}
}
}
return getGetWebhookSecretMethod;
}
private static volatile io.grpc.MethodDescriptor getRotateWebhookSecretMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RotateWebhookSecret",
requestType = grpc.webhook._RotateWebhookSecretRequest.class,
responseType = grpc.webhook._RotateWebhookSecretResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRotateWebhookSecretMethod() {
io.grpc.MethodDescriptor getRotateWebhookSecretMethod;
if ((getRotateWebhookSecretMethod = WebhookGrpc.getRotateWebhookSecretMethod) == null) {
synchronized (WebhookGrpc.class) {
if ((getRotateWebhookSecretMethod = WebhookGrpc.getRotateWebhookSecretMethod) == null) {
WebhookGrpc.getRotateWebhookSecretMethod = getRotateWebhookSecretMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RotateWebhookSecret"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._RotateWebhookSecretRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
grpc.webhook._RotateWebhookSecretResponse.getDefaultInstance()))
.setSchemaDescriptor(new WebhookMethodDescriptorSupplier("RotateWebhookSecret"))
.build();
}
}
}
return getRotateWebhookSecretMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static WebhookStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WebhookStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebhookStub(channel, callOptions);
}
};
return WebhookStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static WebhookBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WebhookBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebhookBlockingStub(channel, callOptions);
}
};
return WebhookBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static WebhookFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public WebhookFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebhookFutureStub(channel, callOptions);
}
};
return WebhookFutureStub.newStub(factory, channel);
}
/**
*
* A Webhook is a mechanism to consume messages on a Topic.
* The primary purpose of webhooks in Momento is to enable
* Lambda to be a subscriber to the messages sent on a topic.
* Secondarily, webhooks open us up to a whole lot of integrations
* (slack, discord, event bridge, etc).
*
*/
public interface AsyncService {
/**
*/
default void putWebhook(grpc.webhook._PutWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPutWebhookMethod(), responseObserver);
}
/**
*/
default void deleteWebhook(grpc.webhook._DeleteWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWebhookMethod(), responseObserver);
}
/**
*/
default void listWebhooks(grpc.webhook._ListWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWebhooksMethod(), responseObserver);
}
/**
*/
default void getWebhookSecret(grpc.webhook._GetWebhookSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWebhookSecretMethod(), responseObserver);
}
/**
*/
default void rotateWebhookSecret(grpc.webhook._RotateWebhookSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRotateWebhookSecretMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Webhook.
*
* A Webhook is a mechanism to consume messages on a Topic.
* The primary purpose of webhooks in Momento is to enable
* Lambda to be a subscriber to the messages sent on a topic.
* Secondarily, webhooks open us up to a whole lot of integrations
* (slack, discord, event bridge, etc).
*
*/
public static abstract class WebhookImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return WebhookGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Webhook.
*
* A Webhook is a mechanism to consume messages on a Topic.
* The primary purpose of webhooks in Momento is to enable
* Lambda to be a subscriber to the messages sent on a topic.
* Secondarily, webhooks open us up to a whole lot of integrations
* (slack, discord, event bridge, etc).
*
*/
public static final class WebhookStub
extends io.grpc.stub.AbstractAsyncStub {
private WebhookStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WebhookStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebhookStub(channel, callOptions);
}
/**
*/
public void putWebhook(grpc.webhook._PutWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPutWebhookMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void deleteWebhook(grpc.webhook._DeleteWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteWebhookMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void listWebhooks(grpc.webhook._ListWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListWebhooksMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getWebhookSecret(grpc.webhook._GetWebhookSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetWebhookSecretMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void rotateWebhookSecret(grpc.webhook._RotateWebhookSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRotateWebhookSecretMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Webhook.
*
* A Webhook is a mechanism to consume messages on a Topic.
* The primary purpose of webhooks in Momento is to enable
* Lambda to be a subscriber to the messages sent on a topic.
* Secondarily, webhooks open us up to a whole lot of integrations
* (slack, discord, event bridge, etc).
*
*/
public static final class WebhookBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private WebhookBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WebhookBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebhookBlockingStub(channel, callOptions);
}
/**
*/
public grpc.webhook._PutWebhookResponse putWebhook(grpc.webhook._PutWebhookRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPutWebhookMethod(), getCallOptions(), request);
}
/**
*/
public grpc.webhook._DeleteWebhookResponse deleteWebhook(grpc.webhook._DeleteWebhookRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteWebhookMethod(), getCallOptions(), request);
}
/**
*/
public grpc.webhook._ListWebhooksResponse listWebhooks(grpc.webhook._ListWebhookRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListWebhooksMethod(), getCallOptions(), request);
}
/**
*/
public grpc.webhook._GetWebhookSecretResponse getWebhookSecret(grpc.webhook._GetWebhookSecretRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetWebhookSecretMethod(), getCallOptions(), request);
}
/**
*/
public grpc.webhook._RotateWebhookSecretResponse rotateWebhookSecret(grpc.webhook._RotateWebhookSecretRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRotateWebhookSecretMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Webhook.
*
* A Webhook is a mechanism to consume messages on a Topic.
* The primary purpose of webhooks in Momento is to enable
* Lambda to be a subscriber to the messages sent on a topic.
* Secondarily, webhooks open us up to a whole lot of integrations
* (slack, discord, event bridge, etc).
*
*/
public static final class WebhookFutureStub
extends io.grpc.stub.AbstractFutureStub {
private WebhookFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected WebhookFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new WebhookFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture putWebhook(
grpc.webhook._PutWebhookRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPutWebhookMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture deleteWebhook(
grpc.webhook._DeleteWebhookRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteWebhookMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture listWebhooks(
grpc.webhook._ListWebhookRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListWebhooksMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getWebhookSecret(
grpc.webhook._GetWebhookSecretRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetWebhookSecretMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture rotateWebhookSecret(
grpc.webhook._RotateWebhookSecretRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRotateWebhookSecretMethod(), getCallOptions()), request);
}
}
private static final int METHODID_PUT_WEBHOOK = 0;
private static final int METHODID_DELETE_WEBHOOK = 1;
private static final int METHODID_LIST_WEBHOOKS = 2;
private static final int METHODID_GET_WEBHOOK_SECRET = 3;
private static final int METHODID_ROTATE_WEBHOOK_SECRET = 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 AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService 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_PUT_WEBHOOK:
serviceImpl.putWebhook((grpc.webhook._PutWebhookRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_WEBHOOK:
serviceImpl.deleteWebhook((grpc.webhook._DeleteWebhookRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_WEBHOOKS:
serviceImpl.listWebhooks((grpc.webhook._ListWebhookRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_WEBHOOK_SECRET:
serviceImpl.getWebhookSecret((grpc.webhook._GetWebhookSecretRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROTATE_WEBHOOK_SECRET:
serviceImpl.rotateWebhookSecret((grpc.webhook._RotateWebhookSecretRequest) 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();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getPutWebhookMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
grpc.webhook._PutWebhookRequest,
grpc.webhook._PutWebhookResponse>(
service, METHODID_PUT_WEBHOOK)))
.addMethod(
getDeleteWebhookMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
grpc.webhook._DeleteWebhookRequest,
grpc.webhook._DeleteWebhookResponse>(
service, METHODID_DELETE_WEBHOOK)))
.addMethod(
getListWebhooksMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
grpc.webhook._ListWebhookRequest,
grpc.webhook._ListWebhooksResponse>(
service, METHODID_LIST_WEBHOOKS)))
.addMethod(
getGetWebhookSecretMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
grpc.webhook._GetWebhookSecretRequest,
grpc.webhook._GetWebhookSecretResponse>(
service, METHODID_GET_WEBHOOK_SECRET)))
.addMethod(
getRotateWebhookSecretMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
grpc.webhook._RotateWebhookSecretRequest,
grpc.webhook._RotateWebhookSecretResponse>(
service, METHODID_ROTATE_WEBHOOK_SECRET)))
.build();
}
private static abstract class WebhookBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
WebhookBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return grpc.webhook.WebhookOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Webhook");
}
}
private static final class WebhookFileDescriptorSupplier
extends WebhookBaseDescriptorSupplier {
WebhookFileDescriptorSupplier() {}
}
private static final class WebhookMethodDescriptorSupplier
extends WebhookBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
WebhookMethodDescriptorSupplier(java.lang.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 (WebhookGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new WebhookFileDescriptorSupplier())
.addMethod(getPutWebhookMethod())
.addMethod(getDeleteWebhookMethod())
.addMethod(getListWebhooksMethod())
.addMethod(getGetWebhookSecretMethod())
.addMethod(getRotateWebhookSecretMethod())
.build();
}
}
}
return result;
}
}