Please wait. This can take some minutes ...
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.
io.envoyproxy.envoy.service.tap.v3alpha.TapDiscoveryServiceGrpc Maven / Gradle / Ivy
package io.envoyproxy.envoy.service.tap.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;
/**
*
* [#not-implemented-hide:] Tap discovery service.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.22.1)",
comments = "Source: envoy/service/tap/v3alpha/tapds.proto")
public final class TapDiscoveryServiceGrpc {
private TapDiscoveryServiceGrpc() {}
public static final String SERVICE_NAME = "envoy.service.tap.v3alpha.TapDiscoveryService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getStreamTapConfigsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StreamTapConfigs",
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 getStreamTapConfigsMethod() {
io.grpc.MethodDescriptor getStreamTapConfigsMethod;
if ((getStreamTapConfigsMethod = TapDiscoveryServiceGrpc.getStreamTapConfigsMethod) == null) {
synchronized (TapDiscoveryServiceGrpc.class) {
if ((getStreamTapConfigsMethod = TapDiscoveryServiceGrpc.getStreamTapConfigsMethod) == null) {
TapDiscoveryServiceGrpc.getStreamTapConfigsMethod = getStreamTapConfigsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"envoy.service.tap.v3alpha.TapDiscoveryService", "StreamTapConfigs"))
.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 TapDiscoveryServiceMethodDescriptorSupplier("StreamTapConfigs"))
.build();
}
}
}
return getStreamTapConfigsMethod;
}
private static volatile io.grpc.MethodDescriptor getDeltaTapConfigsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "DeltaTapConfigs",
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 getDeltaTapConfigsMethod() {
io.grpc.MethodDescriptor getDeltaTapConfigsMethod;
if ((getDeltaTapConfigsMethod = TapDiscoveryServiceGrpc.getDeltaTapConfigsMethod) == null) {
synchronized (TapDiscoveryServiceGrpc.class) {
if ((getDeltaTapConfigsMethod = TapDiscoveryServiceGrpc.getDeltaTapConfigsMethod) == null) {
TapDiscoveryServiceGrpc.getDeltaTapConfigsMethod = getDeltaTapConfigsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"envoy.service.tap.v3alpha.TapDiscoveryService", "DeltaTapConfigs"))
.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 TapDiscoveryServiceMethodDescriptorSupplier("DeltaTapConfigs"))
.build();
}
}
}
return getDeltaTapConfigsMethod;
}
private static volatile io.grpc.MethodDescriptor getFetchTapConfigsMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "FetchTapConfigs",
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 getFetchTapConfigsMethod() {
io.grpc.MethodDescriptor getFetchTapConfigsMethod;
if ((getFetchTapConfigsMethod = TapDiscoveryServiceGrpc.getFetchTapConfigsMethod) == null) {
synchronized (TapDiscoveryServiceGrpc.class) {
if ((getFetchTapConfigsMethod = TapDiscoveryServiceGrpc.getFetchTapConfigsMethod) == null) {
TapDiscoveryServiceGrpc.getFetchTapConfigsMethod = getFetchTapConfigsMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"envoy.service.tap.v3alpha.TapDiscoveryService", "FetchTapConfigs"))
.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 TapDiscoveryServiceMethodDescriptorSupplier("FetchTapConfigs"))
.build();
}
}
}
return getFetchTapConfigsMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static TapDiscoveryServiceStub newStub(io.grpc.Channel channel) {
return new TapDiscoveryServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static TapDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new TapDiscoveryServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static TapDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new TapDiscoveryServiceFutureStub(channel);
}
/**
*
* [#not-implemented-hide:] Tap discovery service.
*
*/
public static abstract class TapDiscoveryServiceImplBase implements io.grpc.BindableService {
/**
*/
public io.grpc.stub.StreamObserver streamTapConfigs(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getStreamTapConfigsMethod(), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver deltaTapConfigs(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getDeltaTapConfigsMethod(), responseObserver);
}
/**
*/
public void fetchTapConfigs(io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getFetchTapConfigsMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getStreamTapConfigsMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest,
io.envoyproxy.envoy.api.v3alpha.DiscoveryResponse>(
this, METHODID_STREAM_TAP_CONFIGS)))
.addMethod(
getDeltaTapConfigsMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryRequest,
io.envoyproxy.envoy.api.v3alpha.DeltaDiscoveryResponse>(
this, METHODID_DELTA_TAP_CONFIGS)))
.addMethod(
getFetchTapConfigsMethod(),
asyncUnaryCall(
new MethodHandlers<
io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest,
io.envoyproxy.envoy.api.v3alpha.DiscoveryResponse>(
this, METHODID_FETCH_TAP_CONFIGS)))
.build();
}
}
/**
*
* [#not-implemented-hide:] Tap discovery service.
*
*/
public static final class TapDiscoveryServiceStub extends io.grpc.stub.AbstractStub {
private TapDiscoveryServiceStub(io.grpc.Channel channel) {
super(channel);
}
private TapDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TapDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TapDiscoveryServiceStub(channel, callOptions);
}
/**
*/
public io.grpc.stub.StreamObserver streamTapConfigs(
io.grpc.stub.StreamObserver responseObserver) {
return asyncBidiStreamingCall(
getChannel().newCall(getStreamTapConfigsMethod(), getCallOptions()), responseObserver);
}
/**
*/
public io.grpc.stub.StreamObserver deltaTapConfigs(
io.grpc.stub.StreamObserver responseObserver) {
return asyncBidiStreamingCall(
getChannel().newCall(getDeltaTapConfigsMethod(), getCallOptions()), responseObserver);
}
/**
*/
public void fetchTapConfigs(io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getFetchTapConfigsMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* [#not-implemented-hide:] Tap discovery service.
*
*/
public static final class TapDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub {
private TapDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private TapDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TapDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TapDiscoveryServiceBlockingStub(channel, callOptions);
}
/**
*/
public io.envoyproxy.envoy.api.v3alpha.DiscoveryResponse fetchTapConfigs(io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest request) {
return blockingUnaryCall(
getChannel(), getFetchTapConfigsMethod(), getCallOptions(), request);
}
}
/**
*
* [#not-implemented-hide:] Tap discovery service.
*
*/
public static final class TapDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub {
private TapDiscoveryServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private TapDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected TapDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new TapDiscoveryServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture fetchTapConfigs(
io.envoyproxy.envoy.api.v3alpha.DiscoveryRequest request) {
return futureUnaryCall(
getChannel().newCall(getFetchTapConfigsMethod(), getCallOptions()), request);
}
}
private static final int METHODID_FETCH_TAP_CONFIGS = 0;
private static final int METHODID_STREAM_TAP_CONFIGS = 1;
private static final int METHODID_DELTA_TAP_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 TapDiscoveryServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(TapDiscoveryServiceImplBase 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_TAP_CONFIGS:
serviceImpl.fetchTapConfigs((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_TAP_CONFIGS:
return (io.grpc.stub.StreamObserver) serviceImpl.streamTapConfigs(
(io.grpc.stub.StreamObserver) responseObserver);
case METHODID_DELTA_TAP_CONFIGS:
return (io.grpc.stub.StreamObserver) serviceImpl.deltaTapConfigs(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class TapDiscoveryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
TapDiscoveryServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.envoyproxy.envoy.service.tap.v3alpha.TapDsProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("TapDiscoveryService");
}
}
private static final class TapDiscoveryServiceFileDescriptorSupplier
extends TapDiscoveryServiceBaseDescriptorSupplier {
TapDiscoveryServiceFileDescriptorSupplier() {}
}
private static final class TapDiscoveryServiceMethodDescriptorSupplier
extends TapDiscoveryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
TapDiscoveryServiceMethodDescriptorSupplier(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 (TapDiscoveryServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new TapDiscoveryServiceFileDescriptorSupplier())
.addMethod(getStreamTapConfigsMethod())
.addMethod(getDeltaTapConfigsMethod())
.addMethod(getFetchTapConfigsMethod())
.build();
}
}
}
return result;
}
}