// This is a generated file - do not edit.
//
// Generated from nsc-base.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:core' as $core;

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

import 'shared.pb.dart' as $0;

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._();

  factory NscPermission.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory NscPermission.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  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('See https://github.com/google/protobuf.dart/issues/998.')
  NscPermission clone() => NscPermission()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  NscPermission copyWith(void Function(NscPermission) updates) => super.copyWith((message) => updates(message as NscPermission)) as NscPermission;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static NscPermission create() => NscPermission._();
  @$core.override
  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,
    $0.NatsCredentials? nscCredentials,
  }) {
    final result = create();
    if (name != null) result.name = name;
    if (nscCredentials != null) result.nscCredentials = nscCredentials;
    return result;
  }

  NamedNscCredentials._();

  factory NamedNscCredentials.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory NamedNscCredentials.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'NamedNscCredentials', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'name')
    ..aOM<$0.NatsCredentials>(2, _omitFieldNames ? '' : 'NscCredentials', protoName: 'NscCredentials', subBuilder: $0.NatsCredentials.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  NamedNscCredentials clone() => NamedNscCredentials()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  NamedNscCredentials copyWith(void Function(NamedNscCredentials) updates) => super.copyWith((message) => updates(message as NamedNscCredentials)) as NamedNscCredentials;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static NamedNscCredentials create() => NamedNscCredentials._();
  @$core.override
  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 value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasName() => $_has(0);
  @$pb.TagNumber(1)
  void clearName() => $_clearField(1);

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


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