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.
io.stigg.sidecar.proto.v1.SidecarServiceGrpc Maven / Gradle / Ivy
package io.stigg.sidecar.proto.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/** */
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.59.1)",
comments = "Source: stigg/sidecar/v1/sidecar.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class SidecarServiceGrpc {
private SidecarServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "stigg.sidecar.v1.SidecarService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetEntitlementsRequest,
io.stigg.sidecar.proto.v1.GetEntitlementsResponse>
getGetEntitlementsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetEntitlements",
requestType = io.stigg.sidecar.proto.v1.GetEntitlementsRequest.class,
responseType = io.stigg.sidecar.proto.v1.GetEntitlementsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetEntitlementsRequest,
io.stigg.sidecar.proto.v1.GetEntitlementsResponse>
getGetEntitlementsMethod() {
io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetEntitlementsRequest,
io.stigg.sidecar.proto.v1.GetEntitlementsResponse>
getGetEntitlementsMethod;
if ((getGetEntitlementsMethod = SidecarServiceGrpc.getGetEntitlementsMethod) == null) {
synchronized (SidecarServiceGrpc.class) {
if ((getGetEntitlementsMethod = SidecarServiceGrpc.getGetEntitlementsMethod) == null) {
SidecarServiceGrpc.getGetEntitlementsMethod =
getGetEntitlementsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetEntitlements"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.GetEntitlementsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.GetEntitlementsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new SidecarServiceMethodDescriptorSupplier("GetEntitlements"))
.build();
}
}
}
return getGetEntitlementsMethod;
}
private static volatile io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest,
io.stigg.sidecar.proto.v1.GetBooleanEntitlementResponse>
getGetBooleanEntitlementMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetBooleanEntitlement",
requestType = io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest.class,
responseType = io.stigg.sidecar.proto.v1.GetBooleanEntitlementResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest,
io.stigg.sidecar.proto.v1.GetBooleanEntitlementResponse>
getGetBooleanEntitlementMethod() {
io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest,
io.stigg.sidecar.proto.v1.GetBooleanEntitlementResponse>
getGetBooleanEntitlementMethod;
if ((getGetBooleanEntitlementMethod = SidecarServiceGrpc.getGetBooleanEntitlementMethod)
== null) {
synchronized (SidecarServiceGrpc.class) {
if ((getGetBooleanEntitlementMethod = SidecarServiceGrpc.getGetBooleanEntitlementMethod)
== null) {
SidecarServiceGrpc.getGetBooleanEntitlementMethod =
getGetBooleanEntitlementMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "GetBooleanEntitlement"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.GetBooleanEntitlementResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new SidecarServiceMethodDescriptorSupplier("GetBooleanEntitlement"))
.build();
}
}
}
return getGetBooleanEntitlementMethod;
}
private static volatile io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest,
io.stigg.sidecar.proto.v1.GetNumericEntitlementResponse>
getGetNumericEntitlementMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetNumericEntitlement",
requestType = io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest.class,
responseType = io.stigg.sidecar.proto.v1.GetNumericEntitlementResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest,
io.stigg.sidecar.proto.v1.GetNumericEntitlementResponse>
getGetNumericEntitlementMethod() {
io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest,
io.stigg.sidecar.proto.v1.GetNumericEntitlementResponse>
getGetNumericEntitlementMethod;
if ((getGetNumericEntitlementMethod = SidecarServiceGrpc.getGetNumericEntitlementMethod)
== null) {
synchronized (SidecarServiceGrpc.class) {
if ((getGetNumericEntitlementMethod = SidecarServiceGrpc.getGetNumericEntitlementMethod)
== null) {
SidecarServiceGrpc.getGetNumericEntitlementMethod =
getGetNumericEntitlementMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "GetNumericEntitlement"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.GetNumericEntitlementResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new SidecarServiceMethodDescriptorSupplier("GetNumericEntitlement"))
.build();
}
}
}
return getGetNumericEntitlementMethod;
}
private static volatile io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest,
io.stigg.sidecar.proto.v1.GetMeteredEntitlementResponse>
getGetMeteredEntitlementMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetMeteredEntitlement",
requestType = io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest.class,
responseType = io.stigg.sidecar.proto.v1.GetMeteredEntitlementResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest,
io.stigg.sidecar.proto.v1.GetMeteredEntitlementResponse>
getGetMeteredEntitlementMethod() {
io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest,
io.stigg.sidecar.proto.v1.GetMeteredEntitlementResponse>
getGetMeteredEntitlementMethod;
if ((getGetMeteredEntitlementMethod = SidecarServiceGrpc.getGetMeteredEntitlementMethod)
== null) {
synchronized (SidecarServiceGrpc.class) {
if ((getGetMeteredEntitlementMethod = SidecarServiceGrpc.getGetMeteredEntitlementMethod)
== null) {
SidecarServiceGrpc.getGetMeteredEntitlementMethod =
getGetMeteredEntitlementMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(
generateFullMethodName(SERVICE_NAME, "GetMeteredEntitlement"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.GetMeteredEntitlementResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new SidecarServiceMethodDescriptorSupplier("GetMeteredEntitlement"))
.build();
}
}
}
return getGetMeteredEntitlementMethod;
}
private static volatile io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReportUsageRequest,
io.stigg.sidecar.proto.v1.ReportUsageResponse>
getReportUsageMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ReportUsage",
requestType = io.stigg.sidecar.proto.v1.ReportUsageRequest.class,
responseType = io.stigg.sidecar.proto.v1.ReportUsageResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReportUsageRequest,
io.stigg.sidecar.proto.v1.ReportUsageResponse>
getReportUsageMethod() {
io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReportUsageRequest,
io.stigg.sidecar.proto.v1.ReportUsageResponse>
getReportUsageMethod;
if ((getReportUsageMethod = SidecarServiceGrpc.getReportUsageMethod) == null) {
synchronized (SidecarServiceGrpc.class) {
if ((getReportUsageMethod = SidecarServiceGrpc.getReportUsageMethod) == null) {
SidecarServiceGrpc.getReportUsageMethod =
getReportUsageMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportUsage"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.ReportUsageRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.ReportUsageResponse.getDefaultInstance()))
.setSchemaDescriptor(
new SidecarServiceMethodDescriptorSupplier("ReportUsage"))
.build();
}
}
}
return getReportUsageMethod;
}
private static volatile io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReportEventsRequest, com.google.protobuf.Empty>
getReportEventsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ReportEvents",
requestType = io.stigg.sidecar.proto.v1.ReportEventsRequest.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReportEventsRequest, com.google.protobuf.Empty>
getReportEventsMethod() {
io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReportEventsRequest, com.google.protobuf.Empty>
getReportEventsMethod;
if ((getReportEventsMethod = SidecarServiceGrpc.getReportEventsMethod) == null) {
synchronized (SidecarServiceGrpc.class) {
if ((getReportEventsMethod = SidecarServiceGrpc.getReportEventsMethod) == null) {
SidecarServiceGrpc.getReportEventsMethod =
getReportEventsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportEvents"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.ReportEventsRequest.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(
new SidecarServiceMethodDescriptorSupplier("ReportEvents"))
.build();
}
}
}
return getReportEventsMethod;
}
private static volatile io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest,
io.stigg.sidecar.proto.v1.ReloadEntitlementsResponse>
getReloadEntitlementsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ReloadEntitlements",
requestType = io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest.class,
responseType = io.stigg.sidecar.proto.v1.ReloadEntitlementsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest,
io.stigg.sidecar.proto.v1.ReloadEntitlementsResponse>
getReloadEntitlementsMethod() {
io.grpc.MethodDescriptor<
io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest,
io.stigg.sidecar.proto.v1.ReloadEntitlementsResponse>
getReloadEntitlementsMethod;
if ((getReloadEntitlementsMethod = SidecarServiceGrpc.getReloadEntitlementsMethod) == null) {
synchronized (SidecarServiceGrpc.class) {
if ((getReloadEntitlementsMethod = SidecarServiceGrpc.getReloadEntitlementsMethod)
== null) {
SidecarServiceGrpc.getReloadEntitlementsMethod =
getReloadEntitlementsMethod =
io.grpc.MethodDescriptor
.
newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReloadEntitlements"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest
.getDefaultInstance()))
.setResponseMarshaller(
io.grpc.protobuf.ProtoUtils.marshaller(
io.stigg.sidecar.proto.v1.ReloadEntitlementsResponse
.getDefaultInstance()))
.setSchemaDescriptor(
new SidecarServiceMethodDescriptorSupplier("ReloadEntitlements"))
.build();
}
}
}
return getReloadEntitlementsMethod;
}
/** Creates a new async stub that supports all call types for the service */
public static SidecarServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SidecarServiceStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SidecarServiceStub(channel, callOptions);
}
};
return SidecarServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static SidecarServiceBlockingStub newBlockingStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SidecarServiceBlockingStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SidecarServiceBlockingStub(channel, callOptions);
}
};
return SidecarServiceBlockingStub.newStub(factory, channel);
}
/** Creates a new ListenableFuture-style stub that supports unary calls on the service */
public static SidecarServiceFutureStub newFutureStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public SidecarServiceFutureStub newStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SidecarServiceFutureStub(channel, callOptions);
}
};
return SidecarServiceFutureStub.newStub(factory, channel);
}
/** */
public interface AsyncService {
/** */
default void getEntitlements(
io.stigg.sidecar.proto.v1.GetEntitlementsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetEntitlementsMethod(), responseObserver);
}
/** */
default void getBooleanEntitlement(
io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetBooleanEntitlementMethod(), responseObserver);
}
/** */
default void getNumericEntitlement(
io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetNumericEntitlementMethod(), responseObserver);
}
/** */
default void getMeteredEntitlement(
io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getGetMeteredEntitlementMethod(), responseObserver);
}
/** */
default void reportUsage(
io.stigg.sidecar.proto.v1.ReportUsageRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getReportUsageMethod(), responseObserver);
}
/** */
default void reportEvents(
io.stigg.sidecar.proto.v1.ReportEventsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getReportEventsMethod(), responseObserver);
}
/** */
default void reloadEntitlements(
io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(
getReloadEntitlementsMethod(), responseObserver);
}
}
/** Base class for the server implementation of the service SidecarService. */
public abstract static class SidecarServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override
public final io.grpc.ServerServiceDefinition bindService() {
return SidecarServiceGrpc.bindService(this);
}
}
/** A stub to allow clients to do asynchronous rpc calls to service SidecarService. */
public static final class SidecarServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private SidecarServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SidecarServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SidecarServiceStub(channel, callOptions);
}
/** */
public void getEntitlements(
io.stigg.sidecar.proto.v1.GetEntitlementsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetEntitlementsMethod(), getCallOptions()),
request,
responseObserver);
}
/** */
public void getBooleanEntitlement(
io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetBooleanEntitlementMethod(), getCallOptions()),
request,
responseObserver);
}
/** */
public void getNumericEntitlement(
io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetNumericEntitlementMethod(), getCallOptions()),
request,
responseObserver);
}
/** */
public void getMeteredEntitlement(
io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetMeteredEntitlementMethod(), getCallOptions()),
request,
responseObserver);
}
/** */
public void reportUsage(
io.stigg.sidecar.proto.v1.ReportUsageRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getReportUsageMethod(), getCallOptions()),
request,
responseObserver);
}
/** */
public void reportEvents(
io.stigg.sidecar.proto.v1.ReportEventsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getReportEventsMethod(), getCallOptions()),
request,
responseObserver);
}
/** */
public void reloadEntitlements(
io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest request,
io.grpc.stub.StreamObserver
responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getReloadEntitlementsMethod(), getCallOptions()),
request,
responseObserver);
}
}
/** A stub to allow clients to do synchronous rpc calls to service SidecarService. */
public static final class SidecarServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private SidecarServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SidecarServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SidecarServiceBlockingStub(channel, callOptions);
}
/** */
public io.stigg.sidecar.proto.v1.GetEntitlementsResponse getEntitlements(
io.stigg.sidecar.proto.v1.GetEntitlementsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetEntitlementsMethod(), getCallOptions(), request);
}
/** */
public io.stigg.sidecar.proto.v1.GetBooleanEntitlementResponse getBooleanEntitlement(
io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetBooleanEntitlementMethod(), getCallOptions(), request);
}
/** */
public io.stigg.sidecar.proto.v1.GetNumericEntitlementResponse getNumericEntitlement(
io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetNumericEntitlementMethod(), getCallOptions(), request);
}
/** */
public io.stigg.sidecar.proto.v1.GetMeteredEntitlementResponse getMeteredEntitlement(
io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetMeteredEntitlementMethod(), getCallOptions(), request);
}
/** */
public io.stigg.sidecar.proto.v1.ReportUsageResponse reportUsage(
io.stigg.sidecar.proto.v1.ReportUsageRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getReportUsageMethod(), getCallOptions(), request);
}
/** */
public com.google.protobuf.Empty reportEvents(
io.stigg.sidecar.proto.v1.ReportEventsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getReportEventsMethod(), getCallOptions(), request);
}
/** */
public io.stigg.sidecar.proto.v1.ReloadEntitlementsResponse reloadEntitlements(
io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getReloadEntitlementsMethod(), getCallOptions(), request);
}
}
/** A stub to allow clients to do ListenableFuture-style rpc calls to service SidecarService. */
public static final class SidecarServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private SidecarServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected SidecarServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new SidecarServiceFutureStub(channel, callOptions);
}
/** */
public com.google.common.util.concurrent.ListenableFuture<
io.stigg.sidecar.proto.v1.GetEntitlementsResponse>
getEntitlements(io.stigg.sidecar.proto.v1.GetEntitlementsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetEntitlementsMethod(), getCallOptions()), request);
}
/** */
public com.google.common.util.concurrent.ListenableFuture<
io.stigg.sidecar.proto.v1.GetBooleanEntitlementResponse>
getBooleanEntitlement(io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetBooleanEntitlementMethod(), getCallOptions()), request);
}
/** */
public com.google.common.util.concurrent.ListenableFuture<
io.stigg.sidecar.proto.v1.GetNumericEntitlementResponse>
getNumericEntitlement(io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetNumericEntitlementMethod(), getCallOptions()), request);
}
/** */
public com.google.common.util.concurrent.ListenableFuture<
io.stigg.sidecar.proto.v1.GetMeteredEntitlementResponse>
getMeteredEntitlement(io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetMeteredEntitlementMethod(), getCallOptions()), request);
}
/** */
public com.google.common.util.concurrent.ListenableFuture<
io.stigg.sidecar.proto.v1.ReportUsageResponse>
reportUsage(io.stigg.sidecar.proto.v1.ReportUsageRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getReportUsageMethod(), getCallOptions()), request);
}
/** */
public com.google.common.util.concurrent.ListenableFuture
reportEvents(io.stigg.sidecar.proto.v1.ReportEventsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getReportEventsMethod(), getCallOptions()), request);
}
/** */
public com.google.common.util.concurrent.ListenableFuture<
io.stigg.sidecar.proto.v1.ReloadEntitlementsResponse>
reloadEntitlements(io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getReloadEntitlementsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_ENTITLEMENTS = 0;
private static final int METHODID_GET_BOOLEAN_ENTITLEMENT = 1;
private static final int METHODID_GET_NUMERIC_ENTITLEMENT = 2;
private static final int METHODID_GET_METERED_ENTITLEMENT = 3;
private static final int METHODID_REPORT_USAGE = 4;
private static final int METHODID_REPORT_EVENTS = 5;
private static final int METHODID_RELOAD_ENTITLEMENTS = 6;
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 AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService 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_ENTITLEMENTS:
serviceImpl.getEntitlements(
(io.stigg.sidecar.proto.v1.GetEntitlementsRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_BOOLEAN_ENTITLEMENT:
serviceImpl.getBooleanEntitlement(
(io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_NUMERIC_ENTITLEMENT:
serviceImpl.getNumericEntitlement(
(io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_GET_METERED_ENTITLEMENT:
serviceImpl.getMeteredEntitlement(
(io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_REPORT_USAGE:
serviceImpl.reportUsage(
(io.stigg.sidecar.proto.v1.ReportUsageRequest) request,
(io.grpc.stub.StreamObserver)
responseObserver);
break;
case METHODID_REPORT_EVENTS:
serviceImpl.reportEvents(
(io.stigg.sidecar.proto.v1.ReportEventsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_RELOAD_ENTITLEMENTS:
serviceImpl.reloadEntitlements(
(io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest) 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();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetEntitlementsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.stigg.sidecar.proto.v1.GetEntitlementsRequest,
io.stigg.sidecar.proto.v1.GetEntitlementsResponse>(
service, METHODID_GET_ENTITLEMENTS)))
.addMethod(
getGetBooleanEntitlementMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.stigg.sidecar.proto.v1.GetBooleanEntitlementRequest,
io.stigg.sidecar.proto.v1.GetBooleanEntitlementResponse>(
service, METHODID_GET_BOOLEAN_ENTITLEMENT)))
.addMethod(
getGetNumericEntitlementMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.stigg.sidecar.proto.v1.GetNumericEntitlementRequest,
io.stigg.sidecar.proto.v1.GetNumericEntitlementResponse>(
service, METHODID_GET_NUMERIC_ENTITLEMENT)))
.addMethod(
getGetMeteredEntitlementMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.stigg.sidecar.proto.v1.GetMeteredEntitlementRequest,
io.stigg.sidecar.proto.v1.GetMeteredEntitlementResponse>(
service, METHODID_GET_METERED_ENTITLEMENT)))
.addMethod(
getReportUsageMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.stigg.sidecar.proto.v1.ReportUsageRequest,
io.stigg.sidecar.proto.v1.ReportUsageResponse>(service, METHODID_REPORT_USAGE)))
.addMethod(
getReportEventsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.stigg.sidecar.proto.v1.ReportEventsRequest, com.google.protobuf.Empty>(
service, METHODID_REPORT_EVENTS)))
.addMethod(
getReloadEntitlementsMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.stigg.sidecar.proto.v1.ReloadEntitlementsRequest,
io.stigg.sidecar.proto.v1.ReloadEntitlementsResponse>(
service, METHODID_RELOAD_ENTITLEMENTS)))
.build();
}
private abstract static class SidecarServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier,
io.grpc.protobuf.ProtoServiceDescriptorSupplier {
SidecarServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.stigg.sidecar.proto.v1.SidecarProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("SidecarService");
}
}
private static final class SidecarServiceFileDescriptorSupplier
extends SidecarServiceBaseDescriptorSupplier {
SidecarServiceFileDescriptorSupplier() {}
}
private static final class SidecarServiceMethodDescriptorSupplier
extends SidecarServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
SidecarServiceMethodDescriptorSupplier(java.lang.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 (SidecarServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor =
result =
io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new SidecarServiceFileDescriptorSupplier())
.addMethod(getGetEntitlementsMethod())
.addMethod(getGetBooleanEntitlementMethod())
.addMethod(getGetNumericEntitlementMethod())
.addMethod(getGetMeteredEntitlementMethod())
.addMethod(getReportUsageMethod())
.addMethod(getReportEventsMethod())
.addMethod(getReloadEntitlementsMethod())
.build();
}
}
}
return result;
}
}