yandex.cloud.api.loadtesting.agent.v1.AgentServiceGrpc Maven / Gradle / Ivy
package yandex.cloud.api.loadtesting.agent.v1;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.43.2)",
comments = "Source: yandex/cloud/loadtesting/agent/v1/agent_service.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class AgentServiceGrpc {
private AgentServiceGrpc() {}
public static final String SERVICE_NAME = "yandex.cloud.loadtesting.agent.v1.AgentService";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getClaimStatusMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "ClaimStatus",
requestType = yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.class,
responseType = yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getClaimStatusMethod() {
io.grpc.MethodDescriptor getClaimStatusMethod;
if ((getClaimStatusMethod = AgentServiceGrpc.getClaimStatusMethod) == null) {
synchronized (AgentServiceGrpc.class) {
if ((getClaimStatusMethod = AgentServiceGrpc.getClaimStatusMethod) == null) {
AgentServiceGrpc.getClaimStatusMethod = getClaimStatusMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "ClaimStatus"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse.getDefaultInstance()))
.setSchemaDescriptor(new AgentServiceMethodDescriptorSupplier("ClaimStatus"))
.build();
}
}
}
return getClaimStatusMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static AgentServiceStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AgentServiceStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AgentServiceStub(channel, callOptions);
}
};
return AgentServiceStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static AgentServiceBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AgentServiceBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AgentServiceBlockingStub(channel, callOptions);
}
};
return AgentServiceBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static AgentServiceFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public AgentServiceFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AgentServiceFutureStub(channel, callOptions);
}
};
return AgentServiceFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class AgentServiceImplBase implements io.grpc.BindableService {
/**
*
* Claims status for the specified agent.
*
*/
public void claimStatus(yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getClaimStatusMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getClaimStatusMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest,
yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse>(
this, METHODID_CLAIM_STATUS)))
.build();
}
}
/**
*/
public static final class AgentServiceStub extends io.grpc.stub.AbstractAsyncStub {
private AgentServiceStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AgentServiceStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AgentServiceStub(channel, callOptions);
}
/**
*
* Claims status for the specified agent.
*
*/
public void claimStatus(yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getClaimStatusMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class AgentServiceBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private AgentServiceBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AgentServiceBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AgentServiceBlockingStub(channel, callOptions);
}
/**
*
* Claims status for the specified agent.
*
*/
public yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusResponse claimStatus(yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getClaimStatusMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class AgentServiceFutureStub extends io.grpc.stub.AbstractFutureStub {
private AgentServiceFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected AgentServiceFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new AgentServiceFutureStub(channel, callOptions);
}
/**
*
* Claims status for the specified agent.
*
*/
public com.google.common.util.concurrent.ListenableFuture claimStatus(
yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getClaimStatusMethod(), getCallOptions()), request);
}
}
private static final int METHODID_CLAIM_STATUS = 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 AgentServiceImplBase serviceImpl;
private final int methodId;
MethodHandlers(AgentServiceImplBase 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_CLAIM_STATUS:
serviceImpl.claimStatus((yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.ClaimAgentStatusRequest) 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();
}
}
}
private static abstract class AgentServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
AgentServiceBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return yandex.cloud.api.loadtesting.agent.v1.AgentServiceOuterClass.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("AgentService");
}
}
private static final class AgentServiceFileDescriptorSupplier
extends AgentServiceBaseDescriptorSupplier {
AgentServiceFileDescriptorSupplier() {}
}
private static final class AgentServiceMethodDescriptorSupplier
extends AgentServiceBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
AgentServiceMethodDescriptorSupplier(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 (AgentServiceGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new AgentServiceFileDescriptorSupplier())
.addMethod(getClaimStatusMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy