//
//  Generated code. Do not modify.
//  source: nsc-base.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 'shared.pb.dart' as $3;

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

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NscPermission', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..pPS(1, _omitFieldNames ? '' : 'allowSub', protoName: 'allowSub')
    ..pPS(2, _omitFieldNames ? '' : 'allowPub', protoName: 'allowPub')
    ..pPS(3, _omitFieldNames ? '' : 'denySub', protoName: 'denySub')
    ..pPS(4, _omitFieldNames ? '' : 'denyPub', protoName: 'denyPub')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $pb.PbList<$core.String> get allowSub => $_getList(0);

  @$pb.TagNumber(2)
  $pb.PbList<$core.String> get allowPub => $_getList(1);

  @$pb.TagNumber(3)
  $pb.PbList<$core.String> get denySub => $_getList(2);

  @$pb.TagNumber(4)
  $pb.PbList<$core.String> get denyPub => $_getList(3);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NamedNscCredentials', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'name')
    ..aOM<$3.NatsCredentials>(2, _omitFieldNames ? '' : 'NscCredentials', protoName: 'NscCredentials', subBuilder: $3.NatsCredentials.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')
  NamedNscCredentials clone() => NamedNscCredentials()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  NamedNscCredentials copyWith(void Function(NamedNscCredentials) updates) => super.copyWith((message) => updates(message as NamedNscCredentials)) as NamedNscCredentials;

  $pb.BuilderInfo get info_ => _i;

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

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

  @$pb.TagNumber(2)
  $3.NatsCredentials get nscCredentials => $_getN(1);
  @$pb.TagNumber(2)
  set nscCredentials($3.NatsCredentials v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasNscCredentials() => $_has(1);
  @$pb.TagNumber(2)
  void clearNscCredentials() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.NatsCredentials ensureNscCredentials() => $_ensure(1);
}


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