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.
* The resource_names field in DiscoveryRequest specifies a route configuration.
* This allows an Envoy configuration with multiple HTTP listeners (and
* associated HTTP connection manager filters) to use different route
* configurations. Each listener will bind its HTTP connection manager filter to
* a route table via this identifier.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.48.1)",
comments = "Source: envoy/service/route/v3/rds.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class RouteDiscoveryServiceGrpc {
private RouteDiscoveryServiceGrpc() {}
public static final String SERVICE_NAME = "envoy.service.route.v3.RouteDiscoveryService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getStreamRoutesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StreamRoutes",
requestType = io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.class,
responseType = io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getStreamRoutesMethod() {
io.grpc.MethodDescriptor getStreamRoutesMethod;
if ((getStreamRoutesMethod = RouteDiscoveryServiceGrpc.getStreamRoutesMethod) == null) {
synchronized (RouteDiscoveryServiceGrpc.class) {
if ((getStreamRoutesMethod = RouteDiscoveryServiceGrpc.getStreamRoutesMethod) == null) {
RouteDiscoveryServiceGrpc.getStreamRoutesMethod = getStreamRoutesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamRoutes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.getDefaultInstance()))
.setSchemaDescriptor(new RouteDiscoveryServiceMethodDescriptorSupplier("StreamRoutes"))
.build();
}
}
}
return getStreamRoutesMethod;
}
private static volatile io.grpc.MethodDescriptor getDeltaRoutesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeltaRoutes",
requestType = io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest.class,
responseType = io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getDeltaRoutesMethod() {
io.grpc.MethodDescriptor getDeltaRoutesMethod;
if ((getDeltaRoutesMethod = RouteDiscoveryServiceGrpc.getDeltaRoutesMethod) == null) {
synchronized (RouteDiscoveryServiceGrpc.class) {
if ((getDeltaRoutesMethod = RouteDiscoveryServiceGrpc.getDeltaRoutesMethod) == null) {
RouteDiscoveryServiceGrpc.getDeltaRoutesMethod = getDeltaRoutesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeltaRoutes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse.getDefaultInstance()))
.setSchemaDescriptor(new RouteDiscoveryServiceMethodDescriptorSupplier("DeltaRoutes"))
.build();
}
}
}
return getDeltaRoutesMethod;
}
private static volatile io.grpc.MethodDescriptor getFetchRoutesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "FetchRoutes",
requestType = io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.class,
responseType = io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getFetchRoutesMethod() {
io.grpc.MethodDescriptor getFetchRoutesMethod;
if ((getFetchRoutesMethod = RouteDiscoveryServiceGrpc.getFetchRoutesMethod) == null) {
synchronized (RouteDiscoveryServiceGrpc.class) {
if ((getFetchRoutesMethod = RouteDiscoveryServiceGrpc.getFetchRoutesMethod) == null) {
RouteDiscoveryServiceGrpc.getFetchRoutesMethod = getFetchRoutesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchRoutes"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse.getDefaultInstance()))
.setSchemaDescriptor(new RouteDiscoveryServiceMethodDescriptorSupplier("FetchRoutes"))
.build();
}
}
}
return getFetchRoutesMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static RouteDiscoveryServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RouteDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceStub(channel, callOptions);
}
};
return RouteDiscoveryServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static RouteDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RouteDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return RouteDiscoveryServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static RouteDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public RouteDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceFutureStub(channel, callOptions);
}
};
return RouteDiscoveryServiceFutureStub.newStub(factory, channel);
}
/**
*
* The resource_names field in DiscoveryRequest specifies a route configuration.
* This allows an Envoy configuration with multiple HTTP listeners (and
* associated HTTP connection manager filters) to use different route
* configurations. Each listener will bind its HTTP connection manager filter to
* a route table via this identifier.
*
*/
public static abstract class RouteDiscoveryServiceImplBase implements io.grpc.BindableService {
/**
*/
public io.grpc.stub.StreamObserver streamRoutes(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamRoutesMethod(), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver deltaRoutes(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getDeltaRoutesMethod(), responseObserver);
}
/**
*/
public void fetchRoutes(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchRoutesMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getStreamRoutesMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest,
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse>(
this, METHODID_STREAM_ROUTES)))
.addMethod(
getDeltaRoutesMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest,
io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse>(
this, METHODID_DELTA_ROUTES)))
.addMethod(
getFetchRoutesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest,
io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse>(
this, METHODID_FETCH_ROUTES)))
.build();
}
}
/**
*
* The resource_names field in DiscoveryRequest specifies a route configuration.
* This allows an Envoy configuration with multiple HTTP listeners (and
* associated HTTP connection manager filters) to use different route
* configurations. Each listener will bind its HTTP connection manager filter to
* a route table via this identifier.
*
* The resource_names field in DiscoveryRequest specifies a route configuration.
* This allows an Envoy configuration with multiple HTTP listeners (and
* associated HTTP connection manager filters) to use different route
* configurations. Each listener will bind its HTTP connection manager filter to
* a route table via this identifier.
*
*/
public static final class RouteDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private RouteDiscoveryServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected RouteDiscoveryServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceBlockingStub(channel, callOptions);
}
/**
*/
public io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse fetchRoutes(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getFetchRoutesMethod(), getCallOptions(), request);
}
}
/**
*
* The resource_names field in DiscoveryRequest specifies a route configuration.
* This allows an Envoy configuration with multiple HTTP listeners (and
* associated HTTP connection manager filters) to use different route
* configurations. Each listener will bind its HTTP connection manager filter to
* a route table via this identifier.
*
*/
public static final class RouteDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private RouteDiscoveryServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected RouteDiscoveryServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new RouteDiscoveryServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture fetchRoutes(
io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getFetchRoutesMethod(), getCallOptions()), request);
}
}
private static final int METHODID_FETCH_ROUTES = 0;
private static final int METHODID_STREAM_ROUTES = 1;
private static final int METHODID_DELTA_ROUTES = 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 RouteDiscoveryServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(RouteDiscoveryServiceImplBase 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_FETCH_ROUTES:
serviceImpl.fetchRoutes((io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest) 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) {
case METHODID_STREAM_ROUTES:
return (io.grpc.stub.StreamObserver) serviceImpl.streamRoutes(
(io.grpc.stub.StreamObserver) responseObserver);
case METHODID_DELTA_ROUTES:
return (io.grpc.stub.StreamObserver) serviceImpl.deltaRoutes(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class RouteDiscoveryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
RouteDiscoveryServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.envoyproxy.envoy.service.route.v3.RdsProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("RouteDiscoveryService");
}
}
private static final class RouteDiscoveryServiceFileDescriptorSupplier
extends RouteDiscoveryServiceBaseDescriptorSupplier {
RouteDiscoveryServiceFileDescriptorSupplier() {}
}
private static final class RouteDiscoveryServiceMethodDescriptorSupplier
extends RouteDiscoveryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
RouteDiscoveryServiceMethodDescriptorSupplier(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 (RouteDiscoveryServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new RouteDiscoveryServiceFileDescriptorSupplier())
.addMethod(getStreamRoutesMethod())
.addMethod(getDeltaRoutesMethod())
.addMethod(getFetchRoutesMethod())
.build();
}
}
}
return result;
}
}