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

io.envoyproxy.envoy.service.extension.v3.ExtensionConfigDiscoveryServiceGrpc Maven / Gradle / Ivy

package io.envoyproxy.envoy.service.extension.v3;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 * 
 * Return extension configurations.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.45.1)", comments = "Source: envoy/service/extension/v3/config_discovery.proto") @io.grpc.stub.annotations.GrpcGenerated public final class ExtensionConfigDiscoveryServiceGrpc { private ExtensionConfigDiscoveryServiceGrpc() {} public static final String SERVICE_NAME = "envoy.service.extension.v3.ExtensionConfigDiscoveryService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getStreamExtensionConfigsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "StreamExtensionConfigs", 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 getStreamExtensionConfigsMethod() { io.grpc.MethodDescriptor getStreamExtensionConfigsMethod; if ((getStreamExtensionConfigsMethod = ExtensionConfigDiscoveryServiceGrpc.getStreamExtensionConfigsMethod) == null) { synchronized (ExtensionConfigDiscoveryServiceGrpc.class) { if ((getStreamExtensionConfigsMethod = ExtensionConfigDiscoveryServiceGrpc.getStreamExtensionConfigsMethod) == null) { ExtensionConfigDiscoveryServiceGrpc.getStreamExtensionConfigsMethod = getStreamExtensionConfigsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamExtensionConfigs")) .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 ExtensionConfigDiscoveryServiceMethodDescriptorSupplier("StreamExtensionConfigs")) .build(); } } } return getStreamExtensionConfigsMethod; } private static volatile io.grpc.MethodDescriptor getDeltaExtensionConfigsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeltaExtensionConfigs", 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 getDeltaExtensionConfigsMethod() { io.grpc.MethodDescriptor getDeltaExtensionConfigsMethod; if ((getDeltaExtensionConfigsMethod = ExtensionConfigDiscoveryServiceGrpc.getDeltaExtensionConfigsMethod) == null) { synchronized (ExtensionConfigDiscoveryServiceGrpc.class) { if ((getDeltaExtensionConfigsMethod = ExtensionConfigDiscoveryServiceGrpc.getDeltaExtensionConfigsMethod) == null) { ExtensionConfigDiscoveryServiceGrpc.getDeltaExtensionConfigsMethod = getDeltaExtensionConfigsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeltaExtensionConfigs")) .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 ExtensionConfigDiscoveryServiceMethodDescriptorSupplier("DeltaExtensionConfigs")) .build(); } } } return getDeltaExtensionConfigsMethod; } private static volatile io.grpc.MethodDescriptor getFetchExtensionConfigsMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "FetchExtensionConfigs", 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 getFetchExtensionConfigsMethod() { io.grpc.MethodDescriptor getFetchExtensionConfigsMethod; if ((getFetchExtensionConfigsMethod = ExtensionConfigDiscoveryServiceGrpc.getFetchExtensionConfigsMethod) == null) { synchronized (ExtensionConfigDiscoveryServiceGrpc.class) { if ((getFetchExtensionConfigsMethod = ExtensionConfigDiscoveryServiceGrpc.getFetchExtensionConfigsMethod) == null) { ExtensionConfigDiscoveryServiceGrpc.getFetchExtensionConfigsMethod = getFetchExtensionConfigsMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchExtensionConfigs")) .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 ExtensionConfigDiscoveryServiceMethodDescriptorSupplier("FetchExtensionConfigs")) .build(); } } } return getFetchExtensionConfigsMethod; } /** * Creates a new async stub that supports all call types for the service */ public static ExtensionConfigDiscoveryServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ExtensionConfigDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ExtensionConfigDiscoveryServiceStub(channel, callOptions); } }; return ExtensionConfigDiscoveryServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static ExtensionConfigDiscoveryServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ExtensionConfigDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ExtensionConfigDiscoveryServiceBlockingStub(channel, callOptions); } }; return ExtensionConfigDiscoveryServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static ExtensionConfigDiscoveryServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public ExtensionConfigDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ExtensionConfigDiscoveryServiceFutureStub(channel, callOptions); } }; return ExtensionConfigDiscoveryServiceFutureStub.newStub(factory, channel); } /** *
   * Return extension configurations.
   * 
*/ public static abstract class ExtensionConfigDiscoveryServiceImplBase implements io.grpc.BindableService { /** */ public io.grpc.stub.StreamObserver streamExtensionConfigs( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamExtensionConfigsMethod(), responseObserver); } /** */ public io.grpc.stub.StreamObserver deltaExtensionConfigs( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getDeltaExtensionConfigsMethod(), responseObserver); } /** */ public void fetchExtensionConfigs(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchExtensionConfigsMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getStreamExtensionConfigsMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest, io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse>( this, METHODID_STREAM_EXTENSION_CONFIGS))) .addMethod( getDeltaExtensionConfigsMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryRequest, io.envoyproxy.envoy.service.discovery.v3.DeltaDiscoveryResponse>( this, METHODID_DELTA_EXTENSION_CONFIGS))) .addMethod( getFetchExtensionConfigsMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest, io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse>( this, METHODID_FETCH_EXTENSION_CONFIGS))) .build(); } } /** *
   * Return extension configurations.
   * 
*/ public static final class ExtensionConfigDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub { private ExtensionConfigDiscoveryServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ExtensionConfigDiscoveryServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ExtensionConfigDiscoveryServiceStub(channel, callOptions); } /** */ public io.grpc.stub.StreamObserver streamExtensionConfigs( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getStreamExtensionConfigsMethod(), getCallOptions()), responseObserver); } /** */ public io.grpc.stub.StreamObserver deltaExtensionConfigs( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getDeltaExtensionConfigsMethod(), getCallOptions()), responseObserver); } /** */ public void fetchExtensionConfigs(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFetchExtensionConfigsMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Return extension configurations.
   * 
*/ public static final class ExtensionConfigDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private ExtensionConfigDiscoveryServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ExtensionConfigDiscoveryServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ExtensionConfigDiscoveryServiceBlockingStub(channel, callOptions); } /** */ public io.envoyproxy.envoy.service.discovery.v3.DiscoveryResponse fetchExtensionConfigs(io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFetchExtensionConfigsMethod(), getCallOptions(), request); } } /** *
   * Return extension configurations.
   * 
*/ public static final class ExtensionConfigDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private ExtensionConfigDiscoveryServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected ExtensionConfigDiscoveryServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new ExtensionConfigDiscoveryServiceFutureStub(channel, callOptions); } /** */ public com.google.common.util.concurrent.ListenableFuture fetchExtensionConfigs( io.envoyproxy.envoy.service.discovery.v3.DiscoveryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFetchExtensionConfigsMethod(), getCallOptions()), request); } } private static final int METHODID_FETCH_EXTENSION_CONFIGS = 0; private static final int METHODID_STREAM_EXTENSION_CONFIGS = 1; private static final int METHODID_DELTA_EXTENSION_CONFIGS = 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 ExtensionConfigDiscoveryServiceImplBase serviceImpl; private final int methodId; MethodHandlers(ExtensionConfigDiscoveryServiceImplBase 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_EXTENSION_CONFIGS: serviceImpl.fetchExtensionConfigs((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_EXTENSION_CONFIGS: return (io.grpc.stub.StreamObserver) serviceImpl.streamExtensionConfigs( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_DELTA_EXTENSION_CONFIGS: return (io.grpc.stub.StreamObserver) serviceImpl.deltaExtensionConfigs( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class ExtensionConfigDiscoveryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { ExtensionConfigDiscoveryServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.envoyproxy.envoy.service.extension.v3.ConfigDiscoveryProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("ExtensionConfigDiscoveryService"); } } private static final class ExtensionConfigDiscoveryServiceFileDescriptorSupplier extends ExtensionConfigDiscoveryServiceBaseDescriptorSupplier { ExtensionConfigDiscoveryServiceFileDescriptorSupplier() {} } private static final class ExtensionConfigDiscoveryServiceMethodDescriptorSupplier extends ExtensionConfigDiscoveryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; ExtensionConfigDiscoveryServiceMethodDescriptorSupplier(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 (ExtensionConfigDiscoveryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new ExtensionConfigDiscoveryServiceFileDescriptorSupplier()) .addMethod(getStreamExtensionConfigsMethod()) .addMethod(getDeltaExtensionConfigsMethod()) .addMethod(getFetchExtensionConfigsMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy