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.
package etcdserverpb;
import static io.grpc.stub.ClientCalls.asyncUnaryCall;
import static io.grpc.stub.ClientCalls.asyncServerStreamingCall;
import static io.grpc.stub.ClientCalls.asyncClientStreamingCall;
import static io.grpc.stub.ClientCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ClientCalls.blockingUnaryCall;
import static io.grpc.stub.ClientCalls.blockingServerStreamingCall;
import static io.grpc.stub.ClientCalls.futureUnaryCall;
import static io.grpc.MethodDescriptor.generateFullMethodName;
import static io.grpc.stub.ServerCalls.asyncUnaryCall;
import static io.grpc.stub.ServerCalls.asyncServerStreamingCall;
import static io.grpc.stub.ServerCalls.asyncClientStreamingCall;
import static io.grpc.stub.ServerCalls.asyncBidiStreamingCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall;
import static io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.7.0)",
comments = "Source: etcd/etcdserver/etcdserverpb/rpc.proto")
public final class LeaseGrpc {
private LeaseGrpc() {}
public static final String SERVICE_NAME = "etcdserverpb.Lease";
// Static method descriptors that strictly reflect the proto.
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final io.grpc.MethodDescriptor METHOD_LEASE_GRANT =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"etcdserverpb.Lease", "LeaseGrant"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
etcdserverpb.Rpc.LeaseGrantRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
etcdserverpb.Rpc.LeaseGrantResponse.getDefaultInstance()))
.setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseGrant"))
.build();
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final io.grpc.MethodDescriptor METHOD_LEASE_REVOKE =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"etcdserverpb.Lease", "LeaseRevoke"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
etcdserverpb.Rpc.LeaseRevokeRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
etcdserverpb.Rpc.LeaseRevokeResponse.getDefaultInstance()))
.setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseRevoke"))
.build();
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final io.grpc.MethodDescriptor METHOD_LEASE_KEEP_ALIVE =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(
"etcdserverpb.Lease", "LeaseKeepAlive"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
etcdserverpb.Rpc.LeaseKeepAliveRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
etcdserverpb.Rpc.LeaseKeepAliveResponse.getDefaultInstance()))
.setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseKeepAlive"))
.build();
@io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
public static final io.grpc.MethodDescriptor METHOD_LEASE_TIME_TO_LIVE =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(
"etcdserverpb.Lease", "LeaseTimeToLive"))
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
etcdserverpb.Rpc.LeaseTimeToLiveRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
etcdserverpb.Rpc.LeaseTimeToLiveResponse.getDefaultInstance()))
.setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseTimeToLive"))
.build();
/**
* Creates a new async stub that supports all call types for the service
*/
public static LeaseStub newStub(io.grpc.Channel channel) {
return new LeaseStub(channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static LeaseBlockingStub newBlockingStub(
io.grpc.Channel channel) {
return new LeaseBlockingStub(channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static LeaseFutureStub newFutureStub(
io.grpc.Channel channel) {
return new LeaseFutureStub(channel);
}
/**
*/
public static abstract class LeaseImplBase implements io.grpc.BindableService {
/**
*
* LeaseGrant creates a lease which expires if the server does not receive a keepAlive
* within a given time to live period. All keys attached to the lease will be expired and
* deleted if the lease expires. Each expired key generates a delete event in the event history.
*
* LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
* to the server and streaming keep alive responses from the server to the client.
*
*/
public void leaseTimeToLive(etcdserverpb.Rpc.LeaseTimeToLiveRequest request,
io.grpc.stub.StreamObserver responseObserver) {
asyncUnimplementedUnaryCall(METHOD_LEASE_TIME_TO_LIVE, responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
METHOD_LEASE_GRANT,
asyncUnaryCall(
new MethodHandlers<
etcdserverpb.Rpc.LeaseGrantRequest,
etcdserverpb.Rpc.LeaseGrantResponse>(
this, METHODID_LEASE_GRANT)))
.addMethod(
METHOD_LEASE_REVOKE,
asyncUnaryCall(
new MethodHandlers<
etcdserverpb.Rpc.LeaseRevokeRequest,
etcdserverpb.Rpc.LeaseRevokeResponse>(
this, METHODID_LEASE_REVOKE)))
.addMethod(
METHOD_LEASE_KEEP_ALIVE,
asyncBidiStreamingCall(
new MethodHandlers<
etcdserverpb.Rpc.LeaseKeepAliveRequest,
etcdserverpb.Rpc.LeaseKeepAliveResponse>(
this, METHODID_LEASE_KEEP_ALIVE)))
.addMethod(
METHOD_LEASE_TIME_TO_LIVE,
asyncUnaryCall(
new MethodHandlers<
etcdserverpb.Rpc.LeaseTimeToLiveRequest,
etcdserverpb.Rpc.LeaseTimeToLiveResponse>(
this, METHODID_LEASE_TIME_TO_LIVE)))
.build();
}
}
/**
*/
public static final class LeaseStub extends io.grpc.stub.AbstractStub {
private LeaseStub(io.grpc.Channel channel) {
super(channel);
}
private LeaseStub(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LeaseStub build(io.grpc.Channel channel,
io.grpc.CallOptions callOptions) {
return new LeaseStub(channel, callOptions);
}
/**
*
* LeaseGrant creates a lease which expires if the server does not receive a keepAlive
* within a given time to live period. All keys attached to the lease will be expired and
* deleted if the lease expires. Each expired key generates a delete event in the event history.
*
* LeaseKeepAlive keeps the lease alive by streaming keep alive requests from the client
* to the server and streaming keep alive responses from the server to the client.
*
* LeaseGrant creates a lease which expires if the server does not receive a keepAlive
* within a given time to live period. All keys attached to the lease will be expired and
* deleted if the lease expires. Each expired key generates a delete event in the event history.
*
* LeaseGrant creates a lease which expires if the server does not receive a keepAlive
* within a given time to live period. All keys attached to the lease will be expired and
* deleted if the lease expires. Each expired key generates a delete event in the event history.
*