All Downloads are FREE. Search and download functionalities are using the official Maven repository.
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.
com.navercorp.pinpoint.grpc.trace.StatGrpc Maven / Gradle / Ivy
package com.navercorp.pinpoint.grpc.trace;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.36.2)",
comments = "Source: v1/Service.proto")
public final class StatGrpc {
private StatGrpc() {}
public static final String SERVICE_NAME = "v1.Stat";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getSendAgentStatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "SendAgentStat",
requestType = com.navercorp.pinpoint.grpc.trace.PStatMessage.class,
responseType = com.google.protobuf.Empty.class,
methodType = io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
public static io.grpc.MethodDescriptor getSendAgentStatMethod() {
io.grpc.MethodDescriptor getSendAgentStatMethod;
if ((getSendAgentStatMethod = StatGrpc.getSendAgentStatMethod) == null) {
synchronized (StatGrpc.class) {
if ((getSendAgentStatMethod = StatGrpc.getSendAgentStatMethod) == null) {
StatGrpc.getSendAgentStatMethod = getSendAgentStatMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.CLIENT_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "SendAgentStat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.navercorp.pinpoint.grpc.trace.PStatMessage.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setSchemaDescriptor(new StatMethodDescriptorSupplier("SendAgentStat"))
.build();
}
}
}
return getSendAgentStatMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static StatStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public StatStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StatStub(channel, callOptions);
}
};
return StatStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static StatBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public StatBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StatBlockingStub(channel, callOptions);
}
};
return StatBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static StatFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public StatFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StatFutureStub(channel, callOptions);
}
};
return StatFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class StatImplBase implements io.grpc.BindableService {
/**
*/
public io.grpc.stub.StreamObserver sendAgentStat(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getSendAgentStatMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getSendAgentStatMethod(),
io.grpc.stub.ServerCalls.asyncClientStreamingCall(
new MethodHandlers<
com.navercorp.pinpoint.grpc.trace.PStatMessage,
com.google.protobuf.Empty>(
this, METHODID_SEND_AGENT_STAT)))
.build();
}
}
/**
*/
public static final class StatStub extends io.grpc.stub.AbstractAsyncStub {
private StatStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected StatStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StatStub(channel, callOptions);
}
/**
*/
public io.grpc.stub.StreamObserver sendAgentStat(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncClientStreamingCall(
getChannel().newCall(getSendAgentStatMethod(), getCallOptions()), responseObserver);
}
}
/**
*/
public static final class StatBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private StatBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected StatBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StatBlockingStub(channel, callOptions);
}
}
/**
*/
public static final class StatFutureStub extends io.grpc.stub.AbstractFutureStub {
private StatFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected StatFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new StatFutureStub(channel, callOptions);
}
}
private static final int METHODID_SEND_AGENT_STAT = 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 StatImplBase serviceImpl;
private final int methodId;
MethodHandlers(StatImplBase 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) {
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_SEND_AGENT_STAT:
return (io.grpc.stub.StreamObserver) serviceImpl.sendAgentStat(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class StatBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
StatBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.navercorp.pinpoint.grpc.trace.ServiceProto.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Stat");
}
}
private static final class StatFileDescriptorSupplier
extends StatBaseDescriptorSupplier {
StatFileDescriptorSupplier() {}
}
private static final class StatMethodDescriptorSupplier
extends StatBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
StatMethodDescriptorSupplier(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 (StatGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new StatFileDescriptorSupplier())
.addMethod(getSendAgentStatMethod())
.build();
}
}
}
return result;
}
}