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.AdminServiceGrpc Maven / Gradle / Ivy
package xyz.block.ftl.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* AdminService is the service that provides and updates admin data. For example,
* it is used to encapsulate configuration and secrets.
*
*/
@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 AdminServiceGrpc {
private AdminServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "xyz.block.ftl.v1.AdminService";
// 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 = AdminServiceGrpc.getPingMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getPingMethod = AdminServiceGrpc.getPingMethod) == null) {
AdminServiceGrpc.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 AdminServiceMethodDescriptorSupplier("Ping"))
.build();
}
}
}
return getPingMethod;
}
private static volatile io.grpc.MethodDescriptor getConfigListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ConfigList",
requestType = xyz.block.ftl.v1.ListConfigRequest.class,
responseType = xyz.block.ftl.v1.ListConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getConfigListMethod() {
io.grpc.MethodDescriptor getConfigListMethod;
if ((getConfigListMethod = AdminServiceGrpc.getConfigListMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getConfigListMethod = AdminServiceGrpc.getConfigListMethod) == null) {
AdminServiceGrpc.getConfigListMethod = getConfigListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConfigList"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ListConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ListConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ConfigList"))
.build();
}
}
}
return getConfigListMethod;
}
private static volatile io.grpc.MethodDescriptor getConfigGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ConfigGet",
requestType = xyz.block.ftl.v1.GetConfigRequest.class,
responseType = xyz.block.ftl.v1.GetConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getConfigGetMethod() {
io.grpc.MethodDescriptor getConfigGetMethod;
if ((getConfigGetMethod = AdminServiceGrpc.getConfigGetMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getConfigGetMethod = AdminServiceGrpc.getConfigGetMethod) == null) {
AdminServiceGrpc.getConfigGetMethod = getConfigGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConfigGet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ConfigGet"))
.build();
}
}
}
return getConfigGetMethod;
}
private static volatile io.grpc.MethodDescriptor getConfigSetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ConfigSet",
requestType = xyz.block.ftl.v1.SetConfigRequest.class,
responseType = xyz.block.ftl.v1.SetConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getConfigSetMethod() {
io.grpc.MethodDescriptor getConfigSetMethod;
if ((getConfigSetMethod = AdminServiceGrpc.getConfigSetMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getConfigSetMethod = AdminServiceGrpc.getConfigSetMethod) == null) {
AdminServiceGrpc.getConfigSetMethod = getConfigSetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConfigSet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.SetConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.SetConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ConfigSet"))
.build();
}
}
}
return getConfigSetMethod;
}
private static volatile io.grpc.MethodDescriptor getConfigUnsetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ConfigUnset",
requestType = xyz.block.ftl.v1.UnsetConfigRequest.class,
responseType = xyz.block.ftl.v1.UnsetConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getConfigUnsetMethod() {
io.grpc.MethodDescriptor getConfigUnsetMethod;
if ((getConfigUnsetMethod = AdminServiceGrpc.getConfigUnsetMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getConfigUnsetMethod = AdminServiceGrpc.getConfigUnsetMethod) == null) {
AdminServiceGrpc.getConfigUnsetMethod = getConfigUnsetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ConfigUnset"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.UnsetConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.UnsetConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("ConfigUnset"))
.build();
}
}
}
return getConfigUnsetMethod;
}
private static volatile io.grpc.MethodDescriptor getSecretsListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SecretsList",
requestType = xyz.block.ftl.v1.ListSecretsRequest.class,
responseType = xyz.block.ftl.v1.ListSecretsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSecretsListMethod() {
io.grpc.MethodDescriptor getSecretsListMethod;
if ((getSecretsListMethod = AdminServiceGrpc.getSecretsListMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getSecretsListMethod = AdminServiceGrpc.getSecretsListMethod) == null) {
AdminServiceGrpc.getSecretsListMethod = getSecretsListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SecretsList"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ListSecretsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.ListSecretsResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("SecretsList"))
.build();
}
}
}
return getSecretsListMethod;
}
private static volatile io.grpc.MethodDescriptor getSecretGetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SecretGet",
requestType = xyz.block.ftl.v1.GetSecretRequest.class,
responseType = xyz.block.ftl.v1.GetSecretResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSecretGetMethod() {
io.grpc.MethodDescriptor getSecretGetMethod;
if ((getSecretGetMethod = AdminServiceGrpc.getSecretGetMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getSecretGetMethod = AdminServiceGrpc.getSecretGetMethod) == null) {
AdminServiceGrpc.getSecretGetMethod = getSecretGetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SecretGet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetSecretRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.GetSecretResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("SecretGet"))
.build();
}
}
}
return getSecretGetMethod;
}
private static volatile io.grpc.MethodDescriptor getSecretSetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SecretSet",
requestType = xyz.block.ftl.v1.SetSecretRequest.class,
responseType = xyz.block.ftl.v1.SetSecretResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSecretSetMethod() {
io.grpc.MethodDescriptor getSecretSetMethod;
if ((getSecretSetMethod = AdminServiceGrpc.getSecretSetMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getSecretSetMethod = AdminServiceGrpc.getSecretSetMethod) == null) {
AdminServiceGrpc.getSecretSetMethod = getSecretSetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SecretSet"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.SetSecretRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.SetSecretResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("SecretSet"))
.build();
}
}
}
return getSecretSetMethod;
}
private static volatile io.grpc.MethodDescriptor getSecretUnsetMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SecretUnset",
requestType = xyz.block.ftl.v1.UnsetSecretRequest.class,
responseType = xyz.block.ftl.v1.UnsetSecretResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSecretUnsetMethod() {
io.grpc.MethodDescriptor getSecretUnsetMethod;
if ((getSecretUnsetMethod = AdminServiceGrpc.getSecretUnsetMethod) == null) {
synchronized (AdminServiceGrpc.class) {
if ((getSecretUnsetMethod = AdminServiceGrpc.getSecretUnsetMethod) == null) {
AdminServiceGrpc.getSecretUnsetMethod = getSecretUnsetMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SecretUnset"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.UnsetSecretRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
xyz.block.ftl.v1.UnsetSecretResponse.getDefaultInstance()))
.setSchemaDescriptor(new AdminServiceMethodDescriptorSupplier("SecretUnset"))
.build();
}
}
}
return getSecretUnsetMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AdminServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminServiceStub(channel, callOptions);
}
};
return AdminServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AdminServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminServiceBlockingStub(channel, callOptions);
}
};
return AdminServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AdminServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AdminServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminServiceFutureStub(channel, callOptions);
}
};
return AdminServiceFutureStub.newStub(factory, channel);
}
/**
*
* AdminService is the service that provides and updates admin data. For example,
* it is used to encapsulate configuration and secrets.
*
*/
public interface AsyncService {
/**
*/
default void ping(xyz.block.ftl.v1.PingRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPingMethod(), responseObserver);
}
/**
*
* List configuration.
*
*/
default void configList(xyz.block.ftl.v1.ListConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConfigListMethod(), responseObserver);
}
/**
*
* Get a config value.
*
*/
default void configGet(xyz.block.ftl.v1.GetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConfigGetMethod(), responseObserver);
}
/**
*
* Set a config value.
*
*/
default void configSet(xyz.block.ftl.v1.SetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConfigSetMethod(), responseObserver);
}
/**
*
* Unset a config value.
*
*/
default void configUnset(xyz.block.ftl.v1.UnsetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConfigUnsetMethod(), responseObserver);
}
/**
*
* List secrets.
*
*/
default void secretsList(xyz.block.ftl.v1.ListSecretsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSecretsListMethod(), responseObserver);
}
/**
*
* Get a secret.
*
*/
default void secretGet(xyz.block.ftl.v1.GetSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSecretGetMethod(), responseObserver);
}
/**
*
* Set a secret.
*
*/
default void secretSet(xyz.block.ftl.v1.SetSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSecretSetMethod(), responseObserver);
}
/**
*
* Unset a secret.
*
*/
default void secretUnset(xyz.block.ftl.v1.UnsetSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSecretUnsetMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service AdminService.
*
* AdminService is the service that provides and updates admin data. For example,
* it is used to encapsulate configuration and secrets.
*
*/
public static abstract class AdminServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return AdminServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service AdminService.
*
* AdminService is the service that provides and updates admin data. For example,
* it is used to encapsulate configuration and secrets.
*
*/
public static final class AdminServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private AdminServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminServiceStub(channel, callOptions);
}
/**
*/
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 configuration.
*
*/
public void configList(xyz.block.ftl.v1.ListConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getConfigListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get a config value.
*
*/
public void configGet(xyz.block.ftl.v1.GetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getConfigGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Set a config value.
*
*/
public void configSet(xyz.block.ftl.v1.SetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getConfigSetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Unset a config value.
*
*/
public void configUnset(xyz.block.ftl.v1.UnsetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getConfigUnsetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* List secrets.
*
*/
public void secretsList(xyz.block.ftl.v1.ListSecretsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSecretsListMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get a secret.
*
*/
public void secretGet(xyz.block.ftl.v1.GetSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSecretGetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Set a secret.
*
*/
public void secretSet(xyz.block.ftl.v1.SetSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSecretSetMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Unset a secret.
*
*/
public void secretUnset(xyz.block.ftl.v1.UnsetSecretRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSecretUnsetMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service AdminService.
*
* AdminService is the service that provides and updates admin data. For example,
* it is used to encapsulate configuration and secrets.
*
*/
public static final class AdminServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private AdminServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminServiceBlockingStub(channel, callOptions);
}
/**
*/
public xyz.block.ftl.v1.PingResponse ping(xyz.block.ftl.v1.PingRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPingMethod(), getCallOptions(), request);
}
/**
*
* List configuration.
*
*/
public xyz.block.ftl.v1.ListConfigResponse configList(xyz.block.ftl.v1.ListConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getConfigListMethod(), getCallOptions(), request);
}
/**
*
* Get a config value.
*
*/
public xyz.block.ftl.v1.GetConfigResponse configGet(xyz.block.ftl.v1.GetConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getConfigGetMethod(), getCallOptions(), request);
}
/**
*
* Set a config value.
*
*/
public xyz.block.ftl.v1.SetConfigResponse configSet(xyz.block.ftl.v1.SetConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getConfigSetMethod(), getCallOptions(), request);
}
/**
*
* Unset a config value.
*
*/
public xyz.block.ftl.v1.UnsetConfigResponse configUnset(xyz.block.ftl.v1.UnsetConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getConfigUnsetMethod(), getCallOptions(), request);
}
/**
*
* List secrets.
*
*/
public xyz.block.ftl.v1.ListSecretsResponse secretsList(xyz.block.ftl.v1.ListSecretsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSecretsListMethod(), getCallOptions(), request);
}
/**
*
* Get a secret.
*
*/
public xyz.block.ftl.v1.GetSecretResponse secretGet(xyz.block.ftl.v1.GetSecretRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSecretGetMethod(), getCallOptions(), request);
}
/**
*
* Set a secret.
*
*/
public xyz.block.ftl.v1.SetSecretResponse secretSet(xyz.block.ftl.v1.SetSecretRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSecretSetMethod(), getCallOptions(), request);
}
/**
*
* Unset a secret.
*
*/
public xyz.block.ftl.v1.UnsetSecretResponse secretUnset(xyz.block.ftl.v1.UnsetSecretRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSecretUnsetMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service AdminService.
*
* AdminService is the service that provides and updates admin data. For example,
* it is used to encapsulate configuration and secrets.
*
*/
public static final class AdminServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private AdminServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AdminServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AdminServiceFutureStub(channel, callOptions);
}
/**
*/
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 configuration.
*
*/
public com.google.common.util.concurrent.ListenableFuture configList(
xyz.block.ftl.v1.ListConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getConfigListMethod(), getCallOptions()), request);
}
/**
*
* Get a config value.
*
*/
public com.google.common.util.concurrent.ListenableFuture configGet(
xyz.block.ftl.v1.GetConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getConfigGetMethod(), getCallOptions()), request);
}
/**
*
* Set a config value.
*
*/
public com.google.common.util.concurrent.ListenableFuture configSet(
xyz.block.ftl.v1.SetConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getConfigSetMethod(), getCallOptions()), request);
}
/**
*
* Unset a config value.
*
*/
public com.google.common.util.concurrent.ListenableFuture configUnset(
xyz.block.ftl.v1.UnsetConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getConfigUnsetMethod(), getCallOptions()), request);
}
/**
*
* List secrets.
*
*/
public com.google.common.util.concurrent.ListenableFuture secretsList(
xyz.block.ftl.v1.ListSecretsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSecretsListMethod(), getCallOptions()), request);
}
/**
*
* Get a secret.
*
*/
public com.google.common.util.concurrent.ListenableFuture secretGet(
xyz.block.ftl.v1.GetSecretRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSecretGetMethod(), getCallOptions()), request);
}
/**
*
* Set a secret.
*
*/
public com.google.common.util.concurrent.ListenableFuture secretSet(
xyz.block.ftl.v1.SetSecretRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSecretSetMethod(), getCallOptions()), request);
}
/**
*
* Unset a secret.
*
*/
public com.google.common.util.concurrent.ListenableFuture secretUnset(
xyz.block.ftl.v1.UnsetSecretRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSecretUnsetMethod(), getCallOptions()), request);
}
}
private static final int METHODID_PING = 0;
private static final int METHODID_CONFIG_LIST = 1;
private static final int METHODID_CONFIG_GET = 2;
private static final int METHODID_CONFIG_SET = 3;
private static final int METHODID_CONFIG_UNSET = 4;
private static final int METHODID_SECRETS_LIST = 5;
private static final int METHODID_SECRET_GET = 6;
private static final int METHODID_SECRET_SET = 7;
private static final int METHODID_SECRET_UNSET = 8;
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_CONFIG_LIST:
serviceImpl.configList((xyz.block.ftl.v1.ListConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONFIG_GET:
serviceImpl.configGet((xyz.block.ftl.v1.GetConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONFIG_SET:
serviceImpl.configSet((xyz.block.ftl.v1.SetConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CONFIG_UNSET:
serviceImpl.configUnset((xyz.block.ftl.v1.UnsetConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SECRETS_LIST:
serviceImpl.secretsList((xyz.block.ftl.v1.ListSecretsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SECRET_GET:
serviceImpl.secretGet((xyz.block.ftl.v1.GetSecretRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SECRET_SET:
serviceImpl.secretSet((xyz.block.ftl.v1.SetSecretRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SECRET_UNSET:
serviceImpl.secretUnset((xyz.block.ftl.v1.UnsetSecretRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
default:
throw new AssertionError();
}
}
@java.lang.Override
@java.lang.SuppressWarnings("unchecked")
public io.grpc.stub.StreamObserver invoke(
io.grpc.stub.StreamObserver responseObserver) {
switch (methodId) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getPingMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.PingRequest,
xyz.block.ftl.v1.PingResponse>(
service, METHODID_PING)))
.addMethod(
getConfigListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.ListConfigRequest,
xyz.block.ftl.v1.ListConfigResponse>(
service, METHODID_CONFIG_LIST)))
.addMethod(
getConfigGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.GetConfigRequest,
xyz.block.ftl.v1.GetConfigResponse>(
service, METHODID_CONFIG_GET)))
.addMethod(
getConfigSetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.SetConfigRequest,
xyz.block.ftl.v1.SetConfigResponse>(
service, METHODID_CONFIG_SET)))
.addMethod(
getConfigUnsetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.UnsetConfigRequest,
xyz.block.ftl.v1.UnsetConfigResponse>(
service, METHODID_CONFIG_UNSET)))
.addMethod(
getSecretsListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.ListSecretsRequest,
xyz.block.ftl.v1.ListSecretsResponse>(
service, METHODID_SECRETS_LIST)))
.addMethod(
getSecretGetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.GetSecretRequest,
xyz.block.ftl.v1.GetSecretResponse>(
service, METHODID_SECRET_GET)))
.addMethod(
getSecretSetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.SetSecretRequest,
xyz.block.ftl.v1.SetSecretResponse>(
service, METHODID_SECRET_SET)))
.addMethod(
getSecretUnsetMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
xyz.block.ftl.v1.UnsetSecretRequest,
xyz.block.ftl.v1.UnsetSecretResponse>(
service, METHODID_SECRET_UNSET)))
.build();
}
private static abstract class AdminServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AdminServiceBaseDescriptorSupplier() {}
@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("AdminService");
}
}
private static final class AdminServiceFileDescriptorSupplier
extends AdminServiceBaseDescriptorSupplier {
AdminServiceFileDescriptorSupplier() {}
}
private static final class AdminServiceMethodDescriptorSupplier
extends AdminServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
AdminServiceMethodDescriptorSupplier(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 (AdminServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AdminServiceFileDescriptorSupplier())
.addMethod(getPingMethod())
.addMethod(getConfigListMethod())
.addMethod(getConfigGetMethod())
.addMethod(getConfigSetMethod())
.addMethod(getConfigUnsetMethod())
.addMethod(getSecretsListMethod())
.addMethod(getSecretGetMethod())
.addMethod(getSecretSetMethod())
.addMethod(getSecretUnsetMethod())
.build();
}
}
}
return result;
}
}