// This is a generated file - do not edit.
//
// Generated from gcs-api.proto.

// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names

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 $0;

export 'gcs-api.pb.dart';

@$pb.GrpcServiceName('api.GcsApi')
class GcsApiClient extends $grpc.Client {
  /// The hostname for this service.
  static const $core.String defaultHost = '';

  /// OAuth scopes needed for the client.
  static const $core.List<$core.String> oauthScopes = [
    '',
  ];

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

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

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

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

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

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

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

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

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

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

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

    // method descriptors

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

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

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

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

  $async.Future<$0.GetPartnerReadTokenResult> getPartnerReadToken($grpc.ServiceCall call, $0.GetPartnerReadTokenRequest request);

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

  $async.Future<$0.GetPartnerWriteTokenResult> getPartnerWriteToken($grpc.ServiceCall call, $0.GetPartnerWriteTokenRequest request);

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

  $async.Future<$0.GetProjectReadTokenResult> getProjectReadToken($grpc.ServiceCall call, $0.GetProjectReadTokenRequest request);

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

  $async.Future<$0.GetProjectWriteTokenResult> getProjectWriteToken($grpc.ServiceCall call, $0.GetProjectWriteTokenRequest request);

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

  $async.Future<$0.GetBucketSTSResult> getBucketSTS($grpc.ServiceCall call, $0.GetBucketSTSRequest request);

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

  $async.Future<$0.CreateBucketResult> createPartnerBucket($grpc.ServiceCall call, $0.CreatePartnerBucketRequest request);

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

  $async.Future<$0.CreateBucketResult> createProjectBucket($grpc.ServiceCall call, $0.CreateProjectBucketRequest request);

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

  $async.Future<$0.DeleteBucketResult> deletePartnerBucket($grpc.ServiceCall call, $0.DeletePartnerBucketRequest request);

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

  $async.Future<$0.DeleteBucketResult> deleteProjectBucket($grpc.ServiceCall call, $0.DeleteProjectBucketRequest request);

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

  $async.Future<$0.DeleteBucketResult> deleteOrganisationBucket($grpc.ServiceCall call, $0.DeleteOrganisationBucketRequest request);

}
