@ydbjs/api
Version:
TypeScript gRPC service definitions and protobuf types for all YDB APIs. Enables strongly-typed client generation and low-level protocol access.
93 lines • 4.93 kB
JavaScript
// @generated by protoc-gen-nice-grpc v1 with parameter "target=ts,import_extension=js"
// @generated from file ydb_import_v1.proto (package Ydb.Import.V1, syntax proto3)
/* eslint-disable */
import { create, fromBinary, toBinary } from "@bufbuild/protobuf";
import { ImportDataRequestSchema, ImportDataResponseSchema, ImportFromFsRequestSchema, ImportFromFsResponseSchema, ImportFromS3RequestSchema, ImportFromS3ResponseSchema, ListObjectsInFsExportRequestSchema, ListObjectsInFsExportResponseSchema, ListObjectsInS3ExportRequestSchema, ListObjectsInS3ExportResponseSchema } from "./protos/ydb_import_pb.js";
/**
* @generated from service Ydb.Import.V1.ImportService
*/
export const ImportServiceDefinition = {
/**
* Imports data from S3.
* Method starts an asynchronous operation that can be cancelled while it is in progress.
*
* @generated from rpc Ydb.Import.V1.ImportService.ImportFromS3
*/
importFromS3: {
path: "/Ydb.Import.V1.ImportService/ImportFromS3",
requestStream: false,
requestSerialize: (message) => toBinary(ImportFromS3RequestSchema, create(ImportFromS3RequestSchema, message)),
requestDeserialize: (bytes) => fromBinary(ImportFromS3RequestSchema, bytes),
responseStream: false,
responseSerialize: (message) => toBinary(ImportFromS3ResponseSchema, create(ImportFromS3ResponseSchema, message)),
responseDeserialize: (bytes) => fromBinary(ImportFromS3ResponseSchema, bytes),
options: {},
},
/**
* Imports data from file system.
* Method starts an asynchronous operation that can be cancelled while it is in progress.
*
* @generated from rpc Ydb.Import.V1.ImportService.ImportFromFs
*/
importFromFs: {
path: "/Ydb.Import.V1.ImportService/ImportFromFs",
requestStream: false,
requestSerialize: (message) => toBinary(ImportFromFsRequestSchema, create(ImportFromFsRequestSchema, message)),
requestDeserialize: (bytes) => fromBinary(ImportFromFsRequestSchema, bytes),
responseStream: false,
responseSerialize: (message) => toBinary(ImportFromFsResponseSchema, create(ImportFromFsResponseSchema, message)),
responseDeserialize: (bytes) => fromBinary(ImportFromFsResponseSchema, bytes),
options: {},
},
/**
* List objects from existing export stored in S3 bucket
*
* @generated from rpc Ydb.Import.V1.ImportService.ListObjectsInS3Export
*/
listObjectsInS3Export: {
path: "/Ydb.Import.V1.ImportService/ListObjectsInS3Export",
requestStream: false,
requestSerialize: (message) => toBinary(ListObjectsInS3ExportRequestSchema, create(ListObjectsInS3ExportRequestSchema, message)),
requestDeserialize: (bytes) => fromBinary(ListObjectsInS3ExportRequestSchema, bytes),
responseStream: false,
responseSerialize: (message) => toBinary(ListObjectsInS3ExportResponseSchema, create(ListObjectsInS3ExportResponseSchema, message)),
responseDeserialize: (bytes) => fromBinary(ListObjectsInS3ExportResponseSchema, bytes),
options: {},
},
/**
* List objects from existing export stored in FS
*
* @generated from rpc Ydb.Import.V1.ImportService.ListObjectsInFsExport
*/
listObjectsInFsExport: {
path: "/Ydb.Import.V1.ImportService/ListObjectsInFsExport",
requestStream: false,
requestSerialize: (message) => toBinary(ListObjectsInFsExportRequestSchema, create(ListObjectsInFsExportRequestSchema, message)),
requestDeserialize: (bytes) => fromBinary(ListObjectsInFsExportRequestSchema, bytes),
responseStream: false,
responseSerialize: (message) => toBinary(ListObjectsInFsExportResponseSchema, create(ListObjectsInFsExportResponseSchema, message)),
responseDeserialize: (bytes) => fromBinary(ListObjectsInFsExportResponseSchema, bytes),
options: {},
},
/**
* Writes data to a table.
* Method accepts serialized data in the selected format and writes it non-transactionally.
*
* @generated from rpc Ydb.Import.V1.ImportService.ImportData
*/
importData: {
path: "/Ydb.Import.V1.ImportService/ImportData",
requestStream: false,
requestSerialize: (message) => toBinary(ImportDataRequestSchema, create(ImportDataRequestSchema, message)),
requestDeserialize: (bytes) => fromBinary(ImportDataRequestSchema, bytes),
responseStream: false,
responseSerialize: (message) => toBinary(ImportDataResponseSchema, create(ImportDataResponseSchema, message)),
responseDeserialize: (bytes) => fromBinary(ImportDataResponseSchema, bytes),
options: {},
},
};
//@ts-expect-error
ImportServiceDefinition["name"] = "ImportService";
//@ts-expect-error
ImportServiceDefinition["fullName"] = "Ydb.Import.V1.ImportService";
//# sourceMappingURL=ydb_import_v1_grpc_pb.js.map