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

cz.o2.proxima.proto.service.RetrieveServiceGrpc Maven / Gradle / Ivy

There is a newer version: 0.14.0
Show newest version
package cz.o2.proxima.proto.service;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 * 
 **
 * Service that serves for retrieving data from the system
 * (via stream or random access calls).
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.27.2)", comments = "Source: rpc.proto") public final class RetrieveServiceGrpc { private RetrieveServiceGrpc() {} public static final String SERVICE_NAME = "RetrieveService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getGetMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "get", requestType = cz.o2.proxima.proto.service.Rpc.GetRequest.class, responseType = cz.o2.proxima.proto.service.Rpc.GetResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getGetMethod() { io.grpc.MethodDescriptor getGetMethod; if ((getGetMethod = RetrieveServiceGrpc.getGetMethod) == null) { synchronized (RetrieveServiceGrpc.class) { if ((getGetMethod = RetrieveServiceGrpc.getGetMethod) == null) { RetrieveServiceGrpc.getGetMethod = getGetMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "get")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.GetRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.GetResponse.getDefaultInstance())) .setSchemaDescriptor(new RetrieveServiceMethodDescriptorSupplier("get")) .build(); } } } return getGetMethod; } private static volatile io.grpc.MethodDescriptor getListAttributesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "listAttributes", requestType = cz.o2.proxima.proto.service.Rpc.ListRequest.class, responseType = cz.o2.proxima.proto.service.Rpc.ListResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getListAttributesMethod() { io.grpc.MethodDescriptor getListAttributesMethod; if ((getListAttributesMethod = RetrieveServiceGrpc.getListAttributesMethod) == null) { synchronized (RetrieveServiceGrpc.class) { if ((getListAttributesMethod = RetrieveServiceGrpc.getListAttributesMethod) == null) { RetrieveServiceGrpc.getListAttributesMethod = getListAttributesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "listAttributes")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.ListRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( cz.o2.proxima.proto.service.Rpc.ListResponse.getDefaultInstance())) .setSchemaDescriptor(new RetrieveServiceMethodDescriptorSupplier("listAttributes")) .build(); } } } return getListAttributesMethod; } /** * Creates a new async stub that supports all call types for the service */ public static RetrieveServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public RetrieveServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RetrieveServiceStub(channel, callOptions); } }; return RetrieveServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static RetrieveServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public RetrieveServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RetrieveServiceBlockingStub(channel, callOptions); } }; return RetrieveServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static RetrieveServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public RetrieveServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RetrieveServiceFutureStub(channel, callOptions); } }; return RetrieveServiceFutureStub.newStub(factory, channel); } /** *
   **
   * Service that serves for retrieving data from the system
   * (via stream or random access calls).
   * 
*/ public static abstract class RetrieveServiceImplBase implements io.grpc.BindableService { /** *
     ** Synchronous request to fetch a value of a specified attribute. 
     * 
*/ public void get(cz.o2.proxima.proto.service.Rpc.GetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getGetMethod(), responseObserver); } /** *
     ** Synchronous request to list attributes of a specified entity by prefix. 
     * 
*/ public void listAttributes(cz.o2.proxima.proto.service.Rpc.ListRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getListAttributesMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getGetMethod(), asyncUnaryCall( new MethodHandlers< cz.o2.proxima.proto.service.Rpc.GetRequest, cz.o2.proxima.proto.service.Rpc.GetResponse>( this, METHODID_GET))) .addMethod( getListAttributesMethod(), asyncUnaryCall( new MethodHandlers< cz.o2.proxima.proto.service.Rpc.ListRequest, cz.o2.proxima.proto.service.Rpc.ListResponse>( this, METHODID_LIST_ATTRIBUTES))) .build(); } } /** *
   **
   * Service that serves for retrieving data from the system
   * (via stream or random access calls).
   * 
*/ public static final class RetrieveServiceStub extends io.grpc.stub.AbstractAsyncStub { private RetrieveServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected RetrieveServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RetrieveServiceStub(channel, callOptions); } /** *
     ** Synchronous request to fetch a value of a specified attribute. 
     * 
*/ public void get(cz.o2.proxima.proto.service.Rpc.GetRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request, responseObserver); } /** *
     ** Synchronous request to list attributes of a specified entity by prefix. 
     * 
*/ public void listAttributes(cz.o2.proxima.proto.service.Rpc.ListRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getListAttributesMethod(), getCallOptions()), request, responseObserver); } } /** *
   **
   * Service that serves for retrieving data from the system
   * (via stream or random access calls).
   * 
*/ public static final class RetrieveServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private RetrieveServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected RetrieveServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RetrieveServiceBlockingStub(channel, callOptions); } /** *
     ** Synchronous request to fetch a value of a specified attribute. 
     * 
*/ public cz.o2.proxima.proto.service.Rpc.GetResponse get(cz.o2.proxima.proto.service.Rpc.GetRequest request) { return blockingUnaryCall( getChannel(), getGetMethod(), getCallOptions(), request); } /** *
     ** Synchronous request to list attributes of a specified entity by prefix. 
     * 
*/ public cz.o2.proxima.proto.service.Rpc.ListResponse listAttributes(cz.o2.proxima.proto.service.Rpc.ListRequest request) { return blockingUnaryCall( getChannel(), getListAttributesMethod(), getCallOptions(), request); } } /** *
   **
   * Service that serves for retrieving data from the system
   * (via stream or random access calls).
   * 
*/ public static final class RetrieveServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private RetrieveServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected RetrieveServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RetrieveServiceFutureStub(channel, callOptions); } /** *
     ** Synchronous request to fetch a value of a specified attribute. 
     * 
*/ public com.google.common.util.concurrent.ListenableFuture get( cz.o2.proxima.proto.service.Rpc.GetRequest request) { return futureUnaryCall( getChannel().newCall(getGetMethod(), getCallOptions()), request); } /** *
     ** Synchronous request to list attributes of a specified entity by prefix. 
     * 
*/ public com.google.common.util.concurrent.ListenableFuture listAttributes( cz.o2.proxima.proto.service.Rpc.ListRequest request) { return futureUnaryCall( getChannel().newCall(getListAttributesMethod(), getCallOptions()), request); } } private static final int METHODID_GET = 0; private static final int METHODID_LIST_ATTRIBUTES = 1; 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 RetrieveServiceImplBase serviceImpl; private final int methodId; MethodHandlers(RetrieveServiceImplBase 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_GET: serviceImpl.get((cz.o2.proxima.proto.service.Rpc.GetRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_LIST_ATTRIBUTES: serviceImpl.listAttributes((cz.o2.proxima.proto.service.Rpc.ListRequest) 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 RetrieveServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { RetrieveServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return cz.o2.proxima.proto.service.Rpc.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("RetrieveService"); } } private static final class RetrieveServiceFileDescriptorSupplier extends RetrieveServiceBaseDescriptorSupplier { RetrieveServiceFileDescriptorSupplier() {} } private static final class RetrieveServiceMethodDescriptorSupplier extends RetrieveServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; RetrieveServiceMethodDescriptorSupplier(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 (RetrieveServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new RetrieveServiceFileDescriptorSupplier()) .addMethod(getGetMethod()) .addMethod(getListAttributesMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy