com.tencent.polaris.specification.api.v1.service.manage.PolarisHeartbeatGRPCGrpc Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of polaris-all Show documentation
Show all versions of polaris-all Show documentation
All in one project for polaris-java
The 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 PolarisHeartbeatGRPCGrpc {
private PolarisHeartbeatGRPCGrpc() {}
public static final String SERVICE_NAME = "v1.PolarisHeartbeatGRPC";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getBatchHeartbeatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BatchHeartbeat",
requestType = com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.class,
responseType = com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getBatchHeartbeatMethod() {
io.grpc.MethodDescriptor getBatchHeartbeatMethod;
if ((getBatchHeartbeatMethod = PolarisHeartbeatGRPCGrpc.getBatchHeartbeatMethod) == null) {
synchronized (PolarisHeartbeatGRPCGrpc.class) {
if ((getBatchHeartbeatMethod = PolarisHeartbeatGRPCGrpc.getBatchHeartbeatMethod) == null) {
PolarisHeartbeatGRPCGrpc.getBatchHeartbeatMethod = getBatchHeartbeatMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchHeartbeat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisHeartbeatGRPCMethodDescriptorSupplier("BatchHeartbeat"))
.build();
}
}
}
return getBatchHeartbeatMethod;
}
private static volatile io.grpc.MethodDescriptor getBatchGetHeartbeatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BatchGetHeartbeat",
requestType = com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.class,
responseType = com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBatchGetHeartbeatMethod() {
io.grpc.MethodDescriptor getBatchGetHeartbeatMethod;
if ((getBatchGetHeartbeatMethod = PolarisHeartbeatGRPCGrpc.getBatchGetHeartbeatMethod) == null) {
synchronized (PolarisHeartbeatGRPCGrpc.class) {
if ((getBatchGetHeartbeatMethod = PolarisHeartbeatGRPCGrpc.getBatchGetHeartbeatMethod) == null) {
PolarisHeartbeatGRPCGrpc.getBatchGetHeartbeatMethod = getBatchGetHeartbeatMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchGetHeartbeat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisHeartbeatGRPCMethodDescriptorSupplier("BatchGetHeartbeat"))
.build();
}
}
}
return getBatchGetHeartbeatMethod;
}
private static volatile io.grpc.MethodDescriptor getBatchDelHeartbeatMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "BatchDelHeartbeat",
requestType = com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.class,
responseType = com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getBatchDelHeartbeatMethod() {
io.grpc.MethodDescriptor getBatchDelHeartbeatMethod;
if ((getBatchDelHeartbeatMethod = PolarisHeartbeatGRPCGrpc.getBatchDelHeartbeatMethod) == null) {
synchronized (PolarisHeartbeatGRPCGrpc.class) {
if ((getBatchDelHeartbeatMethod = PolarisHeartbeatGRPCGrpc.getBatchDelHeartbeatMethod) == null) {
PolarisHeartbeatGRPCGrpc.getBatchDelHeartbeatMethod = getBatchDelHeartbeatMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "BatchDelHeartbeat"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisHeartbeatGRPCMethodDescriptorSupplier("BatchDelHeartbeat"))
.build();
}
}
}
return getBatchDelHeartbeatMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static PolarisHeartbeatGRPCStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PolarisHeartbeatGRPCStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisHeartbeatGRPCStub(channel, callOptions);
}
};
return PolarisHeartbeatGRPCStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static PolarisHeartbeatGRPCBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PolarisHeartbeatGRPCBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisHeartbeatGRPCBlockingStub(channel, callOptions);
}
};
return PolarisHeartbeatGRPCBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static PolarisHeartbeatGRPCFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PolarisHeartbeatGRPCFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisHeartbeatGRPCFutureStub(channel, callOptions);
}
};
return PolarisHeartbeatGRPCFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class PolarisHeartbeatGRPCImplBase implements io.grpc.BindableService {
/**
*
* 被调方批量上报心跳
*
*/
public io.grpc.stub.StreamObserver batchHeartbeat(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getBatchHeartbeatMethod(), responseObserver);
}
/**
*
* 批量获取心跳记录
*
*/
public void batchGetHeartbeat(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchGetHeartbeatMethod(), responseObserver);
}
/**
*
* 批量删除心跳记录
*
*/
public void batchDelHeartbeat(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getBatchDelHeartbeatMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getBatchHeartbeatMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsRequest,
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.HeartbeatsResponse>(
this, METHODID_BATCH_HEARTBEAT)))
.addMethod(
getBatchGetHeartbeatMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest,
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse>(
this, METHODID_BATCH_GET_HEARTBEAT)))
.addMethod(
getBatchDelHeartbeatMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest,
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse>(
this, METHODID_BATCH_DEL_HEARTBEAT)))
.build();
}
}
/**
*/
public static final class PolarisHeartbeatGRPCStub extends io.grpc.stub.AbstractAsyncStub {
private PolarisHeartbeatGRPCStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PolarisHeartbeatGRPCStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisHeartbeatGRPCStub(channel, callOptions);
}
/**
*
* 被调方批量上报心跳
*
*/
public io.grpc.stub.StreamObserver batchHeartbeat(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ClientCalls.asyncBidiStreamingCall(
getChannel().newCall(getBatchHeartbeatMethod(), getCallOptions()), responseObserver);
}
/**
*
* 批量获取心跳记录
*
*/
public void batchGetHeartbeat(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBatchGetHeartbeatMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* 批量删除心跳记录
*
*/
public void batchDelHeartbeat(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getBatchDelHeartbeatMethod(), getCallOptions()), request, responseObserver);
}
}
/**
*/
public static final class PolarisHeartbeatGRPCBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private PolarisHeartbeatGRPCBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PolarisHeartbeatGRPCBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisHeartbeatGRPCBlockingStub(channel, callOptions);
}
/**
*
* 批量获取心跳记录
*
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsResponse batchGetHeartbeat(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBatchGetHeartbeatMethod(), getCallOptions(), request);
}
/**
*
* 批量删除心跳记录
*
*/
public com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsResponse batchDelHeartbeat(com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getBatchDelHeartbeatMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class PolarisHeartbeatGRPCFutureStub extends io.grpc.stub.AbstractFutureStub {
private PolarisHeartbeatGRPCFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PolarisHeartbeatGRPCFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisHeartbeatGRPCFutureStub(channel, callOptions);
}
/**
*
* 批量获取心跳记录
*
*/
public com.google.common.util.concurrent.ListenableFuture batchGetHeartbeat(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBatchGetHeartbeatMethod(), getCallOptions()), request);
}
/**
*
* 批量删除心跳记录
*
*/
public com.google.common.util.concurrent.ListenableFuture batchDelHeartbeat(
com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getBatchDelHeartbeatMethod(), getCallOptions()), request);
}
}
private static final int METHODID_BATCH_GET_HEARTBEAT = 0;
private static final int METHODID_BATCH_DEL_HEARTBEAT = 1;
private static final int METHODID_BATCH_HEARTBEAT = 2;
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 PolarisHeartbeatGRPCImplBase serviceImpl;
private final int methodId;
MethodHandlers(PolarisHeartbeatGRPCImplBase 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_BATCH_GET_HEARTBEAT:
serviceImpl.batchGetHeartbeat((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.GetHeartbeatsRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_BATCH_DEL_HEARTBEAT:
serviceImpl.batchDelHeartbeat((com.tencent.polaris.specification.api.v1.service.manage.Heartbeat.DelHeartbeatsRequest) 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_BATCH_HEARTBEAT:
return (io.grpc.stub.StreamObserver) serviceImpl.batchHeartbeat(
(io.grpc.stub.StreamObserver) responseObserver);
default:
throw new AssertionError();
}
}
}
private static abstract class PolarisHeartbeatGRPCBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
PolarisHeartbeatGRPCBaseDescriptorSupplier() {}
@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("PolarisHeartbeatGRPC");
}
}
private static final class PolarisHeartbeatGRPCFileDescriptorSupplier
extends PolarisHeartbeatGRPCBaseDescriptorSupplier {
PolarisHeartbeatGRPCFileDescriptorSupplier() {}
}
private static final class PolarisHeartbeatGRPCMethodDescriptorSupplier
extends PolarisHeartbeatGRPCBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
PolarisHeartbeatGRPCMethodDescriptorSupplier(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 (PolarisHeartbeatGRPCGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new PolarisHeartbeatGRPCFileDescriptorSupplier())
.addMethod(getBatchHeartbeatMethod())
.addMethod(getBatchGetHeartbeatMethod())
.addMethod(getBatchDelHeartbeatMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy