io.dapr.v1.AppCallbackGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of dapr-sdk-autogen Show documentation
Show all versions of dapr-sdk-autogen Show documentation
Auto-generated SDK for Dapr
package io.dapr.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*
* AppCallback V1 allows user application to interact with Dapr runtime.
* User application needs to implement AppCallback service if it needs to
* receive message from dapr runtime.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.25.0)",
comments = "Source: appcallback.proto")
public final class AppCallbackGrpc {
private AppCallbackGrpc() {}
public static final String SERVICE_NAME = "dapr.proto.runtime.v1.AppCallback";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getOnInvokeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "OnInvoke",
requestType = io.dapr.v1.CommonProtos.InvokeRequest.class,
responseType = io.dapr.v1.CommonProtos.InvokeResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getOnInvokeMethod() {
io.grpc.MethodDescriptor getOnInvokeMethod;
if ((getOnInvokeMethod = AppCallbackGrpc.getOnInvokeMethod) == null) {
synchronized (AppCallbackGrpc.class) {
if ((getOnInvokeMethod = AppCallbackGrpc.getOnInvokeMethod) == null) {
AppCallbackGrpc.getOnInvokeMethod = getOnInvokeMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "OnInvoke"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.dapr.v1.CommonProtos.InvokeRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.dapr.v1.CommonProtos.InvokeResponse.getDefaultInstance()))
.setSchemaDescriptor(new AppCallbackMethodDescriptorSupplier("OnInvoke"))
.build();
}
}
}
return getOnInvokeMethod;
}
private static volatile io.grpc.MethodDescriptor getListTopicSubscriptionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListTopicSubscriptions",
requestType = com.google.protobuf.Empty.class,
responseType = io.dapr.v1.DaprAppCallbackProtos.ListTopicSubscriptionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListTopicSubscriptionsMethod() {
io.grpc.MethodDescriptor getListTopicSubscriptionsMethod;
if ((getListTopicSubscriptionsMethod = AppCallbackGrpc.getListTopicSubscriptionsMethod) == null) {
synchronized (AppCallbackGrpc.class) {
if ((getListTopicSubscriptionsMethod = AppCallbackGrpc.getListTopicSubscriptionsMethod) == null) {
AppCallbackGrpc.getListTopicSubscriptionsMethod = getListTopicSubscriptionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListTopicSubscriptions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.dapr.v1.DaprAppCallbackProtos.ListTopicSubscriptionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new AppCallbackMethodDescriptorSupplier("ListTopicSubscriptions"))
.build();
}
}
}
return getListTopicSubscriptionsMethod;
}
private static volatile io.grpc.MethodDescriptor getOnTopicEventMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "OnTopicEvent",
requestType = io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getOnTopicEventMethod() {
io.grpc.MethodDescriptor getOnTopicEventMethod;
if ((getOnTopicEventMethod = AppCallbackGrpc.getOnTopicEventMethod) == null) {
synchronized (AppCallbackGrpc.class) {
if ((getOnTopicEventMethod = AppCallbackGrpc.getOnTopicEventMethod) == null) {
AppCallbackGrpc.getOnTopicEventMethod = getOnTopicEventMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "OnTopicEvent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new AppCallbackMethodDescriptorSupplier("OnTopicEvent"))
.build();
}
}
}
return getOnTopicEventMethod;
}
private static volatile io.grpc.MethodDescriptor getListInputBindingsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ListInputBindings",
requestType = com.google.protobuf.Empty.class,
responseType = io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getListInputBindingsMethod() {
io.grpc.MethodDescriptor getListInputBindingsMethod;
if ((getListInputBindingsMethod = AppCallbackGrpc.getListInputBindingsMethod) == null) {
synchronized (AppCallbackGrpc.class) {
if ((getListInputBindingsMethod = AppCallbackGrpc.getListInputBindingsMethod) == null) {
AppCallbackGrpc.getListInputBindingsMethod = getListInputBindingsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListInputBindings"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse.getDefaultInstance()))
.setSchemaDescriptor(new AppCallbackMethodDescriptorSupplier("ListInputBindings"))
.build();
}
}
}
return getListInputBindingsMethod;
}
private static volatile io.grpc.MethodDescriptor getOnBindingEventMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "OnBindingEvent",
requestType = io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest.class,
responseType = io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getOnBindingEventMethod() {
io.grpc.MethodDescriptor getOnBindingEventMethod;
if ((getOnBindingEventMethod = AppCallbackGrpc.getOnBindingEventMethod) == null) {
synchronized (AppCallbackGrpc.class) {
if ((getOnBindingEventMethod = AppCallbackGrpc.getOnBindingEventMethod) == null) {
AppCallbackGrpc.getOnBindingEventMethod = getOnBindingEventMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "OnBindingEvent"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse.getDefaultInstance()))
.setSchemaDescriptor(new AppCallbackMethodDescriptorSupplier("OnBindingEvent"))
.build();
}
}
}
return getOnBindingEventMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AppCallbackStub newStub(io.grpc.Channel channel) {
return new AppCallbackStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AppCallbackBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new AppCallbackBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AppCallbackFutureStub newFutureStub(
io.grpc.Channel channel) {
return new AppCallbackFutureStub(channel);
}
/**
*
* AppCallback V1 allows user application to interact with Dapr runtime.
* User application needs to implement AppCallback service if it needs to
* receive message from dapr runtime.
*
*/
public static abstract class AppCallbackImplBase implements io.grpc.BindableService {
/**
*
* Invokes service method with InvokeRequest.
*
*/
public void onInvoke(io.dapr.v1.CommonProtos.InvokeRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getOnInvokeMethod(), responseObserver);
}
/**
*
* Lists all topics subscribed by this app.
*
*/
public void listTopicSubscriptions(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getListTopicSubscriptionsMethod(), responseObserver);
}
/**
*
* Subscribes events from Pubsub
*
*/
public void onTopicEvent(io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getOnTopicEventMethod(), responseObserver);
}
/**
*
* Lists all input bindings subscribed by this app.
*
*/
public void listInputBindings(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getListInputBindingsMethod(), responseObserver);
}
/**
*
* Listens events from the input bindings
* User application can save the states or send the events to the output
* bindings optionally by returning BindingEventResponse.
*
*/
public void onBindingEvent(io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getOnBindingEventMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getOnInvokeMethod(),
asyncUnaryCall(
new MethodHandlers<
io.dapr.v1.CommonProtos.InvokeRequest,
io.dapr.v1.CommonProtos.InvokeResponse>(
this, METHODID_ON_INVOKE)))
.addMethod(
getListTopicSubscriptionsMethod(),
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
io.dapr.v1.DaprAppCallbackProtos.ListTopicSubscriptionsResponse>(
this, METHODID_LIST_TOPIC_SUBSCRIPTIONS)))
.addMethod(
getOnTopicEventMethod(),
asyncUnaryCall(
new MethodHandlers<
io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest,
com.google.protobuf.Empty>(
this, METHODID_ON_TOPIC_EVENT)))
.addMethod(
getListInputBindingsMethod(),
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse>(
this, METHODID_LIST_INPUT_BINDINGS)))
.addMethod(
getOnBindingEventMethod(),
asyncUnaryCall(
new MethodHandlers<
io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest,
io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse>(
this, METHODID_ON_BINDING_EVENT)))
.build();
}
}
/**
*
* AppCallback V1 allows user application to interact with Dapr runtime.
* User application needs to implement AppCallback service if it needs to
* receive message from dapr runtime.
*
*/
public static final class AppCallbackStub extends io.grpc.stub.AbstractStub {
private AppCallbackStub(io.grpc.Channel channel) {
super(channel);
}
private AppCallbackStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AppCallbackStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AppCallbackStub(channel, callOptions);
}
/**
*
* Invokes service method with InvokeRequest.
*
*/
public void onInvoke(io.dapr.v1.CommonProtos.InvokeRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getOnInvokeMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists all topics subscribed by this app.
*
*/
public void listTopicSubscriptions(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Subscribes events from Pubsub
*
*/
public void onTopicEvent(io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getOnTopicEventMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lists all input bindings subscribed by this app.
*
*/
public void listInputBindings(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getListInputBindingsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Listens events from the input bindings
* User application can save the states or send the events to the output
* bindings optionally by returning BindingEventResponse.
*
*/
public void onBindingEvent(io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getOnBindingEventMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* AppCallback V1 allows user application to interact with Dapr runtime.
* User application needs to implement AppCallback service if it needs to
* receive message from dapr runtime.
*
*/
public static final class AppCallbackBlockingStub extends io.grpc.stub.AbstractStub {
private AppCallbackBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private AppCallbackBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AppCallbackBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AppCallbackBlockingStub(channel, callOptions);
}
/**
*
* Invokes service method with InvokeRequest.
*
*/
public io.dapr.v1.CommonProtos.InvokeResponse onInvoke(io.dapr.v1.CommonProtos.InvokeRequest request) {
return blockingUnaryCall(
getChannel(), getOnInvokeMethod(), getCallOptions(), request);
}
/**
*
* Lists all topics subscribed by this app.
*
*/
public io.dapr.v1.DaprAppCallbackProtos.ListTopicSubscriptionsResponse listTopicSubscriptions(com.google.protobuf.Empty request) {
return blockingUnaryCall(
getChannel(), getListTopicSubscriptionsMethod(), getCallOptions(), request);
}
/**
*
* Subscribes events from Pubsub
*
*/
public com.google.protobuf.Empty onTopicEvent(io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest request) {
return blockingUnaryCall(
getChannel(), getOnTopicEventMethod(), getCallOptions(), request);
}
/**
*
* Lists all input bindings subscribed by this app.
*
*/
public io.dapr.v1.DaprAppCallbackProtos.ListInputBindingsResponse listInputBindings(com.google.protobuf.Empty request) {
return blockingUnaryCall(
getChannel(), getListInputBindingsMethod(), getCallOptions(), request);
}
/**
*
* Listens events from the input bindings
* User application can save the states or send the events to the output
* bindings optionally by returning BindingEventResponse.
*
*/
public io.dapr.v1.DaprAppCallbackProtos.BindingEventResponse onBindingEvent(io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest request) {
return blockingUnaryCall(
getChannel(), getOnBindingEventMethod(), getCallOptions(), request);
}
}
/**
*
* AppCallback V1 allows user application to interact with Dapr runtime.
* User application needs to implement AppCallback service if it needs to
* receive message from dapr runtime.
*
*/
public static final class AppCallbackFutureStub extends io.grpc.stub.AbstractStub {
private AppCallbackFutureStub(io.grpc.Channel channel) {
super(channel);
}
private AppCallbackFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AppCallbackFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new AppCallbackFutureStub(channel, callOptions);
}
/**
*
* Invokes service method with InvokeRequest.
*
*/
public com.google.common.util.concurrent.ListenableFuture onInvoke(
io.dapr.v1.CommonProtos.InvokeRequest request) {
return futureUnaryCall(
getChannel().newCall(getOnInvokeMethod(), getCallOptions()), request);
}
/**
*
* Lists all topics subscribed by this app.
*
*/
public com.google.common.util.concurrent.ListenableFuture listTopicSubscriptions(
com.google.protobuf.Empty request) {
return futureUnaryCall(
getChannel().newCall(getListTopicSubscriptionsMethod(), getCallOptions()), request);
}
/**
*
* Subscribes events from Pubsub
*
*/
public com.google.common.util.concurrent.ListenableFuture onTopicEvent(
io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest request) {
return futureUnaryCall(
getChannel().newCall(getOnTopicEventMethod(), getCallOptions()), request);
}
/**
*
* Lists all input bindings subscribed by this app.
*
*/
public com.google.common.util.concurrent.ListenableFuture listInputBindings(
com.google.protobuf.Empty request) {
return futureUnaryCall(
getChannel().newCall(getListInputBindingsMethod(), getCallOptions()), request);
}
/**
*
* Listens events from the input bindings
* User application can save the states or send the events to the output
* bindings optionally by returning BindingEventResponse.
*
*/
public com.google.common.util.concurrent.ListenableFuture onBindingEvent(
io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest request) {
return futureUnaryCall(
getChannel().newCall(getOnBindingEventMethod(), getCallOptions()), request);
}
}
private static final int METHODID_ON_INVOKE = 0;
private static final int METHODID_LIST_TOPIC_SUBSCRIPTIONS = 1;
private static final int METHODID_ON_TOPIC_EVENT = 2;
private static final int METHODID_LIST_INPUT_BINDINGS = 3;
private static final int METHODID_ON_BINDING_EVENT = 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 AppCallbackImplBase serviceImpl;
private final int methodId;
MethodHandlers(AppCallbackImplBase 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_ON_INVOKE:
serviceImpl.onInvoke((io.dapr.v1.CommonProtos.InvokeRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_TOPIC_SUBSCRIPTIONS:
serviceImpl.listTopicSubscriptions((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ON_TOPIC_EVENT:
serviceImpl.onTopicEvent((io.dapr.v1.DaprAppCallbackProtos.TopicEventRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LIST_INPUT_BINDINGS:
serviceImpl.listInputBindings((com.google.protobuf.Empty) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ON_BINDING_EVENT:
serviceImpl.onBindingEvent((io.dapr.v1.DaprAppCallbackProtos.BindingEventRequest) 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 AppCallbackBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AppCallbackBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.dapr.v1.DaprAppCallbackProtos.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AppCallback");
}
}
private static final class AppCallbackFileDescriptorSupplier
extends AppCallbackBaseDescriptorSupplier {
AppCallbackFileDescriptorSupplier() {}
}
private static final class AppCallbackMethodDescriptorSupplier
extends AppCallbackBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
AppCallbackMethodDescriptorSupplier(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 (AppCallbackGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AppCallbackFileDescriptorSupplier())
.addMethod(getOnInvokeMethod())
.addMethod(getListTopicSubscriptionsMethod())
.addMethod(getOnTopicEventMethod())
.addMethod(getListInputBindingsMethod())
.addMethod(getOnBindingEventMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy