
com.daml.ledger.api.v1.TransactionServiceGrpc Maven / Gradle / Ivy
package com.daml.ledger.api.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*
* Allows clients to read transactions from the ledger.
* In V2 Ledger API this service is not available anymore. Use v2.UpdateService instead.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: com/daml/ledger/api/v1/transaction_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class TransactionServiceGrpc {
private TransactionServiceGrpc() {}
public static final String SERVICE_NAME = "com.daml.ledger.api.v1.TransactionService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetTransactionsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransactions",
requestType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest.class,
responseType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getGetTransactionsMethod() {
io.grpc.MethodDescriptor getGetTransactionsMethod;
if ((getGetTransactionsMethod = TransactionServiceGrpc.getGetTransactionsMethod) == null) {
synchronized (TransactionServiceGrpc.class) {
if ((getGetTransactionsMethod = TransactionServiceGrpc.getGetTransactionsMethod) == null) {
TransactionServiceGrpc.getGetTransactionsMethod = getGetTransactionsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactions"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionServiceMethodDescriptorSupplier("GetTransactions"))
.build();
}
}
}
return getGetTransactionsMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTransactionTreesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransactionTrees",
requestType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest.class,
responseType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionTreesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getGetTransactionTreesMethod() {
io.grpc.MethodDescriptor getGetTransactionTreesMethod;
if ((getGetTransactionTreesMethod = TransactionServiceGrpc.getGetTransactionTreesMethod) == null) {
synchronized (TransactionServiceGrpc.class) {
if ((getGetTransactionTreesMethod = TransactionServiceGrpc.getGetTransactionTreesMethod) == null) {
TransactionServiceGrpc.getGetTransactionTreesMethod = getGetTransactionTreesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionTrees"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionTreesResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionServiceMethodDescriptorSupplier("GetTransactionTrees"))
.build();
}
}
}
return getGetTransactionTreesMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTransactionByEventIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransactionByEventId",
requestType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest.class,
responseType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTransactionByEventIdMethod() {
io.grpc.MethodDescriptor getGetTransactionByEventIdMethod;
if ((getGetTransactionByEventIdMethod = TransactionServiceGrpc.getGetTransactionByEventIdMethod) == null) {
synchronized (TransactionServiceGrpc.class) {
if ((getGetTransactionByEventIdMethod = TransactionServiceGrpc.getGetTransactionByEventIdMethod) == null) {
TransactionServiceGrpc.getGetTransactionByEventIdMethod = getGetTransactionByEventIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionByEventId"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionServiceMethodDescriptorSupplier("GetTransactionByEventId"))
.build();
}
}
}
return getGetTransactionByEventIdMethod;
}
private static volatile io.grpc.MethodDescriptor getGetTransactionByIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetTransactionById",
requestType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest.class,
responseType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetTransactionByIdMethod() {
io.grpc.MethodDescriptor getGetTransactionByIdMethod;
if ((getGetTransactionByIdMethod = TransactionServiceGrpc.getGetTransactionByIdMethod) == null) {
synchronized (TransactionServiceGrpc.class) {
if ((getGetTransactionByIdMethod = TransactionServiceGrpc.getGetTransactionByIdMethod) == null) {
TransactionServiceGrpc.getGetTransactionByIdMethod = getGetTransactionByIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetTransactionById"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionServiceMethodDescriptorSupplier("GetTransactionById"))
.build();
}
}
}
return getGetTransactionByIdMethod;
}
private static volatile io.grpc.MethodDescriptor getGetFlatTransactionByEventIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetFlatTransactionByEventId",
requestType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest.class,
responseType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetFlatTransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetFlatTransactionByEventIdMethod() {
io.grpc.MethodDescriptor getGetFlatTransactionByEventIdMethod;
if ((getGetFlatTransactionByEventIdMethod = TransactionServiceGrpc.getGetFlatTransactionByEventIdMethod) == null) {
synchronized (TransactionServiceGrpc.class) {
if ((getGetFlatTransactionByEventIdMethod = TransactionServiceGrpc.getGetFlatTransactionByEventIdMethod) == null) {
TransactionServiceGrpc.getGetFlatTransactionByEventIdMethod = getGetFlatTransactionByEventIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFlatTransactionByEventId"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetFlatTransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionServiceMethodDescriptorSupplier("GetFlatTransactionByEventId"))
.build();
}
}
}
return getGetFlatTransactionByEventIdMethod;
}
private static volatile io.grpc.MethodDescriptor getGetFlatTransactionByIdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetFlatTransactionById",
requestType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest.class,
responseType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetFlatTransactionResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetFlatTransactionByIdMethod() {
io.grpc.MethodDescriptor getGetFlatTransactionByIdMethod;
if ((getGetFlatTransactionByIdMethod = TransactionServiceGrpc.getGetFlatTransactionByIdMethod) == null) {
synchronized (TransactionServiceGrpc.class) {
if ((getGetFlatTransactionByIdMethod = TransactionServiceGrpc.getGetFlatTransactionByIdMethod) == null) {
TransactionServiceGrpc.getGetFlatTransactionByIdMethod = getGetFlatTransactionByIdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetFlatTransactionById"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetFlatTransactionResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionServiceMethodDescriptorSupplier("GetFlatTransactionById"))
.build();
}
}
}
return getGetFlatTransactionByIdMethod;
}
private static volatile io.grpc.MethodDescriptor getGetLedgerEndMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetLedgerEnd",
requestType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndRequest.class,
responseType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetLedgerEndMethod() {
io.grpc.MethodDescriptor getGetLedgerEndMethod;
if ((getGetLedgerEndMethod = TransactionServiceGrpc.getGetLedgerEndMethod) == null) {
synchronized (TransactionServiceGrpc.class) {
if ((getGetLedgerEndMethod = TransactionServiceGrpc.getGetLedgerEndMethod) == null) {
TransactionServiceGrpc.getGetLedgerEndMethod = getGetLedgerEndMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLedgerEnd"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionServiceMethodDescriptorSupplier("GetLedgerEnd"))
.build();
}
}
}
return getGetLedgerEndMethod;
}
private static volatile io.grpc.MethodDescriptor getGetLatestPrunedOffsetsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetLatestPrunedOffsets",
requestType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsRequest.class,
responseType = com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetLatestPrunedOffsetsMethod() {
io.grpc.MethodDescriptor getGetLatestPrunedOffsetsMethod;
if ((getGetLatestPrunedOffsetsMethod = TransactionServiceGrpc.getGetLatestPrunedOffsetsMethod) == null) {
synchronized (TransactionServiceGrpc.class) {
if ((getGetLatestPrunedOffsetsMethod = TransactionServiceGrpc.getGetLatestPrunedOffsetsMethod) == null) {
TransactionServiceGrpc.getGetLatestPrunedOffsetsMethod = getGetLatestPrunedOffsetsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetLatestPrunedOffsets"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsResponse.getDefaultInstance()))
.setSchemaDescriptor(new TransactionServiceMethodDescriptorSupplier("GetLatestPrunedOffsets"))
.build();
}
}
}
return getGetLatestPrunedOffsetsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static TransactionServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TransactionServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactionServiceStub(channel, callOptions);
}
};
return TransactionServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static TransactionServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TransactionServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactionServiceBlockingStub(channel, callOptions);
}
};
return TransactionServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TransactionServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public TransactionServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactionServiceFutureStub(channel, callOptions);
}
};
return TransactionServiceFutureStub.newStub(factory, channel);
}
/**
*
* Allows clients to read transactions from the ledger.
* In V2 Ledger API this service is not available anymore. Use v2.UpdateService instead.
*
*/
public static abstract class TransactionServiceImplBase implements io.grpc.BindableService {
/**
*
* Read the ledger's filtered transaction stream for a set of parties.
* Lists only creates and archives, but not other events.
* Omits all events on transient contracts, i.e., contracts that were both created and archived in the same transaction.
*
*/
public void getTransactions(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionsMethod(), responseObserver);
}
/**
*
* Read the ledger's complete transaction tree stream for a set of parties.
* The stream can be filtered only by parties, but not templates (template filter must be empty).
*
*/
public void getTransactionTrees(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionTreesMethod(), responseObserver);
}
/**
*
* Lookup a transaction tree by the ID of an event that appears within it.
* For looking up a transaction instead of a transaction tree, please see GetFlatTransactionByEventId
*
*/
public void getTransactionByEventId(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionByEventIdMethod(), responseObserver);
}
/**
*
* Lookup a transaction tree by its ID.
* For looking up a transaction instead of a transaction tree, please see GetFlatTransactionById
*
*/
public void getTransactionById(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetTransactionByIdMethod(), responseObserver);
}
/**
*
* Lookup a transaction by the ID of an event that appears within it.
*
*/
public void getFlatTransactionByEventId(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFlatTransactionByEventIdMethod(), responseObserver);
}
/**
*
* Lookup a transaction by its ID.
*
*/
public void getFlatTransactionById(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetFlatTransactionByIdMethod(), responseObserver);
}
/**
*
* Get the current ledger end.
* Subscriptions started with the returned offset will serve transactions created after this RPC was called.
*
*/
public void getLedgerEnd(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLedgerEndMethod(), responseObserver);
}
/**
*
* Get the latest successfully pruned ledger offsets
*
*/
public void getLatestPrunedOffsets(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetLatestPrunedOffsetsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetTransactionsMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest,
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsResponse>(
this, METHODID_GET_TRANSACTIONS)))
.addMethod(
getGetTransactionTreesMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest,
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionTreesResponse>(
this, METHODID_GET_TRANSACTION_TREES)))
.addMethod(
getGetTransactionByEventIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest,
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionResponse>(
this, METHODID_GET_TRANSACTION_BY_EVENT_ID)))
.addMethod(
getGetTransactionByIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest,
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionResponse>(
this, METHODID_GET_TRANSACTION_BY_ID)))
.addMethod(
getGetFlatTransactionByEventIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest,
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetFlatTransactionResponse>(
this, METHODID_GET_FLAT_TRANSACTION_BY_EVENT_ID)))
.addMethod(
getGetFlatTransactionByIdMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest,
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetFlatTransactionResponse>(
this, METHODID_GET_FLAT_TRANSACTION_BY_ID)))
.addMethod(
getGetLedgerEndMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndRequest,
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndResponse>(
this, METHODID_GET_LEDGER_END)))
.addMethod(
getGetLatestPrunedOffsetsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsRequest,
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsResponse>(
this, METHODID_GET_LATEST_PRUNED_OFFSETS)))
.build();
}
}
/**
*
* Allows clients to read transactions from the ledger.
* In V2 Ledger API this service is not available anymore. Use v2.UpdateService instead.
*
*/
public static final class TransactionServiceStub extends io.grpc.stub.AbstractAsyncStub {
private TransactionServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TransactionServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactionServiceStub(channel, callOptions);
}
/**
*
* Read the ledger's filtered transaction stream for a set of parties.
* Lists only creates and archives, but not other events.
* Omits all events on transient contracts, i.e., contracts that were both created and archived in the same transaction.
*
*/
public void getTransactions(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getGetTransactionsMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Read the ledger's complete transaction tree stream for a set of parties.
* The stream can be filtered only by parties, but not templates (template filter must be empty).
*
*/
public void getTransactionTrees(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getGetTransactionTreesMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lookup a transaction tree by the ID of an event that appears within it.
* For looking up a transaction instead of a transaction tree, please see GetFlatTransactionByEventId
*
*/
public void getTransactionByEventId(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTransactionByEventIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lookup a transaction tree by its ID.
* For looking up a transaction instead of a transaction tree, please see GetFlatTransactionById
*
*/
public void getTransactionById(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetTransactionByIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lookup a transaction by the ID of an event that appears within it.
*
*/
public void getFlatTransactionByEventId(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetFlatTransactionByEventIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Lookup a transaction by its ID.
*
*/
public void getFlatTransactionById(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetFlatTransactionByIdMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get the current ledger end.
* Subscriptions started with the returned offset will serve transactions created after this RPC was called.
*
*/
public void getLedgerEnd(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetLedgerEndMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* Get the latest successfully pruned ledger offsets
*
*/
public void getLatestPrunedOffsets(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetLatestPrunedOffsetsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* Allows clients to read transactions from the ledger.
* In V2 Ledger API this service is not available anymore. Use v2.UpdateService instead.
*
*/
public static final class TransactionServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private TransactionServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TransactionServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactionServiceBlockingStub(channel, callOptions);
}
/**
*
* Read the ledger's filtered transaction stream for a set of parties.
* Lists only creates and archives, but not other events.
* Omits all events on transient contracts, i.e., contracts that were both created and archived in the same transaction.
*
*/
public java.util.Iterator getTransactions(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getGetTransactionsMethod(), getCallOptions(), request);
}
/**
*
* Read the ledger's complete transaction tree stream for a set of parties.
* The stream can be filtered only by parties, but not templates (template filter must be empty).
*
*/
public java.util.Iterator getTransactionTrees(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getGetTransactionTreesMethod(), getCallOptions(), request);
}
/**
*
* Lookup a transaction tree by the ID of an event that appears within it.
* For looking up a transaction instead of a transaction tree, please see GetFlatTransactionByEventId
*
*/
public com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionResponse getTransactionByEventId(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTransactionByEventIdMethod(), getCallOptions(), request);
}
/**
*
* Lookup a transaction tree by its ID.
* For looking up a transaction instead of a transaction tree, please see GetFlatTransactionById
*
*/
public com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionResponse getTransactionById(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetTransactionByIdMethod(), getCallOptions(), request);
}
/**
*
* Lookup a transaction by the ID of an event that appears within it.
*
*/
public com.daml.ledger.api.v1.TransactionServiceOuterClass.GetFlatTransactionResponse getFlatTransactionByEventId(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetFlatTransactionByEventIdMethod(), getCallOptions(), request);
}
/**
*
* Lookup a transaction by its ID.
*
*/
public com.daml.ledger.api.v1.TransactionServiceOuterClass.GetFlatTransactionResponse getFlatTransactionById(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetFlatTransactionByIdMethod(), getCallOptions(), request);
}
/**
*
* Get the current ledger end.
* Subscriptions started with the returned offset will serve transactions created after this RPC was called.
*
*/
public com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndResponse getLedgerEnd(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetLedgerEndMethod(), getCallOptions(), request);
}
/**
*
* Get the latest successfully pruned ledger offsets
*
*/
public com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsResponse getLatestPrunedOffsets(com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetLatestPrunedOffsetsMethod(), getCallOptions(), request);
}
}
/**
*
* Allows clients to read transactions from the ledger.
* In V2 Ledger API this service is not available anymore. Use v2.UpdateService instead.
*
*/
public static final class TransactionServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private TransactionServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TransactionServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new TransactionServiceFutureStub(channel, callOptions);
}
/**
*
* Lookup a transaction tree by the ID of an event that appears within it.
* For looking up a transaction instead of a transaction tree, please see GetFlatTransactionByEventId
*
*/
public com.google.common.util.concurrent.ListenableFuture getTransactionByEventId(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTransactionByEventIdMethod(), getCallOptions()), request);
}
/**
*
* Lookup a transaction tree by its ID.
* For looking up a transaction instead of a transaction tree, please see GetFlatTransactionById
*
*/
public com.google.common.util.concurrent.ListenableFuture getTransactionById(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetTransactionByIdMethod(), getCallOptions()), request);
}
/**
*
* Lookup a transaction by the ID of an event that appears within it.
*
*/
public com.google.common.util.concurrent.ListenableFuture getFlatTransactionByEventId(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetFlatTransactionByEventIdMethod(), getCallOptions()), request);
}
/**
*
* Lookup a transaction by its ID.
*
*/
public com.google.common.util.concurrent.ListenableFuture getFlatTransactionById(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetFlatTransactionByIdMethod(), getCallOptions()), request);
}
/**
*
* Get the current ledger end.
* Subscriptions started with the returned offset will serve transactions created after this RPC was called.
*
*/
public com.google.common.util.concurrent.ListenableFuture getLedgerEnd(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetLedgerEndMethod(), getCallOptions()), request);
}
/**
*
* Get the latest successfully pruned ledger offsets
*
*/
public com.google.common.util.concurrent.ListenableFuture getLatestPrunedOffsets(
com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetLatestPrunedOffsetsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_TRANSACTIONS = 0;
private static final int METHODID_GET_TRANSACTION_TREES = 1;
private static final int METHODID_GET_TRANSACTION_BY_EVENT_ID = 2;
private static final int METHODID_GET_TRANSACTION_BY_ID = 3;
private static final int METHODID_GET_FLAT_TRANSACTION_BY_EVENT_ID = 4;
private static final int METHODID_GET_FLAT_TRANSACTION_BY_ID = 5;
private static final int METHODID_GET_LEDGER_END = 6;
private static final int METHODID_GET_LATEST_PRUNED_OFFSETS = 7;
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 TransactionServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(TransactionServiceImplBase 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_TRANSACTIONS:
serviceImpl.getTransactions((com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TRANSACTION_TREES:
serviceImpl.getTransactionTrees((com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TRANSACTION_BY_EVENT_ID:
serviceImpl.getTransactionByEventId((com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_TRANSACTION_BY_ID:
serviceImpl.getTransactionById((com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_FLAT_TRANSACTION_BY_EVENT_ID:
serviceImpl.getFlatTransactionByEventId((com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByEventIdRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_FLAT_TRANSACTION_BY_ID:
serviceImpl.getFlatTransactionById((com.daml.ledger.api.v1.TransactionServiceOuterClass.GetTransactionByIdRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_LEDGER_END:
serviceImpl.getLedgerEnd((com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLedgerEndRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_LATEST_PRUNED_OFFSETS:
serviceImpl.getLatestPrunedOffsets((com.daml.ledger.api.v1.TransactionServiceOuterClass.GetLatestPrunedOffsetsRequest) 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 TransactionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
TransactionServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.daml.ledger.api.v1.TransactionServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("TransactionService");
}
}
private static final class TransactionServiceFileDescriptorSupplier
extends TransactionServiceBaseDescriptorSupplier {
TransactionServiceFileDescriptorSupplier() {}
}
private static final class TransactionServiceMethodDescriptorSupplier
extends TransactionServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
TransactionServiceMethodDescriptorSupplier(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 (TransactionServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new TransactionServiceFileDescriptorSupplier())
.addMethod(getGetTransactionsMethod())
.addMethod(getGetTransactionTreesMethod())
.addMethod(getGetTransactionByEventIdMethod())
.addMethod(getGetTransactionByIdMethod())
.addMethod(getGetFlatTransactionByEventIdMethod())
.addMethod(getGetFlatTransactionByIdMethod())
.addMethod(getGetLedgerEndMethod())
.addMethod(getGetLatestPrunedOffsetsMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy