tech.ydb.proto.draft.dynamicconfig.v1.DynamicConfigServiceGrpc Maven / Gradle / Ivy
package tech.ydb.proto.draft.dynamicconfig.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.59.1)",
comments = "Source: draft/ydb_dynamic_config_v1.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class DynamicConfigServiceGrpc {
private DynamicConfigServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "Ydb.DynamicConfig.V1.DynamicConfigService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getSetConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SetConfig",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSetConfigMethod() {
io.grpc.MethodDescriptor getSetConfigMethod;
if ((getSetConfigMethod = DynamicConfigServiceGrpc.getSetConfigMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getSetConfigMethod = DynamicConfigServiceGrpc.getSetConfigMethod) == null) {
DynamicConfigServiceGrpc.getSetConfigMethod = getSetConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("SetConfig"))
.build();
}
}
}
return getSetConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getReplaceConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ReplaceConfig",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getReplaceConfigMethod() {
io.grpc.MethodDescriptor getReplaceConfigMethod;
if ((getReplaceConfigMethod = DynamicConfigServiceGrpc.getReplaceConfigMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getReplaceConfigMethod = DynamicConfigServiceGrpc.getReplaceConfigMethod) == null) {
DynamicConfigServiceGrpc.getReplaceConfigMethod = getReplaceConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReplaceConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("ReplaceConfig"))
.build();
}
}
}
return getReplaceConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getGetMetadataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetMetadata",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetMetadataMethod() {
io.grpc.MethodDescriptor getGetMetadataMethod;
if ((getGetMetadataMethod = DynamicConfigServiceGrpc.getGetMetadataMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getGetMetadataMethod = DynamicConfigServiceGrpc.getGetMetadataMethod) == null) {
DynamicConfigServiceGrpc.getGetMetadataMethod = getGetMetadataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMetadata"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("GetMetadata"))
.build();
}
}
}
return getGetMetadataMethod;
}
private static volatile io.grpc.MethodDescriptor getGetConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConfig",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetConfigMethod() {
io.grpc.MethodDescriptor getGetConfigMethod;
if ((getGetConfigMethod = DynamicConfigServiceGrpc.getGetConfigMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getGetConfigMethod = DynamicConfigServiceGrpc.getGetConfigMethod) == null) {
DynamicConfigServiceGrpc.getGetConfigMethod = getGetConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("GetConfig"))
.build();
}
}
}
return getGetConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getDropConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DropConfig",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getDropConfigMethod() {
io.grpc.MethodDescriptor getDropConfigMethod;
if ((getDropConfigMethod = DynamicConfigServiceGrpc.getDropConfigMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getDropConfigMethod = DynamicConfigServiceGrpc.getDropConfigMethod) == null) {
DynamicConfigServiceGrpc.getDropConfigMethod = getDropConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DropConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("DropConfig"))
.build();
}
}
}
return getDropConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getAddVolatileConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "AddVolatileConfig",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getAddVolatileConfigMethod() {
io.grpc.MethodDescriptor getAddVolatileConfigMethod;
if ((getAddVolatileConfigMethod = DynamicConfigServiceGrpc.getAddVolatileConfigMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getAddVolatileConfigMethod = DynamicConfigServiceGrpc.getAddVolatileConfigMethod) == null) {
DynamicConfigServiceGrpc.getAddVolatileConfigMethod = getAddVolatileConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "AddVolatileConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("AddVolatileConfig"))
.build();
}
}
}
return getAddVolatileConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getRemoveVolatileConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RemoveVolatileConfig",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRemoveVolatileConfigMethod() {
io.grpc.MethodDescriptor getRemoveVolatileConfigMethod;
if ((getRemoveVolatileConfigMethod = DynamicConfigServiceGrpc.getRemoveVolatileConfigMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getRemoveVolatileConfigMethod = DynamicConfigServiceGrpc.getRemoveVolatileConfigMethod) == null) {
DynamicConfigServiceGrpc.getRemoveVolatileConfigMethod = getRemoveVolatileConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RemoveVolatileConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("RemoveVolatileConfig"))
.build();
}
}
}
return getRemoveVolatileConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getGetNodeLabelsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetNodeLabels",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetNodeLabelsMethod() {
io.grpc.MethodDescriptor getGetNodeLabelsMethod;
if ((getGetNodeLabelsMethod = DynamicConfigServiceGrpc.getGetNodeLabelsMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getGetNodeLabelsMethod = DynamicConfigServiceGrpc.getGetNodeLabelsMethod) == null) {
DynamicConfigServiceGrpc.getGetNodeLabelsMethod = getGetNodeLabelsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetNodeLabels"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("GetNodeLabels"))
.build();
}
}
}
return getGetNodeLabelsMethod;
}
private static volatile io.grpc.MethodDescriptor getResolveConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ResolveConfig",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getResolveConfigMethod() {
io.grpc.MethodDescriptor getResolveConfigMethod;
if ((getResolveConfigMethod = DynamicConfigServiceGrpc.getResolveConfigMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getResolveConfigMethod = DynamicConfigServiceGrpc.getResolveConfigMethod) == null) {
DynamicConfigServiceGrpc.getResolveConfigMethod = getResolveConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResolveConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("ResolveConfig"))
.build();
}
}
}
return getResolveConfigMethod;
}
private static volatile io.grpc.MethodDescriptor getResolveAllConfigMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ResolveAllConfig",
requestType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigRequest.class,
responseType = tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getResolveAllConfigMethod() {
io.grpc.MethodDescriptor getResolveAllConfigMethod;
if ((getResolveAllConfigMethod = DynamicConfigServiceGrpc.getResolveAllConfigMethod) == null) {
synchronized (DynamicConfigServiceGrpc.class) {
if ((getResolveAllConfigMethod = DynamicConfigServiceGrpc.getResolveAllConfigMethod) == null) {
DynamicConfigServiceGrpc.getResolveAllConfigMethod = getResolveAllConfigMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ResolveAllConfig"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigResponse.getDefaultInstance()))
.setSchemaDescriptor(new DynamicConfigServiceMethodDescriptorSupplier("ResolveAllConfig"))
.build();
}
}
}
return getResolveAllConfigMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static DynamicConfigServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DynamicConfigServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicConfigServiceStub(channel, callOptions);
}
};
return DynamicConfigServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static DynamicConfigServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DynamicConfigServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicConfigServiceBlockingStub(channel, callOptions);
}
};
return DynamicConfigServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static DynamicConfigServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public DynamicConfigServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicConfigServiceFutureStub(channel, callOptions);
}
};
return DynamicConfigServiceFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*
* Apply new version of config.
* Overwrites previous version.
* This call is idempotent:
* - Two subsequent identical calls will return success,
* - After applying next version another identical call will result in an error.
* The field version within the YAML in the request must strictly be set to the current version increment by one.
* The field cluster within the YAML should be identical to the one configured on the node used by the console tablet.
*
*/
default void setConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetConfigMethod(), responseObserver);
}
/**
*/
default void replaceConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReplaceConfigMethod(), responseObserver);
}
/**
*
* Get current configs metadata.
*
*/
default void getMetadata(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMetadataMethod(), responseObserver);
}
/**
*
* Get current configs.
*
*/
default void getConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigMethod(), responseObserver);
}
/**
*
* Drop current config.
* This call is idempotent.
*
*/
default void dropConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDropConfigMethod(), responseObserver);
}
/**
*
* Add volatile config.
*
*/
default void addVolatileConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getAddVolatileConfigMethod(), responseObserver);
}
/**
*
* Remove volatile config.
*
*/
default void removeVolatileConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRemoveVolatileConfigMethod(), responseObserver);
}
/**
*/
default void getNodeLabels(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetNodeLabelsMethod(), responseObserver);
}
/**
*
* Resolve config for particular labels.
*
*/
default void resolveConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResolveConfigMethod(), responseObserver);
}
/**
*
* Resolve config for all possible labels combinations.
*
*/
default void resolveAllConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getResolveAllConfigMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service DynamicConfigService.
*/
public static abstract class DynamicConfigServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return DynamicConfigServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service DynamicConfigService.
*/
public static final class DynamicConfigServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private DynamicConfigServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DynamicConfigServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicConfigServiceStub(channel, callOptions);
}
/**
*
* Apply new version of config.
* Overwrites previous version.
* This call is idempotent:
* - Two subsequent identical calls will return success,
* - After applying next version another identical call will result in an error.
* The field version within the YAML in the request must strictly be set to the current version increment by one.
* The field cluster within the YAML should be identical to the one configured on the node used by the console tablet.
*
*/
public void setConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSetConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void replaceConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getReplaceConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get current configs metadata.
*
*/
public void getMetadata(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get current configs.
*
*/
public void getConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Drop current config.
* This call is idempotent.
*
*/
public void dropConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getDropConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Add volatile config.
*
*/
public void addVolatileConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getAddVolatileConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Remove volatile config.
*
*/
public void removeVolatileConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRemoveVolatileConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void getNodeLabels(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetNodeLabelsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Resolve config for particular labels.
*
*/
public void resolveConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getResolveConfigMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Resolve config for all possible labels combinations.
*
*/
public void resolveAllConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getResolveAllConfigMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service DynamicConfigService.
*/
public static final class DynamicConfigServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private DynamicConfigServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DynamicConfigServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicConfigServiceBlockingStub(channel, callOptions);
}
/**
*
* Apply new version of config.
* Overwrites previous version.
* This call is idempotent:
* - Two subsequent identical calls will return success,
* - After applying next version another identical call will result in an error.
* The field version within the YAML in the request must strictly be set to the current version increment by one.
* The field cluster within the YAML should be identical to the one configured on the node used by the console tablet.
*
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigResponse setConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSetConfigMethod(), getCallOptions(), request);
}
/**
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigResponse replaceConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getReplaceConfigMethod(), getCallOptions(), request);
}
/**
*
* Get current configs metadata.
*
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataResponse getMetadata(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMetadataMethod(), getCallOptions(), request);
}
/**
*
* Get current configs.
*
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigResponse getConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConfigMethod(), getCallOptions(), request);
}
/**
*
* Drop current config.
* This call is idempotent.
*
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigResponse dropConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getDropConfigMethod(), getCallOptions(), request);
}
/**
*
* Add volatile config.
*
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigResponse addVolatileConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getAddVolatileConfigMethod(), getCallOptions(), request);
}
/**
*
* Remove volatile config.
*
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigResponse removeVolatileConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRemoveVolatileConfigMethod(), getCallOptions(), request);
}
/**
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsResponse getNodeLabels(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetNodeLabelsMethod(), getCallOptions(), request);
}
/**
*
* Resolve config for particular labels.
*
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigResponse resolveConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getResolveConfigMethod(), getCallOptions(), request);
}
/**
*
* Resolve config for all possible labels combinations.
*
*/
public tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigResponse resolveAllConfig(tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getResolveAllConfigMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service DynamicConfigService.
*/
public static final class DynamicConfigServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private DynamicConfigServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected DynamicConfigServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new DynamicConfigServiceFutureStub(channel, callOptions);
}
/**
*
* Apply new version of config.
* Overwrites previous version.
* This call is idempotent:
* - Two subsequent identical calls will return success,
* - After applying next version another identical call will result in an error.
* The field version within the YAML in the request must strictly be set to the current version increment by one.
* The field cluster within the YAML should be identical to the one configured on the node used by the console tablet.
*
*/
public com.google.common.util.concurrent.ListenableFuture setConfig(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSetConfigMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture replaceConfig(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getReplaceConfigMethod(), getCallOptions()), request);
}
/**
*
* Get current configs metadata.
*
*/
public com.google.common.util.concurrent.ListenableFuture getMetadata(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMetadataMethod(), getCallOptions()), request);
}
/**
*
* Get current configs.
*
*/
public com.google.common.util.concurrent.ListenableFuture getConfig(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConfigMethod(), getCallOptions()), request);
}
/**
*
* Drop current config.
* This call is idempotent.
*
*/
public com.google.common.util.concurrent.ListenableFuture dropConfig(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getDropConfigMethod(), getCallOptions()), request);
}
/**
*
* Add volatile config.
*
*/
public com.google.common.util.concurrent.ListenableFuture addVolatileConfig(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getAddVolatileConfigMethod(), getCallOptions()), request);
}
/**
*
* Remove volatile config.
*
*/
public com.google.common.util.concurrent.ListenableFuture removeVolatileConfig(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRemoveVolatileConfigMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture getNodeLabels(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetNodeLabelsMethod(), getCallOptions()), request);
}
/**
*
* Resolve config for particular labels.
*
*/
public com.google.common.util.concurrent.ListenableFuture resolveConfig(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getResolveConfigMethod(), getCallOptions()), request);
}
/**
*
* Resolve config for all possible labels combinations.
*
*/
public com.google.common.util.concurrent.ListenableFuture resolveAllConfig(
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getResolveAllConfigMethod(), getCallOptions()), request);
}
}
private static final int METHODID_SET_CONFIG = 0;
private static final int METHODID_REPLACE_CONFIG = 1;
private static final int METHODID_GET_METADATA = 2;
private static final int METHODID_GET_CONFIG = 3;
private static final int METHODID_DROP_CONFIG = 4;
private static final int METHODID_ADD_VOLATILE_CONFIG = 5;
private static final int METHODID_REMOVE_VOLATILE_CONFIG = 6;
private static final int METHODID_GET_NODE_LABELS = 7;
private static final int METHODID_RESOLVE_CONFIG = 8;
private static final int METHODID_RESOLVE_ALL_CONFIG = 9;
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_SET_CONFIG:
serviceImpl.setConfig((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REPLACE_CONFIG:
serviceImpl.replaceConfig((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_METADATA:
serviceImpl.getMetadata((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CONFIG:
serviceImpl.getConfig((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_DROP_CONFIG:
serviceImpl.dropConfig((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_ADD_VOLATILE_CONFIG:
serviceImpl.addVolatileConfig((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REMOVE_VOLATILE_CONFIG:
serviceImpl.removeVolatileConfig((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_NODE_LABELS:
serviceImpl.getNodeLabels((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESOLVE_CONFIG:
serviceImpl.resolveConfig((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RESOLVE_ALL_CONFIG:
serviceImpl.resolveAllConfig((tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigRequest) 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(
getSetConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.SetConfigResponse>(
service, METHODID_SET_CONFIG)))
.addMethod(
getReplaceConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ReplaceConfigResponse>(
service, METHODID_REPLACE_CONFIG)))
.addMethod(
getGetMetadataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetMetadataResponse>(
service, METHODID_GET_METADATA)))
.addMethod(
getGetConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetConfigResponse>(
service, METHODID_GET_CONFIG)))
.addMethod(
getDropConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.DropConfigResponse>(
service, METHODID_DROP_CONFIG)))
.addMethod(
getAddVolatileConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.AddVolatileConfigResponse>(
service, METHODID_ADD_VOLATILE_CONFIG)))
.addMethod(
getRemoveVolatileConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.RemoveVolatileConfigResponse>(
service, METHODID_REMOVE_VOLATILE_CONFIG)))
.addMethod(
getGetNodeLabelsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.GetNodeLabelsResponse>(
service, METHODID_GET_NODE_LABELS)))
.addMethod(
getResolveConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveConfigResponse>(
service, METHODID_RESOLVE_CONFIG)))
.addMethod(
getResolveAllConfigMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigRequest,
tech.ydb.proto.draft.dynamicconfig.YdbDynamicConfig.ResolveAllConfigResponse>(
service, METHODID_RESOLVE_ALL_CONFIG)))
.build();
}
private static abstract class DynamicConfigServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
DynamicConfigServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return tech.ydb.proto.draft.dynamicconfig.v1.YdbDynamicConfigV1.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("DynamicConfigService");
}
}
private static final class DynamicConfigServiceFileDescriptorSupplier
extends DynamicConfigServiceBaseDescriptorSupplier {
DynamicConfigServiceFileDescriptorSupplier() {}
}
private static final class DynamicConfigServiceMethodDescriptorSupplier
extends DynamicConfigServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
DynamicConfigServiceMethodDescriptorSupplier(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 (DynamicConfigServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new DynamicConfigServiceFileDescriptorSupplier())
.addMethod(getSetConfigMethod())
.addMethod(getReplaceConfigMethod())
.addMethod(getGetMetadataMethod())
.addMethod(getGetConfigMethod())
.addMethod(getDropConfigMethod())
.addMethod(getAddVolatileConfigMethod())
.addMethod(getRemoveVolatileConfigMethod())
.addMethod(getGetNodeLabelsMethod())
.addMethod(getResolveConfigMethod())
.addMethod(getResolveAllConfigMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy