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

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

There is a newer version: 2.0.0.0
Show newest version
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 PolarisServiceContractGRPCGrpc {

  private PolarisServiceContractGRPCGrpc() {}

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

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

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

  private static volatile io.grpc.MethodDescriptor getGetServiceContractMethod;

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

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

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

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

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

    /**
     * 
     * 上报服务契约
     * 
*/ public void reportServiceContract(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getReportServiceContractMethod(), responseObserver); } /** *
     * 查询服务契约
     * 
*/ public void getServiceContract(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceContractMethod(), responseObserver); } @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) .addMethod( getReportServiceContractMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response>( this, METHODID_REPORT_SERVICE_CONTRACT))) .addMethod( getGetServiceContractMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( new MethodHandlers< com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract, com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response>( this, METHODID_GET_SERVICE_CONTRACT))) .build(); } } /** */ public static final class PolarisServiceContractGRPCStub extends io.grpc.stub.AbstractAsyncStub { private PolarisServiceContractGRPCStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisServiceContractGRPCStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisServiceContractGRPCStub(channel, callOptions); } /** *
     * 上报服务契约
     * 
*/ public void reportServiceContract(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getReportServiceContractMethod(), getCallOptions()), request, responseObserver); } /** *
     * 查询服务契约
     * 
*/ public void getServiceContract(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract request, io.grpc.stub.StreamObserver responseObserver) { io.grpc.stub.ClientCalls.asyncUnaryCall( getChannel().newCall(getGetServiceContractMethod(), getCallOptions()), request, responseObserver); } } /** */ public static final class PolarisServiceContractGRPCBlockingStub extends io.grpc.stub.AbstractBlockingStub { private PolarisServiceContractGRPCBlockingStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisServiceContractGRPCBlockingStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisServiceContractGRPCBlockingStub(channel, callOptions); } /** *
     * 上报服务契约
     * 
*/ public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response reportServiceContract(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getReportServiceContractMethod(), getCallOptions(), request); } /** *
     * 查询服务契约
     * 
*/ public com.tencent.polaris.specification.api.v1.service.manage.ResponseProto.Response getServiceContract(com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract request) { return io.grpc.stub.ClientCalls.blockingUnaryCall( getChannel(), getGetServiceContractMethod(), getCallOptions(), request); } } /** */ public static final class PolarisServiceContractGRPCFutureStub extends io.grpc.stub.AbstractFutureStub { private PolarisServiceContractGRPCFutureStub( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { super(channel, callOptions); } @java.lang.Override protected PolarisServiceContractGRPCFutureStub build( io.grpc.Channel channel, io.grpc.CallOptions callOptions) { return new PolarisServiceContractGRPCFutureStub(channel, callOptions); } /** *
     * 上报服务契约
     * 
*/ public com.google.common.util.concurrent.ListenableFuture reportServiceContract( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getReportServiceContractMethod(), getCallOptions()), request); } /** *
     * 查询服务契约
     * 
*/ public com.google.common.util.concurrent.ListenableFuture getServiceContract( com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract request) { return io.grpc.stub.ClientCalls.futureUnaryCall( getChannel().newCall(getGetServiceContractMethod(), getCallOptions()), request); } } private static final int METHODID_REPORT_SERVICE_CONTRACT = 0; private static final int METHODID_GET_SERVICE_CONTRACT = 1; 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 PolarisServiceContractGRPCImplBase serviceImpl; private final int methodId; MethodHandlers(PolarisServiceContractGRPCImplBase 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_SERVICE_CONTRACT: serviceImpl.reportServiceContract((com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract) request, (io.grpc.stub.StreamObserver) responseObserver); break; case METHODID_GET_SERVICE_CONTRACT: serviceImpl.getServiceContract((com.tencent.polaris.specification.api.v1.service.manage.ServiceContractProto.ServiceContract) 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 PolarisServiceContractGRPCBaseDescriptorSupplier implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { PolarisServiceContractGRPCBaseDescriptorSupplier() {} @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("PolarisServiceContractGRPC"); } } private static final class PolarisServiceContractGRPCFileDescriptorSupplier extends PolarisServiceContractGRPCBaseDescriptorSupplier { PolarisServiceContractGRPCFileDescriptorSupplier() {} } private static final class PolarisServiceContractGRPCMethodDescriptorSupplier extends PolarisServiceContractGRPCBaseDescriptorSupplier implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { private final String methodName; PolarisServiceContractGRPCMethodDescriptorSupplier(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 (PolarisServiceContractGRPCGrpc.class) { result = serviceDescriptor; if (result == null) { serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) .setSchemaDescriptor(new PolarisServiceContractGRPCFileDescriptorSupplier()) .addMethod(getReportServiceContractMethod()) .addMethod(getGetServiceContractMethod()) .build(); } } } return result; } }




© 2015 - 2025 Weber Informatics LLC | Privacy Policy