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

com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BQFinancialInstrumentServiceGrpc Maven / Gradle / Ivy

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private BQFinancialInstrumentServiceGrpc() {}

  public static final String SERVICE_NAME = "com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BQFinancialInstrumentService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "InitiateFinancialInstrument",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.InitiateFinancialInstrumentRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.InitiateFinancialInstrumentResponseOuterClass.InitiateFinancialInstrumentResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getInitiateFinancialInstrumentMethod() {
    io.grpc.MethodDescriptor getInitiateFinancialInstrumentMethod;
    if ((getInitiateFinancialInstrumentMethod = BQFinancialInstrumentServiceGrpc.getInitiateFinancialInstrumentMethod) == null) {
      synchronized (BQFinancialInstrumentServiceGrpc.class) {
        if ((getInitiateFinancialInstrumentMethod = BQFinancialInstrumentServiceGrpc.getInitiateFinancialInstrumentMethod) == null) {
          BQFinancialInstrumentServiceGrpc.getInitiateFinancialInstrumentMethod = getInitiateFinancialInstrumentMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitiateFinancialInstrument"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.InitiateFinancialInstrumentRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.InitiateFinancialInstrumentResponseOuterClass.InitiateFinancialInstrumentResponse.getDefaultInstance()))
              .setSchemaDescriptor(new BQFinancialInstrumentServiceMethodDescriptorSupplier("InitiateFinancialInstrument"))
              .build();
        }
      }
    }
    return getInitiateFinancialInstrumentMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRetrieveFinancialInstrumentMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RetrieveFinancialInstrument",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.RetrieveFinancialInstrumentRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.RetrieveFinancialInstrumentResponseOuterClass.RetrieveFinancialInstrumentResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRetrieveFinancialInstrumentMethod() {
    io.grpc.MethodDescriptor getRetrieveFinancialInstrumentMethod;
    if ((getRetrieveFinancialInstrumentMethod = BQFinancialInstrumentServiceGrpc.getRetrieveFinancialInstrumentMethod) == null) {
      synchronized (BQFinancialInstrumentServiceGrpc.class) {
        if ((getRetrieveFinancialInstrumentMethod = BQFinancialInstrumentServiceGrpc.getRetrieveFinancialInstrumentMethod) == null) {
          BQFinancialInstrumentServiceGrpc.getRetrieveFinancialInstrumentMethod = getRetrieveFinancialInstrumentMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveFinancialInstrument"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.RetrieveFinancialInstrumentRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.RetrieveFinancialInstrumentResponseOuterClass.RetrieveFinancialInstrumentResponse.getDefaultInstance()))
              .setSchemaDescriptor(new BQFinancialInstrumentServiceMethodDescriptorSupplier("RetrieveFinancialInstrument"))
              .build();
        }
      }
    }
    return getRetrieveFinancialInstrumentMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUpdateFinancialInstrumentMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UpdateFinancialInstrument",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.UpdateFinancialInstrumentRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.UpdateFinancialInstrumentResponseOuterClass.UpdateFinancialInstrumentResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateFinancialInstrumentMethod() {
    io.grpc.MethodDescriptor getUpdateFinancialInstrumentMethod;
    if ((getUpdateFinancialInstrumentMethod = BQFinancialInstrumentServiceGrpc.getUpdateFinancialInstrumentMethod) == null) {
      synchronized (BQFinancialInstrumentServiceGrpc.class) {
        if ((getUpdateFinancialInstrumentMethod = BQFinancialInstrumentServiceGrpc.getUpdateFinancialInstrumentMethod) == null) {
          BQFinancialInstrumentServiceGrpc.getUpdateFinancialInstrumentMethod = getUpdateFinancialInstrumentMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateFinancialInstrument"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.UpdateFinancialInstrumentRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.UpdateFinancialInstrumentResponseOuterClass.UpdateFinancialInstrumentResponse.getDefaultInstance()))
              .setSchemaDescriptor(new BQFinancialInstrumentServiceMethodDescriptorSupplier("UpdateFinancialInstrument"))
              .build();
        }
      }
    }
    return getUpdateFinancialInstrumentMethod;
  }

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

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

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

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

    /**
     */
    public void initiateFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.InitiateFinancialInstrumentRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInitiateFinancialInstrumentMethod(), responseObserver);
    }

    /**
     */
    public void retrieveFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.RetrieveFinancialInstrumentRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveFinancialInstrumentMethod(), responseObserver);
    }

    /**
     */
    public void updateFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.UpdateFinancialInstrumentRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateFinancialInstrumentMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getInitiateFinancialInstrumentMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.InitiateFinancialInstrumentRequest,
                com.redhat.mercury.merchandisingloan.v10.InitiateFinancialInstrumentResponseOuterClass.InitiateFinancialInstrumentResponse>(
                  this, METHODID_INITIATE_FINANCIAL_INSTRUMENT)))
          .addMethod(
            getRetrieveFinancialInstrumentMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.RetrieveFinancialInstrumentRequest,
                com.redhat.mercury.merchandisingloan.v10.RetrieveFinancialInstrumentResponseOuterClass.RetrieveFinancialInstrumentResponse>(
                  this, METHODID_RETRIEVE_FINANCIAL_INSTRUMENT)))
          .addMethod(
            getUpdateFinancialInstrumentMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.UpdateFinancialInstrumentRequest,
                com.redhat.mercury.merchandisingloan.v10.UpdateFinancialInstrumentResponseOuterClass.UpdateFinancialInstrumentResponse>(
                  this, METHODID_UPDATE_FINANCIAL_INSTRUMENT)))
          .build();
    }
  }

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

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

    /**
     */
    public void initiateFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.InitiateFinancialInstrumentRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getInitiateFinancialInstrumentMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void retrieveFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.RetrieveFinancialInstrumentRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getRetrieveFinancialInstrumentMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void updateFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.UpdateFinancialInstrumentRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateFinancialInstrumentMethod(), getCallOptions()), request, responseObserver);
    }
  }

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

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

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.InitiateFinancialInstrumentResponseOuterClass.InitiateFinancialInstrumentResponse initiateFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.InitiateFinancialInstrumentRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getInitiateFinancialInstrumentMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.RetrieveFinancialInstrumentResponseOuterClass.RetrieveFinancialInstrumentResponse retrieveFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.RetrieveFinancialInstrumentRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getRetrieveFinancialInstrumentMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.UpdateFinancialInstrumentResponseOuterClass.UpdateFinancialInstrumentResponse updateFinancialInstrument(com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.UpdateFinancialInstrumentRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUpdateFinancialInstrumentMethod(), getCallOptions(), request);
    }
  }

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

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

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture initiateFinancialInstrument(
        com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.InitiateFinancialInstrumentRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getInitiateFinancialInstrumentMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture retrieveFinancialInstrument(
        com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.RetrieveFinancialInstrumentRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getRetrieveFinancialInstrumentMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture updateFinancialInstrument(
        com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.UpdateFinancialInstrumentRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateFinancialInstrumentMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_INITIATE_FINANCIAL_INSTRUMENT = 0;
  private static final int METHODID_RETRIEVE_FINANCIAL_INSTRUMENT = 1;
  private static final int METHODID_UPDATE_FINANCIAL_INSTRUMENT = 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 BQFinancialInstrumentServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(BQFinancialInstrumentServiceImplBase 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_FINANCIAL_INSTRUMENT:
          serviceImpl.initiateFinancialInstrument((com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.InitiateFinancialInstrumentRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_RETRIEVE_FINANCIAL_INSTRUMENT:
          serviceImpl.retrieveFinancialInstrument((com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.RetrieveFinancialInstrumentRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE_FINANCIAL_INSTRUMENT:
          serviceImpl.updateFinancialInstrument((com.redhat.mercury.merchandisingloan.v10.api.bqfinancialinstrumentservice.BqFinancialInstrumentService.UpdateFinancialInstrumentRequest) 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 BQFinancialInstrumentServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    BQFinancialInstrumentServiceBaseDescriptorSupplier() {}

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

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

  private static final class BQFinancialInstrumentServiceFileDescriptorSupplier
      extends BQFinancialInstrumentServiceBaseDescriptorSupplier {
    BQFinancialInstrumentServiceFileDescriptorSupplier() {}
  }

  private static final class BQFinancialInstrumentServiceMethodDescriptorSupplier
      extends BQFinancialInstrumentServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    BQFinancialInstrumentServiceMethodDescriptorSupplier(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 (BQFinancialInstrumentServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new BQFinancialInstrumentServiceFileDescriptorSupplier())
              .addMethod(getInitiateFinancialInstrumentMethod())
              .addMethod(getRetrieveFinancialInstrumentMethod())
              .addMethod(getUpdateFinancialInstrumentMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy