
io.envoyproxy.envoy.service.status.v3.ClientStatusDiscoveryServiceGrpc Maven / Gradle / Ivy
package io.envoyproxy.envoy.service.status.v3;
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;
/**
*
* CSDS is Client Status Discovery Service. It can be used to get the status of
* an xDS-compliant client from the management server's point of view. In the
* future, it can potentially be used as an interface to get the current
* state directly from the client.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.22.1)",
comments = "Source: envoy/service/status/v3/csds.proto")
public final class ClientStatusDiscoveryServiceGrpc {
private ClientStatusDiscoveryServiceGrpc() {}
public static final String SERVICE_NAME = "envoy.service.status.v3.ClientStatusDiscoveryService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getStreamClientStatusMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "StreamClientStatus",
requestType = io.envoyproxy.envoy.service.status.v3.ClientStatusRequest.class,
responseType = io.envoyproxy.envoy.service.status.v3.ClientStatusResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getStreamClientStatusMethod() {
io.grpc.MethodDescriptor getStreamClientStatusMethod;
if ((getStreamClientStatusMethod = ClientStatusDiscoveryServiceGrpc.getStreamClientStatusMethod) == null) {
synchronized (ClientStatusDiscoveryServiceGrpc.class) {
if ((getStreamClientStatusMethod = ClientStatusDiscoveryServiceGrpc.getStreamClientStatusMethod) == null) {
ClientStatusDiscoveryServiceGrpc.getStreamClientStatusMethod = getStreamClientStatusMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"envoy.service.status.v3.ClientStatusDiscoveryService", "StreamClientStatus"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.status.v3.ClientStatusRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.status.v3.ClientStatusResponse.getDefaultInstance()))
.setSchemaDescriptor(new ClientStatusDiscoveryServiceMethodDescriptorSupplier("StreamClientStatus"))
.build();
}
}
}
return getStreamClientStatusMethod;
}
private static volatile io.grpc.MethodDescriptor getFetchClientStatusMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "FetchClientStatus",
requestType = io.envoyproxy.envoy.service.status.v3.ClientStatusRequest.class,
responseType = io.envoyproxy.envoy.service.status.v3.ClientStatusResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getFetchClientStatusMethod() {
io.grpc.MethodDescriptor getFetchClientStatusMethod;
if ((getFetchClientStatusMethod = ClientStatusDiscoveryServiceGrpc.getFetchClientStatusMethod) == null) {
synchronized (ClientStatusDiscoveryServiceGrpc.class) {
if ((getFetchClientStatusMethod = ClientStatusDiscoveryServiceGrpc.getFetchClientStatusMethod) == null) {
ClientStatusDiscoveryServiceGrpc.getFetchClientStatusMethod = getFetchClientStatusMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"envoy.service.status.v3.ClientStatusDiscoveryService", "FetchClientStatus"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.status.v3.ClientStatusRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.status.v3.ClientStatusResponse.getDefaultInstance()))
.setSchemaDescriptor(new ClientStatusDiscoveryServiceMethodDescriptorSupplier("FetchClientStatus"))
.build();
}
}
}
return getFetchClientStatusMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static ClientStatusDiscoveryServiceStub newStub(io.grpc.Channel channel) {
return new ClientStatusDiscoveryServiceStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static ClientStatusDiscoveryServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new ClientStatusDiscoveryServiceBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ClientStatusDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
return new ClientStatusDiscoveryServiceFutureStub(channel);
}
/**
*
* CSDS is Client Status Discovery Service. It can be used to get the status of
* an xDS-compliant client from the management server's point of view. In the
* future, it can potentially be used as an interface to get the current
* state directly from the client.
*
*/
public static abstract class ClientStatusDiscoveryServiceImplBase implements io.grpc.BindableService {
/**
*/
public io.grpc.stub.StreamObserver streamClientStatus(
io.grpc.stub.StreamObserver responseObserver) {
return asyncUnimplementedStreamingCall(getStreamClientStatusMethod(), responseObserver);
}
/**
*/
public void fetchClientStatus(io.envoyproxy.envoy.service.status.v3.ClientStatusRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getFetchClientStatusMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getStreamClientStatusMethod(),
asyncBidiStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.service.status.v3.ClientStatusRequest,
io.envoyproxy.envoy.service.status.v3.ClientStatusResponse>(
this, METHODID_STREAM_CLIENT_STATUS)))
.addMethod(
getFetchClientStatusMethod(),
asyncUnaryCall(
new MethodHandlers<
io.envoyproxy.envoy.service.status.v3.ClientStatusRequest,
io.envoyproxy.envoy.service.status.v3.ClientStatusResponse>(
this, METHODID_FETCH_CLIENT_STATUS)))
.build();
}
}
/**
*
* CSDS is Client Status Discovery Service. It can be used to get the status of
* an xDS-compliant client from the management server's point of view. In the
* future, it can potentially be used as an interface to get the current
* state directly from the client.
*
*/
public static final class ClientStatusDiscoveryServiceStub extends io.grpc.stub.AbstractStub {
private ClientStatusDiscoveryServiceStub(io.grpc.Channel channel) {
super(channel);
}
private ClientStatusDiscoveryServiceStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClientStatusDiscoveryServiceStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new ClientStatusDiscoveryServiceStub(channel, callOptions);
}
/**
*/
public io.grpc.stub.StreamObserver streamClientStatus(
io.grpc.stub.StreamObserver responseObserver) {
return asyncBidiStreamingCall(
getChannel().newCall(getStreamClientStatusMethod(), getCallOptions()), responseObserver);
}
/**
*/
public void fetchClientStatus(io.envoyproxy.envoy.service.status.v3.ClientStatusRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getFetchClientStatusMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*
* CSDS is Client Status Discovery Service. It can be used to get the status of
* an xDS-compliant client from the management server's point of view. In the
* future, it can potentially be used as an interface to get the current
* state directly from the client.
*
*/
public static final class ClientStatusDiscoveryServiceBlockingStub extends io.grpc.stub.AbstractStub {
private ClientStatusDiscoveryServiceBlockingStub(io.grpc.Channel channel) {
super(channel);
}
private ClientStatusDiscoveryServiceBlockingStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClientStatusDiscoveryServiceBlockingStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new ClientStatusDiscoveryServiceBlockingStub(channel, callOptions);
}
/**
*/
public io.envoyproxy.envoy.service.status.v3.ClientStatusResponse fetchClientStatus(io.envoyproxy.envoy.service.status.v3.ClientStatusRequest request) {
return blockingUnaryCall(
getChannel(), getFetchClientStatusMethod(), getCallOptions(), request);
}
}
/**
*
* CSDS is Client Status Discovery Service. It can be used to get the status of
* an xDS-compliant client from the management server's point of view. In the
* future, it can potentially be used as an interface to get the current
* state directly from the client.
*
*/
public static final class ClientStatusDiscoveryServiceFutureStub extends io.grpc.stub.AbstractStub {
private ClientStatusDiscoveryServiceFutureStub(io.grpc.Channel channel) {
super(channel);
}
private ClientStatusDiscoveryServiceFutureStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected ClientStatusDiscoveryServiceFutureStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new ClientStatusDiscoveryServiceFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture fetchClientStatus(
io.envoyproxy.envoy.service.status.v3.ClientStatusRequest request) {
return futureUnaryCall(
getChannel().newCall(getFetchClientStatusMethod(), getCallOptions()), request);
}
}
private static final int METHODID_FETCH_CLIENT_STATUS = 0;
private static final int METHODID_STREAM_CLIENT_STATUS = 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 ClientStatusDiscoveryServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(ClientStatusDiscoveryServiceImplBase 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_CLIENT_STATUS:
serviceImpl.fetchClientStatus((io.envoyproxy.envoy.service.status.v3.ClientStatusRequest) 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_CLIENT_STATUS:
return (io.grpc.stub.StreamObserver) serviceImpl.streamClientStatus(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class ClientStatusDiscoveryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
ClientStatusDiscoveryServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.envoyproxy.envoy.service.status.v3.CsdsProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("ClientStatusDiscoveryService");
}
}
private static final class ClientStatusDiscoveryServiceFileDescriptorSupplier
extends ClientStatusDiscoveryServiceBaseDescriptorSupplier {
ClientStatusDiscoveryServiceFileDescriptorSupplier() {}
}
private static final class ClientStatusDiscoveryServiceMethodDescriptorSupplier
extends ClientStatusDiscoveryServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
ClientStatusDiscoveryServiceMethodDescriptorSupplier(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 (ClientStatusDiscoveryServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new ClientStatusDiscoveryServiceFileDescriptorSupplier())
.addMethod(getStreamClientStatusMethod())
.addMethod(getFetchClientStatusMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy