All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.helidon.config.etcd.internal.client.proto.KVGrpc Maven / Gradle / Ivy

There is a newer version: 4.1.0
Show newest version
package io.helidon.config.etcd.internal.client.proto;

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.11.0)",
    comments = "Source: rpc.proto")
public final class KVGrpc {

  private KVGrpc() {}

  public static final String SERVICE_NAME = "etcdserverpb.KV";

  // Static method descriptors that strictly reflect the proto.
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getRangeMethod()} instead. 
  public static final io.grpc.MethodDescriptor METHOD_RANGE = getRangeMethodHelper();

  private static volatile io.grpc.MethodDescriptor getRangeMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor getRangeMethod() {
    return getRangeMethodHelper();
  }

  private static io.grpc.MethodDescriptor getRangeMethodHelper() {
    io.grpc.MethodDescriptor getRangeMethod;
    if ((getRangeMethod = KVGrpc.getRangeMethod) == null) {
      synchronized (KVGrpc.class) {
        if ((getRangeMethod = KVGrpc.getRangeMethod) == null) {
          KVGrpc.getRangeMethod = getRangeMethod = 
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "etcdserverpb.KV", "Range"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.RangeRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.RangeResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new KVMethodDescriptorSupplier("Range"))
                  .build();
          }
        }
     }
     return getRangeMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getPutMethod()} instead. 
  public static final io.grpc.MethodDescriptor METHOD_PUT = getPutMethodHelper();

  private static volatile io.grpc.MethodDescriptor getPutMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor getPutMethod() {
    return getPutMethodHelper();
  }

  private static io.grpc.MethodDescriptor getPutMethodHelper() {
    io.grpc.MethodDescriptor getPutMethod;
    if ((getPutMethod = KVGrpc.getPutMethod) == null) {
      synchronized (KVGrpc.class) {
        if ((getPutMethod = KVGrpc.getPutMethod) == null) {
          KVGrpc.getPutMethod = getPutMethod = 
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "etcdserverpb.KV", "Put"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.PutRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.PutResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new KVMethodDescriptorSupplier("Put"))
                  .build();
          }
        }
     }
     return getPutMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getDeleteRangeMethod()} instead. 
  public static final io.grpc.MethodDescriptor METHOD_DELETE_RANGE = getDeleteRangeMethodHelper();

  private static volatile io.grpc.MethodDescriptor getDeleteRangeMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor getDeleteRangeMethod() {
    return getDeleteRangeMethodHelper();
  }

  private static io.grpc.MethodDescriptor getDeleteRangeMethodHelper() {
    io.grpc.MethodDescriptor getDeleteRangeMethod;
    if ((getDeleteRangeMethod = KVGrpc.getDeleteRangeMethod) == null) {
      synchronized (KVGrpc.class) {
        if ((getDeleteRangeMethod = KVGrpc.getDeleteRangeMethod) == null) {
          KVGrpc.getDeleteRangeMethod = getDeleteRangeMethod = 
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "etcdserverpb.KV", "DeleteRange"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.DeleteRangeRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.DeleteRangeResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new KVMethodDescriptorSupplier("DeleteRange"))
                  .build();
          }
        }
     }
     return getDeleteRangeMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getTxnMethod()} instead. 
  public static final io.grpc.MethodDescriptor METHOD_TXN = getTxnMethodHelper();

  private static volatile io.grpc.MethodDescriptor getTxnMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor getTxnMethod() {
    return getTxnMethodHelper();
  }

  private static io.grpc.MethodDescriptor getTxnMethodHelper() {
    io.grpc.MethodDescriptor getTxnMethod;
    if ((getTxnMethod = KVGrpc.getTxnMethod) == null) {
      synchronized (KVGrpc.class) {
        if ((getTxnMethod = KVGrpc.getTxnMethod) == null) {
          KVGrpc.getTxnMethod = getTxnMethod = 
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "etcdserverpb.KV", "Txn"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.TxnRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.TxnResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new KVMethodDescriptorSupplier("Txn"))
                  .build();
          }
        }
     }
     return getTxnMethod;
  }
  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  @java.lang.Deprecated // Use {@link #getCompactMethod()} instead. 
  public static final io.grpc.MethodDescriptor METHOD_COMPACT = getCompactMethodHelper();

  private static volatile io.grpc.MethodDescriptor getCompactMethod;

  @io.grpc.ExperimentalApi("https://github.com/grpc/grpc-java/issues/1901")
  public static io.grpc.MethodDescriptor getCompactMethod() {
    return getCompactMethodHelper();
  }

  private static io.grpc.MethodDescriptor getCompactMethodHelper() {
    io.grpc.MethodDescriptor getCompactMethod;
    if ((getCompactMethod = KVGrpc.getCompactMethod) == null) {
      synchronized (KVGrpc.class) {
        if ((getCompactMethod = KVGrpc.getCompactMethod) == null) {
          KVGrpc.getCompactMethod = getCompactMethod = 
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(
                  "etcdserverpb.KV", "Compact"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.CompactionRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  io.helidon.config.etcd.internal.client.proto.CompactionResponse.getDefaultInstance()))
                  .setSchemaDescriptor(new KVMethodDescriptorSupplier("Compact"))
                  .build();
          }
        }
     }
     return getCompactMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static KVStub newStub(io.grpc.Channel channel) {
    return new KVStub(channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static KVBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    return new KVBlockingStub(channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static KVFutureStub newFutureStub(
      io.grpc.Channel channel) {
    return new KVFutureStub(channel);
  }

  /**
   */
  public static abstract class KVImplBase implements io.grpc.BindableService {

    /**
     * 
     * Range gets the keys in the range from the key-value store.
     * 
*/ public void range(io.helidon.config.etcd.internal.client.proto.RangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getRangeMethodHelper(), responseObserver); } /** *
     * Put puts the given key into the key-value store.
     * A put request increments the revision of the key-value store
     * and generates one event in the event history.
     * 
*/ public void put(io.helidon.config.etcd.internal.client.proto.PutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getPutMethodHelper(), responseObserver); } /** *
     * DeleteRange deletes the given range from the key-value store.
     * A delete request increments the revision of the key-value store
     * and generates a delete event in the event history for every deleted key.
     * 
*/ public void deleteRange(io.helidon.config.etcd.internal.client.proto.DeleteRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getDeleteRangeMethodHelper(), responseObserver); } /** *
     * Txn processes multiple requests in a single transaction.
     * A txn request increments the revision of the key-value store
     * and generates events with the same revision for every completed request.
     * It is not allowed to modify the same key several times within one txn.
     * 
*/ public void txn(io.helidon.config.etcd.internal.client.proto.TxnRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getTxnMethodHelper(), responseObserver); } /** *
     * Compact compacts the event history in the etcd key-value store. The key-value
     * store should be periodically compacted or the event history will continue to grow
     * indefinitely.
     * 
*/ public void compact(io.helidon.config.etcd.internal.client.proto.CompactionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnimplementedUnaryCall(getCompactMethodHelper(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getRangeMethodHelper(), asyncUnaryCall( new MethodHandlers< io.helidon.config.etcd.internal.client.proto.RangeRequest, io.helidon.config.etcd.internal.client.proto.RangeResponse>( this, METHODID_RANGE))) .addMethod( getPutMethodHelper(), asyncUnaryCall( new MethodHandlers< io.helidon.config.etcd.internal.client.proto.PutRequest, io.helidon.config.etcd.internal.client.proto.PutResponse>( this, METHODID_PUT))) .addMethod( getDeleteRangeMethodHelper(), asyncUnaryCall( new MethodHandlers< io.helidon.config.etcd.internal.client.proto.DeleteRangeRequest, io.helidon.config.etcd.internal.client.proto.DeleteRangeResponse>( this, METHODID_DELETE_RANGE))) .addMethod( getTxnMethodHelper(), asyncUnaryCall( new MethodHandlers< io.helidon.config.etcd.internal.client.proto.TxnRequest, io.helidon.config.etcd.internal.client.proto.TxnResponse>( this, METHODID_TXN))) .addMethod( getCompactMethodHelper(), asyncUnaryCall( new MethodHandlers< io.helidon.config.etcd.internal.client.proto.CompactionRequest, io.helidon.config.etcd.internal.client.proto.CompactionResponse>( this, METHODID_COMPACT))) .build(); } } /** */ public static final class KVStub extends io.grpc.stub.AbstractStub { private KVStub(io.grpc.Channel channel) { super(channel); } private KVStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KVStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KVStub(channel, callOptions); } /** *
     * Range gets the keys in the range from the key-value store.
     * 
*/ public void range(io.helidon.config.etcd.internal.client.proto.RangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getRangeMethodHelper(), getCallOptions()), request, responseObserver); } /** *
     * Put puts the given key into the key-value store.
     * A put request increments the revision of the key-value store
     * and generates one event in the event history.
     * 
*/ public void put(io.helidon.config.etcd.internal.client.proto.PutRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getPutMethodHelper(), getCallOptions()), request, responseObserver); } /** *
     * DeleteRange deletes the given range from the key-value store.
     * A delete request increments the revision of the key-value store
     * and generates a delete event in the event history for every deleted key.
     * 
*/ public void deleteRange(io.helidon.config.etcd.internal.client.proto.DeleteRangeRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getDeleteRangeMethodHelper(), getCallOptions()), request, responseObserver); } /** *
     * Txn processes multiple requests in a single transaction.
     * A txn request increments the revision of the key-value store
     * and generates events with the same revision for every completed request.
     * It is not allowed to modify the same key several times within one txn.
     * 
*/ public void txn(io.helidon.config.etcd.internal.client.proto.TxnRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getTxnMethodHelper(), getCallOptions()), request, responseObserver); } /** *
     * Compact compacts the event history in the etcd key-value store. The key-value
     * store should be periodically compacted or the event history will continue to grow
     * indefinitely.
     * 
*/ public void compact(io.helidon.config.etcd.internal.client.proto.CompactionRequest request, io.grpc.stub.StreamObserver responseObserver) { asyncUnaryCall( getChannel().newCall(getCompactMethodHelper(), getCallOptions()), request, responseObserver); } } /** */ public static final class KVBlockingStub extends io.grpc.stub.AbstractStub { private KVBlockingStub(io.grpc.Channel channel) { super(channel); } private KVBlockingStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KVBlockingStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KVBlockingStub(channel, callOptions); } /** *
     * Range gets the keys in the range from the key-value store.
     * 
*/ public io.helidon.config.etcd.internal.client.proto.RangeResponse range(io.helidon.config.etcd.internal.client.proto.RangeRequest request) { return blockingUnaryCall( getChannel(), getRangeMethodHelper(), getCallOptions(), request); } /** *
     * Put puts the given key into the key-value store.
     * A put request increments the revision of the key-value store
     * and generates one event in the event history.
     * 
*/ public io.helidon.config.etcd.internal.client.proto.PutResponse put(io.helidon.config.etcd.internal.client.proto.PutRequest request) { return blockingUnaryCall( getChannel(), getPutMethodHelper(), getCallOptions(), request); } /** *
     * DeleteRange deletes the given range from the key-value store.
     * A delete request increments the revision of the key-value store
     * and generates a delete event in the event history for every deleted key.
     * 
*/ public io.helidon.config.etcd.internal.client.proto.DeleteRangeResponse deleteRange(io.helidon.config.etcd.internal.client.proto.DeleteRangeRequest request) { return blockingUnaryCall( getChannel(), getDeleteRangeMethodHelper(), getCallOptions(), request); } /** *
     * Txn processes multiple requests in a single transaction.
     * A txn request increments the revision of the key-value store
     * and generates events with the same revision for every completed request.
     * It is not allowed to modify the same key several times within one txn.
     * 
*/ public io.helidon.config.etcd.internal.client.proto.TxnResponse txn(io.helidon.config.etcd.internal.client.proto.TxnRequest request) { return blockingUnaryCall( getChannel(), getTxnMethodHelper(), getCallOptions(), request); } /** *
     * Compact compacts the event history in the etcd key-value store. The key-value
     * store should be periodically compacted or the event history will continue to grow
     * indefinitely.
     * 
*/ public io.helidon.config.etcd.internal.client.proto.CompactionResponse compact(io.helidon.config.etcd.internal.client.proto.CompactionRequest request) { return blockingUnaryCall( getChannel(), getCompactMethodHelper(), getCallOptions(), request); } } /** */ public static final class KVFutureStub extends io.grpc.stub.AbstractStub { private KVFutureStub(io.grpc.Channel channel) { super(channel); } private KVFutureStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected KVFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new KVFutureStub(channel, callOptions); } /** *
     * Range gets the keys in the range from the key-value store.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture range( io.helidon.config.etcd.internal.client.proto.RangeRequest request) { return futureUnaryCall( getChannel().newCall(getRangeMethodHelper(), getCallOptions()), request); } /** *
     * Put puts the given key into the key-value store.
     * A put request increments the revision of the key-value store
     * and generates one event in the event history.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture put( io.helidon.config.etcd.internal.client.proto.PutRequest request) { return futureUnaryCall( getChannel().newCall(getPutMethodHelper(), getCallOptions()), request); } /** *
     * DeleteRange deletes the given range from the key-value store.
     * A delete request increments the revision of the key-value store
     * and generates a delete event in the event history for every deleted key.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deleteRange( io.helidon.config.etcd.internal.client.proto.DeleteRangeRequest request) { return futureUnaryCall( getChannel().newCall(getDeleteRangeMethodHelper(), getCallOptions()), request); } /** *
     * Txn processes multiple requests in a single transaction.
     * A txn request increments the revision of the key-value store
     * and generates events with the same revision for every completed request.
     * It is not allowed to modify the same key several times within one txn.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture txn( io.helidon.config.etcd.internal.client.proto.TxnRequest request) { return futureUnaryCall( getChannel().newCall(getTxnMethodHelper(), getCallOptions()), request); } /** *
     * Compact compacts the event history in the etcd key-value store. The key-value
     * store should be periodically compacted or the event history will continue to grow
     * indefinitely.
     * 
*/ public com.google.common.util.concurrent.ListenableFuture compact( io.helidon.config.etcd.internal.client.proto.CompactionRequest request) { return futureUnaryCall( getChannel().newCall(getCompactMethodHelper(), getCallOptions()), request); } } private static final int METHODID_RANGE = 0; private static final int METHODID_PUT = 1; private static final int METHODID_DELETE_RANGE = 2; private static final int METHODID_TXN = 3; private static final int METHODID_COMPACT = 4; 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 KVImplBase serviceImpl; private final int methodId; MethodHandlers(KVImplBase 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_RANGE: serviceImpl.range((io.helidon.config.etcd.internal.client.proto.RangeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_PUT: serviceImpl.put((io.helidon.config.etcd.internal.client.proto.PutRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DELETE_RANGE: serviceImpl.deleteRange((io.helidon.config.etcd.internal.client.proto.DeleteRangeRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_TXN: serviceImpl.txn((io.helidon.config.etcd.internal.client.proto.TxnRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_COMPACT: serviceImpl.compact((io.helidon.config.etcd.internal.client.proto.CompactionRequest) 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 KVBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { KVBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return io.helidon.config.etcd.internal.client.proto.EtcdProto.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("KV"); } } private static final class KVFileDescriptorSupplier extends KVBaseDescriptorSupplier { KVFileDescriptorSupplier() {} } private static final class KVMethodDescriptorSupplier extends KVBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; KVMethodDescriptorSupplier(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 (KVGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new KVFileDescriptorSupplier()) .addMethod(getRangeMethodHelper()) .addMethod(getPutMethodHelper()) .addMethod(getDeleteRangeMethodHelper()) .addMethod(getTxnMethodHelper()) .addMethod(getCompactMethodHelper()) .build(); } } } return result; } }




© 2015 - 2024 Weber Informatics LLC | Privacy Policy