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

export 'rules.pb.dart';

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

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

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

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

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

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

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

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

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

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

    // method descriptors

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

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

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

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

  $async.Future<$0.CreateRuleResponse> create($grpc.ServiceCall call, $0.CreateRuleRequest request);

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

  $async.Future<$0.UpdateRuleResponse> update($grpc.ServiceCall call, $0.UpdateRuleRequest request);

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

  $async.Future<$0.GetRuleResponse> get($grpc.ServiceCall call, $0.GetRuleRequest request);

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

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

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

  $async.Future<$0.DeleteRuleResponse> delete($grpc.ServiceCall call, $0.DeleteRuleRequest request);

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

  $async.Future<$0.EnableRuleResponse> enable($grpc.ServiceCall call, $0.EnableRuleRequest request);

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

  $async.Future<$0.DisableRuleResponse> disable($grpc.ServiceCall call, $0.DisableRuleRequest request);

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

  $async.Future<$0.GetJSONTreeResponse> getJSONTree($grpc.ServiceCall call, $0.GetJSONTreeRequest request);

}
