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

io.envoyproxy.envoy.service.discovery.v2.RuntimeDiscoveryServiceGrpc 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;

/**
 * 
 * Discovery service for Runtime resources.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.48.1)", comments = "Source: envoy/service/discovery/v2/rtds.proto") @io.grpc.stub.annotations.GrpcGenerated public final class RuntimeDiscoveryServiceGrpc { private RuntimeDiscoveryServiceGrpc() {} public static final String SERVICE_NAME = "envoy.service.discovery.v2.RuntimeDiscoveryService"; // Static method descriptors that strictly reflect the proto. private static volatile io.grpc.MethodDescriptor getStreamRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "StreamRuntime", 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 getStreamRuntimeMethod() { io.grpc.MethodDescriptor getStreamRuntimeMethod; if ((getStreamRuntimeMethod = RuntimeDiscoveryServiceGrpc.getStreamRuntimeMethod) == null) { synchronized (RuntimeDiscoveryServiceGrpc.class) { if ((getStreamRuntimeMethod = RuntimeDiscoveryServiceGrpc.getStreamRuntimeMethod) == null) { RuntimeDiscoveryServiceGrpc.getStreamRuntimeMethod = getStreamRuntimeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "StreamRuntime")) .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 RuntimeDiscoveryServiceMethodDescriptorSupplier("StreamRuntime")) .build(); } } } return getStreamRuntimeMethod; } private static volatile io.grpc.MethodDescriptor getDeltaRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "DeltaRuntime", 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 getDeltaRuntimeMethod() { io.grpc.MethodDescriptor getDeltaRuntimeMethod; if ((getDeltaRuntimeMethod = RuntimeDiscoveryServiceGrpc.getDeltaRuntimeMethod) == null) { synchronized (RuntimeDiscoveryServiceGrpc.class) { if ((getDeltaRuntimeMethod = RuntimeDiscoveryServiceGrpc.getDeltaRuntimeMethod) == null) { RuntimeDiscoveryServiceGrpc.getDeltaRuntimeMethod = getDeltaRuntimeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeltaRuntime")) .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 RuntimeDiscoveryServiceMethodDescriptorSupplier("DeltaRuntime")) .build(); } } } return getDeltaRuntimeMethod; } private static volatile io.grpc.MethodDescriptor getFetchRuntimeMethod; @io.grpc.stub.annotations.RpcMethod( fullMethodName = SERVICE_NAME + '/' + "FetchRuntime", requestType = io.envoyproxy.envoy.api.v2.DiscoveryRequest.class, responseType = io.envoyproxy.envoy.api.v2.DiscoveryResponse.class, methodType = io.grpc.MethodDescriptor.MethodType.UNARY) public static io.grpc.MethodDescriptor getFetchRuntimeMethod() { io.grpc.MethodDescriptor getFetchRuntimeMethod; if ((getFetchRuntimeMethod = RuntimeDiscoveryServiceGrpc.getFetchRuntimeMethod) == null) { synchronized (RuntimeDiscoveryServiceGrpc.class) { if ((getFetchRuntimeMethod = RuntimeDiscoveryServiceGrpc.getFetchRuntimeMethod) == null) { RuntimeDiscoveryServiceGrpc.getFetchRuntimeMethod = getFetchRuntimeMethod = io.grpc.MethodDescriptor.newBuilder() .setType(io.grpc.MethodDescriptor.MethodType.UNARY) .setFullMethodName(generateFullMethodName(SERVICE_NAME, "FetchRuntime")) .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 RuntimeDiscoveryServiceMethodDescriptorSupplier("FetchRuntime")) .build(); } } } return getFetchRuntimeMethod; } /** * Creates a new async stub that supports all call types for the service */ public static RuntimeDiscoveryServiceStub newStub(io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public RuntimeDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RuntimeDiscoveryServiceStub(channel, callOptions); } }; return RuntimeDiscoveryServiceStub.newStub(factory, channel); } /** * Creates a new blocking-style stub that supports unary and streaming output calls on the service */ public static RuntimeDiscoveryServiceBlockingStub newBlockingStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public RuntimeDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RuntimeDiscoveryServiceBlockingStub(channel, callOptions); } }; return RuntimeDiscoveryServiceBlockingStub.newStub(factory, channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static RuntimeDiscoveryServiceFutureStub newFutureStub( io.grpc.Channel channel) { io.grpc.stub.AbstractStub.StubFactory factory = new io.grpc.stub.AbstractStub.StubFactory() { @java.lang.Override public RuntimeDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RuntimeDiscoveryServiceFutureStub(channel, callOptions); } }; return RuntimeDiscoveryServiceFutureStub.newStub(factory, channel); } /** *
   * Discovery service for Runtime resources.
   * 
*/ public static abstract class RuntimeDiscoveryServiceImplBase implements io.grpc.BindableService { /** */ public io.grpc.stub.StreamObserver streamRuntime( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamRuntimeMethod(), responseObserver); } /** */ public io.grpc.stub.StreamObserver deltaRuntime( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getDeltaRuntimeMethod(), responseObserver); } /** */ public void fetchRuntime(io.envoyproxy.envoy.api.v2.DiscoveryRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchRuntimeMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getStreamRuntimeMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< io.envoyproxy.envoy.api.v2.DiscoveryRequest, io.envoyproxy.envoy.api.v2.DiscoveryResponse>( this, METHODID_STREAM_RUNTIME))) .addMethod( getDeltaRuntimeMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< io.envoyproxy.envoy.api.v2.DeltaDiscoveryRequest, io.envoyproxy.envoy.api.v2.DeltaDiscoveryResponse>( this, METHODID_DELTA_RUNTIME))) .addMethod( getFetchRuntimeMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< io.envoyproxy.envoy.api.v2.DiscoveryRequest, io.envoyproxy.envoy.api.v2.DiscoveryResponse>( this, METHODID_FETCH_RUNTIME))) .build(); } } /** *
   * Discovery service for Runtime resources.
   * 
*/ public static final class RuntimeDiscoveryServiceStub extends io.grpc.stub.AbstractAsyncStub { private RuntimeDiscoveryServiceStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected RuntimeDiscoveryServiceStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RuntimeDiscoveryServiceStub(channel, callOptions); } /** */ public io.grpc.stub.StreamObserver streamRuntime( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getStreamRuntimeMethod(), getCallOptions()), responseObserver); } /** */ public io.grpc.stub.StreamObserver deltaRuntime( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getDeltaRuntimeMethod(), getCallOptions()), responseObserver); } /** */ public void fetchRuntime(io.envoyproxy.envoy.api.v2.DiscoveryRequest request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getFetchRuntimeMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Discovery service for Runtime resources.
   * 
*/ public static final class RuntimeDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub { private RuntimeDiscoveryServiceBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected RuntimeDiscoveryServiceBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RuntimeDiscoveryServiceBlockingStub(channel, callOptions); } /** */ public io.envoyproxy.envoy.api.v2.DiscoveryResponse fetchRuntime(io.envoyproxy.envoy.api.v2.DiscoveryRequest request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getFetchRuntimeMethod(), getCallOptions(), request); } } /** *
   * Discovery service for Runtime resources.
   * 
*/ public static final class RuntimeDiscoveryServiceFutureStub extends io.grpc.stub.AbstractFutureStub { private RuntimeDiscoveryServiceFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected RuntimeDiscoveryServiceFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new RuntimeDiscoveryServiceFutureStub(channel, callOptions); } /** */ public com.google.common.util.concurrent.ListenableFuture fetchRuntime( io.envoyproxy.envoy.api.v2.DiscoveryRequest request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getFetchRuntimeMethod(), getCallOptions()), request); } } private static final int METHODID_FETCH_RUNTIME = 0; private static final int METHODID_STREAM_RUNTIME = 1; private static final int METHODID_DELTA_RUNTIME = 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 RuntimeDiscoveryServiceImplBase serviceImpl; private final int methodId; MethodHandlers(RuntimeDiscoveryServiceImplBase 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_RUNTIME: serviceImpl.fetchRuntime((io.envoyproxy.envoy.api.v2.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_RUNTIME: return (io.grpc.stub.StreamObserver) serviceImpl.streamRuntime( (io.grpc.stub.StreamObserver) responseObserver); case METHODID_DELTA_RUNTIME: return (io.grpc.stub.StreamObserver) serviceImpl.deltaRuntime( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class RuntimeDiscoveryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { RuntimeDiscoveryServiceBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.envoyproxy.envoy.service.discovery.v2.RtdsProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("RuntimeDiscoveryService"); } } private static final class RuntimeDiscoveryServiceFileDescriptorSupplier extends RuntimeDiscoveryServiceBaseDescriptorSupplier { RuntimeDiscoveryServiceFileDescriptorSupplier() {} } private static final class RuntimeDiscoveryServiceMethodDescriptorSupplier extends RuntimeDiscoveryServiceBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; RuntimeDiscoveryServiceMethodDescriptorSupplier(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 (RuntimeDiscoveryServiceGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new RuntimeDiscoveryServiceFileDescriptorSupplier()) .addMethod(getStreamRuntimeMethod()) .addMethod(getDeltaRuntimeMethod()) .addMethod(getFetchRuntimeMethod()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy