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

com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BQDepositsServiceGrpc Maven / Gradle / Ivy

The newest version!
package com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.42.1)",
    comments = "Source: v10/api/bq_deposits_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class BQDepositsServiceGrpc {

  private BQDepositsServiceGrpc() {}

  public static final String SERVICE_NAME = "com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BQDepositsService";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getInitiateDepositsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "InitiateDeposits",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getInitiateDepositsMethod() {
    io.grpc.MethodDescriptor getInitiateDepositsMethod;
    if ((getInitiateDepositsMethod = BQDepositsServiceGrpc.getInitiateDepositsMethod) == null) {
      synchronized (BQDepositsServiceGrpc.class) {
        if ((getInitiateDepositsMethod = BQDepositsServiceGrpc.getInitiateDepositsMethod) == null) {
          BQDepositsServiceGrpc.getInitiateDepositsMethod = getInitiateDepositsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitiateDeposits"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits.getDefaultInstance()))
              .setSchemaDescriptor(new BQDepositsServiceMethodDescriptorSupplier("InitiateDeposits"))
              .build();
        }
      }
    }
    return getInitiateDepositsMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRetrieveDepositsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RetrieveDeposits",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRetrieveDepositsMethod() {
    io.grpc.MethodDescriptor getRetrieveDepositsMethod;
    if ((getRetrieveDepositsMethod = BQDepositsServiceGrpc.getRetrieveDepositsMethod) == null) {
      synchronized (BQDepositsServiceGrpc.class) {
        if ((getRetrieveDepositsMethod = BQDepositsServiceGrpc.getRetrieveDepositsMethod) == null) {
          BQDepositsServiceGrpc.getRetrieveDepositsMethod = getRetrieveDepositsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveDeposits"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits.getDefaultInstance()))
              .setSchemaDescriptor(new BQDepositsServiceMethodDescriptorSupplier("RetrieveDeposits"))
              .build();
        }
      }
    }
    return getRetrieveDepositsMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUpdateDepositsMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UpdateDeposits",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateDepositsMethod() {
    io.grpc.MethodDescriptor getUpdateDepositsMethod;
    if ((getUpdateDepositsMethod = BQDepositsServiceGrpc.getUpdateDepositsMethod) == null) {
      synchronized (BQDepositsServiceGrpc.class) {
        if ((getUpdateDepositsMethod = BQDepositsServiceGrpc.getUpdateDepositsMethod) == null) {
          BQDepositsServiceGrpc.getUpdateDepositsMethod = getUpdateDepositsMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateDeposits"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits.getDefaultInstance()))
              .setSchemaDescriptor(new BQDepositsServiceMethodDescriptorSupplier("UpdateDeposits"))
              .build();
        }
      }
    }
    return getUpdateDepositsMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static BQDepositsServiceStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public BQDepositsServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new BQDepositsServiceStub(channel, callOptions);
        }
      };
    return BQDepositsServiceStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static BQDepositsServiceBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public BQDepositsServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new BQDepositsServiceBlockingStub(channel, callOptions);
        }
      };
    return BQDepositsServiceBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static BQDepositsServiceFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public BQDepositsServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new BQDepositsServiceFutureStub(channel, callOptions);
        }
      };
    return BQDepositsServiceFutureStub.newStub(factory, channel);
  }

  /**
   */
  public static abstract class BQDepositsServiceImplBase implements io.grpc.BindableService {

    /**
     */
    public void initiateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInitiateDepositsMethod(), responseObserver);
    }

    /**
     */
    public void retrieveDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveDepositsMethod(), responseObserver);
    }

    /**
     */
    public void updateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateDepositsMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getInitiateDepositsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest,
                com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits>(
                  this, METHODID_INITIATE_DEPOSITS)))
          .addMethod(
            getRetrieveDepositsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest,
                com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits>(
                  this, METHODID_RETRIEVE_DEPOSITS)))
          .addMethod(
            getUpdateDepositsMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest,
                com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits>(
                  this, METHODID_UPDATE_DEPOSITS)))
          .build();
    }
  }

  /**
   */
  public static final class BQDepositsServiceStub extends io.grpc.stub.AbstractAsyncStub {
    private BQDepositsServiceStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected BQDepositsServiceStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new BQDepositsServiceStub(channel, callOptions);
    }

    /**
     */
    public void initiateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getInitiateDepositsMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void retrieveDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getRetrieveDepositsMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void updateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateDepositsMethod(), getCallOptions()), request, responseObserver);
    }
  }

  /**
   */
  public static final class BQDepositsServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
    private BQDepositsServiceBlockingStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected BQDepositsServiceBlockingStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new BQDepositsServiceBlockingStub(channel, callOptions);
    }

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits initiateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getInitiateDepositsMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits retrieveDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getRetrieveDepositsMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.DepositsOuterClass.Deposits updateDeposits(com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUpdateDepositsMethod(), getCallOptions(), request);
    }
  }

  /**
   */
  public static final class BQDepositsServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
    private BQDepositsServiceFutureStub(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      super(channel, callOptions);
    }

    @java.lang.Override
    protected BQDepositsServiceFutureStub build(
        io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
      return new BQDepositsServiceFutureStub(channel, callOptions);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture initiateDeposits(
        com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getInitiateDepositsMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture retrieveDeposits(
        com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getRetrieveDepositsMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture updateDeposits(
        com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateDepositsMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_INITIATE_DEPOSITS = 0;
  private static final int METHODID_RETRIEVE_DEPOSITS = 1;
  private static final int METHODID_UPDATE_DEPOSITS = 2;

  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 BQDepositsServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(BQDepositsServiceImplBase 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_INITIATE_DEPOSITS:
          serviceImpl.initiateDeposits((com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.InitiateDepositsRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_RETRIEVE_DEPOSITS:
          serviceImpl.retrieveDeposits((com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.RetrieveDepositsRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE_DEPOSITS:
          serviceImpl.updateDeposits((com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.UpdateDepositsRequest) 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 BQDepositsServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    BQDepositsServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.redhat.mercury.merchandisingloan.v10.api.bqdepositsservice.BqDepositsService.getDescriptor();
    }

    @java.lang.Override
    public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
      return getFileDescriptor().findServiceByName("BQDepositsService");
    }
  }

  private static final class BQDepositsServiceFileDescriptorSupplier
      extends BQDepositsServiceBaseDescriptorSupplier {
    BQDepositsServiceFileDescriptorSupplier() {}
  }

  private static final class BQDepositsServiceMethodDescriptorSupplier
      extends BQDepositsServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    BQDepositsServiceMethodDescriptorSupplier(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 (BQDepositsServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new BQDepositsServiceFileDescriptorSupplier())
              .addMethod(getInitiateDepositsMethod())
              .addMethod(getRetrieveDepositsMethod())
              .addMethod(getUpdateDepositsMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy