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

export 'notification.pb.dart';

@$pb.GrpcServiceName('api.NotificationService')
class NotificationServiceClient 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 = [
    '',
  ];

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

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

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

    // method descriptors

  static final _$publishToUser = $grpc.ClientMethod<$0.PublishToUserRequest, $0.PublishToUserResult>(
      '/api.NotificationService/PublishToUser',
      ($0.PublishToUserRequest value) => value.writeToBuffer(),
      $0.PublishToUserResult.fromBuffer);
  static final _$list = $grpc.ClientMethod<$0.ListNotificationRequest, $0.ListNotificationResult>(
      '/api.NotificationService/List',
      ($0.ListNotificationRequest value) => value.writeToBuffer(),
      $0.ListNotificationResult.fromBuffer);
}

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

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

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

  $async.Future<$0.PublishToUserResult> publishToUser($grpc.ServiceCall call, $0.PublishToUserRequest request);

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

  $async.Future<$0.ListNotificationResult> list($grpc.ServiceCall call, $0.ListNotificationRequest request);

}
