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.
io.arthas.api.PwdGrpc Maven / Gradle / Ivy
package io.arthas.api;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.28.0)",
comments = "Source: ArthasServices.proto")
public final class PwdGrpc {
private PwdGrpc() {}
public static final String SERVICE_NAME = "io.arthas.api.Pwd";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getPwdMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "pwd",
requestType = com.google.protobuf.Empty.class,
responseType = io.arthas.api.ArthasServices.ResponseBody.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPwdMethod() {
io.grpc.MethodDescriptor getPwdMethod;
if ((getPwdMethod = PwdGrpc.getPwdMethod) == null) {
synchronized (PwdGrpc.class) {
if ((getPwdMethod = PwdGrpc.getPwdMethod) == null) {
PwdGrpc.getPwdMethod = getPwdMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "pwd"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.google.protobuf.Empty.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.arthas.api.ArthasServices.ResponseBody.getDefaultInstance()))
.setSchemaDescriptor(new PwdMethodDescriptorSupplier("pwd"))
.build();
}
}
}
return getPwdMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static PwdStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PwdStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PwdStub(channel, callOptions);
}
};
return PwdStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static PwdBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PwdBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PwdBlockingStub(channel, callOptions);
}
};
return PwdBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static PwdFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PwdFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PwdFutureStub(channel, callOptions);
}
};
return PwdFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class PwdImplBase implements io.grpc.BindableService {
/**
*/
public void pwd(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getPwdMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getPwdMethod(),
asyncUnaryCall(
new MethodHandlers<
com.google.protobuf.Empty,
io.arthas.api.ArthasServices.ResponseBody>(
this, METHODID_PWD)))
.build();
}
}
/**
*/
public static final class PwdStub extends io.grpc.stub.AbstractAsyncStub {
private PwdStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PwdStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PwdStub(channel, callOptions);
}
/**
*/
public void pwd(com.google.protobuf.Empty request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnaryCall(
getChannel().newCall(getPwdMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class PwdBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private PwdBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PwdBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PwdBlockingStub(channel, callOptions);
}
/**
*/
public io.arthas.api.ArthasServices.ResponseBody pwd(com.google.protobuf.Empty request) {
return blockingUnaryCall(
getChannel(), getPwdMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class PwdFutureStub extends io.grpc.stub.AbstractFutureStub {
private PwdFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PwdFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PwdFutureStub(channel, callOptions);
}
/**
*/
public com.google.common.util.concurrent.ListenableFuture pwd(
com.google.protobuf.Empty request) {
return futureUnaryCall(
getChannel().newCall(getPwdMethod(), getCallOptions()), request);
}
}
private static final int METHODID_PWD = 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 PwdImplBase serviceImpl;
private final int methodId;
MethodHandlers(PwdImplBase 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_PWD:
serviceImpl.pwd((com.google.protobuf.Empty) 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 PwdBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
PwdBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return io.arthas.api.ArthasServices.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("Pwd");
}
}
private static final class PwdFileDescriptorSupplier
extends PwdBaseDescriptorSupplier {
PwdFileDescriptorSupplier() {}
}
private static final class PwdMethodDescriptorSupplier
extends PwdBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
PwdMethodDescriptorSupplier(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 (PwdGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new PwdFileDescriptorSupplier())
.addMethod(getPwdMethod())
.build();
}
}
}
return result;
}
}