All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.envoyproxy.envoy.service.discovery.v2.AggregatedDiscoveryServiceGrpc Maven / Gradle / Ivy

There is a newer version: 1.0.46
Show newest version
package io.envoyproxy.envoy.service.discovery.v2;

import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;

/**
 * 
 * See https://github.com/lyft/envoy-api#apis for a description of the role of
 * ADS and how it is intended to be used by a management server. ADS requests
 * have the same structure as their singleton xDS counterparts, but can
 * multiplex many resource types on a single stream. The type_url in the
 * DiscoveryRequest/DiscoveryResponse provides sufficient information to recover
 * the multiplexed singleton APIs at the Envoy instance and management server.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.22.1)", comments = "Source: envoy/service/discovery/v2/ads.proto") public final class AggregatedDiscoveryServiceGrpc { private AggregatedDiscoveryServiceGrpc() {} public static final String SERVICE_NAME = "envoy.service.discovery.v2.AggregatedDiscoveryService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getStreamAggregatedResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "StreamAggregatedResources", requestType = io.envoyproxy.envoy.api.v2.DiscoveryRequest.class, responseType = io.envoyproxy.envoy.api.v2.DiscoveryResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor getStreamAggregatedResourcesMethod() { io.grpc.MethodDescriptor getStreamAggregatedResourcesMethod; if ((getStreamAggregatedResourcesMethod = AggregatedDiscoveryServiceGrpc.getStreamAggregatedResourcesMethod) == null) { synchronized (AggregatedDiscoveryServiceGrpc.class) { if ((getStreamAggregatedResourcesMethod = AggregatedDiscoveryServiceGrpc.getStreamAggregatedResourcesMethod) == null) { AggregatedDiscoveryServiceGrpc.getStreamAggregatedResourcesMethod = getStreamAggregatedResourcesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName( "envoy.service.discovery.v2.AggregatedDiscoveryService", "StreamAggregatedResources")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v2.DiscoveryRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v2.DiscoveryResponse.getDefaultInstance())) .setSchemaDescriptor(new AggregatedDiscoveryServiceMethodDescriptorSupplier("StreamAggregatedResources")) .build(); } } } return getStreamAggregatedResourcesMethod; } private static volatile io.grpc.MethodDescriptor getDeltaAggregatedResourcesMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeltaAggregatedResources", requestType = io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest.class, responseType = io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) public static io.grpc.MethodDescriptor getDeltaAggregatedResourcesMethod() { io.grpc.MethodDescriptor getDeltaAggregatedResourcesMethod; if ((getDeltaAggregatedResourcesMethod = AggregatedDiscoveryServiceGrpc.getDeltaAggregatedResourcesMethod) == null) { synchronized (AggregatedDiscoveryServiceGrpc.class) { if ((getDeltaAggregatedResourcesMethod = AggregatedDiscoveryServiceGrpc.getDeltaAggregatedResourcesMethod) == null) { AggregatedDiscoveryServiceGrpc.getDeltaAggregatedResourcesMethod = getDeltaAggregatedResourcesMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName( "envoy.service.discovery.v2.AggregatedDiscoveryService", "DeltaAggregatedResources")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse.getDefaultInstance())) .setSchemaDescriptor(new AggregatedDiscoveryServiceMethodDescriptorSupplier("DeltaAggregatedResources")) .build(); } } } return getDeltaAggregatedResourcesMethod; } /** * Creates a new async stub that supports all call types for the service */ public static AggregatedDiscoveryServiceStub newStub(io.grpc.Channel channel) { return new AggregatedDiscoveryServiceStub(channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static AggregatedDiscoveryServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { return new AggregatedDiscoveryServiceBlockingStub(channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static AggregatedDiscoveryServiceFutureStub newFutureStub( io.grpc.Channel channel) { return new AggregatedDiscoveryServiceFutureStub(channel); } /** *
   * See https://github.com/lyft/envoy-api#apis for a description of the role of
   * ADS and how it is intended to be used by a management server. ADS requests
   * have the same structure as their singleton xDS counterparts, but can
   * multiplex many resource types on a single stream. The type_url in the
   * DiscoveryRequest/DiscoveryResponse provides sufficient information to recover
   * the multiplexed singleton APIs at the Envoy instance and management server.
   * 
*/ public static abstract class AggregatedDiscoveryServiceImplBase implements io.grpc.BindableService { /** *
     * This is a gRPC-only API.
     * 
*/ public io.grpc.stub.StreamObserver streamAggregatedResources( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getStreamAggregatedResourcesMethod(), responseObserver); } /** */ public io.grpc.stub.StreamObserver deltaAggregatedResources( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getDeltaAggregatedResourcesMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getStreamAggregatedResourcesMethod(), asyncBidiStreamingCall( new MethodHandlers< io.envoyproxy.envoy.api.v2.DiscoveryRequest, io.envoyproxy.envoy.api.v2.DiscoveryResponse>( this, METHODID_STREAM_AGGREGATED_RESOURCES))) .addMethod( getDeltaAggregatedResourcesMethod(), asyncBidiStreamingCall( new MethodHandlers< io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest, io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse>( this, METHODID_DELTA_AGGREGATED_RESOURCES))) .build(); } } /** *
   * See https://github.com/lyft/envoy-api#apis for a description of the role of
   * ADS and how it is intended to be used by a management server. ADS requests
   * have the same structure as their singleton xDS counterparts, but can
   * multiplex many resource types on a single stream. The type_url in the
   * DiscoveryRequest/DiscoveryResponse provides sufficient information to recover
   * the multiplexed singleton APIs at the Envoy instance and management server.
   * 
*/ public static final class AggregatedDiscoveryServiceStub extends io.grpc.stub.AbstractStub { private AggregatedDiscoveryServiceStub(io.grpc.Channel channel) { super(channel); } private AggregatedDiscoveryServiceStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AggregatedDiscoveryServiceStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AggregatedDiscoveryServiceStub(channel, callOptions); } /** *
     * This is a gRPC-only API.
     * 
*/ public io.grpc.stub.StreamObserver streamAggregatedResources( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(getStreamAggregatedResourcesMethod(), getCallOptions()), responseObserver); } /** */ public io.grpc.stub.StreamObserver deltaAggregatedResources( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(getDeltaAggregatedResourcesMethod(), getCallOptions()), responseObserver); } } /** *
   * See https://github.com/lyft/envoy-api#apis for a description of the role of
   * ADS and how it is intended to be used by a management server. ADS requests
   * have the same structure as their singleton xDS counterparts, but can
   * multiplex many resource types on a single stream. The type_url in the
   * DiscoveryRequest/DiscoveryResponse provides sufficient information to recover
   * the multiplexed singleton APIs at the Envoy instance and management server.
   * 
*/ public static final class AggregatedDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub { private AggregatedDiscoveryServiceBlockingStub(io.grpc.Channel channel) { super(channel); } private AggregatedDiscoveryServiceBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AggregatedDiscoveryServiceBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AggregatedDiscoveryServiceBlockingStub(channel, callOptions); } } /** *
   * See https://github.com/lyft/envoy-api#apis for a description of the role of
   * ADS and how it is intended to be used by a management server. ADS requests
   * have the same structure as their singleton xDS counterparts, but can
   * multiplex many resource types on a single stream. The type_url in the
   * DiscoveryRequest/DiscoveryResponse provides sufficient information to recover
   * the multiplexed singleton APIs at the Envoy instance and management server.
   * 
*/ public static final class AggregatedDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub { private AggregatedDiscoveryServiceFutureStub(io.grpc.Channel channel) { super(channel); } private AggregatedDiscoveryServiceFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected AggregatedDiscoveryServiceFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new AggregatedDiscoveryServiceFutureStub(channel, callOptions); } } private static final int METHODID_STREAM_AGGREGATED_RESOURCES = 0; private static final int METHODID_DELTA_AGGREGATED_RESOURCES = 1; 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 AggregatedDiscoveryServiceImplBase serviceImpl; private final int methodId; MethodHandlers(AggregatedDiscoveryServiceImplBase 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_STREAM_AGGREGATED_RESOURCES: return (io.grpc.stub.StreamObserver) serviceImpl.streamAggregatedResources( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_DELTA_AGGREGATED_RESOURCES: return (io.grpc.stub.StreamObserver) serviceImpl.deltaAggregatedResources( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class AggregatedDiscoveryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { AggregatedDiscoveryServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.envoyproxy.envoy.service.discovery.v2.AdsProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("AggregatedDiscoveryService"); } } private static final class AggregatedDiscoveryServiceFileDescriptorSupplier extends AggregatedDiscoveryServiceBaseDescriptorSupplier { AggregatedDiscoveryServiceFileDescriptorSupplier() {} } private static final class AggregatedDiscoveryServiceMethodDescriptorSupplier extends AggregatedDiscoveryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; AggregatedDiscoveryServiceMethodDescriptorSupplier(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 (AggregatedDiscoveryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new AggregatedDiscoveryServiceFileDescriptorSupplier()) .addMethod(getStreamAggregatedResourcesMethod()) .addMethod(getDeltaAggregatedResourcesMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy