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

com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BQIssuedDeviceServiceGrpc Maven / Gradle / Ivy

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

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private BQIssuedDeviceServiceGrpc() {}

  public static final String SERVICE_NAME = "com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BQIssuedDeviceService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "InitiateIssuedDevice",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.InitiateIssuedDeviceRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getInitiateIssuedDeviceMethod() {
    io.grpc.MethodDescriptor getInitiateIssuedDeviceMethod;
    if ((getInitiateIssuedDeviceMethod = BQIssuedDeviceServiceGrpc.getInitiateIssuedDeviceMethod) == null) {
      synchronized (BQIssuedDeviceServiceGrpc.class) {
        if ((getInitiateIssuedDeviceMethod = BQIssuedDeviceServiceGrpc.getInitiateIssuedDeviceMethod) == null) {
          BQIssuedDeviceServiceGrpc.getInitiateIssuedDeviceMethod = getInitiateIssuedDeviceMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "InitiateIssuedDevice"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.InitiateIssuedDeviceRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice.getDefaultInstance()))
              .setSchemaDescriptor(new BQIssuedDeviceServiceMethodDescriptorSupplier("InitiateIssuedDevice"))
              .build();
        }
      }
    }
    return getInitiateIssuedDeviceMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRetrieveIssuedDeviceMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RetrieveIssuedDevice",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.RetrieveIssuedDeviceRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRetrieveIssuedDeviceMethod() {
    io.grpc.MethodDescriptor getRetrieveIssuedDeviceMethod;
    if ((getRetrieveIssuedDeviceMethod = BQIssuedDeviceServiceGrpc.getRetrieveIssuedDeviceMethod) == null) {
      synchronized (BQIssuedDeviceServiceGrpc.class) {
        if ((getRetrieveIssuedDeviceMethod = BQIssuedDeviceServiceGrpc.getRetrieveIssuedDeviceMethod) == null) {
          BQIssuedDeviceServiceGrpc.getRetrieveIssuedDeviceMethod = getRetrieveIssuedDeviceMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveIssuedDevice"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.RetrieveIssuedDeviceRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice.getDefaultInstance()))
              .setSchemaDescriptor(new BQIssuedDeviceServiceMethodDescriptorSupplier("RetrieveIssuedDevice"))
              .build();
        }
      }
    }
    return getRetrieveIssuedDeviceMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUpdateIssuedDeviceMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "UpdateIssuedDevice",
      requestType = com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.UpdateIssuedDeviceRequest.class,
      responseType = com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateIssuedDeviceMethod() {
    io.grpc.MethodDescriptor getUpdateIssuedDeviceMethod;
    if ((getUpdateIssuedDeviceMethod = BQIssuedDeviceServiceGrpc.getUpdateIssuedDeviceMethod) == null) {
      synchronized (BQIssuedDeviceServiceGrpc.class) {
        if ((getUpdateIssuedDeviceMethod = BQIssuedDeviceServiceGrpc.getUpdateIssuedDeviceMethod) == null) {
          BQIssuedDeviceServiceGrpc.getUpdateIssuedDeviceMethod = getUpdateIssuedDeviceMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateIssuedDevice"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.UpdateIssuedDeviceRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice.getDefaultInstance()))
              .setSchemaDescriptor(new BQIssuedDeviceServiceMethodDescriptorSupplier("UpdateIssuedDevice"))
              .build();
        }
      }
    }
    return getUpdateIssuedDeviceMethod;
  }

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

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

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

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

    /**
     */
    public void initiateIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.InitiateIssuedDeviceRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInitiateIssuedDeviceMethod(), responseObserver);
    }

    /**
     */
    public void retrieveIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.RetrieveIssuedDeviceRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveIssuedDeviceMethod(), responseObserver);
    }

    /**
     */
    public void updateIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.UpdateIssuedDeviceRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateIssuedDeviceMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getInitiateIssuedDeviceMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.InitiateIssuedDeviceRequest,
                com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice>(
                  this, METHODID_INITIATE_ISSUED_DEVICE)))
          .addMethod(
            getRetrieveIssuedDeviceMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.RetrieveIssuedDeviceRequest,
                com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice>(
                  this, METHODID_RETRIEVE_ISSUED_DEVICE)))
          .addMethod(
            getUpdateIssuedDeviceMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.UpdateIssuedDeviceRequest,
                com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice>(
                  this, METHODID_UPDATE_ISSUED_DEVICE)))
          .build();
    }
  }

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

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

    /**
     */
    public void initiateIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.InitiateIssuedDeviceRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getInitiateIssuedDeviceMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void retrieveIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.RetrieveIssuedDeviceRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getRetrieveIssuedDeviceMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void updateIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.UpdateIssuedDeviceRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateIssuedDeviceMethod(), getCallOptions()), request, responseObserver);
    }
  }

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

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

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice initiateIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.InitiateIssuedDeviceRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getInitiateIssuedDeviceMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice retrieveIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.RetrieveIssuedDeviceRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getRetrieveIssuedDeviceMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.redhat.mercury.merchandisingloan.v10.IssuedDeviceOuterClass.IssuedDevice updateIssuedDevice(com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.UpdateIssuedDeviceRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUpdateIssuedDeviceMethod(), getCallOptions(), request);
    }
  }

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

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

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture initiateIssuedDevice(
        com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.InitiateIssuedDeviceRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getInitiateIssuedDeviceMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture retrieveIssuedDevice(
        com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.RetrieveIssuedDeviceRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getRetrieveIssuedDeviceMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture updateIssuedDevice(
        com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.UpdateIssuedDeviceRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateIssuedDeviceMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_INITIATE_ISSUED_DEVICE = 0;
  private static final int METHODID_RETRIEVE_ISSUED_DEVICE = 1;
  private static final int METHODID_UPDATE_ISSUED_DEVICE = 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 BQIssuedDeviceServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(BQIssuedDeviceServiceImplBase 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_ISSUED_DEVICE:
          serviceImpl.initiateIssuedDevice((com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.InitiateIssuedDeviceRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_RETRIEVE_ISSUED_DEVICE:
          serviceImpl.retrieveIssuedDevice((com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.RetrieveIssuedDeviceRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE_ISSUED_DEVICE:
          serviceImpl.updateIssuedDevice((com.redhat.mercury.merchandisingloan.v10.api.bqissueddeviceservice.BqIssuedDeviceService.UpdateIssuedDeviceRequest) 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 BQIssuedDeviceServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    BQIssuedDeviceServiceBaseDescriptorSupplier() {}

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

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

  private static final class BQIssuedDeviceServiceFileDescriptorSupplier
      extends BQIssuedDeviceServiceBaseDescriptorSupplier {
    BQIssuedDeviceServiceFileDescriptorSupplier() {}
  }

  private static final class BQIssuedDeviceServiceMethodDescriptorSupplier
      extends BQIssuedDeviceServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    BQIssuedDeviceServiceMethodDescriptorSupplier(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 (BQIssuedDeviceServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new BQIssuedDeviceServiceFileDescriptorSupplier())
              .addMethod(getInitiateIssuedDeviceMethod())
              .addMethod(getRetrieveIssuedDeviceMethod())
              .addMethod(getUpdateIssuedDeviceMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy