// This is a generated file - do not edit.
//
// Generated from partnerInput.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 'partnerInput.pb.dart' as $0;

export 'partnerInput.pb.dart';

///
/// API-server services
@$pb.GrpcServiceName('api.PartnerInputAPI')
class PartnerInputAPIClient 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 = [
    '',
  ];

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

  $grpc.ResponseFuture<$0.PartnerCreatedResponse> created($0.PartnerCreatedRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$created, request, options: options);
  }

  $grpc.ResponseFuture<$0.PartnerDeletedResponse> deleted($0.PartnerDeletedRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$deleted, request, options: options);
  }

  $grpc.ResponseFuture<$0.PartnerAttachmentAddedResponse> attachmentAdded($0.PartnerAttachmentAddedRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$attachmentAdded, request, options: options);
  }

  $grpc.ResponseFuture<$0.PartnerAttachmentRemovedResponse> attachmentRemoved($0.PartnerAttachmentRemovedRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$attachmentRemoved, request, options: options);
  }

  $grpc.ResponseFuture<$0.PartnerSanitisedResponse> sanitised($0.PartnerSanitisedRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$sanitised, request, options: options);
  }

  $grpc.ResponseFuture<$0.PartnerCustomFieldsUpdatedResponse> customFieldsUpdated($0.PartnerCustomFieldsUpdatedRequest request, {$grpc.CallOptions? options,}) {
    return $createUnaryCall(_$customFieldsUpdated, request, options: options);
  }

    // method descriptors

  static final _$created = $grpc.ClientMethod<$0.PartnerCreatedRequest, $0.PartnerCreatedResponse>(
      '/api.PartnerInputAPI/Created',
      ($0.PartnerCreatedRequest value) => value.writeToBuffer(),
      $0.PartnerCreatedResponse.fromBuffer);
  static final _$deleted = $grpc.ClientMethod<$0.PartnerDeletedRequest, $0.PartnerDeletedResponse>(
      '/api.PartnerInputAPI/Deleted',
      ($0.PartnerDeletedRequest value) => value.writeToBuffer(),
      $0.PartnerDeletedResponse.fromBuffer);
  static final _$attachmentAdded = $grpc.ClientMethod<$0.PartnerAttachmentAddedRequest, $0.PartnerAttachmentAddedResponse>(
      '/api.PartnerInputAPI/AttachmentAdded',
      ($0.PartnerAttachmentAddedRequest value) => value.writeToBuffer(),
      $0.PartnerAttachmentAddedResponse.fromBuffer);
  static final _$attachmentRemoved = $grpc.ClientMethod<$0.PartnerAttachmentRemovedRequest, $0.PartnerAttachmentRemovedResponse>(
      '/api.PartnerInputAPI/AttachmentRemoved',
      ($0.PartnerAttachmentRemovedRequest value) => value.writeToBuffer(),
      $0.PartnerAttachmentRemovedResponse.fromBuffer);
  static final _$sanitised = $grpc.ClientMethod<$0.PartnerSanitisedRequest, $0.PartnerSanitisedResponse>(
      '/api.PartnerInputAPI/Sanitised',
      ($0.PartnerSanitisedRequest value) => value.writeToBuffer(),
      $0.PartnerSanitisedResponse.fromBuffer);
  static final _$customFieldsUpdated = $grpc.ClientMethod<$0.PartnerCustomFieldsUpdatedRequest, $0.PartnerCustomFieldsUpdatedResponse>(
      '/api.PartnerInputAPI/CustomFieldsUpdated',
      ($0.PartnerCustomFieldsUpdatedRequest value) => value.writeToBuffer(),
      $0.PartnerCustomFieldsUpdatedResponse.fromBuffer);
}

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

  PartnerInputAPIServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.PartnerCreatedRequest, $0.PartnerCreatedResponse>(
        'Created',
        created_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PartnerCreatedRequest.fromBuffer(value),
        ($0.PartnerCreatedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PartnerDeletedRequest, $0.PartnerDeletedResponse>(
        'Deleted',
        deleted_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PartnerDeletedRequest.fromBuffer(value),
        ($0.PartnerDeletedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PartnerAttachmentAddedRequest, $0.PartnerAttachmentAddedResponse>(
        'AttachmentAdded',
        attachmentAdded_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PartnerAttachmentAddedRequest.fromBuffer(value),
        ($0.PartnerAttachmentAddedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PartnerAttachmentRemovedRequest, $0.PartnerAttachmentRemovedResponse>(
        'AttachmentRemoved',
        attachmentRemoved_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PartnerAttachmentRemovedRequest.fromBuffer(value),
        ($0.PartnerAttachmentRemovedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PartnerSanitisedRequest, $0.PartnerSanitisedResponse>(
        'Sanitised',
        sanitised_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PartnerSanitisedRequest.fromBuffer(value),
        ($0.PartnerSanitisedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.PartnerCustomFieldsUpdatedRequest, $0.PartnerCustomFieldsUpdatedResponse>(
        'CustomFieldsUpdated',
        customFieldsUpdated_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.PartnerCustomFieldsUpdatedRequest.fromBuffer(value),
        ($0.PartnerCustomFieldsUpdatedResponse value) => value.writeToBuffer()));
  }

  $async.Future<$0.PartnerCreatedResponse> created_Pre($grpc.ServiceCall $call, $async.Future<$0.PartnerCreatedRequest> $request) async {
    return created($call, await $request);
  }

  $async.Future<$0.PartnerCreatedResponse> created($grpc.ServiceCall call, $0.PartnerCreatedRequest request);

  $async.Future<$0.PartnerDeletedResponse> deleted_Pre($grpc.ServiceCall $call, $async.Future<$0.PartnerDeletedRequest> $request) async {
    return deleted($call, await $request);
  }

  $async.Future<$0.PartnerDeletedResponse> deleted($grpc.ServiceCall call, $0.PartnerDeletedRequest request);

  $async.Future<$0.PartnerAttachmentAddedResponse> attachmentAdded_Pre($grpc.ServiceCall $call, $async.Future<$0.PartnerAttachmentAddedRequest> $request) async {
    return attachmentAdded($call, await $request);
  }

  $async.Future<$0.PartnerAttachmentAddedResponse> attachmentAdded($grpc.ServiceCall call, $0.PartnerAttachmentAddedRequest request);

  $async.Future<$0.PartnerAttachmentRemovedResponse> attachmentRemoved_Pre($grpc.ServiceCall $call, $async.Future<$0.PartnerAttachmentRemovedRequest> $request) async {
    return attachmentRemoved($call, await $request);
  }

  $async.Future<$0.PartnerAttachmentRemovedResponse> attachmentRemoved($grpc.ServiceCall call, $0.PartnerAttachmentRemovedRequest request);

  $async.Future<$0.PartnerSanitisedResponse> sanitised_Pre($grpc.ServiceCall $call, $async.Future<$0.PartnerSanitisedRequest> $request) async {
    return sanitised($call, await $request);
  }

  $async.Future<$0.PartnerSanitisedResponse> sanitised($grpc.ServiceCall call, $0.PartnerSanitisedRequest request);

  $async.Future<$0.PartnerCustomFieldsUpdatedResponse> customFieldsUpdated_Pre($grpc.ServiceCall $call, $async.Future<$0.PartnerCustomFieldsUpdatedRequest> $request) async {
    return customFieldsUpdated($call, await $request);
  }

  $async.Future<$0.PartnerCustomFieldsUpdatedResponse> customFieldsUpdated($grpc.ServiceCall call, $0.PartnerCustomFieldsUpdatedRequest request);

}
