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.
* Virtual Host Discovery Service (VHDS) is used to dynamically update the list of virtual hosts for
* a given RouteConfiguration. If VHDS is configured a virtual host list update will be triggered
* during the processing of an HTTP request if a route for the request cannot be resolved. The
* :ref:`resource_names_subscribe <envoy_api_msg_DeltaDiscoveryRequest.resource_names_subscribe>`
* field contains a list of virtual host names or aliases to track. The contents of an alias would
* be the contents of a *host* or *authority* header used to make an http request. An xDS server
* will match an alias to a virtual host based on the content of :ref:`domains'
* <envoy_api_msg_route.VirtualHost.domains>` field. The *resource_names_unsubscribe* field contains
* a list of virtual host names that have been :ref:`unsubscribed <xds_protocol_unsubscribe>`
* from the routing table associated with the RouteConfiguration.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.22.1)",
comments = "Source: envoy/api/v3alpha/rds.proto")
public final class VirtualHostDiscoveryServiceGrpc {
private VirtualHostDiscoveryServiceGrpc() {}
public static final String SERVICE_NAME = "envoy.api.v3alpha.VirtualHostDiscoveryService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getDeltaVirtualHostsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeltaVirtualHosts",
requestType = io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryRequest.class,
responseType = io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getDeltaVirtualHostsMethod() {
io.grpc.MethodDescriptor getDeltaVirtualHostsMethod;
if ((getDeltaVirtualHostsMethod = VirtualHostDiscoveryServiceGrpc.getDeltaVirtualHostsMethod) == null) {
synchronized (VirtualHostDiscoveryServiceGrpc.class) {
if ((getDeltaVirtualHostsMethod = VirtualHostDiscoveryServiceGrpc.getDeltaVirtualHostsMethod) == null) {
VirtualHostDiscoveryServiceGrpc.getDeltaVirtualHostsMethod = getDeltaVirtualHostsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"envoy.api.v3alpha.VirtualHostDiscoveryService", "DeltaVirtualHosts"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryResponse.getDefaultInstance()))
.setSchemaDescriptor(new VirtualHostDiscoveryServiceMethodDescriptorSupplier("DeltaVirtualHosts"))
.build();
}
}
}
return getDeltaVirtualHostsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static VirtualHostDiscoveryServiceStub newStub(io.grpc.Channel channel) {
return new VirtualHostDiscoveryServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static VirtualHostDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new VirtualHostDiscoveryServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static VirtualHostDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new VirtualHostDiscoveryServiceFutureStub(channel);
}
/**
*
* Virtual Host Discovery Service (VHDS) is used to dynamically update the list of virtual hosts for
* a given RouteConfiguration. If VHDS is configured a virtual host list update will be triggered
* during the processing of an HTTP request if a route for the request cannot be resolved. The
* :ref:`resource_names_subscribe <envoy_api_msg_DeltaDiscoveryRequest.resource_names_subscribe>`
* field contains a list of virtual host names or aliases to track. The contents of an alias would
* be the contents of a *host* or *authority* header used to make an http request. An xDS server
* will match an alias to a virtual host based on the content of :ref:`domains'
* <envoy_api_msg_route.VirtualHost.domains>` field. The *resource_names_unsubscribe* field contains
* a list of virtual host names that have been :ref:`unsubscribed <xds_protocol_unsubscribe>`
* from the routing table associated with the RouteConfiguration.
*
*/
public static abstract class VirtualHostDiscoveryServiceImplBase implements io.grpc.BindableService {
/**
*/
public io.grpc.stub.StreamObserver deltaVirtualHosts(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getDeltaVirtualHostsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getDeltaVirtualHostsMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryRequest,
io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryResponse>(
this, METHODID_DELTA_VIRTUAL_HOSTS)))
.build();
}
}
/**
*
* Virtual Host Discovery Service (VHDS) is used to dynamically update the list of virtual hosts for
* a given RouteConfiguration. If VHDS is configured a virtual host list update will be triggered
* during the processing of an HTTP request if a route for the request cannot be resolved. The
* :ref:`resource_names_subscribe <envoy_api_msg_DeltaDiscoveryRequest.resource_names_subscribe>`
* field contains a list of virtual host names or aliases to track. The contents of an alias would
* be the contents of a *host* or *authority* header used to make an http request. An xDS server
* will match an alias to a virtual host based on the content of :ref:`domains'
* <envoy_api_msg_route.VirtualHost.domains>` field. The *resource_names_unsubscribe* field contains
* a list of virtual host names that have been :ref:`unsubscribed <xds_protocol_unsubscribe>`
* from the routing table associated with the RouteConfiguration.
*
* Virtual Host Discovery Service (VHDS) is used to dynamically update the list of virtual hosts for
* a given RouteConfiguration. If VHDS is configured a virtual host list update will be triggered
* during the processing of an HTTP request if a route for the request cannot be resolved. The
* :ref:`resource_names_subscribe <envoy_api_msg_DeltaDiscoveryRequest.resource_names_subscribe>`
* field contains a list of virtual host names or aliases to track. The contents of an alias would
* be the contents of a *host* or *authority* header used to make an http request. An xDS server
* will match an alias to a virtual host based on the content of :ref:`domains'
* <envoy_api_msg_route.VirtualHost.domains>` field. The *resource_names_unsubscribe* field contains
* a list of virtual host names that have been :ref:`unsubscribed <xds_protocol_unsubscribe>`
* from the routing table associated with the RouteConfiguration.
*
*/
public static final class VirtualHostDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub {
private VirtualHostDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private VirtualHostDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected VirtualHostDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceBlockingStub(channel, callOptions);
}
}
/**
*
* Virtual Host Discovery Service (VHDS) is used to dynamically update the list of virtual hosts for
* a given RouteConfiguration. If VHDS is configured a virtual host list update will be triggered
* during the processing of an HTTP request if a route for the request cannot be resolved. The
* :ref:`resource_names_subscribe <envoy_api_msg_DeltaDiscoveryRequest.resource_names_subscribe>`
* field contains a list of virtual host names or aliases to track. The contents of an alias would
* be the contents of a *host* or *authority* header used to make an http request. An xDS server
* will match an alias to a virtual host based on the content of :ref:`domains'
* <envoy_api_msg_route.VirtualHost.domains>` field. The *resource_names_unsubscribe* field contains
* a list of virtual host names that have been :ref:`unsubscribed <xds_protocol_unsubscribe>`
* from the routing table associated with the RouteConfiguration.
*
*/
public static final class VirtualHostDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub {
private VirtualHostDiscoveryServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private VirtualHostDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected VirtualHostDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceFutureStub(channel, callOptions);
}
}
private static final int METHODID_DELTA_VIRTUAL_HOSTS = 0;
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 VirtualHostDiscoveryServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(VirtualHostDiscoveryServiceImplBase 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) {
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_DELTA_VIRTUAL_HOSTS:
return (io.grpc.stub.StreamObserver) serviceImpl.deltaVirtualHosts(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class VirtualHostDiscoveryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
VirtualHostDiscoveryServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.envoyproxy.envoy.api.v3alpha.RdsProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("VirtualHostDiscoveryService");
}
}
private static final class VirtualHostDiscoveryServiceFileDescriptorSupplier
extends VirtualHostDiscoveryServiceBaseDescriptorSupplier {
VirtualHostDiscoveryServiceFileDescriptorSupplier() {}
}
private static final class VirtualHostDiscoveryServiceMethodDescriptorSupplier
extends VirtualHostDiscoveryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
VirtualHostDiscoveryServiceMethodDescriptorSupplier(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 (VirtualHostDiscoveryServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new VirtualHostDiscoveryServiceFileDescriptorSupplier())
.addMethod(getDeltaVirtualHostsMethod())
.build();
}
}
}
return result;
}
}