com.tencent.polaris.specification.api.v1.config.manage.PolarisConfigGRPCGrpc 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
package com.tencent.polaris.specification.api.v1.config.manage;
import static io.grpc.MethodDescriptor.generateFullMethodName;
/**
*/
@javax.annotation.Generated(
value = "by gRPC proto compiler (version 1.50.0)",
comments = "Source: grpc_config_api.proto")
@io.grpc.stub.annotations.GrpcGenerated
public final class PolarisConfigGRPCGrpc {
private PolarisConfigGRPCGrpc() {}
public static final String SERVICE_NAME = "v1.PolarisConfigGRPC";
// Static method descriptors that strictly reflect the proto.
private static volatile io.grpc.MethodDescriptor getGetConfigFileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConfigFile",
requestType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientConfigFileInfo.class,
responseType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetConfigFileMethod() {
io.grpc.MethodDescriptor getGetConfigFileMethod;
if ((getGetConfigFileMethod = PolarisConfigGRPCGrpc.getGetConfigFileMethod) == null) {
synchronized (PolarisConfigGRPCGrpc.class) {
if ((getGetConfigFileMethod = PolarisConfigGRPCGrpc.getGetConfigFileMethod) == null) {
PolarisConfigGRPCGrpc.getGetConfigFileMethod = getGetConfigFileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfigFile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientConfigFileInfo.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisConfigGRPCMethodDescriptorSupplier("GetConfigFile"))
.build();
}
}
}
return getGetConfigFileMethod;
}
private static volatile io.grpc.MethodDescriptor getCreateConfigFileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "CreateConfigFile",
requestType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile.class,
responseType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getCreateConfigFileMethod() {
io.grpc.MethodDescriptor getCreateConfigFileMethod;
if ((getCreateConfigFileMethod = PolarisConfigGRPCGrpc.getCreateConfigFileMethod) == null) {
synchronized (PolarisConfigGRPCGrpc.class) {
if ((getCreateConfigFileMethod = PolarisConfigGRPCGrpc.getCreateConfigFileMethod) == null) {
PolarisConfigGRPCGrpc.getCreateConfigFileMethod = getCreateConfigFileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateConfigFile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisConfigGRPCMethodDescriptorSupplier("CreateConfigFile"))
.build();
}
}
}
return getCreateConfigFileMethod;
}
private static volatile io.grpc.MethodDescriptor getUpdateConfigFileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpdateConfigFile",
requestType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile.class,
responseType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpdateConfigFileMethod() {
io.grpc.MethodDescriptor getUpdateConfigFileMethod;
if ((getUpdateConfigFileMethod = PolarisConfigGRPCGrpc.getUpdateConfigFileMethod) == null) {
synchronized (PolarisConfigGRPCGrpc.class) {
if ((getUpdateConfigFileMethod = PolarisConfigGRPCGrpc.getUpdateConfigFileMethod) == null) {
PolarisConfigGRPCGrpc.getUpdateConfigFileMethod = getUpdateConfigFileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateConfigFile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisConfigGRPCMethodDescriptorSupplier("UpdateConfigFile"))
.build();
}
}
}
return getUpdateConfigFileMethod;
}
private static volatile io.grpc.MethodDescriptor getPublishConfigFileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "PublishConfigFile",
requestType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileRelease.class,
responseType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getPublishConfigFileMethod() {
io.grpc.MethodDescriptor getPublishConfigFileMethod;
if ((getPublishConfigFileMethod = PolarisConfigGRPCGrpc.getPublishConfigFileMethod) == null) {
synchronized (PolarisConfigGRPCGrpc.class) {
if ((getPublishConfigFileMethod = PolarisConfigGRPCGrpc.getPublishConfigFileMethod) == null) {
PolarisConfigGRPCGrpc.getPublishConfigFileMethod = getPublishConfigFileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "PublishConfigFile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileRelease.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisConfigGRPCMethodDescriptorSupplier("PublishConfigFile"))
.build();
}
}
}
return getPublishConfigFileMethod;
}
private static volatile io.grpc.MethodDescriptor getUpsertAndPublishConfigFileMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "UpsertAndPublishConfigFile",
requestType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFilePublishInfo.class,
responseType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getUpsertAndPublishConfigFileMethod() {
io.grpc.MethodDescriptor getUpsertAndPublishConfigFileMethod;
if ((getUpsertAndPublishConfigFileMethod = PolarisConfigGRPCGrpc.getUpsertAndPublishConfigFileMethod) == null) {
synchronized (PolarisConfigGRPCGrpc.class) {
if ((getUpsertAndPublishConfigFileMethod = PolarisConfigGRPCGrpc.getUpsertAndPublishConfigFileMethod) == null) {
PolarisConfigGRPCGrpc.getUpsertAndPublishConfigFileMethod = getUpsertAndPublishConfigFileMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpsertAndPublishConfigFile"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFilePublishInfo.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisConfigGRPCMethodDescriptorSupplier("UpsertAndPublishConfigFile"))
.build();
}
}
}
return getUpsertAndPublishConfigFileMethod;
}
private static volatile io.grpc.MethodDescriptor getWatchConfigFilesMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "WatchConfigFiles",
requestType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientWatchConfigFileRequest.class,
responseType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getWatchConfigFilesMethod() {
io.grpc.MethodDescriptor getWatchConfigFilesMethod;
if ((getWatchConfigFilesMethod = PolarisConfigGRPCGrpc.getWatchConfigFilesMethod) == null) {
synchronized (PolarisConfigGRPCGrpc.class) {
if ((getWatchConfigFilesMethod = PolarisConfigGRPCGrpc.getWatchConfigFilesMethod) == null) {
PolarisConfigGRPCGrpc.getWatchConfigFilesMethod = getWatchConfigFilesMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "WatchConfigFiles"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientWatchConfigFileRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisConfigGRPCMethodDescriptorSupplier("WatchConfigFiles"))
.build();
}
}
}
return getWatchConfigFilesMethod;
}
private static volatile io.grpc.MethodDescriptor getGetConfigFileMetadataListMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "GetConfigFileMetadataList",
requestType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileGroupRequest.class,
responseType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientListResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.UNARY)
public static io.grpc.MethodDescriptor getGetConfigFileMetadataListMethod() {
io.grpc.MethodDescriptor getGetConfigFileMetadataListMethod;
if ((getGetConfigFileMetadataListMethod = PolarisConfigGRPCGrpc.getGetConfigFileMetadataListMethod) == null) {
synchronized (PolarisConfigGRPCGrpc.class) {
if ((getGetConfigFileMetadataListMethod = PolarisConfigGRPCGrpc.getGetConfigFileMetadataListMethod) == null) {
PolarisConfigGRPCGrpc.getGetConfigFileMetadataListMethod = getGetConfigFileMetadataListMethod =
io.grpc.MethodDescriptor.newBuilder()
.setType(io.grpc.MethodDescriptor.MethodType.UNARY)
.setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetConfigFileMetadataList"))
.setSampledToLocalTracing(true)
.setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileGroupRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientListResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisConfigGRPCMethodDescriptorSupplier("GetConfigFileMetadataList"))
.build();
}
}
}
return getGetConfigFileMetadataListMethod;
}
private static volatile io.grpc.MethodDescriptor getDiscoverMethod;
@io.grpc.stub.annotations.RpcMethod(
fullMethodName = SERVICE_NAME + '/' + "Discover",
requestType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigDiscoverRequest.class,
responseType = com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigDiscoverResponse.class,
methodType = io.grpc.MethodDescriptor.MethodType.BIDI_STREAMING)
public static io.grpc.MethodDescriptor getDiscoverMethod() {
io.grpc.MethodDescriptor getDiscoverMethod;
if ((getDiscoverMethod = PolarisConfigGRPCGrpc.getDiscoverMethod) == null) {
synchronized (PolarisConfigGRPCGrpc.class) {
if ((getDiscoverMethod = PolarisConfigGRPCGrpc.getDiscoverMethod) == null) {
PolarisConfigGRPCGrpc.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.config.manage.ConfigFileProto.ConfigDiscoverRequest.getDefaultInstance()))
.setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigDiscoverResponse.getDefaultInstance()))
.setSchemaDescriptor(new PolarisConfigGRPCMethodDescriptorSupplier("Discover"))
.build();
}
}
}
return getDiscoverMethod;
}
/**
* Creates a new async stub that supports all call types for the service
*/
public static PolarisConfigGRPCStub newStub(io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PolarisConfigGRPCStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisConfigGRPCStub(channel, callOptions);
}
};
return PolarisConfigGRPCStub.newStub(factory, channel);
}
/**
* Creates a new blocking-style stub that supports unary and streaming output calls on the service
*/
public static PolarisConfigGRPCBlockingStub newBlockingStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PolarisConfigGRPCBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisConfigGRPCBlockingStub(channel, callOptions);
}
};
return PolarisConfigGRPCBlockingStub.newStub(factory, channel);
}
/**
* Creates a new ListenableFuture-style stub that supports unary calls on the service
*/
public static PolarisConfigGRPCFutureStub newFutureStub(
io.grpc.Channel channel) {
io.grpc.stub.AbstractStub.StubFactory factory =
new io.grpc.stub.AbstractStub.StubFactory() {
@java.lang.Override
public PolarisConfigGRPCFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisConfigGRPCFutureStub(channel, callOptions);
}
};
return PolarisConfigGRPCFutureStub.newStub(factory, channel);
}
/**
*/
public static abstract class PolarisConfigGRPCImplBase implements io.grpc.BindableService {
/**
*
* 拉取配置
*
*/
public void getConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientConfigFileInfo request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigFileMethod(), responseObserver);
}
/**
*
* 创建配置
*
*/
public void createConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateConfigFileMethod(), responseObserver);
}
/**
*
* 更新配置
*
*/
public void updateConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateConfigFileMethod(), responseObserver);
}
/**
*
* 发布配置
*
*/
public void publishConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileRelease request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPublishConfigFileMethod(), responseObserver);
}
/**
*
* 发布配置
*
*/
public void upsertAndPublishConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFilePublishInfo request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpsertAndPublishConfigFileMethod(), responseObserver);
}
/**
*
* 订阅配置变更
*
*/
public void watchConfigFiles(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientWatchConfigFileRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getWatchConfigFilesMethod(), responseObserver);
}
/**
*
* 拉取指定配置分组下的配置文件列表
*
*/
public void getConfigFileMetadataList(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileGroupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetConfigFileMetadataListMethod(), responseObserver);
}
/**
*
* 统一发现接口
*
*/
public io.grpc.stub.StreamObserver discover(
io.grpc.stub.StreamObserver responseObserver) {
return io.grpc.stub.ServerCalls.asyncUnimplementedStreamingCall(getDiscoverMethod(), responseObserver);
}
@java.lang.Override public final io.grpc.ServerServiceDefinition bindService() {
return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor())
.addMethod(
getGetConfigFileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientConfigFileInfo,
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse>(
this, METHODID_GET_CONFIG_FILE)))
.addMethod(
getCreateConfigFileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile,
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse>(
this, METHODID_CREATE_CONFIG_FILE)))
.addMethod(
getUpdateConfigFileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile,
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse>(
this, METHODID_UPDATE_CONFIG_FILE)))
.addMethod(
getPublishConfigFileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileRelease,
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse>(
this, METHODID_PUBLISH_CONFIG_FILE)))
.addMethod(
getUpsertAndPublishConfigFileMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFilePublishInfo,
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse>(
this, METHODID_UPSERT_AND_PUBLISH_CONFIG_FILE)))
.addMethod(
getWatchConfigFilesMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientWatchConfigFileRequest,
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse>(
this, METHODID_WATCH_CONFIG_FILES)))
.addMethod(
getGetConfigFileMetadataListMethod(),
io.grpc.stub.ServerCalls.asyncUnaryCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileGroupRequest,
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientListResponse>(
this, METHODID_GET_CONFIG_FILE_METADATA_LIST)))
.addMethod(
getDiscoverMethod(),
io.grpc.stub.ServerCalls.asyncBidiStreamingCall(
new MethodHandlers<
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigDiscoverRequest,
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigDiscoverResponse>(
this, METHODID_DISCOVER)))
.build();
}
}
/**
*/
public static final class PolarisConfigGRPCStub extends io.grpc.stub.AbstractAsyncStub {
private PolarisConfigGRPCStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PolarisConfigGRPCStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisConfigGRPCStub(channel, callOptions);
}
/**
*
* 拉取配置
*
*/
public void getConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientConfigFileInfo request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConfigFileMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* 创建配置
*
*/
public void createConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getCreateConfigFileMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* 更新配置
*
*/
public void updateConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpdateConfigFileMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* 发布配置
*
*/
public void publishConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileRelease request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getPublishConfigFileMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* 发布配置
*
*/
public void upsertAndPublishConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFilePublishInfo request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getUpsertAndPublishConfigFileMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* 订阅配置变更
*
*/
public void watchConfigFiles(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientWatchConfigFileRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getWatchConfigFilesMethod(), getCallOptions()), request, responseObserver);
}
/**
*
* 拉取指定配置分组下的配置文件列表
*
*/
public void getConfigFileMetadataList(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileGroupRequest request,
io.grpc.stub.StreamObserver responseObserver) {
io.grpc.stub.ClientCalls.asyncUnaryCall(
getChannel().newCall(getGetConfigFileMetadataListMethod(), 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 static final class PolarisConfigGRPCBlockingStub extends io.grpc.stub.AbstractBlockingStub {
private PolarisConfigGRPCBlockingStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PolarisConfigGRPCBlockingStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisConfigGRPCBlockingStub(channel, callOptions);
}
/**
*
* 拉取配置
*
*/
public com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse getConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientConfigFileInfo request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConfigFileMethod(), getCallOptions(), request);
}
/**
*
* 创建配置
*
*/
public com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse createConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getCreateConfigFileMethod(), getCallOptions(), request);
}
/**
*
* 更新配置
*
*/
public com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse updateConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpdateConfigFileMethod(), getCallOptions(), request);
}
/**
*
* 发布配置
*
*/
public com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse publishConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileRelease request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getPublishConfigFileMethod(), getCallOptions(), request);
}
/**
*
* 发布配置
*
*/
public com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse upsertAndPublishConfigFile(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFilePublishInfo request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getUpsertAndPublishConfigFileMethod(), getCallOptions(), request);
}
/**
*
* 订阅配置变更
*
*/
public com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientResponse watchConfigFiles(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientWatchConfigFileRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getWatchConfigFilesMethod(), getCallOptions(), request);
}
/**
*
* 拉取指定配置分组下的配置文件列表
*
*/
public com.tencent.polaris.specification.api.v1.config.manage.ConfigFileResponseProto.ConfigClientListResponse getConfigFileMetadataList(com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileGroupRequest request) {
return io.grpc.stub.ClientCalls.blockingUnaryCall(
getChannel(), getGetConfigFileMetadataListMethod(), getCallOptions(), request);
}
}
/**
*/
public static final class PolarisConfigGRPCFutureStub extends io.grpc.stub.AbstractFutureStub {
private PolarisConfigGRPCFutureStub(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
super(channel, callOptions);
}
@java.lang.Override
protected PolarisConfigGRPCFutureStub build(
io.grpc.Channel channel, io.grpc.CallOptions callOptions) {
return new PolarisConfigGRPCFutureStub(channel, callOptions);
}
/**
*
* 拉取配置
*
*/
public com.google.common.util.concurrent.ListenableFuture getConfigFile(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientConfigFileInfo request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConfigFileMethod(), getCallOptions()), request);
}
/**
*
* 创建配置
*
*/
public com.google.common.util.concurrent.ListenableFuture createConfigFile(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getCreateConfigFileMethod(), getCallOptions()), request);
}
/**
*
* 更新配置
*
*/
public com.google.common.util.concurrent.ListenableFuture updateConfigFile(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpdateConfigFileMethod(), getCallOptions()), request);
}
/**
*
* 发布配置
*
*/
public com.google.common.util.concurrent.ListenableFuture publishConfigFile(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileRelease request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getPublishConfigFileMethod(), getCallOptions()), request);
}
/**
*
* 发布配置
*
*/
public com.google.common.util.concurrent.ListenableFuture upsertAndPublishConfigFile(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFilePublishInfo request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getUpsertAndPublishConfigFileMethod(), getCallOptions()), request);
}
/**
*
* 订阅配置变更
*
*/
public com.google.common.util.concurrent.ListenableFuture watchConfigFiles(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientWatchConfigFileRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getWatchConfigFilesMethod(), getCallOptions()), request);
}
/**
*
* 拉取指定配置分组下的配置文件列表
*
*/
public com.google.common.util.concurrent.ListenableFuture getConfigFileMetadataList(
com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileGroupRequest request) {
return io.grpc.stub.ClientCalls.futureUnaryCall(
getChannel().newCall(getGetConfigFileMetadataListMethod(), getCallOptions()), request);
}
}
private static final int METHODID_GET_CONFIG_FILE = 0;
private static final int METHODID_CREATE_CONFIG_FILE = 1;
private static final int METHODID_UPDATE_CONFIG_FILE = 2;
private static final int METHODID_PUBLISH_CONFIG_FILE = 3;
private static final int METHODID_UPSERT_AND_PUBLISH_CONFIG_FILE = 4;
private static final int METHODID_WATCH_CONFIG_FILES = 5;
private static final int METHODID_GET_CONFIG_FILE_METADATA_LIST = 6;
private static final int METHODID_DISCOVER = 7;
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 PolarisConfigGRPCImplBase serviceImpl;
private final int methodId;
MethodHandlers(PolarisConfigGRPCImplBase 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_GET_CONFIG_FILE:
serviceImpl.getConfigFile((com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientConfigFileInfo) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_CREATE_CONFIG_FILE:
serviceImpl.createConfigFile((com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPDATE_CONFIG_FILE:
serviceImpl.updateConfigFile((com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFile) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_PUBLISH_CONFIG_FILE:
serviceImpl.publishConfigFile((com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileRelease) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_UPSERT_AND_PUBLISH_CONFIG_FILE:
serviceImpl.upsertAndPublishConfigFile((com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFilePublishInfo) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_WATCH_CONFIG_FILES:
serviceImpl.watchConfigFiles((com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ClientWatchConfigFileRequest) request,
(io.grpc.stub.StreamObserver) responseObserver);
break;
case METHODID_GET_CONFIG_FILE_METADATA_LIST:
serviceImpl.getConfigFileMetadataList((com.tencent.polaris.specification.api.v1.config.manage.ConfigFileProto.ConfigFileGroupRequest) 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 PolarisConfigGRPCBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier {
PolarisConfigGRPCBaseDescriptorSupplier() {}
@java.lang.Override
public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() {
return com.tencent.polaris.specification.api.v1.config.manage.PolarisConfigGRPCService.getDescriptor();
}
@java.lang.Override
public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() {
return getFileDescriptor().findServiceByName("PolarisConfigGRPC");
}
}
private static final class PolarisConfigGRPCFileDescriptorSupplier
extends PolarisConfigGRPCBaseDescriptorSupplier {
PolarisConfigGRPCFileDescriptorSupplier() {}
}
private static final class PolarisConfigGRPCMethodDescriptorSupplier
extends PolarisConfigGRPCBaseDescriptorSupplier
implements io.grpc.protobuf.ProtoMethodDescriptorSupplier {
private final String methodName;
PolarisConfigGRPCMethodDescriptorSupplier(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 (PolarisConfigGRPCGrpc.class) {
result = serviceDescriptor;
if (result == null) {
serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME)
.setSchemaDescriptor(new PolarisConfigGRPCFileDescriptorSupplier())
.addMethod(getGetConfigFileMethod())
.addMethod(getCreateConfigFileMethod())
.addMethod(getUpdateConfigFileMethod())
.addMethod(getPublishConfigFileMethod())
.addMethod(getUpsertAndPublishConfigFileMethod())
.addMethod(getWatchConfigFilesMethod())
.addMethod(getGetConfigFileMetadataListMethod())
.addMethod(getDiscoverMethod())
.build();
}
}
}
return result;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy