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.
* A service to dynamically update the configuration of an xDS test client.
*
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler",
comments = "Source: grpc/testing/test.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class XdsUpdateClientConfigureServiceGrpc {
private XdsUpdateClientConfigureServiceGrpc() {}
public static final java.lang.String SERVICE_NAME = "grpc.testing.XdsUpdateClientConfigureService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getConfigureMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Configure",
requestType = io.grpc.testing.integration.Messages.ClientConfigureRequest.class,
responseType = io.grpc.testing.integration.Messages.ClientConfigureResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getConfigureMethod() {
io.grpc.MethodDescriptor getConfigureMethod;
if ((getConfigureMethod = XdsUpdateClientConfigureServiceGrpc.getConfigureMethod) == null) {
synchronized (XdsUpdateClientConfigureServiceGrpc.class) {
if ((getConfigureMethod = XdsUpdateClientConfigureServiceGrpc.getConfigureMethod) == null) {
XdsUpdateClientConfigureServiceGrpc.getConfigureMethod = getConfigureMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "Configure"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.grpc.testing.integration.Messages.ClientConfigureRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.grpc.testing.integration.Messages.ClientConfigureResponse.getDefaultInstance()))
.setSchemaDescriptor(new XdsUpdateClientConfigureServiceMethodDescriptorSupplier("Configure"))
.build();
}
}
}
return getConfigureMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static XdsUpdateClientConfigureServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public XdsUpdateClientConfigureServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new XdsUpdateClientConfigureServiceStub(channel, callOptions);
}
};
return XdsUpdateClientConfigureServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static XdsUpdateClientConfigureServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public XdsUpdateClientConfigureServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new XdsUpdateClientConfigureServiceBlockingStub(channel, callOptions);
}
};
return XdsUpdateClientConfigureServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static XdsUpdateClientConfigureServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public XdsUpdateClientConfigureServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new XdsUpdateClientConfigureServiceFutureStub(channel, callOptions);
}
};
return XdsUpdateClientConfigureServiceFutureStub.newStub(factory, channel);
}
/**
*
* A service to dynamically update the configuration of an xDS test client.
*
*/
public interface AsyncService {
/**
*
* Update the tes client's configuration.
*
*/
default void configure(io.grpc.testing.integration.Messages.ClientConfigureRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getConfigureMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service XdsUpdateClientConfigureService.
*
* A service to dynamically update the configuration of an xDS test client.
*
*/
public static abstract class XdsUpdateClientConfigureServiceImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return XdsUpdateClientConfigureServiceGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service XdsUpdateClientConfigureService.
*
* A service to dynamically update the configuration of an xDS test client.
*
*/
public static final class XdsUpdateClientConfigureServiceStub
extends io.grpc.stub.AbstractAsyncStub {
private XdsUpdateClientConfigureServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected XdsUpdateClientConfigureServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new XdsUpdateClientConfigureServiceStub(channel, callOptions);
}
/**
*
* Update the tes client's configuration.
*
*/
public void configure(io.grpc.testing.integration.Messages.ClientConfigureRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getConfigureMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service XdsUpdateClientConfigureService.
*
* A service to dynamically update the configuration of an xDS test client.
*
*/
public static final class XdsUpdateClientConfigureServiceBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private XdsUpdateClientConfigureServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected XdsUpdateClientConfigureServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new XdsUpdateClientConfigureServiceBlockingStub(channel, callOptions);
}
/**
*
* Update the tes client's configuration.
*
*/
public io.grpc.testing.integration.Messages.ClientConfigureResponse configure(io.grpc.testing.integration.Messages.ClientConfigureRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getConfigureMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service XdsUpdateClientConfigureService.
*
* A service to dynamically update the configuration of an xDS test client.
*
*/
public static final class XdsUpdateClientConfigureServiceFutureStub
extends io.grpc.stub.AbstractFutureStub {
private XdsUpdateClientConfigureServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected XdsUpdateClientConfigureServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new XdsUpdateClientConfigureServiceFutureStub(channel, callOptions);
}
/**
*
* Update the tes client's configuration.
*
*/
public com.google.common.util.concurrent.ListenableFuture configure(
io.grpc.testing.integration.Messages.ClientConfigureRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getConfigureMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CONFIGURE = 0;
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 AsyncService serviceImpl;
private final int methodId;
MethodHandlers(AsyncService 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_CONFIGURE:
serviceImpl.configure((io.grpc.testing.integration.Messages.ClientConfigureRequest) 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) {
default:
throw new AssertionError();
}
}
}
public static final io.grpc.ServerServiceDefinition bindService(AsyncService service) {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getConfigureMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
io.grpc.testing.integration.Messages.ClientConfigureRequest,
io.grpc.testing.integration.Messages.ClientConfigureResponse>(
service, METHODID_CONFIGURE)))
.build();
}
private static abstract class XdsUpdateClientConfigureServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
XdsUpdateClientConfigureServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.grpc.testing.integration.Test.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("XdsUpdateClientConfigureService");
}
}
private static final class XdsUpdateClientConfigureServiceFileDescriptorSupplier
extends XdsUpdateClientConfigureServiceBaseDescriptorSupplier {
XdsUpdateClientConfigureServiceFileDescriptorSupplier() {}
}
private static final class XdsUpdateClientConfigureServiceMethodDescriptorSupplier
extends XdsUpdateClientConfigureServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final java.lang.String methodName;
XdsUpdateClientConfigureServiceMethodDescriptorSupplier(java.lang.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 (XdsUpdateClientConfigureServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new XdsUpdateClientConfigureServiceFileDescriptorSupplier())
.addMethod(getConfigureMethod())
.build();
}
}
}
return result;
}
}