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

com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BQTrackingServiceGrpc Maven / Gradle / Ivy

package com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice;

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private BQTrackingServiceGrpc() {}

  public static final String SERVICE_NAME = "com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BQTrackingService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RetrieveTracking",
      requestType = com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.RetrieveTrackingRequest.class,
      responseType = com.redhat.mercury.openitemmanagement.v10.TrackingOuterClass.Tracking.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRetrieveTrackingMethod() {
    io.grpc.MethodDescriptor getRetrieveTrackingMethod;
    if ((getRetrieveTrackingMethod = BQTrackingServiceGrpc.getRetrieveTrackingMethod) == null) {
      synchronized (BQTrackingServiceGrpc.class) {
        if ((getRetrieveTrackingMethod = BQTrackingServiceGrpc.getRetrieveTrackingMethod) == null) {
          BQTrackingServiceGrpc.getRetrieveTrackingMethod = getRetrieveTrackingMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RetrieveTracking"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.RetrieveTrackingRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.openitemmanagement.v10.TrackingOuterClass.Tracking.getDefaultInstance()))
              .setSchemaDescriptor(new BQTrackingServiceMethodDescriptorSupplier("RetrieveTracking"))
              .build();
        }
      }
    }
    return getRetrieveTrackingMethod;
  }

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

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

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

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

    /**
     */
    public void retrieveTracking(com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.RetrieveTrackingRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveTrackingMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getRetrieveTrackingMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.RetrieveTrackingRequest,
                com.redhat.mercury.openitemmanagement.v10.TrackingOuterClass.Tracking>(
                  this, METHODID_RETRIEVE_TRACKING)))
          .build();
    }
  }

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

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

    /**
     */
    public void retrieveTracking(com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.RetrieveTrackingRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getRetrieveTrackingMethod(), getCallOptions()), request, responseObserver);
    }
  }

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

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

    /**
     */
    public com.redhat.mercury.openitemmanagement.v10.TrackingOuterClass.Tracking retrieveTracking(com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.RetrieveTrackingRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getRetrieveTrackingMethod(), getCallOptions(), request);
    }
  }

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

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

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture retrieveTracking(
        com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.RetrieveTrackingRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getRetrieveTrackingMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_RETRIEVE_TRACKING = 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 BQTrackingServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(BQTrackingServiceImplBase 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_RETRIEVE_TRACKING:
          serviceImpl.retrieveTracking((com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.RetrieveTrackingRequest) 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 BQTrackingServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    BQTrackingServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.redhat.mercury.openitemmanagement.v10.api.bqtrackingservice.BqTrackingService.getDescriptor();
    }

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

  private static final class BQTrackingServiceFileDescriptorSupplier
      extends BQTrackingServiceBaseDescriptorSupplier {
    BQTrackingServiceFileDescriptorSupplier() {}
  }

  private static final class BQTrackingServiceMethodDescriptorSupplier
      extends BQTrackingServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    BQTrackingServiceMethodDescriptorSupplier(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 (BQTrackingServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new BQTrackingServiceFileDescriptorSupplier())
              .addMethod(getRetrieveTrackingMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy