
webhook.WebhookGrpc Maven / Gradle / Ivy
package 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.53.0)",
comments = "Source: webhook.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class WebhookGrpc {
private WebhookGrpc() {}
public static final 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 = webhook.WebhookOuterClass._PutWebhookRequest.class,
responseType = webhook.WebhookOuterClass._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(
webhook.WebhookOuterClass._PutWebhookRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
webhook.WebhookOuterClass._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 = webhook.WebhookOuterClass._DeleteWebhookRequest.class,
responseType = webhook.WebhookOuterClass._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(
webhook.WebhookOuterClass._DeleteWebhookRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
webhook.WebhookOuterClass._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 = webhook.WebhookOuterClass._ListWebhookRequest.class,
responseType = webhook.WebhookOuterClass._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(
webhook.WebhookOuterClass._ListWebhookRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
webhook.WebhookOuterClass._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 = webhook.WebhookOuterClass._GetWebhookSecretRequest.class,
responseType = webhook.WebhookOuterClass._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(
webhook.WebhookOuterClass._GetWebhookSecretRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
webhook.WebhookOuterClass._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 = webhook.WebhookOuterClass._RotateWebhookSecretRequest.class,
responseType = webhook.WebhookOuterClass._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(
webhook.WebhookOuterClass._RotateWebhookSecretRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
webhook.WebhookOuterClass._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 static abstract class WebhookImplBase implements io.grpc.BindableService {
/**
*/
public void putWebhook(webhook.WebhookOuterClass._PutWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPutWebhookMethod(), responseObserver);
}
/**
*/
public void deleteWebhook(webhook.WebhookOuterClass._DeleteWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteWebhookMethod(), responseObserver);
}
/**
*/
public void listWebhooks(webhook.WebhookOuterClass._ListWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListWebhooksMethod(), responseObserver);
}
/**
*/
public void getWebhookSecret(webhook.WebhookOuterClass._GetWebhookSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetWebhookSecretMethod(), responseObserver);
}
/**
*/
public void rotateWebhookSecret(webhook.WebhookOuterClass._RotateWebhookSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRotateWebhookSecretMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getPutWebhookMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
webhook.WebhookOuterClass._PutWebhookRequest,
webhook.WebhookOuterClass._PutWebhookResponse>(
this, METHODID_PUT_WEBHOOK)))
.addMethod(
getDeleteWebhookMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
webhook.WebhookOuterClass._DeleteWebhookRequest,
webhook.WebhookOuterClass._DeleteWebhookResponse>(
this, METHODID_DELETE_WEBHOOK)))
.addMethod(
getListWebhooksMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
webhook.WebhookOuterClass._ListWebhookRequest,
webhook.WebhookOuterClass._ListWebhooksResponse>(
this, METHODID_LIST_WEBHOOKS)))
.addMethod(
getGetWebhookSecretMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
webhook.WebhookOuterClass._GetWebhookSecretRequest,
webhook.WebhookOuterClass._GetWebhookSecretResponse>(
this, METHODID_GET_WEBHOOK_SECRET)))
.addMethod(
getRotateWebhookSecretMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
webhook.WebhookOuterClass._RotateWebhookSecretRequest,
webhook.WebhookOuterClass._RotateWebhookSecretResponse>(
this, METHODID_ROTATE_WEBHOOK_SECRET)))
.build();
}
}
/**
*
* 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(webhook.WebhookOuterClass._PutWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPutWebhookMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void deleteWebhook(webhook.WebhookOuterClass._DeleteWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDeleteWebhookMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void listWebhooks(webhook.WebhookOuterClass._ListWebhookRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getListWebhooksMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getWebhookSecret(webhook.WebhookOuterClass._GetWebhookSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetWebhookSecretMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void rotateWebhookSecret(webhook.WebhookOuterClass._RotateWebhookSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRotateWebhookSecretMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* 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 webhook.WebhookOuterClass._PutWebhookResponse putWebhook(webhook.WebhookOuterClass._PutWebhookRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPutWebhookMethod(), getCallOptions(), request);
}
/**
*/
public webhook.WebhookOuterClass._DeleteWebhookResponse deleteWebhook(webhook.WebhookOuterClass._DeleteWebhookRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDeleteWebhookMethod(), getCallOptions(), request);
}
/**
*/
public webhook.WebhookOuterClass._ListWebhooksResponse listWebhooks(webhook.WebhookOuterClass._ListWebhookRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getListWebhooksMethod(), getCallOptions(), request);
}
/**
*/
public webhook.WebhookOuterClass._GetWebhookSecretResponse getWebhookSecret(webhook.WebhookOuterClass._GetWebhookSecretRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetWebhookSecretMethod(), getCallOptions(), request);
}
/**
*/
public webhook.WebhookOuterClass._RotateWebhookSecretResponse rotateWebhookSecret(webhook.WebhookOuterClass._RotateWebhookSecretRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRotateWebhookSecretMethod(), getCallOptions(), request);
}
}
/**
*
* 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(
webhook.WebhookOuterClass._PutWebhookRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPutWebhookMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture deleteWebhook(
webhook.WebhookOuterClass._DeleteWebhookRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDeleteWebhookMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture listWebhooks(
webhook.WebhookOuterClass._ListWebhookRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getListWebhooksMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getWebhookSecret(
webhook.WebhookOuterClass._GetWebhookSecretRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetWebhookSecretMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture rotateWebhookSecret(
webhook.WebhookOuterClass._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 WebhookImplBase serviceImpl;
private final int methodId;
MethodHandlers(WebhookImplBase 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((webhook.WebhookOuterClass._PutWebhookRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DELETE_WEBHOOK:
serviceImpl.deleteWebhook((webhook.WebhookOuterClass._DeleteWebhookRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_WEBHOOKS:
serviceImpl.listWebhooks((webhook.WebhookOuterClass._ListWebhookRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_WEBHOOK_SECRET:
serviceImpl.getWebhookSecret((webhook.WebhookOuterClass._GetWebhookSecretRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ROTATE_WEBHOOK_SECRET:
serviceImpl.rotateWebhookSecret((webhook.WebhookOuterClass._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();
}
}
}
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 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 String methodName;
WebhookMethodDescriptorSupplier(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;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy