You've already forked npm-core-sdk
64 lines
3.3 KiB
TypeScript
64 lines
3.3 KiB
TypeScript
// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix
|
|
// @generated from protobuf file "connectionSettings.proto" (package "api", syntax proto3)
|
|
// tslint:disable
|
|
import type { RpcTransport } from "@protobuf-ts/runtime-rpc";
|
|
import type { ServiceInfo } from "@protobuf-ts/runtime-rpc";
|
|
import { ConnectionSettingsService } from "./connectionSettings";
|
|
import type { DeleteConnectionSettingsResult } from "./connectionSettings";
|
|
import type { DeleteConnectionSettingsRequest } from "./connectionSettings";
|
|
import type { PutConnectionSettingsResult } from "./connectionSettings";
|
|
import type { PutConnectionSettingsRequest } from "./connectionSettings";
|
|
import { stackIntercept } from "@protobuf-ts/runtime-rpc";
|
|
import type { GetConnectionSettingsResult } from "./connectionSettings";
|
|
import type { GetConnectionSettingsRequest } from "./connectionSettings";
|
|
import type { UnaryCall } from "@protobuf-ts/runtime-rpc";
|
|
import type { RpcOptions } from "@protobuf-ts/runtime-rpc";
|
|
/**
|
|
* @generated from protobuf service api.ConnectionSettingsService
|
|
*/
|
|
export interface IConnectionSettingsServiceClient {
|
|
/**
|
|
* @generated from protobuf rpc: Get
|
|
*/
|
|
get(input: GetConnectionSettingsRequest, options?: RpcOptions): UnaryCall<GetConnectionSettingsRequest, GetConnectionSettingsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Put
|
|
*/
|
|
put(input: PutConnectionSettingsRequest, options?: RpcOptions): UnaryCall<PutConnectionSettingsRequest, PutConnectionSettingsResult>;
|
|
/**
|
|
* @generated from protobuf rpc: Delete
|
|
*/
|
|
delete(input: DeleteConnectionSettingsRequest, options?: RpcOptions): UnaryCall<DeleteConnectionSettingsRequest, DeleteConnectionSettingsResult>;
|
|
}
|
|
/**
|
|
* @generated from protobuf service api.ConnectionSettingsService
|
|
*/
|
|
export class ConnectionSettingsServiceClient implements IConnectionSettingsServiceClient, ServiceInfo {
|
|
typeName = ConnectionSettingsService.typeName;
|
|
methods = ConnectionSettingsService.methods;
|
|
options = ConnectionSettingsService.options;
|
|
constructor(private readonly _transport: RpcTransport) {
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Get
|
|
*/
|
|
get(input: GetConnectionSettingsRequest, options?: RpcOptions): UnaryCall<GetConnectionSettingsRequest, GetConnectionSettingsResult> {
|
|
const method = this.methods[0], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<GetConnectionSettingsRequest, GetConnectionSettingsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Put
|
|
*/
|
|
put(input: PutConnectionSettingsRequest, options?: RpcOptions): UnaryCall<PutConnectionSettingsRequest, PutConnectionSettingsResult> {
|
|
const method = this.methods[1], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<PutConnectionSettingsRequest, PutConnectionSettingsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
/**
|
|
* @generated from protobuf rpc: Delete
|
|
*/
|
|
delete(input: DeleteConnectionSettingsRequest, options?: RpcOptions): UnaryCall<DeleteConnectionSettingsRequest, DeleteConnectionSettingsResult> {
|
|
const method = this.methods[2], opt = this._transport.mergeOptions(options);
|
|
return stackIntercept<DeleteConnectionSettingsRequest, DeleteConnectionSettingsResult>("unary", this._transport, method, opt, input);
|
|
}
|
|
}
|