![JAR search and dependency download from the Maven repository](/logo.png)
io.envoyproxy.envoy.api.v2.VirtualHostDiscoveryService Maven / Gradle / Ivy
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: envoy/api/v2/rds.proto
package io.envoyproxy.envoy.api.v2;
/**
*
* 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.
*
*
* Protobuf service {@code envoy.api.v2.VirtualHostDiscoveryService}
*/
public abstract class VirtualHostDiscoveryService
implements com.google.protobuf.Service {
protected VirtualHostDiscoveryService() {}
public interface Interface {
/**
* rpc DeltaVirtualHosts(stream .envoy.api.v2.DeltaDiscoveryRequest) returns (stream .envoy.api.v2.DeltaDiscoveryResponse);
*/
public abstract void deltaVirtualHosts(
com.google.protobuf.RpcController controller,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest request,
com.google.protobuf.RpcCallback done);
}
public static com.google.protobuf.Service newReflectiveService(
final Interface impl) {
return new VirtualHostDiscoveryService() {
@java.lang.Override
public void deltaVirtualHosts(
com.google.protobuf.RpcController controller,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest request,
com.google.protobuf.RpcCallback done) {
impl.deltaVirtualHosts(controller, request, done);
}
};
}
public static com.google.protobuf.BlockingService
newReflectiveBlockingService(final BlockingInterface impl) {
return new com.google.protobuf.BlockingService() {
public final com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptorForType() {
return getDescriptor();
}
public final com.google.protobuf.Message callBlockingMethod(
com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request)
throws com.google.protobuf.ServiceException {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.callBlockingMethod() given method descriptor for " +
"wrong service type.");
}
switch(method.getIndex()) {
case 0:
return impl.deltaVirtualHosts(controller, (io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest)request);
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getRequestPrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getRequestPrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getResponsePrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getResponsePrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
};
}
/**
* rpc DeltaVirtualHosts(stream .envoy.api.v2.DeltaDiscoveryRequest) returns (stream .envoy.api.v2.DeltaDiscoveryResponse);
*/
public abstract void deltaVirtualHosts(
com.google.protobuf.RpcController controller,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest request,
com.google.protobuf.RpcCallback done);
public static final
com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptor() {
return io.envoyproxy.envoy.api.v2.RdsProto.getDescriptor().getServices().get(1);
}
public final com.google.protobuf.Descriptors.ServiceDescriptor
getDescriptorForType() {
return getDescriptor();
}
public final void callMethod(
com.google.protobuf.Descriptors.MethodDescriptor method,
com.google.protobuf.RpcController controller,
com.google.protobuf.Message request,
com.google.protobuf.RpcCallback<
com.google.protobuf.Message> done) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.callMethod() given method descriptor for wrong " +
"service type.");
}
switch(method.getIndex()) {
case 0:
this.deltaVirtualHosts(controller, (io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest)request,
com.google.protobuf.RpcUtil.specializeCallback(
done));
return;
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getRequestPrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getRequestPrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public final com.google.protobuf.Message
getResponsePrototype(
com.google.protobuf.Descriptors.MethodDescriptor method) {
if (method.getService() != getDescriptor()) {
throw new java.lang.IllegalArgumentException(
"Service.getResponsePrototype() given method " +
"descriptor for wrong service type.");
}
switch(method.getIndex()) {
case 0:
return io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse.getDefaultInstance();
default:
throw new java.lang.AssertionError("Can't get here.");
}
}
public static Stub newStub(
com.google.protobuf.RpcChannel channel) {
return new Stub(channel);
}
public static final class Stub extends io.envoyproxy.envoy.api.v2.VirtualHostDiscoveryService implements Interface {
private Stub(com.google.protobuf.RpcChannel channel) {
this.channel = channel;
}
private final com.google.protobuf.RpcChannel channel;
public com.google.protobuf.RpcChannel getChannel() {
return channel;
}
public void deltaVirtualHosts(
com.google.protobuf.RpcController controller,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest request,
com.google.protobuf.RpcCallback done) {
channel.callMethod(
getDescriptor().getMethods().get(0),
controller,
request,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse.getDefaultInstance(),
com.google.protobuf.RpcUtil.generalizeCallback(
done,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse.class,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse.getDefaultInstance()));
}
}
public static BlockingInterface newBlockingStub(
com.google.protobuf.BlockingRpcChannel channel) {
return new BlockingStub(channel);
}
public interface BlockingInterface {
public io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse deltaVirtualHosts(
com.google.protobuf.RpcController controller,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest request)
throws com.google.protobuf.ServiceException;
}
private static final class BlockingStub implements BlockingInterface {
private BlockingStub(com.google.protobuf.BlockingRpcChannel channel) {
this.channel = channel;
}
private final com.google.protobuf.BlockingRpcChannel channel;
public io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse deltaVirtualHosts(
com.google.protobuf.RpcController controller,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest request)
throws com.google.protobuf.ServiceException {
return (io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse) channel.callBlockingMethod(
getDescriptor().getMethods().get(0),
controller,
request,
io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse.getDefaultInstance());
}
}
// @@protoc_insertion_point(class_scope:envoy.api.v2.VirtualHostDiscoveryService)
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy