Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
xyz.block.ftl.v1.ControllerServiceGrpc Maven / Gradle / Ivy
package xyz.block.ftl.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.65.1)",
comments = "Source: xyz/block/ftl/v1/ftl.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ControllerServiceGrpc {
private ControllerServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "xyz.block.ftl.v1.ControllerService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getPingMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Ping",
requestType = xyz.block.ftl.v1.PingRequest.class,
responseType = xyz.block.ftl.v1.PingResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPingMethod() {
io.grpc.MethodDescriptor getPingMethod;
if ((getPingMethod = ControllerServiceGrpc.getPingMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getPingMethod = ControllerServiceGrpc.getPingMethod) == null) {
ControllerServiceGrpc.getPingMethod = getPingMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Ping"))
.setSafe(true)
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.PingRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.PingResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("Ping"))
.build();
}
}
}
return getPingMethod;
}
private static volatile io.grpc.MethodDescriptor getProcessListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ProcessList",
requestType = xyz.block.ftl.v1.ProcessListRequest.class,
responseType = xyz.block.ftl.v1.ProcessListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getProcessListMethod() {
io.grpc.MethodDescriptor getProcessListMethod;
if ((getProcessListMethod = ControllerServiceGrpc.getProcessListMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getProcessListMethod = ControllerServiceGrpc.getProcessListMethod) == null) {
ControllerServiceGrpc.getProcessListMethod = getProcessListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ProcessList"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ProcessListRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ProcessListResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("ProcessList"))
.build();
}
}
}
return getProcessListMethod;
}
private static volatile io.grpc.MethodDescriptor getStatusMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Status",
requestType = xyz.block.ftl.v1.StatusRequest.class,
responseType = xyz.block.ftl.v1.StatusResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getStatusMethod() {
io.grpc.MethodDescriptor getStatusMethod;
if ((getStatusMethod = ControllerServiceGrpc.getStatusMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getStatusMethod = ControllerServiceGrpc.getStatusMethod) == null) {
ControllerServiceGrpc.getStatusMethod = getStatusMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Status"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.StatusRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.StatusResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("Status"))
.build();
}
}
}
return getStatusMethod;
}
private static volatile io.grpc.MethodDescriptor getGetArtefactDiffsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetArtefactDiffs",
requestType = xyz.block.ftl.v1.GetArtefactDiffsRequest.class,
responseType = xyz.block.ftl.v1.GetArtefactDiffsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetArtefactDiffsMethod() {
io.grpc.MethodDescriptor getGetArtefactDiffsMethod;
if ((getGetArtefactDiffsMethod = ControllerServiceGrpc.getGetArtefactDiffsMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getGetArtefactDiffsMethod = ControllerServiceGrpc.getGetArtefactDiffsMethod) == null) {
ControllerServiceGrpc.getGetArtefactDiffsMethod = getGetArtefactDiffsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetArtefactDiffs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetArtefactDiffsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetArtefactDiffsResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("GetArtefactDiffs"))
.build();
}
}
}
return getGetArtefactDiffsMethod;
}
private static volatile io.grpc.MethodDescriptor getUploadArtefactMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UploadArtefact",
requestType = xyz.block.ftl.v1.UploadArtefactRequest.class,
responseType = xyz.block.ftl.v1.UploadArtefactResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUploadArtefactMethod() {
io.grpc.MethodDescriptor getUploadArtefactMethod;
if ((getUploadArtefactMethod = ControllerServiceGrpc.getUploadArtefactMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getUploadArtefactMethod = ControllerServiceGrpc.getUploadArtefactMethod) == null) {
ControllerServiceGrpc.getUploadArtefactMethod = getUploadArtefactMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadArtefact"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.UploadArtefactRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.UploadArtefactResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("UploadArtefact"))
.build();
}
}
}
return getUploadArtefactMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateDeploymentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateDeployment",
requestType = xyz.block.ftl.v1.CreateDeploymentRequest.class,
responseType = xyz.block.ftl.v1.CreateDeploymentResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateDeploymentMethod() {
io.grpc.MethodDescriptor getCreateDeploymentMethod;
if ((getCreateDeploymentMethod = ControllerServiceGrpc.getCreateDeploymentMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getCreateDeploymentMethod = ControllerServiceGrpc.getCreateDeploymentMethod) == null) {
ControllerServiceGrpc.getCreateDeploymentMethod = getCreateDeploymentMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateDeployment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.CreateDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.CreateDeploymentResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("CreateDeployment"))
.build();
}
}
}
return getCreateDeploymentMethod;
}
private static volatile io.grpc.MethodDescriptor getGetDeploymentMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetDeployment",
requestType = xyz.block.ftl.v1.GetDeploymentRequest.class,
responseType = xyz.block.ftl.v1.GetDeploymentResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetDeploymentMethod() {
io.grpc.MethodDescriptor getGetDeploymentMethod;
if ((getGetDeploymentMethod = ControllerServiceGrpc.getGetDeploymentMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getGetDeploymentMethod = ControllerServiceGrpc.getGetDeploymentMethod) == null) {
ControllerServiceGrpc.getGetDeploymentMethod = getGetDeploymentMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeployment"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetDeploymentRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetDeploymentResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("GetDeployment"))
.build();
}
}
}
return getGetDeploymentMethod;
}
private static volatile io.grpc.MethodDescriptor getGetDeploymentArtefactsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetDeploymentArtefacts",
requestType = xyz.block.ftl.v1.GetDeploymentArtefactsRequest.class,
responseType = xyz.block.ftl.v1.GetDeploymentArtefactsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getGetDeploymentArtefactsMethod() {
io.grpc.MethodDescriptor getGetDeploymentArtefactsMethod;
if ((getGetDeploymentArtefactsMethod = ControllerServiceGrpc.getGetDeploymentArtefactsMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getGetDeploymentArtefactsMethod = ControllerServiceGrpc.getGetDeploymentArtefactsMethod) == null) {
ControllerServiceGrpc.getGetDeploymentArtefactsMethod = getGetDeploymentArtefactsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetDeploymentArtefacts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetDeploymentArtefactsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetDeploymentArtefactsResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("GetDeploymentArtefacts"))
.build();
}
}
}
return getGetDeploymentArtefactsMethod;
}
private static volatile io.grpc.MethodDescriptor getRegisterRunnerMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RegisterRunner",
requestType = xyz.block.ftl.v1.RegisterRunnerRequest.class,
responseType = xyz.block.ftl.v1.RegisterRunnerResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
public static io.grpc.MethodDescriptor getRegisterRunnerMethod() {
io.grpc.MethodDescriptor getRegisterRunnerMethod;
if ((getRegisterRunnerMethod = ControllerServiceGrpc.getRegisterRunnerMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getRegisterRunnerMethod = ControllerServiceGrpc.getRegisterRunnerMethod) == null) {
ControllerServiceGrpc.getRegisterRunnerMethod = getRegisterRunnerMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterRunner"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.RegisterRunnerRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.RegisterRunnerResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("RegisterRunner"))
.build();
}
}
}
return getRegisterRunnerMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateDeployMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateDeploy",
requestType = xyz.block.ftl.v1.UpdateDeployRequest.class,
responseType = xyz.block.ftl.v1.UpdateDeployResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateDeployMethod() {
io.grpc.MethodDescriptor getUpdateDeployMethod;
if ((getUpdateDeployMethod = ControllerServiceGrpc.getUpdateDeployMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getUpdateDeployMethod = ControllerServiceGrpc.getUpdateDeployMethod) == null) {
ControllerServiceGrpc.getUpdateDeployMethod = getUpdateDeployMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDeploy"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.UpdateDeployRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.UpdateDeployResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("UpdateDeploy"))
.build();
}
}
}
return getUpdateDeployMethod;
}
private static volatile io.grpc.MethodDescriptor getReplaceDeployMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ReplaceDeploy",
requestType = xyz.block.ftl.v1.ReplaceDeployRequest.class,
responseType = xyz.block.ftl.v1.ReplaceDeployResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getReplaceDeployMethod() {
io.grpc.MethodDescriptor getReplaceDeployMethod;
if ((getReplaceDeployMethod = ControllerServiceGrpc.getReplaceDeployMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getReplaceDeployMethod = ControllerServiceGrpc.getReplaceDeployMethod) == null) {
ControllerServiceGrpc.getReplaceDeployMethod = getReplaceDeployMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReplaceDeploy"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ReplaceDeployRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ReplaceDeployResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("ReplaceDeploy"))
.build();
}
}
}
return getReplaceDeployMethod;
}
private static volatile io.grpc.MethodDescriptor getStreamDeploymentLogsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StreamDeploymentLogs",
requestType = xyz.block.ftl.v1.StreamDeploymentLogsRequest.class,
responseType = xyz.block.ftl.v1.StreamDeploymentLogsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
public static io.grpc.MethodDescriptor getStreamDeploymentLogsMethod() {
io.grpc.MethodDescriptor getStreamDeploymentLogsMethod;
if ((getStreamDeploymentLogsMethod = ControllerServiceGrpc.getStreamDeploymentLogsMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getStreamDeploymentLogsMethod = ControllerServiceGrpc.getStreamDeploymentLogsMethod) == null) {
ControllerServiceGrpc.getStreamDeploymentLogsMethod = getStreamDeploymentLogsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamDeploymentLogs"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.StreamDeploymentLogsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.StreamDeploymentLogsResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("StreamDeploymentLogs"))
.build();
}
}
}
return getStreamDeploymentLogsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetSchemaMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetSchema",
requestType = xyz.block.ftl.v1.GetSchemaRequest.class,
responseType = xyz.block.ftl.v1.GetSchemaResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetSchemaMethod() {
io.grpc.MethodDescriptor getGetSchemaMethod;
if ((getGetSchemaMethod = ControllerServiceGrpc.getGetSchemaMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getGetSchemaMethod = ControllerServiceGrpc.getGetSchemaMethod) == null) {
ControllerServiceGrpc.getGetSchemaMethod = getGetSchemaMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetSchema"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetSchemaRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetSchemaResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("GetSchema"))
.build();
}
}
}
return getGetSchemaMethod;
}
private static volatile io.grpc.MethodDescriptor getPullSchemaMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PullSchema",
requestType = xyz.block.ftl.v1.PullSchemaRequest.class,
responseType = xyz.block.ftl.v1.PullSchemaResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getPullSchemaMethod() {
io.grpc.MethodDescriptor getPullSchemaMethod;
if ((getPullSchemaMethod = ControllerServiceGrpc.getPullSchemaMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getPullSchemaMethod = ControllerServiceGrpc.getPullSchemaMethod) == null) {
ControllerServiceGrpc.getPullSchemaMethod = getPullSchemaMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PullSchema"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.PullSchemaRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.PullSchemaResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("PullSchema"))
.build();
}
}
}
return getPullSchemaMethod;
}
private static volatile io.grpc.MethodDescriptor getResetSubscriptionMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ResetSubscription",
requestType = xyz.block.ftl.v1.ResetSubscriptionRequest.class,
responseType = xyz.block.ftl.v1.ResetSubscriptionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getResetSubscriptionMethod() {
io.grpc.MethodDescriptor getResetSubscriptionMethod;
if ((getResetSubscriptionMethod = ControllerServiceGrpc.getResetSubscriptionMethod) == null) {
synchronized (ControllerServiceGrpc.class) {
if ((getResetSubscriptionMethod = ControllerServiceGrpc.getResetSubscriptionMethod) == null) {
ControllerServiceGrpc.getResetSubscriptionMethod = getResetSubscriptionMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResetSubscription"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ResetSubscriptionRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ResetSubscriptionResponse.getDefaultInstance()))
.setSchemaDescriptor(new ControllerServiceMethodDescriptorSupplier("ResetSubscription"))
.build();
}
}
}
return getResetSubscriptionMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ControllerServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ControllerServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ControllerServiceStub(channel, callOptions);
}
};
return ControllerServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ControllerServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ControllerServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ControllerServiceBlockingStub(channel, callOptions);
}
};
return ControllerServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ControllerServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ControllerServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ControllerServiceFutureStub(channel, callOptions);
}
};
return ControllerServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*
* Ping service for readiness.
*
*/
default void ping(xyz.block.ftl.v1.PingRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPingMethod(), responseObserver);
}
/**
*
* List "processes" running on the cluster.
*
*/
default void processList(xyz.block.ftl.v1.ProcessListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getProcessListMethod(), responseObserver);
}
/**
*/
default void status(xyz.block.ftl.v1.StatusRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getStatusMethod(), responseObserver);
}
/**
*
* Get list of artefacts that differ between the server and client.
*
*/
default void getArtefactDiffs(xyz.block.ftl.v1.GetArtefactDiffsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetArtefactDiffsMethod(), responseObserver);
}
/**
*
* Upload an artefact to the server.
*
*/
default void uploadArtefact(xyz.block.ftl.v1.UploadArtefactRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadArtefactMethod(), responseObserver);
}
/**
*
* Create a deployment.
*
*/
default void createDeployment(xyz.block.ftl.v1.CreateDeploymentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateDeploymentMethod(), responseObserver);
}
/**
*
* Get the schema and artefact metadata for a deployment.
*
*/
default void getDeployment(xyz.block.ftl.v1.GetDeploymentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeploymentMethod(), responseObserver);
}
/**
*
* Stream deployment artefacts from the server.
* Each artefact is streamed one after the other as a sequence of max 1MB
* chunks.
*
*/
default void getDeploymentArtefacts(xyz.block.ftl.v1.GetDeploymentArtefactsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetDeploymentArtefactsMethod(), responseObserver);
}
/**
*
* Register a Runner with the Controller.
* Each runner issue a RegisterRunnerRequest to the ControllerService
* every 10 seconds to maintain its heartbeat.
*
*/
default io.grpc.stub.StreamObserver registerRunner(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getRegisterRunnerMethod(), responseObserver);
}
/**
*
* Update an existing deployment.
*
*/
default void updateDeploy(xyz.block.ftl.v1.UpdateDeployRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDeployMethod(), responseObserver);
}
/**
*
* Gradually replace an existing deployment with a new one.
* If a deployment already exists for the module of the new deployment,
* it will be scaled down and replaced by the new one.
*
*/
default void replaceDeploy(xyz.block.ftl.v1.ReplaceDeployRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReplaceDeployMethod(), responseObserver);
}
/**
*
* Stream logs from a deployment
*
*/
default io.grpc.stub.StreamObserver streamDeploymentLogs(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamDeploymentLogsMethod(), responseObserver);
}
/**
*
* Get the full schema.
*
*/
default void getSchema(xyz.block.ftl.v1.GetSchemaRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetSchemaMethod(), responseObserver);
}
/**
*
* Pull schema changes from the Controller.
* Note that if there are no deployments this will block indefinitely, making it unsuitable for
* just retrieving the schema. Use GetSchema for that.
*
*/
default void pullSchema(xyz.block.ftl.v1.PullSchemaRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPullSchemaMethod(), responseObserver);
}
/**
*
* Reset the cursor for a subscription to the head of its topic.
*
*/
default void resetSubscription(xyz.block.ftl.v1.ResetSubscriptionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResetSubscriptionMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service ControllerService.
*/
public static abstract class ControllerServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return ControllerServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service ControllerService.
*/
public static final class ControllerServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private ControllerServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ControllerServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ControllerServiceStub(channel, callOptions);
}
/**
*
* Ping service for readiness.
*
*/
public void ping(xyz.block.ftl.v1.PingRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPingMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* List "processes" running on the cluster.
*
*/
public void processList(xyz.block.ftl.v1.ProcessListRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getProcessListMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void status(xyz.block.ftl.v1.StatusRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getStatusMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get list of artefacts that differ between the server and client.
*
*/
public void getArtefactDiffs(xyz.block.ftl.v1.GetArtefactDiffsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetArtefactDiffsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Upload an artefact to the server.
*
*/
public void uploadArtefact(xyz.block.ftl.v1.UploadArtefactRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUploadArtefactMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Create a deployment.
*
*/
public void createDeployment(xyz.block.ftl.v1.CreateDeploymentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateDeploymentMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get the schema and artefact metadata for a deployment.
*
*/
public void getDeployment(xyz.block.ftl.v1.GetDeploymentRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Stream deployment artefacts from the server.
* Each artefact is streamed one after the other as a sequence of max 1MB
* chunks.
*
*/
public void getDeploymentArtefacts(xyz.block.ftl.v1.GetDeploymentArtefactsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getGetDeploymentArtefactsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Register a Runner with the Controller.
* Each runner issue a RegisterRunnerRequest to the ControllerService
* every 10 seconds to maintain its heartbeat.
*
*/
public io.grpc.stub.StreamObserver registerRunner(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
getChannel().newCall(getRegisterRunnerMethod(), getCallOptions()), responseObserver);
}
/**
*
* Update an existing deployment.
*
*/
public void updateDeploy(xyz.block.ftl.v1.UpdateDeployRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateDeployMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Gradually replace an existing deployment with a new one.
* If a deployment already exists for the module of the new deployment,
* it will be scaled down and replaced by the new one.
*
*/
public void replaceDeploy(xyz.block.ftl.v1.ReplaceDeployRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getReplaceDeployMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Stream logs from a deployment
*
*/
public io.grpc.stub.StreamObserver streamDeploymentLogs(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
getChannel().newCall(getStreamDeploymentLogsMethod(), getCallOptions()), responseObserver);
}
/**
*
* Get the full schema.
*
*/
public void getSchema(xyz.block.ftl.v1.GetSchemaRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Pull schema changes from the Controller.
* Note that if there are no deployments this will block indefinitely, making it unsuitable for
* just retrieving the schema. Use GetSchema for that.
*
*/
public void pullSchema(xyz.block.ftl.v1.PullSchemaRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getPullSchemaMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Reset the cursor for a subscription to the head of its topic.
*
*/
public void resetSubscription(xyz.block.ftl.v1.ResetSubscriptionRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getResetSubscriptionMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service ControllerService.
*/
public static final class ControllerServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private ControllerServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ControllerServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ControllerServiceBlockingStub(channel, callOptions);
}
/**
*
* Ping service for readiness.
*
*/
public xyz.block.ftl.v1.PingResponse ping(xyz.block.ftl.v1.PingRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPingMethod(), getCallOptions(), request);
}
/**
*
* List "processes" running on the cluster.
*
*/
public xyz.block.ftl.v1.ProcessListResponse processList(xyz.block.ftl.v1.ProcessListRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getProcessListMethod(), getCallOptions(), request);
}
/**
*/
public xyz.block.ftl.v1.StatusResponse status(xyz.block.ftl.v1.StatusRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getStatusMethod(), getCallOptions(), request);
}
/**
*
* Get list of artefacts that differ between the server and client.
*
*/
public xyz.block.ftl.v1.GetArtefactDiffsResponse getArtefactDiffs(xyz.block.ftl.v1.GetArtefactDiffsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetArtefactDiffsMethod(), getCallOptions(), request);
}
/**
*
* Upload an artefact to the server.
*
*/
public xyz.block.ftl.v1.UploadArtefactResponse uploadArtefact(xyz.block.ftl.v1.UploadArtefactRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUploadArtefactMethod(), getCallOptions(), request);
}
/**
*
* Create a deployment.
*
*/
public xyz.block.ftl.v1.CreateDeploymentResponse createDeployment(xyz.block.ftl.v1.CreateDeploymentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateDeploymentMethod(), getCallOptions(), request);
}
/**
*
* Get the schema and artefact metadata for a deployment.
*
*/
public xyz.block.ftl.v1.GetDeploymentResponse getDeployment(xyz.block.ftl.v1.GetDeploymentRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetDeploymentMethod(), getCallOptions(), request);
}
/**
*
* Stream deployment artefacts from the server.
* Each artefact is streamed one after the other as a sequence of max 1MB
* chunks.
*
*/
public java.util.Iterator getDeploymentArtefacts(
xyz.block.ftl.v1.GetDeploymentArtefactsRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getGetDeploymentArtefactsMethod(), getCallOptions(), request);
}
/**
*
* Update an existing deployment.
*
*/
public xyz.block.ftl.v1.UpdateDeployResponse updateDeploy(xyz.block.ftl.v1.UpdateDeployRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateDeployMethod(), getCallOptions(), request);
}
/**
*
* Gradually replace an existing deployment with a new one.
* If a deployment already exists for the module of the new deployment,
* it will be scaled down and replaced by the new one.
*
*/
public xyz.block.ftl.v1.ReplaceDeployResponse replaceDeploy(xyz.block.ftl.v1.ReplaceDeployRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getReplaceDeployMethod(), getCallOptions(), request);
}
/**
*
* Get the full schema.
*
*/
public xyz.block.ftl.v1.GetSchemaResponse getSchema(xyz.block.ftl.v1.GetSchemaRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetSchemaMethod(), getCallOptions(), request);
}
/**
*
* Pull schema changes from the Controller.
* Note that if there are no deployments this will block indefinitely, making it unsuitable for
* just retrieving the schema. Use GetSchema for that.
*
*/
public java.util.Iterator pullSchema(
xyz.block.ftl.v1.PullSchemaRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getPullSchemaMethod(), getCallOptions(), request);
}
/**
*
* Reset the cursor for a subscription to the head of its topic.
*
*/
public xyz.block.ftl.v1.ResetSubscriptionResponse resetSubscription(xyz.block.ftl.v1.ResetSubscriptionRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getResetSubscriptionMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service ControllerService.
*/
public static final class ControllerServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private ControllerServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ControllerServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ControllerServiceFutureStub(channel, callOptions);
}
/**
*
* Ping service for readiness.
*
*/
public com.google.common.util.concurrent.ListenableFuture ping(
xyz.block.ftl.v1.PingRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPingMethod(), getCallOptions()), request);
}
/**
*
* List "processes" running on the cluster.
*
*/
public com.google.common.util.concurrent.ListenableFuture processList(
xyz.block.ftl.v1.ProcessListRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getProcessListMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture status(
xyz.block.ftl.v1.StatusRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getStatusMethod(), getCallOptions()), request);
}
/**
*
* Get list of artefacts that differ between the server and client.
*
*/
public com.google.common.util.concurrent.ListenableFuture getArtefactDiffs(
xyz.block.ftl.v1.GetArtefactDiffsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetArtefactDiffsMethod(), getCallOptions()), request);
}
/**
*
* Upload an artefact to the server.
*
*/
public com.google.common.util.concurrent.ListenableFuture uploadArtefact(
xyz.block.ftl.v1.UploadArtefactRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUploadArtefactMethod(), getCallOptions()), request);
}
/**
*
* Create a deployment.
*
*/
public com.google.common.util.concurrent.ListenableFuture createDeployment(
xyz.block.ftl.v1.CreateDeploymentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateDeploymentMethod(), getCallOptions()), request);
}
/**
*
* Get the schema and artefact metadata for a deployment.
*
*/
public com.google.common.util.concurrent.ListenableFuture getDeployment(
xyz.block.ftl.v1.GetDeploymentRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetDeploymentMethod(), getCallOptions()), request);
}
/**
*
* Update an existing deployment.
*
*/
public com.google.common.util.concurrent.ListenableFuture updateDeploy(
xyz.block.ftl.v1.UpdateDeployRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateDeployMethod(), getCallOptions()), request);
}
/**
*
* Gradually replace an existing deployment with a new one.
* If a deployment already exists for the module of the new deployment,
* it will be scaled down and replaced by the new one.
*
*/
public com.google.common.util.concurrent.ListenableFuture replaceDeploy(
xyz.block.ftl.v1.ReplaceDeployRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getReplaceDeployMethod(), getCallOptions()), request);
}
/**
*
* Get the full schema.
*
*/
public com.google.common.util.concurrent.ListenableFuture getSchema(
xyz.block.ftl.v1.GetSchemaRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetSchemaMethod(), getCallOptions()), request);
}
/**
*
* Reset the cursor for a subscription to the head of its topic.
*
*/
public com.google.common.util.concurrent.ListenableFuture resetSubscription(
xyz.block.ftl.v1.ResetSubscriptionRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getResetSubscriptionMethod(), getCallOptions()), request);
}
}
private static final int METHODID_PING = 0;
private static final int METHODID_PROCESS_LIST = 1;
private static final int METHODID_STATUS = 2;
private static final int METHODID_GET_ARTEFACT_DIFFS = 3;
private static final int METHODID_UPLOAD_ARTEFACT = 4;
private static final int METHODID_CREATE_DEPLOYMENT = 5;
private static final int METHODID_GET_DEPLOYMENT = 6;
private static final int METHODID_GET_DEPLOYMENT_ARTEFACTS = 7;
private static final int METHODID_UPDATE_DEPLOY = 8;
private static final int METHODID_REPLACE_DEPLOY = 9;
private static final int METHODID_GET_SCHEMA = 10;
private static final int METHODID_PULL_SCHEMA = 11;
private static final int METHODID_RESET_SUBSCRIPTION = 12;
private static final int METHODID_REGISTER_RUNNER = 13;
private static final int METHODID_STREAM_DEPLOYMENT_LOGS = 14;
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_PING:
serviceImpl.ping((xyz.block.ftl.v1.PingRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PROCESS_LIST:
serviceImpl.processList((xyz.block.ftl.v1.ProcessListRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_STATUS:
serviceImpl.status((xyz.block.ftl.v1.StatusRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_ARTEFACT_DIFFS:
serviceImpl.getArtefactDiffs((xyz.block.ftl.v1.GetArtefactDiffsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPLOAD_ARTEFACT:
serviceImpl.uploadArtefact((xyz.block.ftl.v1.UploadArtefactRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_DEPLOYMENT:
serviceImpl.createDeployment((xyz.block.ftl.v1.CreateDeploymentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_DEPLOYMENT:
serviceImpl.getDeployment((xyz.block.ftl.v1.GetDeploymentRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_DEPLOYMENT_ARTEFACTS:
serviceImpl.getDeploymentArtefacts((xyz.block.ftl.v1.GetDeploymentArtefactsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_DEPLOY:
serviceImpl.updateDeploy((xyz.block.ftl.v1.UpdateDeployRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REPLACE_DEPLOY:
serviceImpl.replaceDeploy((xyz.block.ftl.v1.ReplaceDeployRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_SCHEMA:
serviceImpl.getSchema((xyz.block.ftl.v1.GetSchemaRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PULL_SCHEMA:
serviceImpl.pullSchema((xyz.block.ftl.v1.PullSchemaRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESET_SUBSCRIPTION:
serviceImpl.resetSubscription((xyz.block.ftl.v1.ResetSubscriptionRequest) 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) {
case METHODID_REGISTER_RUNNER:
return (io.grpc.stub.StreamObserver) serviceImpl.registerRunner(
(io.grpc.stub.StreamObserver) responseObserver);
case METHODID_STREAM_DEPLOYMENT_LOGS:
return (io.grpc.stub.StreamObserver) serviceImpl.streamDeploymentLogs(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getPingMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.PingRequest,
xyz.block.ftl.v1.PingResponse>(
service, METHODID_PING)))
.addMethod(
getProcessListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.ProcessListRequest,
xyz.block.ftl.v1.ProcessListResponse>(
service, METHODID_PROCESS_LIST)))
.addMethod(
getStatusMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.StatusRequest,
xyz.block.ftl.v1.StatusResponse>(
service, METHODID_STATUS)))
.addMethod(
getGetArtefactDiffsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.GetArtefactDiffsRequest,
xyz.block.ftl.v1.GetArtefactDiffsResponse>(
service, METHODID_GET_ARTEFACT_DIFFS)))
.addMethod(
getUploadArtefactMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.UploadArtefactRequest,
xyz.block.ftl.v1.UploadArtefactResponse>(
service, METHODID_UPLOAD_ARTEFACT)))
.addMethod(
getCreateDeploymentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.CreateDeploymentRequest,
xyz.block.ftl.v1.CreateDeploymentResponse>(
service, METHODID_CREATE_DEPLOYMENT)))
.addMethod(
getGetDeploymentMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.GetDeploymentRequest,
xyz.block.ftl.v1.GetDeploymentResponse>(
service, METHODID_GET_DEPLOYMENT)))
.addMethod(
getGetDeploymentArtefactsMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
xyz.block.ftl.v1.GetDeploymentArtefactsRequest,
xyz.block.ftl.v1.GetDeploymentArtefactsResponse>(
service, METHODID_GET_DEPLOYMENT_ARTEFACTS)))
.addMethod(
getRegisterRunnerMethod(),
io.grpc.stub.ServerCalls.asyncClientStreamingCall(
new MethodHandlers<
xyz.block.ftl.v1.RegisterRunnerRequest,
xyz.block.ftl.v1.RegisterRunnerResponse>(
service, METHODID_REGISTER_RUNNER)))
.addMethod(
getUpdateDeployMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.UpdateDeployRequest,
xyz.block.ftl.v1.UpdateDeployResponse>(
service, METHODID_UPDATE_DEPLOY)))
.addMethod(
getReplaceDeployMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.ReplaceDeployRequest,
xyz.block.ftl.v1.ReplaceDeployResponse>(
service, METHODID_REPLACE_DEPLOY)))
.addMethod(
getStreamDeploymentLogsMethod(),
io.grpc.stub.ServerCalls.asyncClientStreamingCall(
new MethodHandlers<
xyz.block.ftl.v1.StreamDeploymentLogsRequest,
xyz.block.ftl.v1.StreamDeploymentLogsResponse>(
service, METHODID_STREAM_DEPLOYMENT_LOGS)))
.addMethod(
getGetSchemaMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.GetSchemaRequest,
xyz.block.ftl.v1.GetSchemaResponse>(
service, METHODID_GET_SCHEMA)))
.addMethod(
getPullSchemaMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
xyz.block.ftl.v1.PullSchemaRequest,
xyz.block.ftl.v1.PullSchemaResponse>(
service, METHODID_PULL_SCHEMA)))
.addMethod(
getResetSubscriptionMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.ResetSubscriptionRequest,
xyz.block.ftl.v1.ResetSubscriptionResponse>(
service, METHODID_RESET_SUBSCRIPTION)))
.build();
}
private static abstract class ControllerServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ControllerServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return xyz.block.ftl.v1.Ftl.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ControllerService");
}
}
private static final class ControllerServiceFileDescriptorSupplier
extends ControllerServiceBaseDescriptorSupplier {
ControllerServiceFileDescriptorSupplier() {}
}
private static final class ControllerServiceMethodDescriptorSupplier
extends ControllerServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
ControllerServiceMethodDescriptorSupplier(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 (ControllerServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ControllerServiceFileDescriptorSupplier())
.addMethod(getPingMethod())
.addMethod(getProcessListMethod())
.addMethod(getStatusMethod())
.addMethod(getGetArtefactDiffsMethod())
.addMethod(getUploadArtefactMethod())
.addMethod(getCreateDeploymentMethod())
.addMethod(getGetDeploymentMethod())
.addMethod(getGetDeploymentArtefactsMethod())
.addMethod(getRegisterRunnerMethod())
.addMethod(getUpdateDeployMethod())
.addMethod(getReplaceDeployMethod())
.addMethod(getStreamDeploymentLogsMethod())
.addMethod(getGetSchemaMethod())
.addMethod(getPullSchemaMethod())
.addMethod(getResetSubscriptionMethod())
.build();
}
}
}
return result;
}
}