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

com.daml.ledger.api.v1.LedgerIdentityServiceGrpc Maven / Gradle / Ivy

package com.daml.ledger.api.v1;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * DEPRECATED: This service is now deprecated and ledger identity string is optional for all Ledger API requests.
 * Allows clients to verify that the server they are communicating with exposes the ledger they wish to operate on.
 * 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/ledger_identity_service.proto") @io.grpc.stub.annotations.GrpcGenerated @java.lang.Deprecated public final class LedgerIdentityServiceGrpc { private LedgerIdentityServiceGrpc() {} public static final String SERVICE_NAME = "com.daml.ledger.api.v1.LedgerIdentityService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetLedgerIdentityMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetLedgerIdentity", requestType = com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityRequest.class, responseType = com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetLedgerIdentityMethod() { io.grpc.MethodDescriptor getGetLedgerIdentityMethod; if ((getGetLedgerIdentityMethod = LedgerIdentityServiceGrpc.getGetLedgerIdentityMethod) == null) { synchronized (LedgerIdentityServiceGrpc.class) { if ((getGetLedgerIdentityMethod = LedgerIdentityServiceGrpc.getGetLedgerIdentityMethod) == null) { LedgerIdentityServiceGrpc.getGetLedgerIdentityMethod = getGetLedgerIdentityMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLedgerIdentity")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityResponse.getDefaultInstance())) .setSchemaDescriptor(new LedgerIdentityServiceMethodDescriptorSupplier("GetLedgerIdentity")) .build(); } } } return getGetLedgerIdentityMethod; } /** * Creates a new async stub that supports all call types for the service */ public static LedgerIdentityServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LedgerIdentityServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LedgerIdentityServiceStub(channel, callOptions); } }; return LedgerIdentityServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static LedgerIdentityServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LedgerIdentityServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LedgerIdentityServiceBlockingStub(channel, callOptions); } }; return LedgerIdentityServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static LedgerIdentityServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public LedgerIdentityServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LedgerIdentityServiceFutureStub(channel, callOptions); } }; return LedgerIdentityServiceFutureStub.newStub(factory, channel); } /** *
   * DEPRECATED: This service is now deprecated and ledger identity string is optional for all Ledger API requests.
   * Allows clients to verify that the server they are communicating with exposes the ledger they wish to operate on.
   * In V2 Ledger API this service is not available anymore.
   * 
*/ @java.lang.Deprecated public static abstract class LedgerIdentityServiceImplBase implements io.grpc.BindableService { /** *
     * Clients may call this RPC to return the identifier of the ledger they are connected to.
     * 
*/ @java.lang.Deprecated public void getLedgerIdentity(com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLedgerIdentityMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetLedgerIdentityMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityRequest, com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityResponse>( this, METHODID_GET_LEDGER_IDENTITY))) .build(); } } /** *
   * DEPRECATED: This service is now deprecated and ledger identity string is optional for all Ledger API requests.
   * Allows clients to verify that the server they are communicating with exposes the ledger they wish to operate on.
   * In V2 Ledger API this service is not available anymore.
   * 
*/ @java.lang.Deprecated public static final class LedgerIdentityServiceStub extends io.grpc.stub.AbstractAsyncStub { private LedgerIdentityServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LedgerIdentityServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LedgerIdentityServiceStub(channel, callOptions); } /** *
     * Clients may call this RPC to return the identifier of the ledger they are connected to.
     * 
*/ @java.lang.Deprecated public void getLedgerIdentity(com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetLedgerIdentityMethod(), getCallOptions()), request, responseObserver); } } /** *
   * DEPRECATED: This service is now deprecated and ledger identity string is optional for all Ledger API requests.
   * Allows clients to verify that the server they are communicating with exposes the ledger they wish to operate on.
   * In V2 Ledger API this service is not available anymore.
   * 
*/ @java.lang.Deprecated public static final class LedgerIdentityServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private LedgerIdentityServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LedgerIdentityServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LedgerIdentityServiceBlockingStub(channel, callOptions); } /** *
     * Clients may call this RPC to return the identifier of the ledger they are connected to.
     * 
*/ @java.lang.Deprecated public com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityResponse getLedgerIdentity(com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetLedgerIdentityMethod(), getCallOptions(), request); } } /** *
   * DEPRECATED: This service is now deprecated and ledger identity string is optional for all Ledger API requests.
   * Allows clients to verify that the server they are communicating with exposes the ledger they wish to operate on.
   * In V2 Ledger API this service is not available anymore.
   * 
*/ @java.lang.Deprecated public static final class LedgerIdentityServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private LedgerIdentityServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected LedgerIdentityServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new LedgerIdentityServiceFutureStub(channel, callOptions); } /** *
     * Clients may call this RPC to return the identifier of the ledger they are connected to.
     * 
*/ @java.lang.Deprecated public com.google.common.util.concurrent.ListenableFuture getLedgerIdentity( com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetLedgerIdentityMethod(), getCallOptions()), request); } } private static final int METHODID_GET_LEDGER_IDENTITY = 0; 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 LedgerIdentityServiceImplBase serviceImpl; private final int methodId; MethodHandlers(LedgerIdentityServiceImplBase 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_LEDGER_IDENTITY: serviceImpl.getLedgerIdentity((com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.GetLedgerIdentityRequest) 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 LedgerIdentityServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { LedgerIdentityServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.daml.ledger.api.v1.LedgerIdentityServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("LedgerIdentityService"); } } private static final class LedgerIdentityServiceFileDescriptorSupplier extends LedgerIdentityServiceBaseDescriptorSupplier { LedgerIdentityServiceFileDescriptorSupplier() {} } private static final class LedgerIdentityServiceMethodDescriptorSupplier extends LedgerIdentityServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; LedgerIdentityServiceMethodDescriptorSupplier(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 (LedgerIdentityServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new LedgerIdentityServiceFileDescriptorSupplier()) .addMethod(getGetLedgerIdentityMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy