//
//  Generated code. Do not modify.
//  source: notification.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 'notification.pb.dart' as $48;

export 'notification.pb.dart';

@$pb.GrpcServiceName('api.NotificationService')
class NotificationServiceClient extends $grpc.Client {
  static final _$publishToUser = $grpc.ClientMethod<$48.PublishToUserRequest, $48.PublishToUserResult>(
      '/api.NotificationService/PublishToUser',
      ($48.PublishToUserRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $48.PublishToUserResult.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$48.ListNotificationRequest, $48.ListNotificationResult>(
      '/api.NotificationService/List',
      ($48.ListNotificationRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $48.ListNotificationResult.fromBuffer(value));

  NotificationServiceClient($grpc.ClientChannel channel,
      {$grpc.CallOptions? options,
      $core.Iterable<$grpc.ClientInterceptor>? interceptors})
      : super(channel, options: options,
        interceptors: interceptors);

  $grpc.ResponseFuture<$48.PublishToUserResult> publishToUser($48.PublishToUserRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$publishToUser, request, options: options);
  }

  $grpc.ResponseFuture<$48.ListNotificationResult> list($48.ListNotificationRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }
}

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

  NotificationServiceBase() {
    $addMethod($grpc.ServiceMethod<$48.PublishToUserRequest, $48.PublishToUserResult>(
        'PublishToUser',
        publishToUser_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $48.PublishToUserRequest.fromBuffer(value),
        ($48.PublishToUserResult value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$48.ListNotificationRequest, $48.ListNotificationResult>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $48.ListNotificationRequest.fromBuffer(value),
        ($48.ListNotificationResult value) => value.writeToBuffer()));
  }

  $async.Future<$48.PublishToUserResult> publishToUser_Pre($grpc.ServiceCall $call, $async.Future<$48.PublishToUserRequest> $request) async {
    return publishToUser($call, await $request);
  }

  $async.Future<$48.ListNotificationResult> list_Pre($grpc.ServiceCall $call, $async.Future<$48.ListNotificationRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$48.PublishToUserResult> publishToUser($grpc.ServiceCall call, $48.PublishToUserRequest request);
  $async.Future<$48.ListNotificationResult> list($grpc.ServiceCall call, $48.ListNotificationRequest request);
}
