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.
* 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.48.1)",
comments = "Source: envoy/service/status/v2/csds.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class ClientStatusDiscoveryServiceGrpc {
private ClientStatusDiscoveryServiceGrpc() {}
public static final String SERVICE_NAME = "envoy.service.status.v2.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.v2.ClientStatusRequest.class,
responseType = io.envoyproxy.envoy.service.status.v2.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(SERVICE_NAME, "StreamClientStatus"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.status.v2.ClientStatusRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.status.v2.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.v2.ClientStatusRequest.class,
responseType = io.envoyproxy.envoy.service.status.v2.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(SERVICE_NAME, "FetchClientStatus"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.status.v2.ClientStatusRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.envoyproxy.envoy.service.status.v2.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) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClientStatusDiscoveryServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientStatusDiscoveryServiceStub(channel, callOptions);
}
};
return ClientStatusDiscoveryServiceStub.newStub(factory, 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) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClientStatusDiscoveryServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientStatusDiscoveryServiceBlockingStub(channel, callOptions);
}
};
return ClientStatusDiscoveryServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static ClientStatusDiscoveryServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public ClientStatusDiscoveryServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new ClientStatusDiscoveryServiceFutureStub(channel, callOptions);
}
};
return ClientStatusDiscoveryServiceFutureStub.newStub(factory, 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 io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getStreamClientStatusMethod(), responseObserver);
}
/**
*/
public void fetchClientStatus(io.envoyproxy.envoy.service.status.v2.ClientStatusRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getFetchClientStatusMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getStreamClientStatusMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
io.envoyproxy.envoy.service.status.v2.ClientStatusRequest,
io.envoyproxy.envoy.service.status.v2.ClientStatusResponse>(
this, METHODID_STREAM_CLIENT_STATUS)))
.addMethod(
getFetchClientStatusMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.envoyproxy.envoy.service.status.v2.ClientStatusRequest,
io.envoyproxy.envoy.service.status.v2.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.
*
* 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.AbstractBlockingStub {
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.v2.ClientStatusResponse fetchClientStatus(io.envoyproxy.envoy.service.status.v2.ClientStatusRequest request) {
return io.grpc.stub.ClientCalls.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.AbstractFutureStub {
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.v2.ClientStatusRequest request) {
return io.grpc.stub.ClientCalls.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.v2.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.v2.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;
}
}