// @generated by protobuf-ts 2.11.1 with parameter use_proto_field_name,keep_enum_prefix // @generated from protobuf file "gcs-api.proto" (package "api", syntax proto3) // tslint:disable import type { RpcTransport } from "@protobuf-ts/runtime-rpc"; import type { ServiceInfo } from "@protobuf-ts/runtime-rpc"; import { GcsApi } from "./gcs-api"; import type { DeleteOrganisationBucketRequest } from "./gcs-api"; import type { DeleteProjectBucketRequest } from "./gcs-api"; import type { DeleteBucketResult } from "./gcs-api"; import type { DeletePartnerBucketRequest } from "./gcs-api"; import type { CreateProjectBucketRequest } from "./gcs-api"; import type { CreateBucketResult } from "./gcs-api"; import type { CreatePartnerBucketRequest } from "./gcs-api"; import type { GetBucketSTSResult } from "./gcs-api"; import type { GetBucketSTSRequest } from "./gcs-api"; import type { GetProjectWriteTokenResult } from "./gcs-api"; import type { GetProjectWriteTokenRequest } from "./gcs-api"; import type { GetProjectReadTokenResult } from "./gcs-api"; import type { GetProjectReadTokenRequest } from "./gcs-api"; import type { GetPartnerWriteTokenResult } from "./gcs-api"; import type { GetPartnerWriteTokenRequest } from "./gcs-api"; import { stackIntercept } from "@protobuf-ts/runtime-rpc"; import type { GetPartnerReadTokenResult } from "./gcs-api"; import type { GetPartnerReadTokenRequest } from "./gcs-api"; import type { UnaryCall } from "@protobuf-ts/runtime-rpc"; import type { RpcOptions } from "@protobuf-ts/runtime-rpc"; /** * @generated from protobuf service api.GcsApi */ export interface IGcsApiClient { /** * @generated from protobuf rpc: GetPartnerReadToken */ getPartnerReadToken(input: GetPartnerReadTokenRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetPartnerWriteToken */ getPartnerWriteToken(input: GetPartnerWriteTokenRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetProjectReadToken */ getProjectReadToken(input: GetProjectReadTokenRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetProjectWriteToken */ getProjectWriteToken(input: GetProjectWriteTokenRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: GetBucketSTS */ getBucketSTS(input: GetBucketSTSRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreatePartnerBucket */ createPartnerBucket(input: CreatePartnerBucketRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: CreateProjectBucket */ createProjectBucket(input: CreateProjectBucketRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeletePartnerBucket */ deletePartnerBucket(input: DeletePartnerBucketRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteProjectBucket */ deleteProjectBucket(input: DeleteProjectBucketRequest, options?: RpcOptions): UnaryCall; /** * @generated from protobuf rpc: DeleteOrganisationBucket */ deleteOrganisationBucket(input: DeleteOrganisationBucketRequest, options?: RpcOptions): UnaryCall; } /** * @generated from protobuf service api.GcsApi */ export class GcsApiClient implements IGcsApiClient, ServiceInfo { typeName = GcsApi.typeName; methods = GcsApi.methods; options = GcsApi.options; constructor(private readonly _transport: RpcTransport) { } /** * @generated from protobuf rpc: GetPartnerReadToken */ getPartnerReadToken(input: GetPartnerReadTokenRequest, options?: RpcOptions): UnaryCall { const method = this.methods[0], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetPartnerWriteToken */ getPartnerWriteToken(input: GetPartnerWriteTokenRequest, options?: RpcOptions): UnaryCall { const method = this.methods[1], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetProjectReadToken */ getProjectReadToken(input: GetProjectReadTokenRequest, options?: RpcOptions): UnaryCall { const method = this.methods[2], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetProjectWriteToken */ getProjectWriteToken(input: GetProjectWriteTokenRequest, options?: RpcOptions): UnaryCall { const method = this.methods[3], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: GetBucketSTS */ getBucketSTS(input: GetBucketSTSRequest, options?: RpcOptions): UnaryCall { const method = this.methods[4], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CreatePartnerBucket */ createPartnerBucket(input: CreatePartnerBucketRequest, options?: RpcOptions): UnaryCall { const method = this.methods[5], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: CreateProjectBucket */ createProjectBucket(input: CreateProjectBucketRequest, options?: RpcOptions): UnaryCall { const method = this.methods[6], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeletePartnerBucket */ deletePartnerBucket(input: DeletePartnerBucketRequest, options?: RpcOptions): UnaryCall { const method = this.methods[7], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeleteProjectBucket */ deleteProjectBucket(input: DeleteProjectBucketRequest, options?: RpcOptions): UnaryCall { const method = this.methods[8], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } /** * @generated from protobuf rpc: DeleteOrganisationBucket */ deleteOrganisationBucket(input: DeleteOrganisationBucketRequest, options?: RpcOptions): UnaryCall { const method = this.methods[9], opt = this._transport.mergeOptions(options); return stackIntercept("unary", this._transport, method, opt, input); } }