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

com.tencent.polaris.specification.api.v1.service.manage.PolarisGRPCGrpc Maven / Gradle / Ivy

package com.tencent.polaris.specification.api.v1.service.manage;

import static io.grpc.MethodDescriptor.generateFullMethodName;

/**
 */
@javax.annotation.Generated(
    value = "by gRPC proto compiler (version 1.50.0)",
    comments = "Source: grpcapi.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class PolarisGRPCGrpc {

  private PolarisGRPCGrpc() {}

  public static final String SERVICE_NAME = "v1.PolarisGRPC";

  // Static method descriptors that strictly reflect the proto.
  private static volatile io.grpc.MethodDescriptor getReportClientMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "ReportClient",
      requestType = com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.class,
      responseType = com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getReportClientMethod() {
    io.grpc.MethodDescriptor getReportClientMethod;
    if ((getReportClientMethod = PolarisGRPCGrpc.getReportClientMethod) == null) {
      synchronized (PolarisGRPCGrpc.class) {
        if ((getReportClientMethod = PolarisGRPCGrpc.getReportClientMethod) == null) {
          PolarisGRPCGrpc.getReportClientMethod = getReportClientMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ReportClient"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisGRPCMethodDescriptorSupplier("ReportClient"))
              .build();
        }
      }
    }
    return getReportClientMethod;
  }

  private static volatile io.grpc.MethodDescriptor getRegisterInstanceMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "RegisterInstance",
      requestType = com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.class,
      responseType = com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getRegisterInstanceMethod() {
    io.grpc.MethodDescriptor getRegisterInstanceMethod;
    if ((getRegisterInstanceMethod = PolarisGRPCGrpc.getRegisterInstanceMethod) == null) {
      synchronized (PolarisGRPCGrpc.class) {
        if ((getRegisterInstanceMethod = PolarisGRPCGrpc.getRegisterInstanceMethod) == null) {
          PolarisGRPCGrpc.getRegisterInstanceMethod = getRegisterInstanceMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "RegisterInstance"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisGRPCMethodDescriptorSupplier("RegisterInstance"))
              .build();
        }
      }
    }
    return getRegisterInstanceMethod;
  }

  private static volatile io.grpc.MethodDescriptor getDeregisterInstanceMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "DeregisterInstance",
      requestType = com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.class,
      responseType = com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getDeregisterInstanceMethod() {
    io.grpc.MethodDescriptor getDeregisterInstanceMethod;
    if ((getDeregisterInstanceMethod = PolarisGRPCGrpc.getDeregisterInstanceMethod) == null) {
      synchronized (PolarisGRPCGrpc.class) {
        if ((getDeregisterInstanceMethod = PolarisGRPCGrpc.getDeregisterInstanceMethod) == null) {
          PolarisGRPCGrpc.getDeregisterInstanceMethod = getDeregisterInstanceMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeregisterInstance"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisGRPCMethodDescriptorSupplier("DeregisterInstance"))
              .build();
        }
      }
    }
    return getDeregisterInstanceMethod;
  }

  private static volatile io.grpc.MethodDescriptor getDiscoverMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Discover",
      requestType = com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.class,
      responseType = com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.class,
      methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
  public static io.grpc.MethodDescriptor getDiscoverMethod() {
    io.grpc.MethodDescriptor getDiscoverMethod;
    if ((getDiscoverMethod = PolarisGRPCGrpc.getDiscoverMethod) == null) {
      synchronized (PolarisGRPCGrpc.class) {
        if ((getDiscoverMethod = PolarisGRPCGrpc.getDiscoverMethod) == null) {
          PolarisGRPCGrpc.getDiscoverMethod = getDiscoverMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Discover"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisGRPCMethodDescriptorSupplier("Discover"))
              .build();
        }
      }
    }
    return getDiscoverMethod;
  }

  private static volatile io.grpc.MethodDescriptor getHeartbeatMethod;

  @io.grpc.stub.annotations.RpcMethod(
      fullMethodName = SERVICE_NAME + '/' + "Heartbeat",
      requestType = com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.class,
      responseType = com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.class,
      methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
  public static io.grpc.MethodDescriptor getHeartbeatMethod() {
    io.grpc.MethodDescriptor getHeartbeatMethod;
    if ((getHeartbeatMethod = PolarisGRPCGrpc.getHeartbeatMethod) == null) {
      synchronized (PolarisGRPCGrpc.class) {
        if ((getHeartbeatMethod = PolarisGRPCGrpc.getHeartbeatMethod) == null) {
          PolarisGRPCGrpc.getHeartbeatMethod = getHeartbeatMethod =
              io.grpc.MethodDescriptor.newBuilder()
              .setType(io.grpc.MethodDescriptor.MethodType.UNARY)
              .setFullMethodName(generateFullMethodName(SERVICE_NAME, "Heartbeat"))
              .setSampledToLocalTracing(true)
              .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance.getDefaultInstance()))
              .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
                  com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response.getDefaultInstance()))
              .setSchemaDescriptor(new PolarisGRPCMethodDescriptorSupplier("Heartbeat"))
              .build();
        }
      }
    }
    return getHeartbeatMethod;
  }

  /**
   * Creates a new async stub that supports all call types for the service
   */
  public static PolarisGRPCStub newStub(io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public PolarisGRPCStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new PolarisGRPCStub(channel, callOptions);
        }
      };
    return PolarisGRPCStub.newStub(factory, channel);
  }

  /**
   * Creates a new blocking-style stub that supports unary and streaming output calls on the service
   */
  public static PolarisGRPCBlockingStub newBlockingStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public PolarisGRPCBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new PolarisGRPCBlockingStub(channel, callOptions);
        }
      };
    return PolarisGRPCBlockingStub.newStub(factory, channel);
  }

  /**
   * Creates a new ListenableFuture-style stub that supports unary calls on the service
   */
  public static PolarisGRPCFutureStub newFutureStub(
      io.grpc.Channel channel) {
    io.grpc.stub.AbstractStub.StubFactory factory =
      new io.grpc.stub.AbstractStub.StubFactory() {
        @java.lang.Override
        public PolarisGRPCFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
          return new PolarisGRPCFutureStub(channel, callOptions);
        }
      };
    return PolarisGRPCFutureStub.newStub(factory, channel);
  }

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

    /**
     * 
     * 客户端上报
     * 
*/ public void reportClient(com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportClientMethod(), responseObserver); } /** *
     * 被调方注册服务实例
     * 
*/ public void registerInstance(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getRegisterInstanceMethod(), responseObserver); } /** *
     * 被调方反注册服务实例
     * 
*/ public void deregisterInstance(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeregisterInstanceMethod(), responseObserver); } /** *
     * 统一发现接口
     * 
*/ public io.grpc.stub.StreamObserver discover( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getDiscoverMethod(), responseObserver); } /** *
     * 被调方上报心跳
     * 
*/ public void heartbeat(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getHeartbeatMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getReportClientMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response>( this, METHODID_REPORT_CLIENT))) .addMethod( getRegisterInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response>( this, METHODID_REGISTER_INSTANCE))) .addMethod( getDeregisterInstanceMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response>( this, METHODID_DEREGISTER_INSTANCE))) .addMethod( getDiscoverMethod(), io.grpc.stub.ServerCalls.asyncBidiStreamingCall( new MethodHandlers< com.tencent.polaris.specification.api.v1.service.manage.RequestProto.DiscoverRequest, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.DiscoverResponse>( this, METHODID_DISCOVER))) .addMethod( getHeartbeatMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response>( this, METHODID_HEARTBEAT))) .build(); } } /** */ public static final class PolarisGRPCStub extends io.grpc.stub.AbstractAsyncStub { private PolarisGRPCStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisGRPCStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisGRPCStub(channel, callOptions); } /** *
     * 客户端上报
     * 
*/ public void reportClient(com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReportClientMethod(), getCallOptions()), request, responseObserver); } /** *
     * 被调方注册服务实例
     * 
*/ public void registerInstance(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), request, responseObserver); } /** *
     * 被调方反注册服务实例
     * 
*/ public void deregisterInstance(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getDeregisterInstanceMethod(), getCallOptions()), request, responseObserver); } /** *
     * 统一发现接口
     * 
*/ public io.grpc.stub.StreamObserver discover( io.grpc.stub.StreamObserver responseObserver) { return io.grpc.stub.ClientCalls.asyncBidiStreamingCall( getChannel().newCall(getDiscoverMethod(), getCallOptions()), responseObserver); } /** *
     * 被调方上报心跳
     * 
*/ public void heartbeat(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getHeartbeatMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class PolarisGRPCBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PolarisGRPCBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisGRPCBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisGRPCBlockingStub(channel, callOptions); } /** *
     * 客户端上报
     * 
*/ public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response reportClient(com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getReportClientMethod(), getCallOptions(), request); } /** *
     * 被调方注册服务实例
     * 
*/ public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response registerInstance(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getRegisterInstanceMethod(), getCallOptions(), request); } /** *
     * 被调方反注册服务实例
     * 
*/ public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response deregisterInstance(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getDeregisterInstanceMethod(), getCallOptions(), request); } /** *
     * 被调方上报心跳
     * 
*/ public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response heartbeat(com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getHeartbeatMethod(), getCallOptions(), request); } } /** */ public static final class PolarisGRPCFutureStub extends io.grpc.stub.AbstractFutureStub { private PolarisGRPCFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisGRPCFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisGRPCFutureStub(channel, callOptions); } /** *
     * 客户端上报
     * 
*/ public com.google.common.util.concurrent.ListenableFuture reportClient( com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReportClientMethod(), getCallOptions()), request); } /** *
     * 被调方注册服务实例
     * 
*/ public com.google.common.util.concurrent.ListenableFuture registerInstance( com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getRegisterInstanceMethod(), getCallOptions()), request); } /** *
     * 被调方反注册服务实例
     * 
*/ public com.google.common.util.concurrent.ListenableFuture deregisterInstance( com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getDeregisterInstanceMethod(), getCallOptions()), request); } /** *
     * 被调方上报心跳
     * 
*/ public com.google.common.util.concurrent.ListenableFuture heartbeat( com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getHeartbeatMethod(), getCallOptions()), request); } } private static final int METHODID_REPORT_CLIENT = 0; private static final int METHODID_REGISTER_INSTANCE = 1; private static final int METHODID_DEREGISTER_INSTANCE = 2; private static final int METHODID_HEARTBEAT = 3; private static final int METHODID_DISCOVER = 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 PolarisGRPCImplBase serviceImpl; private final int methodId; MethodHandlers(PolarisGRPCImplBase 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_REPORT_CLIENT: serviceImpl.reportClient((com.tencent.polaris.specification.api.v1.service.manage.ClientProto.Client) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_REGISTER_INSTANCE: serviceImpl.registerInstance((com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_DEREGISTER_INSTANCE: serviceImpl.deregisterInstance((com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_HEARTBEAT: serviceImpl.heartbeat((com.tencent.polaris.specification.api.v1.service.manage.ServiceProto.Instance) 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) { case METHODID_DISCOVER: return (io.grpc.stub.StreamObserver) serviceImpl.discover( (io.grpc.stub.StreamObserver) responseObserver); default: throw new AssertionError(); } } } private static abstract class PolarisGRPCBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PolarisGRPCBaseDescriptorSupplier() {} @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { return com.tencent.polaris.specification.api.v1.service.manage.PolarisGRPCService.getDescriptor(); } @java.lang.Override public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { return getFileDescriptor().findServiceByName("PolarisGRPC"); } } private static final class PolarisGRPCFileDescriptorSupplier extends PolarisGRPCBaseDescriptorSupplier { PolarisGRPCFileDescriptorSupplier() {} } private static final class PolarisGRPCMethodDescriptorSupplier extends PolarisGRPCBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; PolarisGRPCMethodDescriptorSupplier(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 (PolarisGRPCGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new PolarisGRPCFileDescriptorSupplier()) .addMethod(getReportClientMethod()) .addMethod(getRegisterInstanceMethod()) .addMethod(getDeregisterInstanceMethod()) .addMethod(getDiscoverMethod()) .addMethod(getHeartbeatMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy