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

export 'notifInput.pb.dart';

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

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

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

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

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

    // method descriptors

  static final _$created = $grpc.ClientMethod<$0.NotifCreatedRequest, $0.NotifCreatedResponse>(
      '/api.NotifInputAPI/Created',
      ($0.NotifCreatedRequest value) => value.writeToBuffer(),
      $0.NotifCreatedResponse.fromBuffer);
  static final _$sanitised = $grpc.ClientMethod<$0.NotifSanitisedRequest, $0.NotifSanitisedResponse>(
      '/api.NotifInputAPI/Sanitised',
      ($0.NotifSanitisedRequest value) => value.writeToBuffer(),
      $0.NotifSanitisedResponse.fromBuffer);
  static final _$customFieldsUpdated = $grpc.ClientMethod<$0.NotifCustomFieldsUpdatedRequest, $0.NotifCustomFieldsUpdatedResponse>(
      '/api.NotifInputAPI/CustomFieldsUpdated',
      ($0.NotifCustomFieldsUpdatedRequest value) => value.writeToBuffer(),
      $0.NotifCustomFieldsUpdatedResponse.fromBuffer);
}

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

  NotifInputAPIServiceBase() {
    $addMethod($grpc.ServiceMethod<$0.NotifCreatedRequest, $0.NotifCreatedResponse>(
        'Created',
        created_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.NotifCreatedRequest.fromBuffer(value),
        ($0.NotifCreatedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.NotifSanitisedRequest, $0.NotifSanitisedResponse>(
        'Sanitised',
        sanitised_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.NotifSanitisedRequest.fromBuffer(value),
        ($0.NotifSanitisedResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$0.NotifCustomFieldsUpdatedRequest, $0.NotifCustomFieldsUpdatedResponse>(
        'CustomFieldsUpdated',
        customFieldsUpdated_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $0.NotifCustomFieldsUpdatedRequest.fromBuffer(value),
        ($0.NotifCustomFieldsUpdatedResponse value) => value.writeToBuffer()));
  }

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

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

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

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

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

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

}
