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

io.envoyproxy.envoy.service.discovery.v3alpha.RuntimeDiscoveryServiceGrpc Maven / Gradle / Ivy

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

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;

/**
 * 
 * Discovery service for Runtime resources.
 * 
*/ @javax.annotation.Generated( value = "by gRPC proto compiler (version 1.22.1)", comments = "Source: envoy/service/discovery/v3alpha/rtds.proto") public final class RuntimeDiscoveryServiceGrpc { private RuntimeDiscoveryServiceGrpc() {} public static final String SERVICE_NAME = "envoy.service.discovery.v3alpha.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.v3alpha.DiscoveryRequest.class, responseType = io.envoyproxy.envoy.api.v3alpha.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( "envoy.service.discovery.v3alpha.RuntimeDiscoveryService", "StreamRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v3alpha.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.v3alpha.DeltaDiscoveryRequest.class, responseType = io.envoyproxy.envoy.api.v3alpha.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( "envoy.service.discovery.v3alpha.RuntimeDiscoveryService", "DeltaRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v3alpha.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.v3alpha.DiscoveryRequest.class, responseType = io.envoyproxy.envoy.api.v3alpha.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( "envoy.service.discovery.v3alpha.RuntimeDiscoveryService", "FetchRuntime")) .setSampledToLocalTracing(true) .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest.getDefaultInstance())) .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( io.envoyproxy.envoy.api.v3alpha.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) { return new RuntimeDiscoveryServiceStub(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) { return new RuntimeDiscoveryServiceBlockingStub(channel); } /** * Creates a new ListenableFuture-style stub that supports unary calls on the service */ public static RuntimeDiscoveryServiceFutureStub newFutureStub( io.grpc.Channel channel) { return new RuntimeDiscoveryServiceFutureStub(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 asyncUnimplementedStreamingCall(getStreamRuntimeMethod(), responseObserver); } /** */ public io.grpc.stub.StreamObserver deltaRuntime( io.grpc.stub.StreamObserver responseObserver) { return asyncUnimplementedStreamingCall(getDeltaRuntimeMethod(), responseObserver); } /** */ public void fetchRuntime(io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getFetchRuntimeMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getStreamRuntimeMethod(), asyncBidiStreamingCall( new MethodHandlers< io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest, io.envoyproxy.envoy.api.v3alpha.DiscoveryResponse>( this, METHODID_STREAM_RUNTIME))) .addMethod( getDeltaRuntimeMethod(), asyncBidiStreamingCall( new MethodHandlers< io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryRequest, io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryResponse>( this, METHODID_DELTA_RUNTIME))) .addMethod( getFetchRuntimeMethod(), asyncUnaryCall( new MethodHandlers< io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest, io.envoyproxy.envoy.api.v3alpha.DiscoveryResponse>( this, METHODID_FETCH_RUNTIME))) .build(); } } /** *
   * Discovery service for Runtime resources.
   * 
*/ public static final class RuntimeDiscoveryServiceStub extends io.grpc.stub.AbstractStub { private RuntimeDiscoveryServiceStub(io.grpc.Channel channel) { super(channel); } 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 asyncBidiStreamingCall( getChannel().newCall(getStreamRuntimeMethod(), getCallOptions()), responseObserver); } /** */ public io.grpc.stub.StreamObserver deltaRuntime( io.grpc.stub.StreamObserver responseObserver) { return asyncBidiStreamingCall( getChannel().newCall(getDeltaRuntimeMethod(), getCallOptions()), responseObserver); } /** */ public void fetchRuntime(io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getFetchRuntimeMethod(), getCallOptions()), request, responseObserver); } } /** *
   * Discovery service for Runtime resources.
   * 
*/ public static final class RuntimeDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub { private RuntimeDiscoveryServiceBlockingStub(io.grpc.Channel channel) { super(channel); } 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.v3alpha.DiscoveryResponse fetchRuntime(io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest request) { return blockingUnaryCall( getChannel(), getFetchRuntimeMethod(), getCallOptions(), request); } } /** *
   * Discovery service for Runtime resources.
   * 
*/ public static final class RuntimeDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub { private RuntimeDiscoveryServiceFutureStub(io.grpc.Channel channel) { super(channel); } 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.v3alpha.DiscoveryRequest request) { return 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.v3alpha.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.v3alpha.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