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

export 'rules.pb.dart';

@$pb.GrpcServiceName('api.RuleService')
class RuleServiceClient extends $grpc.Client {
  static final _$create = $grpc.ClientMethod<$53.CreateRuleRequest, $53.CreateRuleResponse>(
      '/api.RuleService/Create',
      ($53.CreateRuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $53.CreateRuleResponse.fromBuffer(value));
  static final _$update = $grpc.ClientMethod<$53.UpdateRuleRequest, $53.UpdateRuleResponse>(
      '/api.RuleService/Update',
      ($53.UpdateRuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $53.UpdateRuleResponse.fromBuffer(value));
  static final _$get = $grpc.ClientMethod<$53.GetRuleRequest, $53.GetRuleResponse>(
      '/api.RuleService/Get',
      ($53.GetRuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $53.GetRuleResponse.fromBuffer(value));
  static final _$list = $grpc.ClientMethod<$53.ListRulesRequest, $53.ListRulesResponse>(
      '/api.RuleService/List',
      ($53.ListRulesRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $53.ListRulesResponse.fromBuffer(value));
  static final _$delete = $grpc.ClientMethod<$53.DeleteRuleRequest, $53.DeleteRuleResponse>(
      '/api.RuleService/Delete',
      ($53.DeleteRuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $53.DeleteRuleResponse.fromBuffer(value));
  static final _$enable = $grpc.ClientMethod<$53.EnableRuleRequest, $53.EnableRuleResponse>(
      '/api.RuleService/Enable',
      ($53.EnableRuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $53.EnableRuleResponse.fromBuffer(value));
  static final _$disable = $grpc.ClientMethod<$53.DisableRuleRequest, $53.DisableRuleResponse>(
      '/api.RuleService/Disable',
      ($53.DisableRuleRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $53.DisableRuleResponse.fromBuffer(value));
  static final _$getJSONTree = $grpc.ClientMethod<$53.GetJSONTreeRequest, $53.GetJSONTreeResponse>(
      '/api.RuleService/GetJSONTree',
      ($53.GetJSONTreeRequest value) => value.writeToBuffer(),
      ($core.List<$core.int> value) => $53.GetJSONTreeResponse.fromBuffer(value));

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

  $grpc.ResponseFuture<$53.CreateRuleResponse> create($53.CreateRuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$create, request, options: options);
  }

  $grpc.ResponseFuture<$53.UpdateRuleResponse> update($53.UpdateRuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$update, request, options: options);
  }

  $grpc.ResponseFuture<$53.GetRuleResponse> get($53.GetRuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$get, request, options: options);
  }

  $grpc.ResponseFuture<$53.ListRulesResponse> list($53.ListRulesRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$list, request, options: options);
  }

  $grpc.ResponseFuture<$53.DeleteRuleResponse> delete($53.DeleteRuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$delete, request, options: options);
  }

  $grpc.ResponseFuture<$53.EnableRuleResponse> enable($53.EnableRuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$enable, request, options: options);
  }

  $grpc.ResponseFuture<$53.DisableRuleResponse> disable($53.DisableRuleRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$disable, request, options: options);
  }

  $grpc.ResponseFuture<$53.GetJSONTreeResponse> getJSONTree($53.GetJSONTreeRequest request, {$grpc.CallOptions? options}) {
    return $createUnaryCall(_$getJSONTree, request, options: options);
  }
}

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

  RuleServiceBase() {
    $addMethod($grpc.ServiceMethod<$53.CreateRuleRequest, $53.CreateRuleResponse>(
        'Create',
        create_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $53.CreateRuleRequest.fromBuffer(value),
        ($53.CreateRuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$53.UpdateRuleRequest, $53.UpdateRuleResponse>(
        'Update',
        update_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $53.UpdateRuleRequest.fromBuffer(value),
        ($53.UpdateRuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$53.GetRuleRequest, $53.GetRuleResponse>(
        'Get',
        get_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $53.GetRuleRequest.fromBuffer(value),
        ($53.GetRuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$53.ListRulesRequest, $53.ListRulesResponse>(
        'List',
        list_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $53.ListRulesRequest.fromBuffer(value),
        ($53.ListRulesResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$53.DeleteRuleRequest, $53.DeleteRuleResponse>(
        'Delete',
        delete_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $53.DeleteRuleRequest.fromBuffer(value),
        ($53.DeleteRuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$53.EnableRuleRequest, $53.EnableRuleResponse>(
        'Enable',
        enable_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $53.EnableRuleRequest.fromBuffer(value),
        ($53.EnableRuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$53.DisableRuleRequest, $53.DisableRuleResponse>(
        'Disable',
        disable_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $53.DisableRuleRequest.fromBuffer(value),
        ($53.DisableRuleResponse value) => value.writeToBuffer()));
    $addMethod($grpc.ServiceMethod<$53.GetJSONTreeRequest, $53.GetJSONTreeResponse>(
        'GetJSONTree',
        getJSONTree_Pre,
        false,
        false,
        ($core.List<$core.int> value) => $53.GetJSONTreeRequest.fromBuffer(value),
        ($53.GetJSONTreeResponse value) => value.writeToBuffer()));
  }

  $async.Future<$53.CreateRuleResponse> create_Pre($grpc.ServiceCall $call, $async.Future<$53.CreateRuleRequest> $request) async {
    return create($call, await $request);
  }

  $async.Future<$53.UpdateRuleResponse> update_Pre($grpc.ServiceCall $call, $async.Future<$53.UpdateRuleRequest> $request) async {
    return update($call, await $request);
  }

  $async.Future<$53.GetRuleResponse> get_Pre($grpc.ServiceCall $call, $async.Future<$53.GetRuleRequest> $request) async {
    return get($call, await $request);
  }

  $async.Future<$53.ListRulesResponse> list_Pre($grpc.ServiceCall $call, $async.Future<$53.ListRulesRequest> $request) async {
    return list($call, await $request);
  }

  $async.Future<$53.DeleteRuleResponse> delete_Pre($grpc.ServiceCall $call, $async.Future<$53.DeleteRuleRequest> $request) async {
    return delete($call, await $request);
  }

  $async.Future<$53.EnableRuleResponse> enable_Pre($grpc.ServiceCall $call, $async.Future<$53.EnableRuleRequest> $request) async {
    return enable($call, await $request);
  }

  $async.Future<$53.DisableRuleResponse> disable_Pre($grpc.ServiceCall $call, $async.Future<$53.DisableRuleRequest> $request) async {
    return disable($call, await $request);
  }

  $async.Future<$53.GetJSONTreeResponse> getJSONTree_Pre($grpc.ServiceCall $call, $async.Future<$53.GetJSONTreeRequest> $request) async {
    return getJSONTree($call, await $request);
  }

  $async.Future<$53.CreateRuleResponse> create($grpc.ServiceCall call, $53.CreateRuleRequest request);
  $async.Future<$53.UpdateRuleResponse> update($grpc.ServiceCall call, $53.UpdateRuleRequest request);
  $async.Future<$53.GetRuleResponse> get($grpc.ServiceCall call, $53.GetRuleRequest request);
  $async.Future<$53.ListRulesResponse> list($grpc.ServiceCall call, $53.ListRulesRequest request);
  $async.Future<$53.DeleteRuleResponse> delete($grpc.ServiceCall call, $53.DeleteRuleRequest request);
  $async.Future<$53.EnableRuleResponse> enable($grpc.ServiceCall call, $53.EnableRuleRequest request);
  $async.Future<$53.DisableRuleResponse> disable($grpc.ServiceCall call, $53.DisableRuleRequest request);
  $async.Future<$53.GetJSONTreeResponse> getJSONTree($grpc.ServiceCall call, $53.GetJSONTreeRequest request);
}
