//
//  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:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

import 'rules.pbenum.dart';
import 'shared.pbenum.dart' as $3;

export 'package:protobuf/protobuf.dart' show GeneratedMessageGenericExtensions;

export 'rules.pbenum.dart';

class Rule extends $pb.GeneratedMessage {
  factory Rule({
    $core.String? iD,
    $core.String? organisationID,
    $3.EntityType? entity,
    $core.String? name,
    $core.String? description,
    $core.String? definition,
    RuleType? ruleType,
    $core.String? ruleTypeID,
    $core.bool? status,
  }) {
    final $result = create();
    if (iD != null) {
      $result.iD = iD;
    }
    if (organisationID != null) {
      $result.organisationID = organisationID;
    }
    if (entity != null) {
      $result.entity = entity;
    }
    if (name != null) {
      $result.name = name;
    }
    if (description != null) {
      $result.description = description;
    }
    if (definition != null) {
      $result.definition = definition;
    }
    if (ruleType != null) {
      $result.ruleType = ruleType;
    }
    if (ruleTypeID != null) {
      $result.ruleTypeID = ruleTypeID;
    }
    if (status != null) {
      $result.status = status;
    }
    return $result;
  }
  Rule._() : super();
  factory Rule.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory Rule.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'Rule', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'ID', protoName: 'ID')
    ..aOS(2, _omitFieldNames ? '' : 'OrganisationID', protoName: 'OrganisationID')
    ..e<$3.EntityType>(3, _omitFieldNames ? '' : 'Entity', $pb.PbFieldType.OE, protoName: 'Entity', defaultOrMaker: $3.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $3.EntityType.valueOf, enumValues: $3.EntityType.values)
    ..aOS(4, _omitFieldNames ? '' : 'Name', protoName: 'Name')
    ..aOS(5, _omitFieldNames ? '' : 'Description', protoName: 'Description')
    ..aOS(6, _omitFieldNames ? '' : 'Definition', protoName: 'Definition')
    ..e<RuleType>(7, _omitFieldNames ? '' : 'RuleType', $pb.PbFieldType.OE, protoName: 'RuleType', defaultOrMaker: RuleType.RULE_TYPE_PROJECT_UNKNOWN, valueOf: RuleType.valueOf, enumValues: RuleType.values)
    ..aOS(8, _omitFieldNames ? '' : 'RuleTypeID', protoName: 'RuleTypeID')
    ..aOB(9, _omitFieldNames ? '' : 'Status', protoName: 'Status')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  Rule clone() => Rule()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  Rule copyWith(void Function(Rule) updates) => super.copyWith((message) => updates(message as Rule)) as Rule;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static Rule create() => Rule._();
  Rule createEmptyInstance() => create();
  static $pb.PbList<Rule> createRepeated() => $pb.PbList<Rule>();
  @$core.pragma('dart2js:noInline')
  static Rule getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<Rule>(create);
  static Rule? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get iD => $_getSZ(0);
  @$pb.TagNumber(1)
  set iD($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasID() => $_has(0);
  @$pb.TagNumber(1)
  void clearID() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get organisationID => $_getSZ(1);
  @$pb.TagNumber(2)
  set organisationID($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasOrganisationID() => $_has(1);
  @$pb.TagNumber(2)
  void clearOrganisationID() => $_clearField(2);

  @$pb.TagNumber(3)
  $3.EntityType get entity => $_getN(2);
  @$pb.TagNumber(3)
  set entity($3.EntityType v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasEntity() => $_has(2);
  @$pb.TagNumber(3)
  void clearEntity() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.String get name => $_getSZ(3);
  @$pb.TagNumber(4)
  set name($core.String v) { $_setString(3, v); }
  @$pb.TagNumber(4)
  $core.bool hasName() => $_has(3);
  @$pb.TagNumber(4)
  void clearName() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get description => $_getSZ(4);
  @$pb.TagNumber(5)
  set description($core.String v) { $_setString(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasDescription() => $_has(4);
  @$pb.TagNumber(5)
  void clearDescription() => $_clearField(5);

  @$pb.TagNumber(6)
  $core.String get definition => $_getSZ(5);
  @$pb.TagNumber(6)
  set definition($core.String v) { $_setString(5, v); }
  @$pb.TagNumber(6)
  $core.bool hasDefinition() => $_has(5);
  @$pb.TagNumber(6)
  void clearDefinition() => $_clearField(6);

  @$pb.TagNumber(7)
  RuleType get ruleType => $_getN(6);
  @$pb.TagNumber(7)
  set ruleType(RuleType v) { $_setField(7, v); }
  @$pb.TagNumber(7)
  $core.bool hasRuleType() => $_has(6);
  @$pb.TagNumber(7)
  void clearRuleType() => $_clearField(7);

  @$pb.TagNumber(8)
  $core.String get ruleTypeID => $_getSZ(7);
  @$pb.TagNumber(8)
  set ruleTypeID($core.String v) { $_setString(7, v); }
  @$pb.TagNumber(8)
  $core.bool hasRuleTypeID() => $_has(7);
  @$pb.TagNumber(8)
  void clearRuleTypeID() => $_clearField(8);

  @$pb.TagNumber(9)
  $core.bool get status => $_getBF(8);
  @$pb.TagNumber(9)
  set status($core.bool v) { $_setBool(8, v); }
  @$pb.TagNumber(9)
  $core.bool hasStatus() => $_has(8);
  @$pb.TagNumber(9)
  void clearStatus() => $_clearField(9);
}

/// Create
class CreateRuleRequest extends $pb.GeneratedMessage {
  factory CreateRuleRequest({
    $core.String? organisationID,
    $3.EntityType? entity,
    $core.String? name,
    RuleType? ruleType,
    $core.String? ruleTypeID,
    $core.String? description,
    $core.String? definition,
    $core.String? issuer,
  }) {
    final $result = create();
    if (organisationID != null) {
      $result.organisationID = organisationID;
    }
    if (entity != null) {
      $result.entity = entity;
    }
    if (name != null) {
      $result.name = name;
    }
    if (ruleType != null) {
      $result.ruleType = ruleType;
    }
    if (ruleTypeID != null) {
      $result.ruleTypeID = ruleTypeID;
    }
    if (description != null) {
      $result.description = description;
    }
    if (definition != null) {
      $result.definition = definition;
    }
    if (issuer != null) {
      $result.issuer = issuer;
    }
    return $result;
  }
  CreateRuleRequest._() : super();
  factory CreateRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory CreateRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateRuleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'OrganisationID', protoName: 'OrganisationID')
    ..e<$3.EntityType>(2, _omitFieldNames ? '' : 'Entity', $pb.PbFieldType.OE, protoName: 'Entity', defaultOrMaker: $3.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $3.EntityType.valueOf, enumValues: $3.EntityType.values)
    ..aOS(3, _omitFieldNames ? '' : 'Name', protoName: 'Name')
    ..e<RuleType>(4, _omitFieldNames ? '' : 'RuleType', $pb.PbFieldType.OE, protoName: 'RuleType', defaultOrMaker: RuleType.RULE_TYPE_PROJECT_UNKNOWN, valueOf: RuleType.valueOf, enumValues: RuleType.values)
    ..aOS(5, _omitFieldNames ? '' : 'RuleTypeID', protoName: 'RuleTypeID')
    ..aOS(6, _omitFieldNames ? '' : 'Description', protoName: 'Description')
    ..aOS(7, _omitFieldNames ? '' : 'Definition', protoName: 'Definition')
    ..aOS(8, _omitFieldNames ? '' : 'Issuer', protoName: 'Issuer')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  CreateRuleRequest clone() => CreateRuleRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  CreateRuleRequest copyWith(void Function(CreateRuleRequest) updates) => super.copyWith((message) => updates(message as CreateRuleRequest)) as CreateRuleRequest;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static CreateRuleRequest create() => CreateRuleRequest._();
  CreateRuleRequest createEmptyInstance() => create();
  static $pb.PbList<CreateRuleRequest> createRepeated() => $pb.PbList<CreateRuleRequest>();
  @$core.pragma('dart2js:noInline')
  static CreateRuleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CreateRuleRequest>(create);
  static CreateRuleRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get organisationID => $_getSZ(0);
  @$pb.TagNumber(1)
  set organisationID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasOrganisationID() => $_has(0);
  @$pb.TagNumber(1)
  void clearOrganisationID() => $_clearField(1);

  @$pb.TagNumber(2)
  $3.EntityType get entity => $_getN(1);
  @$pb.TagNumber(2)
  set entity($3.EntityType v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasEntity() => $_has(1);
  @$pb.TagNumber(2)
  void clearEntity() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get name => $_getSZ(2);
  @$pb.TagNumber(3)
  set name($core.String v) { $_setString(2, v); }
  @$pb.TagNumber(3)
  $core.bool hasName() => $_has(2);
  @$pb.TagNumber(3)
  void clearName() => $_clearField(3);

  @$pb.TagNumber(4)
  RuleType get ruleType => $_getN(3);
  @$pb.TagNumber(4)
  set ruleType(RuleType v) { $_setField(4, v); }
  @$pb.TagNumber(4)
  $core.bool hasRuleType() => $_has(3);
  @$pb.TagNumber(4)
  void clearRuleType() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get ruleTypeID => $_getSZ(4);
  @$pb.TagNumber(5)
  set ruleTypeID($core.String v) { $_setString(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasRuleTypeID() => $_has(4);
  @$pb.TagNumber(5)
  void clearRuleTypeID() => $_clearField(5);

  @$pb.TagNumber(6)
  $core.String get description => $_getSZ(5);
  @$pb.TagNumber(6)
  set description($core.String v) { $_setString(5, v); }
  @$pb.TagNumber(6)
  $core.bool hasDescription() => $_has(5);
  @$pb.TagNumber(6)
  void clearDescription() => $_clearField(6);

  @$pb.TagNumber(7)
  $core.String get definition => $_getSZ(6);
  @$pb.TagNumber(7)
  set definition($core.String v) { $_setString(6, v); }
  @$pb.TagNumber(7)
  $core.bool hasDefinition() => $_has(6);
  @$pb.TagNumber(7)
  void clearDefinition() => $_clearField(7);

  @$pb.TagNumber(8)
  $core.String get issuer => $_getSZ(7);
  @$pb.TagNumber(8)
  set issuer($core.String v) { $_setString(7, v); }
  @$pb.TagNumber(8)
  $core.bool hasIssuer() => $_has(7);
  @$pb.TagNumber(8)
  void clearIssuer() => $_clearField(8);
}

class CreateRuleResponse extends $pb.GeneratedMessage {
  factory CreateRuleResponse({
    Rule? rule,
  }) {
    final $result = create();
    if (rule != null) {
      $result.rule = rule;
    }
    return $result;
  }
  CreateRuleResponse._() : super();
  factory CreateRuleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory CreateRuleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateRuleResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<Rule>(1, _omitFieldNames ? '' : 'Rule', protoName: 'Rule', subBuilder: Rule.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  CreateRuleResponse clone() => CreateRuleResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  CreateRuleResponse copyWith(void Function(CreateRuleResponse) updates) => super.copyWith((message) => updates(message as CreateRuleResponse)) as CreateRuleResponse;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static CreateRuleResponse create() => CreateRuleResponse._();
  CreateRuleResponse createEmptyInstance() => create();
  static $pb.PbList<CreateRuleResponse> createRepeated() => $pb.PbList<CreateRuleResponse>();
  @$core.pragma('dart2js:noInline')
  static CreateRuleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CreateRuleResponse>(create);
  static CreateRuleResponse? _defaultInstance;

  @$pb.TagNumber(1)
  Rule get rule => $_getN(0);
  @$pb.TagNumber(1)
  set rule(Rule v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasRule() => $_has(0);
  @$pb.TagNumber(1)
  void clearRule() => $_clearField(1);
  @$pb.TagNumber(1)
  Rule ensureRule() => $_ensure(0);
}

/// Update
class UpdateRuleRequest extends $pb.GeneratedMessage {
  factory UpdateRuleRequest({
    $core.String? ruleID,
    $core.String? name,
    $core.String? description,
    $core.String? definition,
    $3.EntityType? entity,
    $core.String? issuer,
  }) {
    final $result = create();
    if (ruleID != null) {
      $result.ruleID = ruleID;
    }
    if (name != null) {
      $result.name = name;
    }
    if (description != null) {
      $result.description = description;
    }
    if (definition != null) {
      $result.definition = definition;
    }
    if (entity != null) {
      $result.entity = entity;
    }
    if (issuer != null) {
      $result.issuer = issuer;
    }
    return $result;
  }
  UpdateRuleRequest._() : super();
  factory UpdateRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory UpdateRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateRuleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'RuleID', protoName: 'RuleID')
    ..aOS(2, _omitFieldNames ? '' : 'Name', protoName: 'Name')
    ..aOS(3, _omitFieldNames ? '' : 'Description', protoName: 'Description')
    ..aOS(4, _omitFieldNames ? '' : 'Definition', protoName: 'Definition')
    ..e<$3.EntityType>(5, _omitFieldNames ? '' : 'Entity', $pb.PbFieldType.OE, protoName: 'Entity', defaultOrMaker: $3.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $3.EntityType.valueOf, enumValues: $3.EntityType.values)
    ..aOS(6, _omitFieldNames ? '' : 'Issuer', protoName: 'Issuer')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  UpdateRuleRequest clone() => UpdateRuleRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  UpdateRuleRequest copyWith(void Function(UpdateRuleRequest) updates) => super.copyWith((message) => updates(message as UpdateRuleRequest)) as UpdateRuleRequest;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static UpdateRuleRequest create() => UpdateRuleRequest._();
  UpdateRuleRequest createEmptyInstance() => create();
  static $pb.PbList<UpdateRuleRequest> createRepeated() => $pb.PbList<UpdateRuleRequest>();
  @$core.pragma('dart2js:noInline')
  static UpdateRuleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UpdateRuleRequest>(create);
  static UpdateRuleRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get ruleID => $_getSZ(0);
  @$pb.TagNumber(1)
  set ruleID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasRuleID() => $_has(0);
  @$pb.TagNumber(1)
  void clearRuleID() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get name => $_getSZ(1);
  @$pb.TagNumber(2)
  set name($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasName() => $_has(1);
  @$pb.TagNumber(2)
  void clearName() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get description => $_getSZ(2);
  @$pb.TagNumber(3)
  set description($core.String v) { $_setString(2, v); }
  @$pb.TagNumber(3)
  $core.bool hasDescription() => $_has(2);
  @$pb.TagNumber(3)
  void clearDescription() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.String get definition => $_getSZ(3);
  @$pb.TagNumber(4)
  set definition($core.String v) { $_setString(3, v); }
  @$pb.TagNumber(4)
  $core.bool hasDefinition() => $_has(3);
  @$pb.TagNumber(4)
  void clearDefinition() => $_clearField(4);

  @$pb.TagNumber(5)
  $3.EntityType get entity => $_getN(4);
  @$pb.TagNumber(5)
  set entity($3.EntityType v) { $_setField(5, v); }
  @$pb.TagNumber(5)
  $core.bool hasEntity() => $_has(4);
  @$pb.TagNumber(5)
  void clearEntity() => $_clearField(5);

  @$pb.TagNumber(6)
  $core.String get issuer => $_getSZ(5);
  @$pb.TagNumber(6)
  set issuer($core.String v) { $_setString(5, v); }
  @$pb.TagNumber(6)
  $core.bool hasIssuer() => $_has(5);
  @$pb.TagNumber(6)
  void clearIssuer() => $_clearField(6);
}

class UpdateRuleResponse extends $pb.GeneratedMessage {
  factory UpdateRuleResponse({
    Rule? rule,
  }) {
    final $result = create();
    if (rule != null) {
      $result.rule = rule;
    }
    return $result;
  }
  UpdateRuleResponse._() : super();
  factory UpdateRuleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory UpdateRuleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'UpdateRuleResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<Rule>(1, _omitFieldNames ? '' : 'Rule', protoName: 'Rule', subBuilder: Rule.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  UpdateRuleResponse clone() => UpdateRuleResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  UpdateRuleResponse copyWith(void Function(UpdateRuleResponse) updates) => super.copyWith((message) => updates(message as UpdateRuleResponse)) as UpdateRuleResponse;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static UpdateRuleResponse create() => UpdateRuleResponse._();
  UpdateRuleResponse createEmptyInstance() => create();
  static $pb.PbList<UpdateRuleResponse> createRepeated() => $pb.PbList<UpdateRuleResponse>();
  @$core.pragma('dart2js:noInline')
  static UpdateRuleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<UpdateRuleResponse>(create);
  static UpdateRuleResponse? _defaultInstance;

  @$pb.TagNumber(1)
  Rule get rule => $_getN(0);
  @$pb.TagNumber(1)
  set rule(Rule v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasRule() => $_has(0);
  @$pb.TagNumber(1)
  void clearRule() => $_clearField(1);
  @$pb.TagNumber(1)
  Rule ensureRule() => $_ensure(0);
}

/// Get
class GetRuleRequest extends $pb.GeneratedMessage {
  factory GetRuleRequest({
    $core.String? ruleID,
  }) {
    final $result = create();
    if (ruleID != null) {
      $result.ruleID = ruleID;
    }
    return $result;
  }
  GetRuleRequest._() : super();
  factory GetRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory GetRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetRuleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'RuleID', protoName: 'RuleID')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  GetRuleRequest clone() => GetRuleRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  GetRuleRequest copyWith(void Function(GetRuleRequest) updates) => super.copyWith((message) => updates(message as GetRuleRequest)) as GetRuleRequest;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static GetRuleRequest create() => GetRuleRequest._();
  GetRuleRequest createEmptyInstance() => create();
  static $pb.PbList<GetRuleRequest> createRepeated() => $pb.PbList<GetRuleRequest>();
  @$core.pragma('dart2js:noInline')
  static GetRuleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetRuleRequest>(create);
  static GetRuleRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get ruleID => $_getSZ(0);
  @$pb.TagNumber(1)
  set ruleID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasRuleID() => $_has(0);
  @$pb.TagNumber(1)
  void clearRuleID() => $_clearField(1);
}

class GetRuleResponse extends $pb.GeneratedMessage {
  factory GetRuleResponse({
    Rule? rule,
  }) {
    final $result = create();
    if (rule != null) {
      $result.rule = rule;
    }
    return $result;
  }
  GetRuleResponse._() : super();
  factory GetRuleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory GetRuleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetRuleResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<Rule>(1, _omitFieldNames ? '' : 'Rule', protoName: 'Rule', subBuilder: Rule.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  GetRuleResponse clone() => GetRuleResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  GetRuleResponse copyWith(void Function(GetRuleResponse) updates) => super.copyWith((message) => updates(message as GetRuleResponse)) as GetRuleResponse;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static GetRuleResponse create() => GetRuleResponse._();
  GetRuleResponse createEmptyInstance() => create();
  static $pb.PbList<GetRuleResponse> createRepeated() => $pb.PbList<GetRuleResponse>();
  @$core.pragma('dart2js:noInline')
  static GetRuleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetRuleResponse>(create);
  static GetRuleResponse? _defaultInstance;

  @$pb.TagNumber(1)
  Rule get rule => $_getN(0);
  @$pb.TagNumber(1)
  set rule(Rule v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasRule() => $_has(0);
  @$pb.TagNumber(1)
  void clearRule() => $_clearField(1);
  @$pb.TagNumber(1)
  Rule ensureRule() => $_ensure(0);
}

/// List
class ListRulesRequest extends $pb.GeneratedMessage {
  factory ListRulesRequest({
    $core.String? organisationID,
    RuleType? ruleType,
    $core.String? ruleTypeID,
    $3.EntityType? entity,
  }) {
    final $result = create();
    if (organisationID != null) {
      $result.organisationID = organisationID;
    }
    if (ruleType != null) {
      $result.ruleType = ruleType;
    }
    if (ruleTypeID != null) {
      $result.ruleTypeID = ruleTypeID;
    }
    if (entity != null) {
      $result.entity = entity;
    }
    return $result;
  }
  ListRulesRequest._() : super();
  factory ListRulesRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory ListRulesRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListRulesRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'OrganisationID', protoName: 'OrganisationID')
    ..e<RuleType>(2, _omitFieldNames ? '' : 'RuleType', $pb.PbFieldType.OE, protoName: 'RuleType', defaultOrMaker: RuleType.RULE_TYPE_PROJECT_UNKNOWN, valueOf: RuleType.valueOf, enumValues: RuleType.values)
    ..aOS(3, _omitFieldNames ? '' : 'RuleTypeID', protoName: 'RuleTypeID')
    ..e<$3.EntityType>(4, _omitFieldNames ? '' : 'Entity', $pb.PbFieldType.OE, protoName: 'Entity', defaultOrMaker: $3.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $3.EntityType.valueOf, enumValues: $3.EntityType.values)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  ListRulesRequest clone() => ListRulesRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  ListRulesRequest copyWith(void Function(ListRulesRequest) updates) => super.copyWith((message) => updates(message as ListRulesRequest)) as ListRulesRequest;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ListRulesRequest create() => ListRulesRequest._();
  ListRulesRequest createEmptyInstance() => create();
  static $pb.PbList<ListRulesRequest> createRepeated() => $pb.PbList<ListRulesRequest>();
  @$core.pragma('dart2js:noInline')
  static ListRulesRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ListRulesRequest>(create);
  static ListRulesRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get organisationID => $_getSZ(0);
  @$pb.TagNumber(1)
  set organisationID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasOrganisationID() => $_has(0);
  @$pb.TagNumber(1)
  void clearOrganisationID() => $_clearField(1);

  @$pb.TagNumber(2)
  RuleType get ruleType => $_getN(1);
  @$pb.TagNumber(2)
  set ruleType(RuleType v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasRuleType() => $_has(1);
  @$pb.TagNumber(2)
  void clearRuleType() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.String get ruleTypeID => $_getSZ(2);
  @$pb.TagNumber(3)
  set ruleTypeID($core.String v) { $_setString(2, v); }
  @$pb.TagNumber(3)
  $core.bool hasRuleTypeID() => $_has(2);
  @$pb.TagNumber(3)
  void clearRuleTypeID() => $_clearField(3);

  @$pb.TagNumber(4)
  $3.EntityType get entity => $_getN(3);
  @$pb.TagNumber(4)
  set entity($3.EntityType v) { $_setField(4, v); }
  @$pb.TagNumber(4)
  $core.bool hasEntity() => $_has(3);
  @$pb.TagNumber(4)
  void clearEntity() => $_clearField(4);
}

class ListRulesResponse extends $pb.GeneratedMessage {
  factory ListRulesResponse({
    $core.Iterable<Rule>? rules,
  }) {
    final $result = create();
    if (rules != null) {
      $result.rules.addAll(rules);
    }
    return $result;
  }
  ListRulesResponse._() : super();
  factory ListRulesResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory ListRulesResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListRulesResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..pc<Rule>(1, _omitFieldNames ? '' : 'Rules', $pb.PbFieldType.PM, protoName: 'Rules', subBuilder: Rule.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  ListRulesResponse clone() => ListRulesResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  ListRulesResponse copyWith(void Function(ListRulesResponse) updates) => super.copyWith((message) => updates(message as ListRulesResponse)) as ListRulesResponse;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static ListRulesResponse create() => ListRulesResponse._();
  ListRulesResponse createEmptyInstance() => create();
  static $pb.PbList<ListRulesResponse> createRepeated() => $pb.PbList<ListRulesResponse>();
  @$core.pragma('dart2js:noInline')
  static ListRulesResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<ListRulesResponse>(create);
  static ListRulesResponse? _defaultInstance;

  @$pb.TagNumber(1)
  $pb.PbList<Rule> get rules => $_getList(0);
}

/// Delete
class DeleteRuleRequest extends $pb.GeneratedMessage {
  factory DeleteRuleRequest({
    $core.String? ruleID,
    $core.String? issuer,
  }) {
    final $result = create();
    if (ruleID != null) {
      $result.ruleID = ruleID;
    }
    if (issuer != null) {
      $result.issuer = issuer;
    }
    return $result;
  }
  DeleteRuleRequest._() : super();
  factory DeleteRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory DeleteRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteRuleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'RuleID', protoName: 'RuleID')
    ..aOS(2, _omitFieldNames ? '' : 'Issuer', protoName: 'Issuer')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  DeleteRuleRequest clone() => DeleteRuleRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  DeleteRuleRequest copyWith(void Function(DeleteRuleRequest) updates) => super.copyWith((message) => updates(message as DeleteRuleRequest)) as DeleteRuleRequest;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static DeleteRuleRequest create() => DeleteRuleRequest._();
  DeleteRuleRequest createEmptyInstance() => create();
  static $pb.PbList<DeleteRuleRequest> createRepeated() => $pb.PbList<DeleteRuleRequest>();
  @$core.pragma('dart2js:noInline')
  static DeleteRuleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DeleteRuleRequest>(create);
  static DeleteRuleRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get ruleID => $_getSZ(0);
  @$pb.TagNumber(1)
  set ruleID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasRuleID() => $_has(0);
  @$pb.TagNumber(1)
  void clearRuleID() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get issuer => $_getSZ(1);
  @$pb.TagNumber(2)
  set issuer($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasIssuer() => $_has(1);
  @$pb.TagNumber(2)
  void clearIssuer() => $_clearField(2);
}

class DeleteRuleResponse extends $pb.GeneratedMessage {
  factory DeleteRuleResponse() => create();
  DeleteRuleResponse._() : super();
  factory DeleteRuleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory DeleteRuleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteRuleResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  DeleteRuleResponse clone() => DeleteRuleResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  DeleteRuleResponse copyWith(void Function(DeleteRuleResponse) updates) => super.copyWith((message) => updates(message as DeleteRuleResponse)) as DeleteRuleResponse;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static DeleteRuleResponse create() => DeleteRuleResponse._();
  DeleteRuleResponse createEmptyInstance() => create();
  static $pb.PbList<DeleteRuleResponse> createRepeated() => $pb.PbList<DeleteRuleResponse>();
  @$core.pragma('dart2js:noInline')
  static DeleteRuleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DeleteRuleResponse>(create);
  static DeleteRuleResponse? _defaultInstance;
}

/// Enable
class EnableRuleRequest extends $pb.GeneratedMessage {
  factory EnableRuleRequest({
    $core.String? ruleID,
  }) {
    final $result = create();
    if (ruleID != null) {
      $result.ruleID = ruleID;
    }
    return $result;
  }
  EnableRuleRequest._() : super();
  factory EnableRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory EnableRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EnableRuleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'RuleID', protoName: 'RuleID')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  EnableRuleRequest clone() => EnableRuleRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  EnableRuleRequest copyWith(void Function(EnableRuleRequest) updates) => super.copyWith((message) => updates(message as EnableRuleRequest)) as EnableRuleRequest;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static EnableRuleRequest create() => EnableRuleRequest._();
  EnableRuleRequest createEmptyInstance() => create();
  static $pb.PbList<EnableRuleRequest> createRepeated() => $pb.PbList<EnableRuleRequest>();
  @$core.pragma('dart2js:noInline')
  static EnableRuleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<EnableRuleRequest>(create);
  static EnableRuleRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get ruleID => $_getSZ(0);
  @$pb.TagNumber(1)
  set ruleID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasRuleID() => $_has(0);
  @$pb.TagNumber(1)
  void clearRuleID() => $_clearField(1);
}

class EnableRuleResponse extends $pb.GeneratedMessage {
  factory EnableRuleResponse({
    Rule? rule,
  }) {
    final $result = create();
    if (rule != null) {
      $result.rule = rule;
    }
    return $result;
  }
  EnableRuleResponse._() : super();
  factory EnableRuleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory EnableRuleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EnableRuleResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<Rule>(1, _omitFieldNames ? '' : 'Rule', protoName: 'Rule', subBuilder: Rule.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  EnableRuleResponse clone() => EnableRuleResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  EnableRuleResponse copyWith(void Function(EnableRuleResponse) updates) => super.copyWith((message) => updates(message as EnableRuleResponse)) as EnableRuleResponse;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static EnableRuleResponse create() => EnableRuleResponse._();
  EnableRuleResponse createEmptyInstance() => create();
  static $pb.PbList<EnableRuleResponse> createRepeated() => $pb.PbList<EnableRuleResponse>();
  @$core.pragma('dart2js:noInline')
  static EnableRuleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<EnableRuleResponse>(create);
  static EnableRuleResponse? _defaultInstance;

  @$pb.TagNumber(1)
  Rule get rule => $_getN(0);
  @$pb.TagNumber(1)
  set rule(Rule v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasRule() => $_has(0);
  @$pb.TagNumber(1)
  void clearRule() => $_clearField(1);
  @$pb.TagNumber(1)
  Rule ensureRule() => $_ensure(0);
}

/// Disable
class DisableRuleRequest extends $pb.GeneratedMessage {
  factory DisableRuleRequest({
    $core.String? ruleID,
  }) {
    final $result = create();
    if (ruleID != null) {
      $result.ruleID = ruleID;
    }
    return $result;
  }
  DisableRuleRequest._() : super();
  factory DisableRuleRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory DisableRuleRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DisableRuleRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'RuleID', protoName: 'RuleID')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  DisableRuleRequest clone() => DisableRuleRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  DisableRuleRequest copyWith(void Function(DisableRuleRequest) updates) => super.copyWith((message) => updates(message as DisableRuleRequest)) as DisableRuleRequest;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static DisableRuleRequest create() => DisableRuleRequest._();
  DisableRuleRequest createEmptyInstance() => create();
  static $pb.PbList<DisableRuleRequest> createRepeated() => $pb.PbList<DisableRuleRequest>();
  @$core.pragma('dart2js:noInline')
  static DisableRuleRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DisableRuleRequest>(create);
  static DisableRuleRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get ruleID => $_getSZ(0);
  @$pb.TagNumber(1)
  set ruleID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasRuleID() => $_has(0);
  @$pb.TagNumber(1)
  void clearRuleID() => $_clearField(1);
}

class DisableRuleResponse extends $pb.GeneratedMessage {
  factory DisableRuleResponse({
    Rule? rule,
  }) {
    final $result = create();
    if (rule != null) {
      $result.rule = rule;
    }
    return $result;
  }
  DisableRuleResponse._() : super();
  factory DisableRuleResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory DisableRuleResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DisableRuleResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<Rule>(1, _omitFieldNames ? '' : 'Rule', protoName: 'Rule', subBuilder: Rule.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  DisableRuleResponse clone() => DisableRuleResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  DisableRuleResponse copyWith(void Function(DisableRuleResponse) updates) => super.copyWith((message) => updates(message as DisableRuleResponse)) as DisableRuleResponse;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static DisableRuleResponse create() => DisableRuleResponse._();
  DisableRuleResponse createEmptyInstance() => create();
  static $pb.PbList<DisableRuleResponse> createRepeated() => $pb.PbList<DisableRuleResponse>();
  @$core.pragma('dart2js:noInline')
  static DisableRuleResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<DisableRuleResponse>(create);
  static DisableRuleResponse? _defaultInstance;

  @$pb.TagNumber(1)
  Rule get rule => $_getN(0);
  @$pb.TagNumber(1)
  set rule(Rule v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasRule() => $_has(0);
  @$pb.TagNumber(1)
  void clearRule() => $_clearField(1);
  @$pb.TagNumber(1)
  Rule ensureRule() => $_ensure(0);
}

/// GetJSONTree
class GetJSONTreeRequest extends $pb.GeneratedMessage {
  factory GetJSONTreeRequest({
    $core.String? ruleID,
  }) {
    final $result = create();
    if (ruleID != null) {
      $result.ruleID = ruleID;
    }
    return $result;
  }
  GetJSONTreeRequest._() : super();
  factory GetJSONTreeRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory GetJSONTreeRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetJSONTreeRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'RuleID', protoName: 'RuleID')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  GetJSONTreeRequest clone() => GetJSONTreeRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  GetJSONTreeRequest copyWith(void Function(GetJSONTreeRequest) updates) => super.copyWith((message) => updates(message as GetJSONTreeRequest)) as GetJSONTreeRequest;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static GetJSONTreeRequest create() => GetJSONTreeRequest._();
  GetJSONTreeRequest createEmptyInstance() => create();
  static $pb.PbList<GetJSONTreeRequest> createRepeated() => $pb.PbList<GetJSONTreeRequest>();
  @$core.pragma('dart2js:noInline')
  static GetJSONTreeRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetJSONTreeRequest>(create);
  static GetJSONTreeRequest? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get ruleID => $_getSZ(0);
  @$pb.TagNumber(1)
  set ruleID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasRuleID() => $_has(0);
  @$pb.TagNumber(1)
  void clearRuleID() => $_clearField(1);
}

class GetJSONTreeResponse extends $pb.GeneratedMessage {
  factory GetJSONTreeResponse({
    $core.String? jSONTree,
  }) {
    final $result = create();
    if (jSONTree != null) {
      $result.jSONTree = jSONTree;
    }
    return $result;
  }
  GetJSONTreeResponse._() : super();
  factory GetJSONTreeResponse.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory GetJSONTreeResponse.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetJSONTreeResponse', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'JSONTree', protoName: 'JSONTree')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  GetJSONTreeResponse clone() => GetJSONTreeResponse()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  GetJSONTreeResponse copyWith(void Function(GetJSONTreeResponse) updates) => super.copyWith((message) => updates(message as GetJSONTreeResponse)) as GetJSONTreeResponse;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static GetJSONTreeResponse create() => GetJSONTreeResponse._();
  GetJSONTreeResponse createEmptyInstance() => create();
  static $pb.PbList<GetJSONTreeResponse> createRepeated() => $pb.PbList<GetJSONTreeResponse>();
  @$core.pragma('dart2js:noInline')
  static GetJSONTreeResponse getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetJSONTreeResponse>(create);
  static GetJSONTreeResponse? _defaultInstance;

  @$pb.TagNumber(1)
  $core.String get jSONTree => $_getSZ(0);
  @$pb.TagNumber(1)
  set jSONTree($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasJSONTree() => $_has(0);
  @$pb.TagNumber(1)
  void clearJSONTree() => $_clearField(1);
}


const _omitFieldNames = $core.bool.fromEnvironment('protobuf.omit_field_names');
const _omitMessageNames = $core.bool.fromEnvironment('protobuf.omit_message_names');
