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

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

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Experimental API to retrieve metering reports.
 * Metering reports aim to provide the information necessary for billing participant
 * and application operators.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler", comments = "Source: com/daml/ledger/api/v1/admin/metering_report_service.proto") @io.grpc.stub.annotations.GrpcGenerated public final class MeteringReportServiceGrpc { private MeteringReportServiceGrpc() {} public static final String SERVICE_NAME = "com.daml.ledger.api.v1.admin.MeteringReportService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetMeteringReportMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "GetMeteringReport", requestType = com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportRequest.class, responseType = com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetMeteringReportMethod() { io.grpc.MethodDescriptor getGetMeteringReportMethod; if ((getGetMeteringReportMethod = MeteringReportServiceGrpc.getGetMeteringReportMethod) == null) { synchronized (MeteringReportServiceGrpc.class) { if ((getGetMeteringReportMethod = MeteringReportServiceGrpc.getGetMeteringReportMethod) == null) { MeteringReportServiceGrpc.getGetMeteringReportMethod = getGetMeteringReportMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetMeteringReport")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportResponse.getDefaultInstance())) .setSchemaDescriptor(new MeteringReportServiceMethodDescriptorSupplier("GetMeteringReport")) .build(); } } } return getGetMeteringReportMethod; } /** * Creates a new async stub that supports all call types for the service */ public static MeteringReportServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MeteringReportServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeteringReportServiceStub(channel, callOptions); } }; return MeteringReportServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static MeteringReportServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MeteringReportServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeteringReportServiceBlockingStub(channel, callOptions); } }; return MeteringReportServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static MeteringReportServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public MeteringReportServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeteringReportServiceFutureStub(channel, callOptions); } }; return MeteringReportServiceFutureStub.newStub(factory, channel); } /** *
   * Experimental API to retrieve metering reports.
   * Metering reports aim to provide the information necessary for billing participant
   * and application operators.
   * 
*/ public static abstract class MeteringReportServiceImplBase implements io.grpc.BindableService { /** *
     * Retrieve a metering report.
     * 
*/ public void getMeteringReport(com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetMeteringReportMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetMeteringReportMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportRequest, com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportResponse>( this, METHODID_GET_METERING_REPORT))) .build(); } } /** *
   * Experimental API to retrieve metering reports.
   * Metering reports aim to provide the information necessary for billing participant
   * and application operators.
   * 
*/ public static final class MeteringReportServiceStub extends io.grpc.stub.AbstractAsyncStub { private MeteringReportServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeteringReportServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeteringReportServiceStub(channel, callOptions); } /** *
     * Retrieve a metering report.
     * 
*/ public void getMeteringReport(com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetMeteringReportMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Experimental API to retrieve metering reports.
   * Metering reports aim to provide the information necessary for billing participant
   * and application operators.
   * 
*/ public static final class MeteringReportServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private MeteringReportServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeteringReportServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeteringReportServiceBlockingStub(channel, callOptions); } /** *
     * Retrieve a metering report.
     * 
*/ public com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportResponse getMeteringReport(com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetMeteringReportMethod(), getCallOptions(), request); } } /** *
   * Experimental API to retrieve metering reports.
   * Metering reports aim to provide the information necessary for billing participant
   * and application operators.
   * 
*/ public static final class MeteringReportServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private MeteringReportServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected MeteringReportServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new MeteringReportServiceFutureStub(channel, callOptions); } /** *
     * Retrieve a metering report.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getMeteringReport( com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetMeteringReportMethod(), getCallOptions()), request); } } private static final int METHODID_GET_METERING_REPORT = 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 MeteringReportServiceImplBase serviceImpl; private final int methodId; MethodHandlers(MeteringReportServiceImplBase 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_METERING_REPORT: serviceImpl.getMeteringReport((com.daml.ledger.api.v1.admin.MeteringReportOuterClass.GetMeteringReportRequest) 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 MeteringReportServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { MeteringReportServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.daml.ledger.api.v1.admin.MeteringReportOuterClass.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("MeteringReportService"); } } private static final class MeteringReportServiceFileDescriptorSupplier extends MeteringReportServiceBaseDescriptorSupplier { MeteringReportServiceFileDescriptorSupplier() {} } private static final class MeteringReportServiceMethodDescriptorSupplier extends MeteringReportServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; MeteringReportServiceMethodDescriptorSupplier(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 (MeteringReportServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new MeteringReportServiceFileDescriptorSupplier()) .addMethod(getGetMeteringReportMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy