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

com.daml.ledger.api.v2.CommandServiceGrpc Maven / Gradle / Ivy

package com.daml.ledger.api.v2;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Command Service is able to correlate submitted commands with completion data, identify timeouts, and return contextual
 * information with each tracking result. This supports the implementation of stateless clients.
 * Note that submitted commands generally produce completion events as well, even in case a command gets rejected.
 * For example, the participant SHOULD produce a completion event for a rejection of a duplicate command.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: com/daml/ledger/api/v2/command_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class CommandServiceGrpc { private CommandServiceGrpc() {} public static final String SERVICE_NAME = "com.daml.ledger.api.v2.CommandService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getSubmitAndWaitMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SubmitAndWait", requestType = com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest.class, responseType = com.google.protobuf.Empty.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSubmitAndWaitMethod() { io.grpc.MethodDescriptor getSubmitAndWaitMethod; if ((getSubmitAndWaitMethod = CommandServiceGrpc.getSubmitAndWaitMethod) == null) { synchronized (CommandServiceGrpc.class) { if ((getSubmitAndWaitMethod = CommandServiceGrpc.getSubmitAndWaitMethod) == null) { CommandServiceGrpc.getSubmitAndWaitMethod = getSubmitAndWaitMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitAndWait")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.google.protobuf.Empty.getDefaultInstance())) .setSchemaDescriptor(new CommandServiceMethodDescriptorSupplier("SubmitAndWait")) .build(); } } } return getSubmitAndWaitMethod; } private static volatile io.grpc.MethodDescriptor getSubmitAndWaitForUpdateIdMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SubmitAndWaitForUpdateId", requestType = com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest.class, responseType = com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForUpdateIdResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSubmitAndWaitForUpdateIdMethod() { io.grpc.MethodDescriptor getSubmitAndWaitForUpdateIdMethod; if ((getSubmitAndWaitForUpdateIdMethod = CommandServiceGrpc.getSubmitAndWaitForUpdateIdMethod) == null) { synchronized (CommandServiceGrpc.class) { if ((getSubmitAndWaitForUpdateIdMethod = CommandServiceGrpc.getSubmitAndWaitForUpdateIdMethod) == null) { CommandServiceGrpc.getSubmitAndWaitForUpdateIdMethod = getSubmitAndWaitForUpdateIdMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitAndWaitForUpdateId")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForUpdateIdResponse.getDefaultInstance())) .setSchemaDescriptor(new CommandServiceMethodDescriptorSupplier("SubmitAndWaitForUpdateId")) .build(); } } } return getSubmitAndWaitForUpdateIdMethod; } private static volatile io.grpc.MethodDescriptor getSubmitAndWaitForTransactionMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SubmitAndWaitForTransaction", requestType = com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest.class, responseType = com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForTransactionResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSubmitAndWaitForTransactionMethod() { io.grpc.MethodDescriptor getSubmitAndWaitForTransactionMethod; if ((getSubmitAndWaitForTransactionMethod = CommandServiceGrpc.getSubmitAndWaitForTransactionMethod) == null) { synchronized (CommandServiceGrpc.class) { if ((getSubmitAndWaitForTransactionMethod = CommandServiceGrpc.getSubmitAndWaitForTransactionMethod) == null) { CommandServiceGrpc.getSubmitAndWaitForTransactionMethod = getSubmitAndWaitForTransactionMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitAndWaitForTransaction")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForTransactionResponse.getDefaultInstance())) .setSchemaDescriptor(new CommandServiceMethodDescriptorSupplier("SubmitAndWaitForTransaction")) .build(); } } } return getSubmitAndWaitForTransactionMethod; } private static volatile io.grpc.MethodDescriptor getSubmitAndWaitForTransactionTreeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "SubmitAndWaitForTransactionTree", requestType = com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest.class, responseType = com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForTransactionTreeResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getSubmitAndWaitForTransactionTreeMethod() { io.grpc.MethodDescriptor getSubmitAndWaitForTransactionTreeMethod; if ((getSubmitAndWaitForTransactionTreeMethod = CommandServiceGrpc.getSubmitAndWaitForTransactionTreeMethod) == null) { synchronized (CommandServiceGrpc.class) { if ((getSubmitAndWaitForTransactionTreeMethod = CommandServiceGrpc.getSubmitAndWaitForTransactionTreeMethod) == null) { CommandServiceGrpc.getSubmitAndWaitForTransactionTreeMethod = getSubmitAndWaitForTransactionTreeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SubmitAndWaitForTransactionTree")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForTransactionTreeResponse.getDefaultInstance())) .setSchemaDescriptor(new CommandServiceMethodDescriptorSupplier("SubmitAndWaitForTransactionTree")) .build(); } } } return getSubmitAndWaitForTransactionTreeMethod; } /** * Creates a new async stub that supports all call types for the service */ public static CommandServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CommandServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CommandServiceStub(channel, callOptions); } }; return CommandServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static CommandServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CommandServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CommandServiceBlockingStub(channel, callOptions); } }; return CommandServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static CommandServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public CommandServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CommandServiceFutureStub(channel, callOptions); } }; return CommandServiceFutureStub.newStub(factory, channel); } /** *
   * Command Service is able to correlate submitted commands with completion data, identify timeouts, and return contextual
   * information with each tracking result. This supports the implementation of stateless clients.
   * Note that submitted commands generally produce completion events as well, even in case a command gets rejected.
   * For example, the participant SHOULD produce a completion event for a rejection of a duplicate command.
   * 
*/ public static abstract class CommandServiceImplBase implements io.grpc.BindableService { /** *
     * Submits a single composite command and waits for its result.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public void submitAndWait(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitAndWaitMethod(), responseObserver); } /** *
     * Submits a single composite command, waits for its result, and returns the update id.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public void submitAndWaitForUpdateId(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitAndWaitForUpdateIdMethod(), responseObserver); } /** *
     * Submits a single composite command, waits for its result, and returns the transaction.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public void submitAndWaitForTransaction(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitAndWaitForTransactionMethod(), responseObserver); } /** *
     * Submits a single composite command, waits for its result, and returns the transaction tree.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public void submitAndWaitForTransactionTree(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSubmitAndWaitForTransactionTreeMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getSubmitAndWaitMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest, com.google.protobuf.Empty>( this, METHODID_SUBMIT_AND_WAIT))) .addMethod( getSubmitAndWaitForUpdateIdMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest, com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForUpdateIdResponse>( this, METHODID_SUBMIT_AND_WAIT_FOR_UPDATE_ID))) .addMethod( getSubmitAndWaitForTransactionMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest, com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForTransactionResponse>( this, METHODID_SUBMIT_AND_WAIT_FOR_TRANSACTION))) .addMethod( getSubmitAndWaitForTransactionTreeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest, com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForTransactionTreeResponse>( this, METHODID_SUBMIT_AND_WAIT_FOR_TRANSACTION_TREE))) .build(); } } /** *
   * Command Service is able to correlate submitted commands with completion data, identify timeouts, and return contextual
   * information with each tracking result. This supports the implementation of stateless clients.
   * Note that submitted commands generally produce completion events as well, even in case a command gets rejected.
   * For example, the participant SHOULD produce a completion event for a rejection of a duplicate command.
   * 
*/ public static final class CommandServiceStub extends io.grpc.stub.AbstractAsyncStub { private CommandServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CommandServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CommandServiceStub(channel, callOptions); } /** *
     * Submits a single composite command and waits for its result.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public void submitAndWait(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitAndWaitMethod(), getCallOptions()), request, responseObserver); } /** *
     * Submits a single composite command, waits for its result, and returns the update id.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public void submitAndWaitForUpdateId(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitAndWaitForUpdateIdMethod(), getCallOptions()), request, responseObserver); } /** *
     * Submits a single composite command, waits for its result, and returns the transaction.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public void submitAndWaitForTransaction(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitAndWaitForTransactionMethod(), getCallOptions()), request, responseObserver); } /** *
     * Submits a single composite command, waits for its result, and returns the transaction tree.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public void submitAndWaitForTransactionTree(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getSubmitAndWaitForTransactionTreeMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Command Service is able to correlate submitted commands with completion data, identify timeouts, and return contextual
   * information with each tracking result. This supports the implementation of stateless clients.
   * Note that submitted commands generally produce completion events as well, even in case a command gets rejected.
   * For example, the participant SHOULD produce a completion event for a rejection of a duplicate command.
   * 
*/ public static final class CommandServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private CommandServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CommandServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CommandServiceBlockingStub(channel, callOptions); } /** *
     * Submits a single composite command and waits for its result.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public com.google.protobuf.Empty submitAndWait(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSubmitAndWaitMethod(), getCallOptions(), request); } /** *
     * Submits a single composite command, waits for its result, and returns the update id.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForUpdateIdResponse submitAndWaitForUpdateId(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSubmitAndWaitForUpdateIdMethod(), getCallOptions(), request); } /** *
     * Submits a single composite command, waits for its result, and returns the transaction.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForTransactionResponse submitAndWaitForTransaction(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSubmitAndWaitForTransactionMethod(), getCallOptions(), request); } /** *
     * Submits a single composite command, waits for its result, and returns the transaction tree.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitForTransactionTreeResponse submitAndWaitForTransactionTree(com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getSubmitAndWaitForTransactionTreeMethod(), getCallOptions(), request); } } /** *
   * Command Service is able to correlate submitted commands with completion data, identify timeouts, and return contextual
   * information with each tracking result. This supports the implementation of stateless clients.
   * Note that submitted commands generally produce completion events as well, even in case a command gets rejected.
   * For example, the participant SHOULD produce a completion event for a rejection of a duplicate command.
   * 
*/ public static final class CommandServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private CommandServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected CommandServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new CommandServiceFutureStub(channel, callOptions); } /** *
     * Submits a single composite command and waits for its result.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture submitAndWait( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSubmitAndWaitMethod(), getCallOptions()), request); } /** *
     * Submits a single composite command, waits for its result, and returns the update id.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture submitAndWaitForUpdateId( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSubmitAndWaitForUpdateIdMethod(), getCallOptions()), request); } /** *
     * Submits a single composite command, waits for its result, and returns the transaction.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture submitAndWaitForTransaction( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSubmitAndWaitForTransactionMethod(), getCallOptions()), request); } /** *
     * Submits a single composite command, waits for its result, and returns the transaction tree.
     * Propagates the gRPC error of failed submissions including Daml interpretation errors.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture submitAndWaitForTransactionTree( com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getSubmitAndWaitForTransactionTreeMethod(), getCallOptions()), request); } } private static final int METHODID_SUBMIT_AND_WAIT = 0; private static final int METHODID_SUBMIT_AND_WAIT_FOR_UPDATE_ID = 1; private static final int METHODID_SUBMIT_AND_WAIT_FOR_TRANSACTION = 2; private static final int METHODID_SUBMIT_AND_WAIT_FOR_TRANSACTION_TREE = 3; 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 CommandServiceImplBase serviceImpl; private final int methodId; MethodHandlers(CommandServiceImplBase 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_SUBMIT_AND_WAIT: serviceImpl.submitAndWait((com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SUBMIT_AND_WAIT_FOR_UPDATE_ID: serviceImpl.submitAndWaitForUpdateId((com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SUBMIT_AND_WAIT_FOR_TRANSACTION: serviceImpl.submitAndWaitForTransaction((com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_SUBMIT_AND_WAIT_FOR_TRANSACTION_TREE: serviceImpl.submitAndWaitForTransactionTree((com.daml.ledger.api.v2.CommandServiceOuterClass.SubmitAndWaitRequest) 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 CommandServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { CommandServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.daml.ledger.api.v2.CommandServiceOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("CommandService"); } } private static final class CommandServiceFileDescriptorSupplier extends CommandServiceBaseDescriptorSupplier { CommandServiceFileDescriptorSupplier() {} } private static final class CommandServiceMethodDescriptorSupplier extends CommandServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; CommandServiceMethodDescriptorSupplier(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 (CommandServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new CommandServiceFileDescriptorSupplier()) .addMethod(getSubmitAndWaitMethod()) .addMethod(getSubmitAndWaitForUpdateIdMethod()) .addMethod(getSubmitAndWaitForTransactionMethod()) .addMethod(getSubmitAndWaitForTransactionTreeMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy