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 io.helidon.config.etcd.internal.client.proto;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.60.0)",
comments = "Source: rpc.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class LeaseGrpc {
private LeaseGrpc() {}
public static final java.lang.String SERVICE_NAME = "etcdserverpb.Lease";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getLeaseGrantMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "LeaseGrant",
requestType = io.helidon.config.etcd.internal.client.proto.LeaseGrantRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.LeaseGrantResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getLeaseGrantMethod() {
io.grpc.MethodDescriptor getLeaseGrantMethod;
if ((getLeaseGrantMethod = LeaseGrpc.getLeaseGrantMethod) == null) {
synchronized (LeaseGrpc.class) {
if ((getLeaseGrantMethod = LeaseGrpc.getLeaseGrantMethod) == null) {
LeaseGrpc.getLeaseGrantMethod = getLeaseGrantMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseGrant"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.LeaseGrantRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.LeaseGrantResponse.getDefaultInstance()))
.setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseGrant"))
.build();
}
}
}
return getLeaseGrantMethod;
}
private static volatile io.grpc.MethodDescriptor getLeaseRevokeMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "LeaseRevoke",
requestType = io.helidon.config.etcd.internal.client.proto.LeaseRevokeRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.LeaseRevokeResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getLeaseRevokeMethod() {
io.grpc.MethodDescriptor getLeaseRevokeMethod;
if ((getLeaseRevokeMethod = LeaseGrpc.getLeaseRevokeMethod) == null) {
synchronized (LeaseGrpc.class) {
if ((getLeaseRevokeMethod = LeaseGrpc.getLeaseRevokeMethod) == null) {
LeaseGrpc.getLeaseRevokeMethod = getLeaseRevokeMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseRevoke"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.LeaseRevokeRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.LeaseRevokeResponse.getDefaultInstance()))
.setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseRevoke"))
.build();
}
}
}
return getLeaseRevokeMethod;
}
private static volatile io.grpc.MethodDescriptor getLeaseKeepAliveMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "LeaseKeepAlive",
requestType = io.helidon.config.etcd.internal.client.proto.LeaseKeepAliveRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.LeaseKeepAliveResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getLeaseKeepAliveMethod() {
io.grpc.MethodDescriptor getLeaseKeepAliveMethod;
if ((getLeaseKeepAliveMethod = LeaseGrpc.getLeaseKeepAliveMethod) == null) {
synchronized (LeaseGrpc.class) {
if ((getLeaseKeepAliveMethod = LeaseGrpc.getLeaseKeepAliveMethod) == null) {
LeaseGrpc.getLeaseKeepAliveMethod = getLeaseKeepAliveMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseKeepAlive"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.LeaseKeepAliveRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.LeaseKeepAliveResponse.getDefaultInstance()))
.setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseKeepAlive"))
.build();
}
}
}
return getLeaseKeepAliveMethod;
}
private static volatile io.grpc.MethodDescriptor getLeaseTimeToLiveMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "LeaseTimeToLive",
requestType = io.helidon.config.etcd.internal.client.proto.LeaseTimeToLiveRequest.class,
responseType = io.helidon.config.etcd.internal.client.proto.LeaseTimeToLiveResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getLeaseTimeToLiveMethod() {
io.grpc.MethodDescriptor getLeaseTimeToLiveMethod;
if ((getLeaseTimeToLiveMethod = LeaseGrpc.getLeaseTimeToLiveMethod) == null) {
synchronized (LeaseGrpc.class) {
if ((getLeaseTimeToLiveMethod = LeaseGrpc.getLeaseTimeToLiveMethod) == null) {
LeaseGrpc.getLeaseTimeToLiveMethod = getLeaseTimeToLiveMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "LeaseTimeToLive"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.LeaseTimeToLiveRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
io.helidon.config.etcd.internal.client.proto.LeaseTimeToLiveResponse.getDefaultInstance()))
.setSchemaDescriptor(new LeaseMethodDescriptorSupplier("LeaseTimeToLive"))
.build();
}
}
}
return getLeaseTimeToLiveMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static LeaseStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public LeaseStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LeaseStub(channel, callOptions);
}
};
return LeaseStub.newStub(factory, 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) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public LeaseBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LeaseBlockingStub(channel, callOptions);
}
};
return LeaseBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static LeaseFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public LeaseFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LeaseFutureStub(channel, callOptions);
}
};
return LeaseFutureStub.newStub(factory, channel);
}
/**
*/
public interface AsyncService {
/**
*
* 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.
*
*/
default void leaseTimeToLive(io.helidon.config.etcd.internal.client.proto.LeaseTimeToLiveRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLeaseTimeToLiveMethod(), responseObserver);
}
}
/**
* Base class for the server implementation of the service Lease.
*/
public static abstract class LeaseImplBase
implements io.grpc.BindableService, AsyncService {
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return LeaseGrpc.bindService(this);
}
}
/**
* A stub to allow clients to do asynchronous rpc calls to service Lease.
*/
public static final class LeaseStub
extends io.grpc.stub.AbstractAsyncStub {
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.
*
*/
public void leaseTimeToLive(io.helidon.config.etcd.internal.client.proto.LeaseTimeToLiveRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getLeaseTimeToLiveMethod(), getCallOptions()), request, responseObserver);
}
}
/**
* A stub to allow clients to do synchronous rpc calls to service Lease.
*/
public static final class LeaseBlockingStub
extends io.grpc.stub.AbstractBlockingStub {
private LeaseBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LeaseBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LeaseBlockingStub(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.
*
*/
public io.helidon.config.etcd.internal.client.proto.LeaseTimeToLiveResponse leaseTimeToLive(io.helidon.config.etcd.internal.client.proto.LeaseTimeToLiveRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getLeaseTimeToLiveMethod(), getCallOptions(), request);
}
}
/**
* A stub to allow clients to do ListenableFuture-style rpc calls to service Lease.
*/
public static final class LeaseFutureStub
extends io.grpc.stub.AbstractFutureStub {
private LeaseFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected LeaseFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new LeaseFutureStub(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.
*