tech.ytsaurus.client.ApiServiceMethodTable Maven / Gradle / Ivy
The newest version!
package tech.ytsaurus.client;
import java.util.function.Supplier;
import com.google.protobuf.MessageLite;
import com.google.protobuf.Parser;
import tech.ytsaurus.TReqDiscoverProxies;
import tech.ytsaurus.TRspDiscoverProxies;
import tech.ytsaurus.rpc.TReqDiscover;
import tech.ytsaurus.rpc.TRspDiscover;
import tech.ytsaurus.rpcproxy.TReqAbortJob;
import tech.ytsaurus.rpcproxy.TReqAbortOperation;
import tech.ytsaurus.rpcproxy.TReqAbortQuery;
import tech.ytsaurus.rpcproxy.TReqAbortTransaction;
import tech.ytsaurus.rpcproxy.TReqAdvanceQueueConsumer;
import tech.ytsaurus.rpcproxy.TReqAlterQuery;
import tech.ytsaurus.rpcproxy.TReqAlterTable;
import tech.ytsaurus.rpcproxy.TReqAlterTableReplica;
import tech.ytsaurus.rpcproxy.TReqBuildSnapshot;
import tech.ytsaurus.rpcproxy.TReqCheckClusterLiveness;
import tech.ytsaurus.rpcproxy.TReqCheckPermission;
import tech.ytsaurus.rpcproxy.TReqCommitTransaction;
import tech.ytsaurus.rpcproxy.TReqCompleteOperation;
import tech.ytsaurus.rpcproxy.TReqConcatenateNodes;
import tech.ytsaurus.rpcproxy.TReqCopyNode;
import tech.ytsaurus.rpcproxy.TReqCreateNode;
import tech.ytsaurus.rpcproxy.TReqCreateObject;
import tech.ytsaurus.rpcproxy.TReqExistsNode;
import tech.ytsaurus.rpcproxy.TReqFreezeTable;
import tech.ytsaurus.rpcproxy.TReqGCCollect;
import tech.ytsaurus.rpcproxy.TReqGenerateTimestamps;
import tech.ytsaurus.rpcproxy.TReqGetFileFromCache;
import tech.ytsaurus.rpcproxy.TReqGetInSyncReplicas;
import tech.ytsaurus.rpcproxy.TReqGetJob;
import tech.ytsaurus.rpcproxy.TReqGetJobStderr;
import tech.ytsaurus.rpcproxy.TReqGetNode;
import tech.ytsaurus.rpcproxy.TReqGetOperation;
import tech.ytsaurus.rpcproxy.TReqGetQuery;
import tech.ytsaurus.rpcproxy.TReqGetQueryResult;
import tech.ytsaurus.rpcproxy.TReqGetTablePivotKeys;
import tech.ytsaurus.rpcproxy.TReqGetTabletInfos;
import tech.ytsaurus.rpcproxy.TReqLinkNode;
import tech.ytsaurus.rpcproxy.TReqListJobs;
import tech.ytsaurus.rpcproxy.TReqListNode;
import tech.ytsaurus.rpcproxy.TReqListQueries;
import tech.ytsaurus.rpcproxy.TReqLockNode;
import tech.ytsaurus.rpcproxy.TReqLookupRows;
import tech.ytsaurus.rpcproxy.TReqModifyRows;
import tech.ytsaurus.rpcproxy.TReqMountTable;
import tech.ytsaurus.rpcproxy.TReqMoveNode;
import tech.ytsaurus.rpcproxy.TReqMultiLookup;
import tech.ytsaurus.rpcproxy.TReqPartitionTables;
import tech.ytsaurus.rpcproxy.TReqPingTransaction;
import tech.ytsaurus.rpcproxy.TReqPullQueueConsumer;
import tech.ytsaurus.rpcproxy.TReqPutFileToCache;
import tech.ytsaurus.rpcproxy.TReqReadFile;
import tech.ytsaurus.rpcproxy.TReqReadQueryResult;
import tech.ytsaurus.rpcproxy.TReqReadTable;
import tech.ytsaurus.rpcproxy.TReqRegisterQueueConsumer;
import tech.ytsaurus.rpcproxy.TReqRemountTable;
import tech.ytsaurus.rpcproxy.TReqRemoveNode;
import tech.ytsaurus.rpcproxy.TReqReshardTable;
import tech.ytsaurus.rpcproxy.TReqResumeOperation;
import tech.ytsaurus.rpcproxy.TReqSelectRows;
import tech.ytsaurus.rpcproxy.TReqSetNode;
import tech.ytsaurus.rpcproxy.TReqStartOperation;
import tech.ytsaurus.rpcproxy.TReqStartQuery;
import tech.ytsaurus.rpcproxy.TReqStartTransaction;
import tech.ytsaurus.rpcproxy.TReqSuspendOperation;
import tech.ytsaurus.rpcproxy.TReqTrimTable;
import tech.ytsaurus.rpcproxy.TReqUnfreezeTable;
import tech.ytsaurus.rpcproxy.TReqUnmountTable;
import tech.ytsaurus.rpcproxy.TReqUpdateOperationParameters;
import tech.ytsaurus.rpcproxy.TReqVersionedLookupRows;
import tech.ytsaurus.rpcproxy.TReqWriteFile;
import tech.ytsaurus.rpcproxy.TReqWriteTable;
import tech.ytsaurus.rpcproxy.TRspAbortJob;
import tech.ytsaurus.rpcproxy.TRspAbortOperation;
import tech.ytsaurus.rpcproxy.TRspAbortQuery;
import tech.ytsaurus.rpcproxy.TRspAbortTransaction;
import tech.ytsaurus.rpcproxy.TRspAdvanceQueueConsumer;
import tech.ytsaurus.rpcproxy.TRspAlterQuery;
import tech.ytsaurus.rpcproxy.TRspAlterTable;
import tech.ytsaurus.rpcproxy.TRspAlterTableReplica;
import tech.ytsaurus.rpcproxy.TRspBuildSnapshot;
import tech.ytsaurus.rpcproxy.TRspCheckClusterLiveness;
import tech.ytsaurus.rpcproxy.TRspCheckPermission;
import tech.ytsaurus.rpcproxy.TRspCommitTransaction;
import tech.ytsaurus.rpcproxy.TRspCompleteOperation;
import tech.ytsaurus.rpcproxy.TRspConcatenateNodes;
import tech.ytsaurus.rpcproxy.TRspCopyNode;
import tech.ytsaurus.rpcproxy.TRspCreateNode;
import tech.ytsaurus.rpcproxy.TRspCreateObject;
import tech.ytsaurus.rpcproxy.TRspExistsNode;
import tech.ytsaurus.rpcproxy.TRspFreezeTable;
import tech.ytsaurus.rpcproxy.TRspGCCollect;
import tech.ytsaurus.rpcproxy.TRspGenerateTimestamps;
import tech.ytsaurus.rpcproxy.TRspGetFileFromCache;
import tech.ytsaurus.rpcproxy.TRspGetInSyncReplicas;
import tech.ytsaurus.rpcproxy.TRspGetJob;
import tech.ytsaurus.rpcproxy.TRspGetJobStderr;
import tech.ytsaurus.rpcproxy.TRspGetNode;
import tech.ytsaurus.rpcproxy.TRspGetOperation;
import tech.ytsaurus.rpcproxy.TRspGetQuery;
import tech.ytsaurus.rpcproxy.TRspGetQueryResult;
import tech.ytsaurus.rpcproxy.TRspGetTablePivotKeys;
import tech.ytsaurus.rpcproxy.TRspGetTabletInfos;
import tech.ytsaurus.rpcproxy.TRspLinkNode;
import tech.ytsaurus.rpcproxy.TRspListJobs;
import tech.ytsaurus.rpcproxy.TRspListNode;
import tech.ytsaurus.rpcproxy.TRspListQueries;
import tech.ytsaurus.rpcproxy.TRspLockNode;
import tech.ytsaurus.rpcproxy.TRspLookupRows;
import tech.ytsaurus.rpcproxy.TRspModifyRows;
import tech.ytsaurus.rpcproxy.TRspMountTable;
import tech.ytsaurus.rpcproxy.TRspMoveNode;
import tech.ytsaurus.rpcproxy.TRspMultiLookup;
import tech.ytsaurus.rpcproxy.TRspPartitionTables;
import tech.ytsaurus.rpcproxy.TRspPingTransaction;
import tech.ytsaurus.rpcproxy.TRspPullQueueConsumer;
import tech.ytsaurus.rpcproxy.TRspPutFileToCache;
import tech.ytsaurus.rpcproxy.TRspReadFile;
import tech.ytsaurus.rpcproxy.TRspReadQueryResult;
import tech.ytsaurus.rpcproxy.TRspReadTable;
import tech.ytsaurus.rpcproxy.TRspRegisterQueueConsumer;
import tech.ytsaurus.rpcproxy.TRspRemountTable;
import tech.ytsaurus.rpcproxy.TRspRemoveNode;
import tech.ytsaurus.rpcproxy.TRspReshardTable;
import tech.ytsaurus.rpcproxy.TRspResumeOperation;
import tech.ytsaurus.rpcproxy.TRspSelectRows;
import tech.ytsaurus.rpcproxy.TRspSetNode;
import tech.ytsaurus.rpcproxy.TRspStartOperation;
import tech.ytsaurus.rpcproxy.TRspStartQuery;
import tech.ytsaurus.rpcproxy.TRspStartTransaction;
import tech.ytsaurus.rpcproxy.TRspSuspendOperation;
import tech.ytsaurus.rpcproxy.TRspTrimTable;
import tech.ytsaurus.rpcproxy.TRspUnfreezeTable;
import tech.ytsaurus.rpcproxy.TRspUnmountTable;
import tech.ytsaurus.rpcproxy.TRspUpdateOperationParameters;
import tech.ytsaurus.rpcproxy.TRspVersionedLookupRows;
import tech.ytsaurus.rpcproxy.TRspWriteFile;
import tech.ytsaurus.rpcproxy.TRspWriteTable;
public class ApiServiceMethodTable {
public static final RpcMethodDescriptor START_TRANSACTION =
apiServiceMethod("StartTransaction", TReqStartTransaction::newBuilder, TRspStartTransaction.parser());
public static final RpcMethodDescriptor PING_TRANSACTION =
apiServiceMethod("PingTransaction", TReqPingTransaction::newBuilder, TRspPingTransaction.parser());
public static final RpcMethodDescriptor COMMIT_TRANSACTION =
apiServiceMethod("CommitTransaction", TReqCommitTransaction::newBuilder, TRspCommitTransaction.parser());
public static final RpcMethodDescriptor ABORT_TRANSACTION =
apiServiceMethod("AbortTransaction", TReqAbortTransaction::newBuilder, TRspAbortTransaction.parser());
public static final RpcMethodDescriptor LOOKUP_ROWS =
apiServiceMethod("LookupRows", TReqLookupRows::newBuilder, TRspLookupRows.parser());
public static final RpcMethodDescriptor MULTI_LOOKUP =
apiServiceMethod("MultiLookup", TReqMultiLookup::newBuilder, TRspMultiLookup.parser());
public static final RpcMethodDescriptor
VERSIONED_LOOKUP_ROWS =
apiServiceMethod(
"VersionedLookupRows",
TReqVersionedLookupRows::newBuilder,
TRspVersionedLookupRows.parser()
);
public static final RpcMethodDescriptor SELECT_ROWS =
apiServiceMethod("SelectRows", TReqSelectRows::newBuilder, TRspSelectRows.parser());
public static final RpcMethodDescriptor MODIFY_ROWS =
apiServiceMethod("ModifyRows", TReqModifyRows::newBuilder, TRspModifyRows.parser());
public static final RpcMethodDescriptor BUILD_SNAPSHOT =
apiServiceMethod("BuildSnapshot", TReqBuildSnapshot::newBuilder, TRspBuildSnapshot.parser());
public static final RpcMethodDescriptor GC_COLLECT =
apiServiceMethod("GcCollect", TReqGCCollect::newBuilder, TRspGCCollect.parser());
public static final RpcMethodDescriptor GET_IN_SYNC_REPLICAS =
apiServiceMethod("GetInSyncReplicas", TReqGetInSyncReplicas::newBuilder, TRspGetInSyncReplicas.parser());
public static final RpcMethodDescriptor GET_TABLET_INFOS =
apiServiceMethod("GetTabletInfos", TReqGetTabletInfos::newBuilder, TRspGetTabletInfos.parser());
public static final RpcMethodDescriptor
GENERATE_TIMESTAMPS =
apiServiceMethod("GenerateTimestamps", TReqGenerateTimestamps::newBuilder, TRspGenerateTimestamps.parser());
public static final RpcMethodDescriptor CREATE_OBJECT =
apiServiceMethod("CreateObject", TReqCreateObject::newBuilder, TRspCreateObject.parser());
public static final RpcMethodDescriptor GET_NODE =
apiServiceMethod("GetNode", TReqGetNode::newBuilder, TRspGetNode.parser());
public static final RpcMethodDescriptor SET_NODE =
apiServiceMethod("SetNode", TReqSetNode::newBuilder, TRspSetNode.parser());
public static final RpcMethodDescriptor EXISTS_NODE =
apiServiceMethod("ExistsNode", TReqExistsNode::newBuilder, TRspExistsNode.parser());
public static final RpcMethodDescriptor LIST_NODE =
apiServiceMethod("ListNode", TReqListNode::newBuilder, TRspListNode.parser());
public static final RpcMethodDescriptor CREATE_NODE =
apiServiceMethod("CreateNode", TReqCreateNode::newBuilder, TRspCreateNode.parser());
public static final RpcMethodDescriptor GET_TABLE_PIVOT_KEYS =
apiServiceMethod("GetTablePivotKeys", TReqGetTablePivotKeys::newBuilder, TRspGetTablePivotKeys.parser());
public static final RpcMethodDescriptor REMOVE_NODE =
apiServiceMethod("RemoveNode", TReqRemoveNode::newBuilder, TRspRemoveNode.parser());
public static final RpcMethodDescriptor LOCK_NODE =
apiServiceMethod("LockNode", TReqLockNode::newBuilder, TRspLockNode.parser());
public static final RpcMethodDescriptor COPY_NODE =
apiServiceMethod("CopyNode", TReqCopyNode::newBuilder, TRspCopyNode.parser());
public static final RpcMethodDescriptor MOVE_NODE =
apiServiceMethod("MoveNode", TReqMoveNode::newBuilder, TRspMoveNode.parser());
public static final RpcMethodDescriptor LINK_NODE =
apiServiceMethod("LinkNode", TReqLinkNode::newBuilder, TRspLinkNode.parser());
public static final RpcMethodDescriptor CONCATENATE_NODES =
apiServiceMethod("ConcatenateNodes", TReqConcatenateNodes::newBuilder, TRspConcatenateNodes.parser());
public static final RpcMethodDescriptor PARTITION_TABLES =
apiServiceMethod("PartitionTables", TReqPartitionTables::newBuilder, TRspPartitionTables.parser());
public static final RpcMethodDescriptor MOUNT_TABLE =
apiServiceMethod("MountTable", TReqMountTable::newBuilder, TRspMountTable.parser());
public static final RpcMethodDescriptor UNMOUNT_TABLE =
apiServiceMethod("UnmountTable", TReqUnmountTable::newBuilder, TRspUnmountTable.parser());
public static final RpcMethodDescriptor REMOUNT_TABLE =
apiServiceMethod("RemountTable", TReqRemountTable::newBuilder, TRspRemountTable.parser());
public static final RpcMethodDescriptor FREEZE_TABLE =
apiServiceMethod("FreezeTable", TReqFreezeTable::newBuilder, TRspFreezeTable.parser());
public static final RpcMethodDescriptor UNFREEZE_TABLE =
apiServiceMethod("UnfreezeTable", TReqUnfreezeTable::newBuilder, TRspUnfreezeTable.parser());
public static final RpcMethodDescriptor RESHARD_TABLE =
apiServiceMethod("ReshardTable", TReqReshardTable::newBuilder, TRspReshardTable.parser());
public static final RpcMethodDescriptor TRIM_TABLE =
apiServiceMethod("TrimTable", TReqTrimTable::newBuilder, TRspTrimTable.parser());
public static final RpcMethodDescriptor ALTER_TABLE =
apiServiceMethod("AlterTable", TReqAlterTable::newBuilder, TRspAlterTable.parser());
public static final RpcMethodDescriptor ALTER_TABLE_REPLICA =
apiServiceMethod("AlterTableReplica", TReqAlterTableReplica::newBuilder, TRspAlterTableReplica.parser());
public static final RpcMethodDescriptor START_OPERATION =
apiServiceMethod("StartOperation", TReqStartOperation::newBuilder, TRspStartOperation.parser());
public static final RpcMethodDescriptor GET_OPERATION =
apiServiceMethod("GetOperation", TReqGetOperation::newBuilder, TRspGetOperation.parser());
public static final RpcMethodDescriptor ABORT_OPERATION =
apiServiceMethod("AbortOperation", TReqAbortOperation::newBuilder, TRspAbortOperation.parser());
public static final RpcMethodDescriptor COMPLETE_OPERATION =
apiServiceMethod("CompleteOperation", TReqCompleteOperation::newBuilder, TRspCompleteOperation.parser());
public static final RpcMethodDescriptor SUSPEND_OPERATION =
apiServiceMethod("SuspendOperation", TReqSuspendOperation::newBuilder, TRspSuspendOperation.parser());
public static final RpcMethodDescriptor RESUME_OPERATION =
apiServiceMethod("ResumeOperation", TReqResumeOperation::newBuilder, TRspResumeOperation.parser());
public static final RpcMethodDescriptor
UPDATE_OPERATION_PARAMETERS = apiServiceMethod("UpdateOperationParameters",
TReqUpdateOperationParameters::newBuilder, TRspUpdateOperationParameters.parser());
public static final RpcMethodDescriptor GET_JOB =
apiServiceMethod("GetJob", TReqGetJob::newBuilder, TRspGetJob.parser());
public static final RpcMethodDescriptor LIST_JOBS =
apiServiceMethod("ListJobs", TReqListJobs::newBuilder, TRspListJobs.parser());
public static final RpcMethodDescriptor GET_JOB_STDERR =
apiServiceMethod("GetJobStderr", TReqGetJobStderr::newBuilder, TRspGetJobStderr.parser());
public static final RpcMethodDescriptor ABORT_JOB =
apiServiceMethod("AbortJob", TReqAbortJob::newBuilder, TRspAbortJob.parser());
public static final RpcMethodDescriptor CHECK_PERMISSION =
apiServiceMethod("CheckPermission", TReqCheckPermission::newBuilder, TRspCheckPermission.parser());
public static final RpcMethodDescriptor
CHECK_CLUSTER_LIVENESS = apiServiceMethod(
"CheckClusterLiveness", TReqCheckClusterLiveness::newBuilder, TRspCheckClusterLiveness.parser());
public static final RpcMethodDescriptor PULL_CONSUMER =
apiServiceMethod("PullConsumer", TReqPullQueueConsumer::newBuilder, TRspPullQueueConsumer.parser());
public static final RpcMethodDescriptor
ADVANCE_CONSUMER = apiServiceMethod(
"AdvanceConsumer", TReqAdvanceQueueConsumer::newBuilder, TRspAdvanceQueueConsumer.parser());
public static final RpcMethodDescriptor
REGISTER_QUEUE_CONSUMER = apiServiceMethod(
"RegisterQueueConsumer",
TReqRegisterQueueConsumer::newBuilder, TRspRegisterQueueConsumer.parser()
);
public static final RpcMethodDescriptor START_QUERY =
apiServiceMethod("StartQuery", TReqStartQuery::newBuilder, TRspStartQuery.parser());
public static final RpcMethodDescriptor ABORT_QUERY =
apiServiceMethod("AbortQuery", TReqAbortQuery::newBuilder, TRspAbortQuery.parser());
public static final RpcMethodDescriptor GET_QUERY_RESULT =
apiServiceMethod("GetQueryResult", TReqGetQueryResult::newBuilder, TRspGetQueryResult.parser());
public static final RpcMethodDescriptor READ_QUERY_RESULT =
apiServiceMethod("ReadQueryResult", TReqReadQueryResult::newBuilder, TRspReadQueryResult.parser());
public static final RpcMethodDescriptor GET_QUERY =
apiServiceMethod("GetQuery", TReqGetQuery::newBuilder, TRspGetQuery.parser());
public static final RpcMethodDescriptor LIST_QUERIES =
apiServiceMethod("ListQueries", TReqListQueries::newBuilder, TRspListQueries.parser());
public static final RpcMethodDescriptor ALTER_QUERY =
apiServiceMethod("AlterQuery", TReqAlterQuery::newBuilder, TRspAlterQuery.parser());
public static final RpcMethodDescriptor READ_TABLE =
apiServiceMethod("ReadTable", TReqReadTable::newBuilder, TRspReadTable.parser());
public static final RpcMethodDescriptor WRITE_TABLE =
apiServiceMethod("WriteTable", TReqWriteTable::newBuilder, TRspWriteTable.parser());
public static final RpcMethodDescriptor READ_FILE =
apiServiceMethod("ReadFile", TReqReadFile::newBuilder, TRspReadFile.parser());
public static final RpcMethodDescriptor WRITE_FILE =
apiServiceMethod("WriteFile", TReqWriteFile::newBuilder, TRspWriteFile.parser());
public static final RpcMethodDescriptor GET_FILE_FROM_CACHE =
apiServiceMethod("GetFileFromCache", TReqGetFileFromCache::newBuilder, TRspGetFileFromCache.parser());
public static final RpcMethodDescriptor PUT_FILE_TO_CACHE =
apiServiceMethod("PutFileToCache", TReqPutFileToCache::newBuilder, TRspPutFileToCache.parser());
public static final RpcMethodDescriptor DISCOVER =
apiServiceMethod("Discover", TReqDiscover::newBuilder, TRspDiscover.parser());
public static final RpcMethodDescriptor DISCOVER_PROXIES =
discoveryServiceMethod("DiscoverProxies", TReqDiscoverProxies::newBuilder, TRspDiscoverProxies.parser());
private ApiServiceMethodTable() {
}
public static
RpcMethodDescriptor apiServiceMethod(
String name,
Supplier reqSupplier,
Parser parser
) {
return new RpcMethodDescriptor<>(
1,
"ApiService",
name,
reqSupplier,
parser);
}
public static
RpcMethodDescriptor discoveryServiceMethod(
String name,
Supplier reqSupplier,
Parser parser
) {
return new RpcMethodDescriptor<>(
0,
"DiscoveryService",
name,
reqSupplier,
parser);
}
}