All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.daml.ledger.api.v1.admin.ConfigManagementServiceGrpc Maven / Gradle / Ivy

package com.daml.ledger.api.v1.admin;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Status: experimental interface, will change before it is deemed production
 * ready
 * The ledger configuration management service provides methods for the ledger administrator
 * to change the current ledger configuration. The services provides methods to modify
 * different aspects of the configuration.
 * In V2 Ledger API this service is not available anymore.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: com/daml/ledger/api/v1/admin/config_management_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ConfigManagementServiceGrpc { private ConfigManagementServiceGrpc() {} public static final String SERVICE_NAME = "com.daml.ledger.api.v1.admin.ConfigManagementService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetTimeModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetTimeModel", requestType = com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelRequest.class, responseType = com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetTimeModelMethod() { io.grpc.MethodDescriptor getGetTimeModelMethod; if ((getGetTimeModelMethod = ConfigManagementServiceGrpc.getGetTimeModelMethod) == null) { synchronized (ConfigManagementServiceGrpc.class) { if ((getGetTimeModelMethod = ConfigManagementServiceGrpc.getGetTimeModelMethod) == null) { ConfigManagementServiceGrpc.getGetTimeModelMethod = getGetTimeModelMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTimeModel")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelResponse.getDefaultInstance())) .setSchemaDescriptor(new ConfigManagementServiceMethodDescriptorSupplier("GetTimeModel")) .build(); } } } return getGetTimeModelMethod; } private static volatile io.grpc.MethodDescriptor getSetTimeModelMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SetTimeModel", requestType = com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelRequest.class, responseType = com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSetTimeModelMethod() { io.grpc.MethodDescriptor getSetTimeModelMethod; if ((getSetTimeModelMethod = ConfigManagementServiceGrpc.getSetTimeModelMethod) == null) { synchronized (ConfigManagementServiceGrpc.class) { if ((getSetTimeModelMethod = ConfigManagementServiceGrpc.getSetTimeModelMethod) == null) { ConfigManagementServiceGrpc.getSetTimeModelMethod = getSetTimeModelMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetTimeModel")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelResponse.getDefaultInstance())) .setSchemaDescriptor(new ConfigManagementServiceMethodDescriptorSupplier("SetTimeModel")) .build(); } } } return getSetTimeModelMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ConfigManagementServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ConfigManagementServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConfigManagementServiceStub(channel, callOptions); } }; return ConfigManagementServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ConfigManagementServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ConfigManagementServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConfigManagementServiceBlockingStub(channel, callOptions); } }; return ConfigManagementServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ConfigManagementServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ConfigManagementServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConfigManagementServiceFutureStub(channel, callOptions); } }; return ConfigManagementServiceFutureStub.newStub(factory, channel); } /** *
   * Status: experimental interface, will change before it is deemed production
   * ready
   * The ledger configuration management service provides methods for the ledger administrator
   * to change the current ledger configuration. The services provides methods to modify
   * different aspects of the configuration.
   * In V2 Ledger API this service is not available anymore.
   * 
*/ public static abstract class ConfigManagementServiceImplBase implements io.grpc.BindableService { /** *
     * Return the currently active time model and the current configuration generation.
     * 
*/ public void getTimeModel(com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTimeModelMethod(), responseObserver); } /** *
     * Set the ledger time model.
     * 
*/ public void setTimeModel(com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetTimeModelMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetTimeModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelRequest, com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelResponse>( this, METHODID_GET_TIME_MODEL))) .addMethod( getSetTimeModelMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelRequest, com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelResponse>( this, METHODID_SET_TIME_MODEL))) .build(); } } /** *
   * Status: experimental interface, will change before it is deemed production
   * ready
   * The ledger configuration management service provides methods for the ledger administrator
   * to change the current ledger configuration. The services provides methods to modify
   * different aspects of the configuration.
   * In V2 Ledger API this service is not available anymore.
   * 
*/ public static final class ConfigManagementServiceStub extends io.grpc.stub.AbstractAsyncStub { private ConfigManagementServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ConfigManagementServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConfigManagementServiceStub(channel, callOptions); } /** *
     * Return the currently active time model and the current configuration generation.
     * 
*/ public void getTimeModel(com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetTimeModelMethod(), getCallOptions()), request, responseObserver); } /** *
     * Set the ledger time model.
     * 
*/ public void setTimeModel(com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSetTimeModelMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Status: experimental interface, will change before it is deemed production
   * ready
   * The ledger configuration management service provides methods for the ledger administrator
   * to change the current ledger configuration. The services provides methods to modify
   * different aspects of the configuration.
   * In V2 Ledger API this service is not available anymore.
   * 
*/ public static final class ConfigManagementServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ConfigManagementServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ConfigManagementServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConfigManagementServiceBlockingStub(channel, callOptions); } /** *
     * Return the currently active time model and the current configuration generation.
     * 
*/ public com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelResponse getTimeModel(com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetTimeModelMethod(), getCallOptions(), request); } /** *
     * Set the ledger time model.
     * 
*/ public com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelResponse setTimeModel(com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSetTimeModelMethod(), getCallOptions(), request); } } /** *
   * Status: experimental interface, will change before it is deemed production
   * ready
   * The ledger configuration management service provides methods for the ledger administrator
   * to change the current ledger configuration. The services provides methods to modify
   * different aspects of the configuration.
   * In V2 Ledger API this service is not available anymore.
   * 
*/ public static final class ConfigManagementServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ConfigManagementServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ConfigManagementServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ConfigManagementServiceFutureStub(channel, callOptions); } /** *
     * Return the currently active time model and the current configuration generation.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getTimeModel( com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetTimeModelMethod(), getCallOptions()), request); } /** *
     * Set the ledger time model.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture setTimeModel( com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSetTimeModelMethod(), getCallOptions()), request); } } private static final int METHODID_GET_TIME_MODEL = 0; private static final int METHODID_SET_TIME_MODEL = 1; 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 ConfigManagementServiceImplBase serviceImpl; private final int methodId; MethodHandlers(ConfigManagementServiceImplBase 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_GET_TIME_MODEL: serviceImpl.getTimeModel((com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.GetTimeModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SET_TIME_MODEL: serviceImpl.setTimeModel((com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.SetTimeModelRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; default: throw new AssertionError(); } } @java.lang.Override @java.lang.SuppressWarnings("unchecked") public io.grpc.stub.StreamObserver invoke( io.grpc.stub.StreamObserver responseObserver) { switch (methodId) { default: throw new AssertionError(); } } } private static abstract class ConfigManagementServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ConfigManagementServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.daml.ledger.api.v1.admin.ConfigManagementServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ConfigManagementService"); } } private static final class ConfigManagementServiceFileDescriptorSupplier extends ConfigManagementServiceBaseDescriptorSupplier { ConfigManagementServiceFileDescriptorSupplier() {} } private static final class ConfigManagementServiceMethodDescriptorSupplier extends ConfigManagementServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; ConfigManagementServiceMethodDescriptorSupplier(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 (ConfigManagementServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ConfigManagementServiceFileDescriptorSupplier()) .addMethod(getGetTimeModelMethod()) .addMethod(getSetTimeModelMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy