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

com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CRIssuedDeviceStateServiceGrpc Maven / Gradle / Ivy

The newest version!
package com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice;

import static io.grpc.MethodDescriptor.generateFullMethodName;

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

  private CRIssuedDeviceStateServiceGrpc() {}

  public static final String SERVICE_NAME = "com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CRIssuedDeviceStateService";

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

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Initiate",
      requestType = com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.InitiateRequest.class,
      responseType = com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getInitiateMethod() {
    io.grpc.MethodDescriptor getInitiateMethod;
    if ((getInitiateMethod = CRIssuedDeviceStateServiceGrpc.getInitiateMethod) == null) {
      synchronized (CRIssuedDeviceStateServiceGrpc.class) {
        if ((getInitiateMethod = CRIssuedDeviceStateServiceGrpc.getInitiateMethod) == null) {
          CRIssuedDeviceStateServiceGrpc.getInitiateMethod = getInitiateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Initiate"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.InitiateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState.getDefaultInstance()))
              .setSchemaDescriptor(new CRIssuedDeviceStateServiceMethodDescriptorSupplier("Initiate"))
              .build();
        }
      }
    }
    return getInitiateMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRetrieveMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Retrieve",
      requestType = com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.RetrieveRequest.class,
      responseType = com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRetrieveMethod() {
    io.grpc.MethodDescriptor getRetrieveMethod;
    if ((getRetrieveMethod = CRIssuedDeviceStateServiceGrpc.getRetrieveMethod) == null) {
      synchronized (CRIssuedDeviceStateServiceGrpc.class) {
        if ((getRetrieveMethod = CRIssuedDeviceStateServiceGrpc.getRetrieveMethod) == null) {
          CRIssuedDeviceStateServiceGrpc.getRetrieveMethod = getRetrieveMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Retrieve"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.RetrieveRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState.getDefaultInstance()))
              .setSchemaDescriptor(new CRIssuedDeviceStateServiceMethodDescriptorSupplier("Retrieve"))
              .build();
        }
      }
    }
    return getRetrieveMethod;
  }

  private static volatile io.grpc.MethodDescriptor getUpdateMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Update",
      requestType = com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.UpdateRequest.class,
      responseType = com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getUpdateMethod() {
    io.grpc.MethodDescriptor getUpdateMethod;
    if ((getUpdateMethod = CRIssuedDeviceStateServiceGrpc.getUpdateMethod) == null) {
      synchronized (CRIssuedDeviceStateServiceGrpc.class) {
        if ((getUpdateMethod = CRIssuedDeviceStateServiceGrpc.getUpdateMethod) == null) {
          CRIssuedDeviceStateServiceGrpc.getUpdateMethod = getUpdateMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Update"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.UpdateRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState.getDefaultInstance()))
              .setSchemaDescriptor(new CRIssuedDeviceStateServiceMethodDescriptorSupplier("Update"))
              .build();
        }
      }
    }
    return getUpdateMethod;
  }

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

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

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

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

    /**
     */
    public void initiate(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.InitiateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getInitiateMethod(), responseObserver);
    }

    /**
     */
    public void retrieve(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.RetrieveRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRetrieveMethod(), responseObserver);
    }

    /**
     */
    public void update(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.UpdateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateMethod(), responseObserver);
    }

    @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
      return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
          .addMethod(
            getInitiateMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.InitiateRequest,
                com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState>(
                  this, METHODID_INITIATE)))
          .addMethod(
            getRetrieveMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.RetrieveRequest,
                com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState>(
                  this, METHODID_RETRIEVE)))
          .addMethod(
            getUpdateMethod(),
            io.grpc.stub.ServerCalls.asyncUnaryCall(
              new MethodHandlers<
                com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.UpdateRequest,
                com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState>(
                  this, METHODID_UPDATE)))
          .build();
    }
  }

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

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

    /**
     */
    public void initiate(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.InitiateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getInitiateMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void retrieve(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.RetrieveRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getRetrieveMethod(), getCallOptions()), request, responseObserver);
    }

    /**
     */
    public void update(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.UpdateRequest request,
        io.grpc.stub.StreamObserver responseObserver) {
      io.grpc.stub.ClientCalls.asyncUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request, responseObserver);
    }
  }

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

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

    /**
     */
    public com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState initiate(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.InitiateRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getInitiateMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState retrieve(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.RetrieveRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getRetrieveMethod(), getCallOptions(), request);
    }

    /**
     */
    public com.redhat.mercury.issueddevicetracking.v10.IssuedDeviceStateOuterClass.IssuedDeviceState update(com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.UpdateRequest request) {
      return io.grpc.stub.ClientCalls.blockingUnaryCall(
          getChannel(), getUpdateMethod(), getCallOptions(), request);
    }
  }

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

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

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture initiate(
        com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.InitiateRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getInitiateMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture retrieve(
        com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.RetrieveRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getRetrieveMethod(), getCallOptions()), request);
    }

    /**
     */
    public com.google.common.util.concurrent.ListenableFuture update(
        com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.UpdateRequest request) {
      return io.grpc.stub.ClientCalls.futureUnaryCall(
          getChannel().newCall(getUpdateMethod(), getCallOptions()), request);
    }
  }

  private static final int METHODID_INITIATE = 0;
  private static final int METHODID_RETRIEVE = 1;
  private static final int METHODID_UPDATE = 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 CRIssuedDeviceStateServiceImplBase serviceImpl;
    private final int methodId;

    MethodHandlers(CRIssuedDeviceStateServiceImplBase 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:
          serviceImpl.initiate((com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.InitiateRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_RETRIEVE:
          serviceImpl.retrieve((com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.RetrieveRequest) request,
              (io.grpc.stub.StreamObserver) responseObserver);
          break;
        case METHODID_UPDATE:
          serviceImpl.update((com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.UpdateRequest) 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 CRIssuedDeviceStateServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
    CRIssuedDeviceStateServiceBaseDescriptorSupplier() {}

    @java.lang.Override
    public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
      return com.redhat.mercury.issueddevicetracking.v10.api.crissueddevicestateservice.CrIssuedDeviceStateService.getDescriptor();
    }

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

  private static final class CRIssuedDeviceStateServiceFileDescriptorSupplier
      extends CRIssuedDeviceStateServiceBaseDescriptorSupplier {
    CRIssuedDeviceStateServiceFileDescriptorSupplier() {}
  }

  private static final class CRIssuedDeviceStateServiceMethodDescriptorSupplier
      extends CRIssuedDeviceStateServiceBaseDescriptorSupplier
      implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
    private final String methodName;

    CRIssuedDeviceStateServiceMethodDescriptorSupplier(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 (CRIssuedDeviceStateServiceGrpc.class) {
        result = serviceDescriptor;
        if (result == null) {
          serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
              .setSchemaDescriptor(new CRIssuedDeviceStateServiceFileDescriptorSupplier())
              .addMethod(getInitiateMethod())
              .addMethod(getRetrieveMethod())
              .addMethod(getUpdateMethod())
              .build();
        }
      }
    }
    return result;
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy