//
//  Generated code. Do not modify.
//  source: gcs-api.proto
//
// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names, library_prefixes
// ignore_for_file: non_constant_identifier_names, prefer_final_fields
// ignore_for_file: unnecessary_import, unnecessary_this, unused_import

import 'dart:async' as $async;
import 'dart:core' as $core;

import 'package:grpc/service_api.dart' as $grpc;
import 'package:protobuf/protobuf.dart' as $pb;

import 'gcs-api.pb.dart' as $21;

export 'gcs-api.pb.dart';

@$pb.GrpcServiceName('api.GcsApi')
class GcsApiClient extends $grpc.Client {
  static final _$getPartnerReadToken = $grpc.ClientMethod<$21.GetPartnerReadTokenRequest, $21.GetPartnerReadTokenResult>(
      '/api.GcsApi/GetPartnerReadToken',
      ($21.GetPartnerReadTokenRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.GetPartnerReadTokenResult.fromBuffer(value));
  static final _$getPartnerWriteToken = $grpc.ClientMethod<$21.GetPartnerWriteTokenRequest, $21.GetPartnerWriteTokenResult>(
      '/api.GcsApi/GetPartnerWriteToken',
      ($21.GetPartnerWriteTokenRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.GetPartnerWriteTokenResult.fromBuffer(value));
  static final _$getProjectReadToken = $grpc.ClientMethod<$21.GetProjectReadTokenRequest, $21.GetProjectReadTokenResult>(
      '/api.GcsApi/GetProjectReadToken',
      ($21.GetProjectReadTokenRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.GetProjectReadTokenResult.fromBuffer(value));
  static final _$getProjectWriteToken = $grpc.ClientMethod<$21.GetProjectWriteTokenRequest, $21.GetProjectWriteTokenResult>(
      '/api.GcsApi/GetProjectWriteToken',
      ($21.GetProjectWriteTokenRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.GetProjectWriteTokenResult.fromBuffer(value));
  static final _$getBucketSTS = $grpc.ClientMethod<$21.GetBucketSTSRequest, $21.GetBucketSTSResult>(
      '/api.GcsApi/GetBucketSTS',
      ($21.GetBucketSTSRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.GetBucketSTSResult.fromBuffer(value));
  static final _$createPartnerBucket = $grpc.ClientMethod<$21.CreatePartnerBucketRequest, $21.CreateBucketResult>(
      '/api.GcsApi/CreatePartnerBucket',
      ($21.CreatePartnerBucketRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.CreateBucketResult.fromBuffer(value));
  static final _$createProjectBucket = $grpc.ClientMethod<$21.CreateProjectBucketRequest, $21.CreateBucketResult>(
      '/api.GcsApi/CreateProjectBucket',
      ($21.CreateProjectBucketRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.CreateBucketResult.fromBuffer(value));
  static final _$deletePartnerBucket = $grpc.ClientMethod<$21.DeletePartnerBucketRequest, $21.DeleteBucketResult>(
      '/api.GcsApi/DeletePartnerBucket',
      ($21.DeletePartnerBucketRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.DeleteBucketResult.fromBuffer(value));
  static final _$deleteProjectBucket = $grpc.ClientMethod<$21.DeleteProjectBucketRequest, $21.DeleteBucketResult>(
      '/api.GcsApi/DeleteProjectBucket',
      ($21.DeleteProjectBucketRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.DeleteBucketResult.fromBuffer(value));
  static final _$deleteOrganisationBucket = $grpc.ClientMethod<$21.DeleteOrganisationBucketRequest, $21.DeleteBucketResult>(
      '/api.GcsApi/DeleteOrganisationBucket',
      ($21.DeleteOrganisationBucketRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $21.DeleteBucketResult.fromBuffer(value));

  GcsApiClient(super.channel, {super.options, super.interceptors});

  $grpc.ResponseFuture<$21.GetPartnerReadTokenResult> getPartnerReadToken($21.GetPartnerReadTokenRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getPartnerReadToken, request, options: options);
  }

  $grpc.ResponseFuture<$21.GetPartnerWriteTokenResult> getPartnerWriteToken($21.GetPartnerWriteTokenRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getPartnerWriteToken, request, options: options);
  }

  $grpc.ResponseFuture<$21.GetProjectReadTokenResult> getProjectReadToken($21.GetProjectReadTokenRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getProjectReadToken, request, options: options);
  }

  $grpc.ResponseFuture<$21.GetProjectWriteTokenResult> getProjectWriteToken($21.GetProjectWriteTokenRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getProjectWriteToken, request, options: options);
  }

  $grpc.ResponseFuture<$21.GetBucketSTSResult> getBucketSTS($21.GetBucketSTSRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getBucketSTS, request, options: options);
  }

  $grpc.ResponseFuture<$21.CreateBucketResult> createPartnerBucket($21.CreatePartnerBucketRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createPartnerBucket, request, options: options);
  }

  $grpc.ResponseFuture<$21.CreateBucketResult> createProjectBucket($21.CreateProjectBucketRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$createProjectBucket, request, options: options);
  }

  $grpc.ResponseFuture<$21.DeleteBucketResult> deletePartnerBucket($21.DeletePartnerBucketRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deletePartnerBucket, request, options: options);
  }

  $grpc.ResponseFuture<$21.DeleteBucketResult> deleteProjectBucket($21.DeleteProjectBucketRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteProjectBucket, request, options: options);
  }

  $grpc.ResponseFuture<$21.DeleteBucketResult> deleteOrganisationBucket($21.DeleteOrganisationBucketRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$deleteOrganisationBucket, request, options: options);
  }
}

@$pb.GrpcServiceName('api.GcsApi')
abstract class GcsApiServiceBase extends $grpc.Service {
  $core.String get $name => 'api.GcsApi';

  GcsApiServiceBase() {
    $addMethod($grpc.ServiceMethod<$21.GetPartnerReadTokenRequest, $21.GetPartnerReadTokenResult>(
        'GetPartnerReadToken',
        getPartnerReadToken_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.GetPartnerReadTokenRequest.fromBuffer(value),
        ($21.GetPartnerReadTokenResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.GetPartnerWriteTokenRequest, $21.GetPartnerWriteTokenResult>(
        'GetPartnerWriteToken',
        getPartnerWriteToken_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.GetPartnerWriteTokenRequest.fromBuffer(value),
        ($21.GetPartnerWriteTokenResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.GetProjectReadTokenRequest, $21.GetProjectReadTokenResult>(
        'GetProjectReadToken',
        getProjectReadToken_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.GetProjectReadTokenRequest.fromBuffer(value),
        ($21.GetProjectReadTokenResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.GetProjectWriteTokenRequest, $21.GetProjectWriteTokenResult>(
        'GetProjectWriteToken',
        getProjectWriteToken_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.GetProjectWriteTokenRequest.fromBuffer(value),
        ($21.GetProjectWriteTokenResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.GetBucketSTSRequest, $21.GetBucketSTSResult>(
        'GetBucketSTS',
        getBucketSTS_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.GetBucketSTSRequest.fromBuffer(value),
        ($21.GetBucketSTSResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.CreatePartnerBucketRequest, $21.CreateBucketResult>(
        'CreatePartnerBucket',
        createPartnerBucket_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.CreatePartnerBucketRequest.fromBuffer(value),
        ($21.CreateBucketResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.CreateProjectBucketRequest, $21.CreateBucketResult>(
        'CreateProjectBucket',
        createProjectBucket_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.CreateProjectBucketRequest.fromBuffer(value),
        ($21.CreateBucketResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.DeletePartnerBucketRequest, $21.DeleteBucketResult>(
        'DeletePartnerBucket',
        deletePartnerBucket_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.DeletePartnerBucketRequest.fromBuffer(value),
        ($21.DeleteBucketResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.DeleteProjectBucketRequest, $21.DeleteBucketResult>(
        'DeleteProjectBucket',
        deleteProjectBucket_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.DeleteProjectBucketRequest.fromBuffer(value),
        ($21.DeleteBucketResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$21.DeleteOrganisationBucketRequest, $21.DeleteBucketResult>(
        'DeleteOrganisationBucket',
        deleteOrganisationBucket_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $21.DeleteOrganisationBucketRequest.fromBuffer(value),
        ($21.DeleteBucketResult value) => value.writeToBuffer()));
  }

  $async.Future<$21.GetPartnerReadTokenResult> getPartnerReadToken_Pre($grpc.ServiceCall $call, $async.Future<$21.GetPartnerReadTokenRequest> $request) async {
    return getPartnerReadToken($call, await $request);
  }

  $async.Future<$21.GetPartnerWriteTokenResult> getPartnerWriteToken_Pre($grpc.ServiceCall $call, $async.Future<$21.GetPartnerWriteTokenRequest> $request) async {
    return getPartnerWriteToken($call, await $request);
  }

  $async.Future<$21.GetProjectReadTokenResult> getProjectReadToken_Pre($grpc.ServiceCall $call, $async.Future<$21.GetProjectReadTokenRequest> $request) async {
    return getProjectReadToken($call, await $request);
  }

  $async.Future<$21.GetProjectWriteTokenResult> getProjectWriteToken_Pre($grpc.ServiceCall $call, $async.Future<$21.GetProjectWriteTokenRequest> $request) async {
    return getProjectWriteToken($call, await $request);
  }

  $async.Future<$21.GetBucketSTSResult> getBucketSTS_Pre($grpc.ServiceCall $call, $async.Future<$21.GetBucketSTSRequest> $request) async {
    return getBucketSTS($call, await $request);
  }

  $async.Future<$21.CreateBucketResult> createPartnerBucket_Pre($grpc.ServiceCall $call, $async.Future<$21.CreatePartnerBucketRequest> $request) async {
    return createPartnerBucket($call, await $request);
  }

  $async.Future<$21.CreateBucketResult> createProjectBucket_Pre($grpc.ServiceCall $call, $async.Future<$21.CreateProjectBucketRequest> $request) async {
    return createProjectBucket($call, await $request);
  }

  $async.Future<$21.DeleteBucketResult> deletePartnerBucket_Pre($grpc.ServiceCall $call, $async.Future<$21.DeletePartnerBucketRequest> $request) async {
    return deletePartnerBucket($call, await $request);
  }

  $async.Future<$21.DeleteBucketResult> deleteProjectBucket_Pre($grpc.ServiceCall $call, $async.Future<$21.DeleteProjectBucketRequest> $request) async {
    return deleteProjectBucket($call, await $request);
  }

  $async.Future<$21.DeleteBucketResult> deleteOrganisationBucket_Pre($grpc.ServiceCall $call, $async.Future<$21.DeleteOrganisationBucketRequest> $request) async {
    return deleteOrganisationBucket($call, await $request);
  }

  $async.Future<$21.GetPartnerReadTokenResult> getPartnerReadToken($grpc.ServiceCall call, $21.GetPartnerReadTokenRequest request);
  $async.Future<$21.GetPartnerWriteTokenResult> getPartnerWriteToken($grpc.ServiceCall call, $21.GetPartnerWriteTokenRequest request);
  $async.Future<$21.GetProjectReadTokenResult> getProjectReadToken($grpc.ServiceCall call, $21.GetProjectReadTokenRequest request);
  $async.Future<$21.GetProjectWriteTokenResult> getProjectWriteToken($grpc.ServiceCall call, $21.GetProjectWriteTokenRequest request);
  $async.Future<$21.GetBucketSTSResult> getBucketSTS($grpc.ServiceCall call, $21.GetBucketSTSRequest request);
  $async.Future<$21.CreateBucketResult> createPartnerBucket($grpc.ServiceCall call, $21.CreatePartnerBucketRequest request);
  $async.Future<$21.CreateBucketResult> createProjectBucket($grpc.ServiceCall call, $21.CreateProjectBucketRequest request);
  $async.Future<$21.DeleteBucketResult> deletePartnerBucket($grpc.ServiceCall call, $21.DeletePartnerBucketRequest request);
  $async.Future<$21.DeleteBucketResult> deleteProjectBucket($grpc.ServiceCall call, $21.DeleteProjectBucketRequest request);
  $async.Future<$21.DeleteBucketResult> deleteOrganisationBucket($grpc.ServiceCall call, $21.DeleteOrganisationBucketRequest request);
}
