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_v3_api_field_service.discovery.v3.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_v3_api_field_config.route.v3.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.48.1)",
comments = "Source: envoy/service/route/v3/rds.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class VirtualHostDiscoveryServiceGrpc {
private VirtualHostDiscoveryServiceGrpc() {}
public static final String SERVICE_NAME = "envoy.service.route.v3.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.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 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(SERVICE_NAME, "DeltaVirtualHosts"))
.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 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) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public VirtualHostDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceStub(channel, callOptions);
}
};
return VirtualHostDiscoveryServiceStub.newStub(factory, 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) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public VirtualHostDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return VirtualHostDiscoveryServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static VirtualHostDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public VirtualHostDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceFutureStub(channel, callOptions);
}
};
return VirtualHostDiscoveryServiceFutureStub.newStub(factory, 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_v3_api_field_service.discovery.v3.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_v3_api_field_config.route.v3.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 io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getDeltaVirtualHostsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getDeltaVirtualHostsMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest,
io.envoyproxy.envoy.service.discovery.v3.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_v3_api_field_service.discovery.v3.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_v3_api_field_config.route.v3.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 VirtualHostDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub {
private VirtualHostDiscoveryServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected VirtualHostDiscoveryServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new VirtualHostDiscoveryServiceStub(channel, callOptions);
}
/**
*/
public io.grpc.stub.StreamObserver deltaVirtualHosts(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getDeltaVirtualHostsMethod(), getCallOptions()), responseObserver);
}
}
/**
*
* 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_v3_api_field_service.discovery.v3.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_v3_api_field_config.route.v3.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.AbstractBlockingStub {
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_v3_api_field_service.discovery.v3.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_v3_api_field_config.route.v3.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.AbstractFutureStub {
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.service.route.v3.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;
}
}