Please wait. This can take some minutes ...
Many resources are needed to download a project. Please understand that we have to compensate our server costs. Thank you in advance.
Project price only 1 $
You can buy this project and download/modify it how often you want.
logproto.QuerierGrpc Maven / Gradle / Ivy
package logproto;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.35.0)",
comments = "Source: logproto.proto")
public final class QuerierGrpc {
private QuerierGrpc() {}
public static final String SERVICE_NAME = "logproto.Querier";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getQueryMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Query",
requestType = logproto.Logproto.QueryRequest.class,
responseType = logproto.Logproto.QueryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getQueryMethod() {
io.grpc.MethodDescriptor getQueryMethod;
if ((getQueryMethod = QuerierGrpc.getQueryMethod) == null) {
synchronized (QuerierGrpc.class) {
if ((getQueryMethod = QuerierGrpc.getQueryMethod) == null) {
QuerierGrpc.getQueryMethod = getQueryMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Query"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.QueryRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.QueryResponse.getDefaultInstance()))
.setSchemaDescriptor(new QuerierMethodDescriptorSupplier("Query"))
.build();
}
}
}
return getQueryMethod;
}
private static volatile io.grpc.MethodDescriptor getQuerySampleMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "QuerySample",
requestType = logproto.Logproto.SampleQueryRequest.class,
responseType = logproto.Logproto.SampleQueryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getQuerySampleMethod() {
io.grpc.MethodDescriptor getQuerySampleMethod;
if ((getQuerySampleMethod = QuerierGrpc.getQuerySampleMethod) == null) {
synchronized (QuerierGrpc.class) {
if ((getQuerySampleMethod = QuerierGrpc.getQuerySampleMethod) == null) {
QuerierGrpc.getQuerySampleMethod = getQuerySampleMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "QuerySample"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.SampleQueryRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.SampleQueryResponse.getDefaultInstance()))
.setSchemaDescriptor(new QuerierMethodDescriptorSupplier("QuerySample"))
.build();
}
}
}
return getQuerySampleMethod;
}
private static volatile io.grpc.MethodDescriptor getLabelMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Label",
requestType = logproto.Logproto.LabelRequest.class,
responseType = logproto.Logproto.LabelResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getLabelMethod() {
io.grpc.MethodDescriptor getLabelMethod;
if ((getLabelMethod = QuerierGrpc.getLabelMethod) == null) {
synchronized (QuerierGrpc.class) {
if ((getLabelMethod = QuerierGrpc.getLabelMethod) == null) {
QuerierGrpc.getLabelMethod = getLabelMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Label"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.LabelRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.LabelResponse.getDefaultInstance()))
.setSchemaDescriptor(new QuerierMethodDescriptorSupplier("Label"))
.build();
}
}
}
return getLabelMethod;
}
private static volatile io.grpc.MethodDescriptor getTailMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Tail",
requestType = logproto.Logproto.TailRequest.class,
responseType = logproto.Logproto.TailResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
public static io.grpc.MethodDescriptor getTailMethod() {
io.grpc.MethodDescriptor getTailMethod;
if ((getTailMethod = QuerierGrpc.getTailMethod) == null) {
synchronized (QuerierGrpc.class) {
if ((getTailMethod = QuerierGrpc.getTailMethod) == null) {
QuerierGrpc.getTailMethod = getTailMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.SERVER_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Tail"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.TailRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.TailResponse.getDefaultInstance()))
.setSchemaDescriptor(new QuerierMethodDescriptorSupplier("Tail"))
.build();
}
}
}
return getTailMethod;
}
private static volatile io.grpc.MethodDescriptor getSeriesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Series",
requestType = logproto.Logproto.SeriesRequest.class,
responseType = logproto.Logproto.SeriesResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getSeriesMethod() {
io.grpc.MethodDescriptor getSeriesMethod;
if ((getSeriesMethod = QuerierGrpc.getSeriesMethod) == null) {
synchronized (QuerierGrpc.class) {
if ((getSeriesMethod = QuerierGrpc.getSeriesMethod) == null) {
QuerierGrpc.getSeriesMethod = getSeriesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Series"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.SeriesRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.SeriesResponse.getDefaultInstance()))
.setSchemaDescriptor(new QuerierMethodDescriptorSupplier("Series"))
.build();
}
}
}
return getSeriesMethod;
}
private static volatile io.grpc.MethodDescriptor getTailersCountMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "TailersCount",
requestType = logproto.Logproto.TailersCountRequest.class,
responseType = logproto.Logproto.TailersCountResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getTailersCountMethod() {
io.grpc.MethodDescriptor getTailersCountMethod;
if ((getTailersCountMethod = QuerierGrpc.getTailersCountMethod) == null) {
synchronized (QuerierGrpc.class) {
if ((getTailersCountMethod = QuerierGrpc.getTailersCountMethod) == null) {
QuerierGrpc.getTailersCountMethod = getTailersCountMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "TailersCount"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.TailersCountRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
logproto.Logproto.TailersCountResponse.getDefaultInstance()))
.setSchemaDescriptor(new QuerierMethodDescriptorSupplier("TailersCount"))
.build();
}
}
}
return getTailersCountMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static QuerierStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QuerierStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuerierStub(channel, callOptions);
}
};
return QuerierStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static QuerierBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QuerierBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuerierBlockingStub(channel, callOptions);
}
};
return QuerierBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static QuerierFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public QuerierFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuerierFutureStub(channel, callOptions);
}
};
return QuerierFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class QuerierImplBase implements io.grpc.BindableService {
/**
*/
public void query(logproto.Logproto.QueryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryMethod(), responseObserver);
}
/**
*/
public void querySample(logproto.Logproto.SampleQueryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQuerySampleMethod(), responseObserver);
}
/**
*/
public void label(logproto.Logproto.LabelRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLabelMethod(), responseObserver);
}
/**
*/
public void tail(logproto.Logproto.TailRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTailMethod(), responseObserver);
}
/**
*/
public void series(logproto.Logproto.SeriesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSeriesMethod(), responseObserver);
}
/**
*/
public void tailersCount(logproto.Logproto.TailersCountRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTailersCountMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getQueryMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
logproto.Logproto.QueryRequest,
logproto.Logproto.QueryResponse>(
this, METHODID_QUERY)))
.addMethod(
getQuerySampleMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
logproto.Logproto.SampleQueryRequest,
logproto.Logproto.SampleQueryResponse>(
this, METHODID_QUERY_SAMPLE)))
.addMethod(
getLabelMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
logproto.Logproto.LabelRequest,
logproto.Logproto.LabelResponse>(
this, METHODID_LABEL)))
.addMethod(
getTailMethod(),
io.grpc.stub.ServerCalls.asyncServerStreamingCall(
new MethodHandlers<
logproto.Logproto.TailRequest,
logproto.Logproto.TailResponse>(
this, METHODID_TAIL)))
.addMethod(
getSeriesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
logproto.Logproto.SeriesRequest,
logproto.Logproto.SeriesResponse>(
this, METHODID_SERIES)))
.addMethod(
getTailersCountMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
logproto.Logproto.TailersCountRequest,
logproto.Logproto.TailersCountResponse>(
this, METHODID_TAILERS_COUNT)))
.build();
}
}
/**
*/
public static final class QuerierStub extends io.grpc.stub.AbstractAsyncStub {
private QuerierStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QuerierStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuerierStub(channel, callOptions);
}
/**
*/
public void query(logproto.Logproto.QueryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getQueryMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void querySample(logproto.Logproto.SampleQueryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getQuerySampleMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void label(logproto.Logproto.LabelRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getLabelMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void tail(logproto.Logproto.TailRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncServerStreamingCall(
getChannel().newCall(getTailMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void series(logproto.Logproto.SeriesRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getSeriesMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void tailersCount(logproto.Logproto.TailersCountRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getTailersCountMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class QuerierBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private QuerierBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QuerierBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuerierBlockingStub(channel, callOptions);
}
/**
*/
public java.util.Iterator query(
logproto.Logproto.QueryRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getQueryMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator querySample(
logproto.Logproto.SampleQueryRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getQuerySampleMethod(), getCallOptions(), request);
}
/**
*/
public logproto.Logproto.LabelResponse label(logproto.Logproto.LabelRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getLabelMethod(), getCallOptions(), request);
}
/**
*/
public java.util.Iterator tail(
logproto.Logproto.TailRequest request) {
return io.grpc.stub.ClientCalls.blockingServerStreamingCall(
getChannel(), getTailMethod(), getCallOptions(), request);
}
/**
*/
public logproto.Logproto.SeriesResponse series(logproto.Logproto.SeriesRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getSeriesMethod(), getCallOptions(), request);
}
/**
*/
public logproto.Logproto.TailersCountResponse tailersCount(logproto.Logproto.TailersCountRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getTailersCountMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class QuerierFutureStub extends io.grpc.stub.AbstractFutureStub {
private QuerierFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected QuerierFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new QuerierFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture label(
logproto.Logproto.LabelRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getLabelMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture series(
logproto.Logproto.SeriesRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getSeriesMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture tailersCount(
logproto.Logproto.TailersCountRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getTailersCountMethod(), getCallOptions()), request);
}
}
private static final int METHODID_QUERY = 0;
private static final int METHODID_QUERY_SAMPLE = 1;
private static final int METHODID_LABEL = 2;
private static final int METHODID_TAIL = 3;
private static final int METHODID_SERIES = 4;
private static final int METHODID_TAILERS_COUNT = 5;
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 QuerierImplBase serviceImpl;
private final int methodId;
MethodHandlers(QuerierImplBase 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_QUERY:
serviceImpl.query((logproto.Logproto.QueryRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_QUERY_SAMPLE:
serviceImpl.querySample((logproto.Logproto.SampleQueryRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_LABEL:
serviceImpl.label((logproto.Logproto.LabelRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TAIL:
serviceImpl.tail((logproto.Logproto.TailRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_SERIES:
serviceImpl.series((logproto.Logproto.SeriesRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_TAILERS_COUNT:
serviceImpl.tailersCount((logproto.Logproto.TailersCountRequest) 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 QuerierBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
QuerierBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return logproto.Logproto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Querier");
}
}
private static final class QuerierFileDescriptorSupplier
extends QuerierBaseDescriptorSupplier {
QuerierFileDescriptorSupplier() {}
}
private static final class QuerierMethodDescriptorSupplier
extends QuerierBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
QuerierMethodDescriptorSupplier(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 (QuerierGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new QuerierFileDescriptorSupplier())
.addMethod(getQueryMethod())
.addMethod(getQuerySampleMethod())
.addMethod(getLabelMethod())
.addMethod(getTailMethod())
.addMethod(getSeriesMethod())
.addMethod(getTailersCountMethod())
.build();
}
}
}
return result;
}
}