//
//  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 $60;

export 'rules.pb.dart';

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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