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.MetadataGrpc 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 MetadataGrpc {
private MetadataGrpc() {}
public static final String SERVICE_NAME = "v1.Metadata";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getRequestSqlMetaDataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RequestSqlMetaData",
requestType = com.navercorp.pinpoint.grpc.trace.PSqlMetaData.class,
responseType = com.navercorp.pinpoint.grpc.trace.PResult.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRequestSqlMetaDataMethod() {
io.grpc.MethodDescriptor getRequestSqlMetaDataMethod;
if ((getRequestSqlMetaDataMethod = MetadataGrpc.getRequestSqlMetaDataMethod) == null) {
synchronized (MetadataGrpc.class) {
if ((getRequestSqlMetaDataMethod = MetadataGrpc.getRequestSqlMetaDataMethod) == null) {
MetadataGrpc.getRequestSqlMetaDataMethod = getRequestSqlMetaDataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RequestSqlMetaData"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.navercorp.pinpoint.grpc.trace.PSqlMetaData.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.navercorp.pinpoint.grpc.trace.PResult.getDefaultInstance()))
.setSchemaDescriptor(new MetadataMethodDescriptorSupplier("RequestSqlMetaData"))
.build();
}
}
}
return getRequestSqlMetaDataMethod;
}
private static volatile io.grpc.MethodDescriptor getRequestApiMetaDataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RequestApiMetaData",
requestType = com.navercorp.pinpoint.grpc.trace.PApiMetaData.class,
responseType = com.navercorp.pinpoint.grpc.trace.PResult.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRequestApiMetaDataMethod() {
io.grpc.MethodDescriptor getRequestApiMetaDataMethod;
if ((getRequestApiMetaDataMethod = MetadataGrpc.getRequestApiMetaDataMethod) == null) {
synchronized (MetadataGrpc.class) {
if ((getRequestApiMetaDataMethod = MetadataGrpc.getRequestApiMetaDataMethod) == null) {
MetadataGrpc.getRequestApiMetaDataMethod = getRequestApiMetaDataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RequestApiMetaData"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.navercorp.pinpoint.grpc.trace.PApiMetaData.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.navercorp.pinpoint.grpc.trace.PResult.getDefaultInstance()))
.setSchemaDescriptor(new MetadataMethodDescriptorSupplier("RequestApiMetaData"))
.build();
}
}
}
return getRequestApiMetaDataMethod;
}
private static volatile io.grpc.MethodDescriptor getRequestStringMetaDataMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "RequestStringMetaData",
requestType = com.navercorp.pinpoint.grpc.trace.PStringMetaData.class,
responseType = com.navercorp.pinpoint.grpc.trace.PResult.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getRequestStringMetaDataMethod() {
io.grpc.MethodDescriptor getRequestStringMetaDataMethod;
if ((getRequestStringMetaDataMethod = MetadataGrpc.getRequestStringMetaDataMethod) == null) {
synchronized (MetadataGrpc.class) {
if ((getRequestStringMetaDataMethod = MetadataGrpc.getRequestStringMetaDataMethod) == null) {
MetadataGrpc.getRequestStringMetaDataMethod = getRequestStringMetaDataMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "RequestStringMetaData"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.navercorp.pinpoint.grpc.trace.PStringMetaData.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.navercorp.pinpoint.grpc.trace.PResult.getDefaultInstance()))
.setSchemaDescriptor(new MetadataMethodDescriptorSupplier("RequestStringMetaData"))
.build();
}
}
}
return getRequestStringMetaDataMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static MetadataStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public MetadataStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetadataStub(channel, callOptions);
}
};
return MetadataStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static MetadataBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public MetadataBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetadataBlockingStub(channel, callOptions);
}
};
return MetadataBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static MetadataFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public MetadataFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetadataFutureStub(channel, callOptions);
}
};
return MetadataFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class MetadataImplBase implements io.grpc.BindableService {
/**
*/
public void requestSqlMetaData(com.navercorp.pinpoint.grpc.trace.PSqlMetaData request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRequestSqlMetaDataMethod(), responseObserver);
}
/**
*/
public void requestApiMetaData(com.navercorp.pinpoint.grpc.trace.PApiMetaData request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRequestApiMetaDataMethod(), responseObserver);
}
/**
*/
public void requestStringMetaData(com.navercorp.pinpoint.grpc.trace.PStringMetaData request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRequestStringMetaDataMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getRequestSqlMetaDataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.navercorp.pinpoint.grpc.trace.PSqlMetaData,
com.navercorp.pinpoint.grpc.trace.PResult>(
this, METHODID_REQUEST_SQL_META_DATA)))
.addMethod(
getRequestApiMetaDataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.navercorp.pinpoint.grpc.trace.PApiMetaData,
com.navercorp.pinpoint.grpc.trace.PResult>(
this, METHODID_REQUEST_API_META_DATA)))
.addMethod(
getRequestStringMetaDataMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.navercorp.pinpoint.grpc.trace.PStringMetaData,
com.navercorp.pinpoint.grpc.trace.PResult>(
this, METHODID_REQUEST_STRING_META_DATA)))
.build();
}
}
/**
*/
public static final class MetadataStub extends io.grpc.stub.AbstractAsyncStub {
private MetadataStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected MetadataStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetadataStub(channel, callOptions);
}
/**
*/
public void requestSqlMetaData(com.navercorp.pinpoint.grpc.trace.PSqlMetaData request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRequestSqlMetaDataMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void requestApiMetaData(com.navercorp.pinpoint.grpc.trace.PApiMetaData request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRequestApiMetaDataMethod(), getCallOptions()), request, responseObserver);
}
/**
*/
public void requestStringMetaData(com.navercorp.pinpoint.grpc.trace.PStringMetaData request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getRequestStringMetaDataMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class MetadataBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private MetadataBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected MetadataBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetadataBlockingStub(channel, callOptions);
}
/**
*/
public com.navercorp.pinpoint.grpc.trace.PResult requestSqlMetaData(com.navercorp.pinpoint.grpc.trace.PSqlMetaData request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRequestSqlMetaDataMethod(), getCallOptions(), request);
}
/**
*/
public com.navercorp.pinpoint.grpc.trace.PResult requestApiMetaData(com.navercorp.pinpoint.grpc.trace.PApiMetaData request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRequestApiMetaDataMethod(), getCallOptions(), request);
}
/**
*/
public com.navercorp.pinpoint.grpc.trace.PResult requestStringMetaData(com.navercorp.pinpoint.grpc.trace.PStringMetaData request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getRequestStringMetaDataMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class MetadataFutureStub extends io.grpc.stub.AbstractFutureStub {
private MetadataFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected MetadataFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new MetadataFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture requestSqlMetaData(
com.navercorp.pinpoint.grpc.trace.PSqlMetaData request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRequestSqlMetaDataMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture requestApiMetaData(
com.navercorp.pinpoint.grpc.trace.PApiMetaData request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRequestApiMetaDataMethod(), getCallOptions()), request);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture requestStringMetaData(
com.navercorp.pinpoint.grpc.trace.PStringMetaData request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getRequestStringMetaDataMethod(), getCallOptions()), request);
}
}
private static final int METHODID_REQUEST_SQL_META_DATA = 0;
private static final int METHODID_REQUEST_API_META_DATA = 1;
private static final int METHODID_REQUEST_STRING_META_DATA = 2;
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 MetadataImplBase serviceImpl;
private final int methodId;
MethodHandlers(MetadataImplBase 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_REQUEST_SQL_META_DATA:
serviceImpl.requestSqlMetaData((com.navercorp.pinpoint.grpc.trace.PSqlMetaData) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REQUEST_API_META_DATA:
serviceImpl.requestApiMetaData((com.navercorp.pinpoint.grpc.trace.PApiMetaData) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_REQUEST_STRING_META_DATA:
serviceImpl.requestStringMetaData((com.navercorp.pinpoint.grpc.trace.PStringMetaData) 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 MetadataBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
MetadataBaseDescriptorSupplier() {}
@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("Metadata");
}
}
private static final class MetadataFileDescriptorSupplier
extends MetadataBaseDescriptorSupplier {
MetadataFileDescriptorSupplier() {}
}
private static final class MetadataMethodDescriptorSupplier
extends MetadataBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
MetadataMethodDescriptorSupplier(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 (MetadataGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new MetadataFileDescriptorSupplier())
.addMethod(getRequestSqlMetaDataMethod())
.addMethod(getRequestApiMetaDataMethod())
.addMethod(getRequestStringMetaDataMethod())
.build();
}
}
}
return result;
}
}