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.
/*
* Copyright 1999-2020 Alibaba Group Holding Ltd.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
package com.alibaba.nacos.api.grpc.auto;
import static com.alibaba.nacos.shaded.io.grpc.MethodDescriptor.generateFullMethodName;
import static com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls.asyncUnaryCall;
import static com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls.blockingUnaryCall;
import static com.alibaba.nacos.shaded.io.grpc.stub.ClientCalls.futureUnaryCall;
import static com.alibaba.nacos.shaded.io.grpc.stub.ServerCalls.asyncUnaryCall;
import static com.alibaba.nacos.shaded.io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
/**
*
*/
@com.alibaba.nacos.shaded.javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.14.0)",
comments = "Source: nacos_grpc_service.proto")
public final class RequestGrpc {
private RequestGrpc() {}
public static final String SERVICE_NAME = "Request";
// Static method descriptors that strictly reflect the proto.
private static volatile com.alibaba.nacos.shaded.io.grpc.MethodDescriptor getRequestMethod;
@com.alibaba.nacos.shaded.io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "request",
requestType = com.alibaba.nacos.api.grpc.auto.Payload.class,
responseType = com.alibaba.nacos.api.grpc.auto.Payload.class,
methodType = com.alibaba.nacos.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
public static com.alibaba.nacos.shaded.io.grpc.MethodDescriptor getRequestMethod() {
com.alibaba.nacos.shaded.io.grpc.MethodDescriptor getRequestMethod;
if ((getRequestMethod = RequestGrpc.getRequestMethod) == null) {
synchronized (RequestGrpc.class) {
if ((getRequestMethod = RequestGrpc.getRequestMethod) == null) {
RequestGrpc.getRequestMethod = getRequestMethod =
com.alibaba.nacos.shaded.io.grpc.MethodDescriptor.newBuilder()
.setType(com.alibaba.nacos.shaded.io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"Request", "request"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(com.alibaba.nacos.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.nacos.api.grpc.auto.Payload.getDefaultInstance()))
.setResponseMarshaller(com.alibaba.nacos.shaded.io.grpc.protobuf.ProtoUtils.marshaller(
com.alibaba.nacos.api.grpc.auto.Payload.getDefaultInstance()))
.setSchemaDescriptor(new RequestMethodDescriptorSupplier("request"))
.build();
}
}
}
return getRequestMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static RequestStub newStub(com.alibaba.nacos.shaded.io.grpc.Channel channel) {
return new RequestStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static RequestBlockingStub newBlockingStub(
com.alibaba.nacos.shaded.io.grpc.Channel channel) {
return new RequestBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static RequestFutureStub newFutureStub(
com.alibaba.nacos.shaded.io.grpc.Channel channel) {
return new RequestFutureStub(channel);
}
/**
*/
public static abstract class RequestImplBase implements com.alibaba.nacos.shaded.io.grpc.BindableService {
/**
*
* Sends a commonRequest
*
*/
public void request(com.alibaba.nacos.api.grpc.auto.Payload request,
com.alibaba.nacos.shaded.io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(getRequestMethod(), responseObserver);
}
@Override public final com.alibaba.nacos.shaded.io.grpc.ServerServiceDefinition bindService() {
return com.alibaba.nacos.shaded.io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getRequestMethod(),
asyncUnaryCall(
new MethodHandlers<
com.alibaba.nacos.api.grpc.auto.Payload,
com.alibaba.nacos.api.grpc.auto.Payload>(
this, METHODID_REQUEST)))
.build();
}
}
/**
*/
public static final class RequestStub extends com.alibaba.nacos.shaded.io.grpc.stub.AbstractStub {
private RequestStub(com.alibaba.nacos.shaded.io.grpc.Channel channel) {
super(channel);
}
private RequestStub(com.alibaba.nacos.shaded.io.grpc.Channel channel,
com.alibaba.nacos.shaded.io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@Override
protected RequestStub build(com.alibaba.nacos.shaded.io.grpc.Channel channel,
com.alibaba.nacos.shaded.io.grpc.CallOptions callOptions) {
return new RequestStub(channel, callOptions);
}
/**
*