/// import { ChannelCredentials, ChannelOptions, UntypedServiceImplementation, handleUnaryCall, Client, ClientUnaryCall, Metadata, CallOptions, ServiceError } from '@grpc/grpc-js'; import _m0 from 'protobufjs/minimal'; import { FormatSchemaType, FormatSchema } from '../../../../../yandex/cloud/mdb/clickhouse/v1/format_schema'; import { FieldMask } from '../../../../../google/protobuf/field_mask'; import { Operation } from '../../../../../yandex/cloud/operation/operation'; export declare const protobufPackage = "yandex.cloud.mdb.clickhouse.v1"; export interface GetFormatSchemaRequest { /** * ClickHouse cluster ID. * * To get a ClickHouse cluster ID, use the [ClusterService.List] method. */ clusterId: string; /** * Format schema name. * * To get a format schema name, use the [FormatSchemaService.List] method. */ formatSchemaName: string; } export interface ListFormatSchemasRequest { /** * ClickHouse cluster ID. * * To get a ClickHouse cluster ID, use the [ClusterService.List] method. */ clusterId: string; /** The maximum number of results per page to return. If the number of the results is larger than [page_size], the service returns [ListFormatSchemasResponse.next_page_token]. You can use it to get the next page of the results in subsequent requests of a format schema list. */ pageSize: number; /** Page token. To get the next page of results, set [page_token] to the [ListFormatSchemasResponse.next_page_token] returned by the previous format schema list request. */ pageToken: string; } export interface ListFormatSchemasResponse { /** List of format schemas. */ formatSchemas: FormatSchema[]; /** This token allows you to get the next page of results when requesting the format schema list. If the number of the results is larger than [ListFormatSchemasRequest.page_size], use the [next_page_token] as the value for the [ListFormatSchemasRequest.page_token] parameter in the next request. Each subsequent request will have its own [next_page_token] to continue paging through the results. */ nextPageToken: string; } export interface CreateFormatSchemaRequest { /** * ClickHouse cluster ID. * * To get a ClickHouse cluster ID, use the [ClusterService.List] method. */ clusterId: string; /** Format schema name. */ formatSchemaName: string; /** * Schema type. Possible values are the following: * * * FORMAT_SCHEMA_TYPE_PROTOBUF - [Protobuf](https://protobuf.dev/) data format (including [ProtobufSingle](https://clickhouse.com/docs/en/interfaces/formats#protobufsingle)). * * FORMAT_SCHEMA_TYPE_CAPNPROTO - [Cap'n Proto](https://capnproto.org/) data format. */ type: FormatSchemaType; /** [Link to the file](/docs/managed-clickhouse/operations/s3-access#get-link-to-object) of a format schema in Yandex Object Storage. Managed Service for ClickHouse works only with format schemas imported to Object Storage. */ uri: string; } export interface CreateFormatSchemaMetadata { /** ClickHouse cluster ID. */ clusterId: string; /** Format schema name. */ formatSchemaName: string; } export interface UpdateFormatSchemaRequest { /** * ClickHouse cluster ID. * * To get a ClickHouse cluster ID, use the [ClusterService.List] method. */ clusterId: string; /** * Format schema name. * * To get a format schema name, use the [FormatSchemaService.List] method. */ formatSchemaName: string; updateMask?: FieldMask; /** [Link to the file](/docs/managed-clickhouse/operations/s3-access#get-link-to-object) of a format schema in Yandex Object Storage. Managed Service for ClickHouse works only with format schemas imported to Object Storage. */ uri: string; } export interface UpdateFormatSchemaMetadata { /** ClickHouse cluster ID. */ clusterId: string; /** Format schema name. */ formatSchemaName: string; } export interface DeleteFormatSchemaRequest { /** * ClickHouse cluster ID. * * To get a ClickHouse cluster ID, use the [ClusterService.List] method. */ clusterId: string; /** * Format schema name. * * To get a format schema name, use the [FormatSchemaService.List] method. */ formatSchemaName: string; } export interface DeleteFormatSchemaMetadata { /** ClickHouse cluster ID. */ clusterId: string; /** Format schema name. */ formatSchemaName: string; } export declare const GetFormatSchemaRequest: { encode(message: GetFormatSchemaRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): GetFormatSchemaRequest; fromJSON(object: any): GetFormatSchemaRequest; toJSON(message: GetFormatSchemaRequest): unknown; fromPartial, never>>(object: I): GetFormatSchemaRequest; }; export declare const ListFormatSchemasRequest: { encode(message: ListFormatSchemasRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFormatSchemasRequest; fromJSON(object: any): ListFormatSchemasRequest; toJSON(message: ListFormatSchemasRequest): unknown; fromPartial, never>>(object: I): ListFormatSchemasRequest; }; export declare const ListFormatSchemasResponse: { encode(message: ListFormatSchemasResponse, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): ListFormatSchemasResponse; fromJSON(object: any): ListFormatSchemasResponse; toJSON(message: ListFormatSchemasResponse): unknown; fromPartial, never>)[] & Record, never>) | undefined; nextPageToken?: string | undefined; } & Record, never>>(object: I): ListFormatSchemasResponse; }; export declare const CreateFormatSchemaRequest: { encode(message: CreateFormatSchemaRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFormatSchemaRequest; fromJSON(object: any): CreateFormatSchemaRequest; toJSON(message: CreateFormatSchemaRequest): unknown; fromPartial, never>>(object: I): CreateFormatSchemaRequest; }; export declare const CreateFormatSchemaMetadata: { encode(message: CreateFormatSchemaMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): CreateFormatSchemaMetadata; fromJSON(object: any): CreateFormatSchemaMetadata; toJSON(message: CreateFormatSchemaMetadata): unknown; fromPartial, never>>(object: I): CreateFormatSchemaMetadata; }; export declare const UpdateFormatSchemaRequest: { encode(message: UpdateFormatSchemaRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateFormatSchemaRequest; fromJSON(object: any): UpdateFormatSchemaRequest; toJSON(message: UpdateFormatSchemaRequest): unknown; fromPartial, never>) | undefined; } & Record, never>) | undefined; uri?: string | undefined; } & Record, never>>(object: I): UpdateFormatSchemaRequest; }; export declare const UpdateFormatSchemaMetadata: { encode(message: UpdateFormatSchemaMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): UpdateFormatSchemaMetadata; fromJSON(object: any): UpdateFormatSchemaMetadata; toJSON(message: UpdateFormatSchemaMetadata): unknown; fromPartial, never>>(object: I): UpdateFormatSchemaMetadata; }; export declare const DeleteFormatSchemaRequest: { encode(message: DeleteFormatSchemaRequest, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteFormatSchemaRequest; fromJSON(object: any): DeleteFormatSchemaRequest; toJSON(message: DeleteFormatSchemaRequest): unknown; fromPartial, never>>(object: I): DeleteFormatSchemaRequest; }; export declare const DeleteFormatSchemaMetadata: { encode(message: DeleteFormatSchemaMetadata, writer?: _m0.Writer): _m0.Writer; decode(input: _m0.Reader | Uint8Array, length?: number): DeleteFormatSchemaMetadata; fromJSON(object: any): DeleteFormatSchemaMetadata; toJSON(message: DeleteFormatSchemaMetadata): unknown; fromPartial, never>>(object: I): DeleteFormatSchemaMetadata; }; /** A set of methods for managing [format schemas](https://clickhouse.com/docs/en/interfaces/formats) for input and output data. */ export declare const FormatSchemaServiceService: { /** Returns detailed information about a given format schema. */ readonly get: { readonly path: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Get"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: GetFormatSchemaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => GetFormatSchemaRequest; readonly responseSerialize: (value: FormatSchema) => Buffer; readonly responseDeserialize: (value: Buffer) => FormatSchema; }; /** Returns a list of format schemas in a cluster. */ readonly list: { readonly path: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/List"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: ListFormatSchemasRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => ListFormatSchemasRequest; readonly responseSerialize: (value: ListFormatSchemasResponse) => Buffer; readonly responseDeserialize: (value: Buffer) => ListFormatSchemasResponse; }; /** Adds a format schema to a cluster. */ readonly create: { readonly path: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Create"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: CreateFormatSchemaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => CreateFormatSchemaRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Changes a format schema. */ readonly update: { readonly path: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Update"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: UpdateFormatSchemaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => UpdateFormatSchemaRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; /** Deletes a format schema from a cluster. */ readonly delete: { readonly path: "/yandex.cloud.mdb.clickhouse.v1.FormatSchemaService/Delete"; readonly requestStream: false; readonly responseStream: false; readonly requestSerialize: (value: DeleteFormatSchemaRequest) => Buffer; readonly requestDeserialize: (value: Buffer) => DeleteFormatSchemaRequest; readonly responseSerialize: (value: Operation) => Buffer; readonly responseDeserialize: (value: Buffer) => Operation; }; }; export interface FormatSchemaServiceServer extends UntypedServiceImplementation { /** Returns detailed information about a given format schema. */ get: handleUnaryCall; /** Returns a list of format schemas in a cluster. */ list: handleUnaryCall; /** Adds a format schema to a cluster. */ create: handleUnaryCall; /** Changes a format schema. */ update: handleUnaryCall; /** Deletes a format schema from a cluster. */ delete: handleUnaryCall; } export interface FormatSchemaServiceClient extends Client { /** Returns detailed information about a given format schema. */ get(request: GetFormatSchemaRequest, callback: (error: ServiceError | null, response: FormatSchema) => void): ClientUnaryCall; get(request: GetFormatSchemaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: FormatSchema) => void): ClientUnaryCall; get(request: GetFormatSchemaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: FormatSchema) => void): ClientUnaryCall; /** Returns a list of format schemas in a cluster. */ list(request: ListFormatSchemasRequest, callback: (error: ServiceError | null, response: ListFormatSchemasResponse) => void): ClientUnaryCall; list(request: ListFormatSchemasRequest, metadata: Metadata, callback: (error: ServiceError | null, response: ListFormatSchemasResponse) => void): ClientUnaryCall; list(request: ListFormatSchemasRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: ListFormatSchemasResponse) => void): ClientUnaryCall; /** Adds a format schema to a cluster. */ create(request: CreateFormatSchemaRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateFormatSchemaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; create(request: CreateFormatSchemaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Changes a format schema. */ update(request: UpdateFormatSchemaRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateFormatSchemaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; update(request: UpdateFormatSchemaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; /** Deletes a format schema from a cluster. */ delete(request: DeleteFormatSchemaRequest, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteFormatSchemaRequest, metadata: Metadata, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; delete(request: DeleteFormatSchemaRequest, metadata: Metadata, options: Partial, callback: (error: ServiceError | null, response: Operation) => void): ClientUnaryCall; } export declare const FormatSchemaServiceClient: { new (address: string, credentials: ChannelCredentials, options?: Partial): FormatSchemaServiceClient; service: typeof FormatSchemaServiceService; }; type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined; export type DeepPartial = T extends Builtin ? T : T extends Array ? Array> : T extends ReadonlyArray ? ReadonlyArray> : T extends {} ? { [K in keyof T]?: DeepPartial; } : Partial; type KeysOfUnion = T extends T ? keyof T : never; export type Exact = P extends Builtin ? P : P & { [K in keyof P]: Exact; } & Record>, never>; export {};
= P extends Builtin ? P : P & { [K in keyof P]: Exact
; } & Record>, never>; export {};