//
//  Generated code. Do not modify.
//  source: accounts.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:fixnum/fixnum.dart' as $fixnum;
import 'package:protobuf/protobuf.dart' as $pb;

import 'nsc-base.pb.dart' as $64;
import 'shared.pb.dart' as $3;

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

/// Entity creation messages
class CreateAccountRequest extends $pb.GeneratedMessage {
  factory CreateAccountRequest({
    $core.String? name,
    $64.NscPermission? permission,
    $core.bool? jetStream,
  }) {
    final $result = create();
    if (name != null) {
      $result.name = name;
    }
    if (permission != null) {
      $result.permission = permission;
    }
    if (jetStream != null) {
      $result.jetStream = jetStream;
    }
    return $result;
  }
  CreateAccountRequest._() : super();
  factory CreateAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory CreateAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'CreateAccountRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'name')
    ..aOM<$64.NscPermission>(2, _omitFieldNames ? '' : 'permission', subBuilder: $64.NscPermission.create)
    ..aOB(3, _omitFieldNames ? '' : 'jetStream', protoName: 'jetStream')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static CreateAccountRequest create() => CreateAccountRequest._();
  CreateAccountRequest createEmptyInstance() => create();
  static $pb.PbList<CreateAccountRequest> createRepeated() => $pb.PbList<CreateAccountRequest>();
  @$core.pragma('dart2js:noInline')
  static CreateAccountRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<CreateAccountRequest>(create);
  static CreateAccountRequest? _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)
  $64.NscPermission get permission => $_getN(1);
  @$pb.TagNumber(2)
  set permission($64.NscPermission v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasPermission() => $_has(1);
  @$pb.TagNumber(2)
  void clearPermission() => $_clearField(2);
  @$pb.TagNumber(2)
  $64.NscPermission ensurePermission() => $_ensure(1);

  @$pb.TagNumber(3)
  $core.bool get jetStream => $_getBF(2);
  @$pb.TagNumber(3)
  set jetStream($core.bool v) { $_setBool(2, v); }
  @$pb.TagNumber(3)
  $core.bool hasJetStream() => $_has(2);
  @$pb.TagNumber(3)
  void clearJetStream() => $_clearField(3);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  /// NatsCredentials holds the configuration for interacting with Platform's NATS
  @$pb.TagNumber(1)
  $3.NatsCredentials get credentials => $_getN(0);
  @$pb.TagNumber(1)
  set credentials($3.NatsCredentials v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCredentials() => $_has(0);
  @$pb.TagNumber(1)
  void clearCredentials() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.NatsCredentials ensureCredentials() => $_ensure(0);
}

/// Account Imports / Exports
class AddExportRequest extends $pb.GeneratedMessage {
  factory AddExportRequest({
    $core.String? accountName,
    $core.bool? public,
    $core.bool? stream,
    $core.String? subject,
  }) {
    final $result = create();
    if (accountName != null) {
      $result.accountName = accountName;
    }
    if (public != null) {
      $result.public = public;
    }
    if (stream != null) {
      $result.stream = stream;
    }
    if (subject != null) {
      $result.subject = subject;
    }
    return $result;
  }
  AddExportRequest._() : super();
  factory AddExportRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory AddExportRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AddExportRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'accountName', protoName: 'accountName')
    ..aOB(2, _omitFieldNames ? '' : 'public')
    ..aOB(3, _omitFieldNames ? '' : 'stream')
    ..aOS(4, _omitFieldNames ? '' : 'subject')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

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

  @$pb.TagNumber(2)
  $core.bool get public => $_getBF(1);
  @$pb.TagNumber(2)
  set public($core.bool v) { $_setBool(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasPublic() => $_has(1);
  @$pb.TagNumber(2)
  void clearPublic() => $_clearField(2);

  @$pb.TagNumber(3)
  $core.bool get stream => $_getBF(2);
  @$pb.TagNumber(3)
  set stream($core.bool v) { $_setBool(2, v); }
  @$pb.TagNumber(3)
  $core.bool hasStream() => $_has(2);
  @$pb.TagNumber(3)
  void clearStream() => $_clearField(3);

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

  /// NatsCredentials holds the configuration for interacting with Platform's NATS
  @$pb.TagNumber(1)
  $3.NatsCredentials get credentials => $_getN(0);
  @$pb.TagNumber(1)
  set credentials($3.NatsCredentials v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCredentials() => $_has(0);
  @$pb.TagNumber(1)
  void clearCredentials() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.NatsCredentials ensureCredentials() => $_ensure(0);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'AddImportRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'accountName', protoName: 'accountName')
    ..aOS(2, _omitFieldNames ? '' : 'remoteAccount', protoName: 'remoteAccount')
    ..aOS(3, _omitFieldNames ? '' : 'subject')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

  /// NatsCredentials holds the configuration for interacting with Platform's NATS
  @$pb.TagNumber(1)
  $3.NatsCredentials get credentials => $_getN(0);
  @$pb.TagNumber(1)
  set credentials($3.NatsCredentials v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCredentials() => $_has(0);
  @$pb.TagNumber(1)
  void clearCredentials() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.NatsCredentials ensureCredentials() => $_ensure(0);
}

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

  /// NatsCredentials holds the configuration for interacting with Platform's NATS
  @$pb.TagNumber(1)
  $3.NatsCredentials get credentials => $_getN(0);
  @$pb.TagNumber(1)
  set credentials($3.NatsCredentials v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCredentials() => $_has(0);
  @$pb.TagNumber(1)
  void clearCredentials() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.NatsCredentials ensureCredentials() => $_ensure(0);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteImportRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'accountName', protoName: 'accountName')
    ..aOS(2, _omitFieldNames ? '' : 'remoteAccount', protoName: 'remoteAccount')
    ..aOS(3, _omitFieldNames ? '' : 'subject')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

  /// NatsCredentials holds the configuration for interacting with Platform's NATS
  @$pb.TagNumber(1)
  $3.NatsCredentials get credentials => $_getN(0);
  @$pb.TagNumber(1)
  set credentials($3.NatsCredentials v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCredentials() => $_has(0);
  @$pb.TagNumber(1)
  void clearCredentials() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.NatsCredentials ensureCredentials() => $_ensure(0);
}

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

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

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static GetAccountRequest create() => GetAccountRequest._();
  GetAccountRequest createEmptyInstance() => create();
  static $pb.PbList<GetAccountRequest> createRepeated() => $pb.PbList<GetAccountRequest>();
  @$core.pragma('dart2js:noInline')
  static GetAccountRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<GetAccountRequest>(create);
  static GetAccountRequest? _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);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  /// NatsCredentials holds the configuration for interacting with Platform's NATS
  @$pb.TagNumber(1)
  $3.NatsCredentials get credentials => $_getN(0);
  @$pb.TagNumber(1)
  set credentials($3.NatsCredentials v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCredentials() => $_has(0);
  @$pb.TagNumber(1)
  void clearCredentials() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.NatsCredentials ensureCredentials() => $_ensure(0);
}

/// Entity edition messages
class EditAccountRequest extends $pb.GeneratedMessage {
  factory EditAccountRequest({
    $core.String? name,
    $64.NscPermission? permission,
    $core.Iterable<$core.String>? rmPerms,
    $core.bool? jetStream,
    $fixnum.Int64? diskStorage,
    $fixnum.Int64? streams,
    $fixnum.Int64? consumers,
  }) {
    final $result = create();
    if (name != null) {
      $result.name = name;
    }
    if (permission != null) {
      $result.permission = permission;
    }
    if (rmPerms != null) {
      $result.rmPerms.addAll(rmPerms);
    }
    if (jetStream != null) {
      $result.jetStream = jetStream;
    }
    if (diskStorage != null) {
      $result.diskStorage = diskStorage;
    }
    if (streams != null) {
      $result.streams = streams;
    }
    if (consumers != null) {
      $result.consumers = consumers;
    }
    return $result;
  }
  EditAccountRequest._() : super();
  factory EditAccountRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory EditAccountRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'EditAccountRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'name')
    ..aOM<$64.NscPermission>(2, _omitFieldNames ? '' : 'permission', subBuilder: $64.NscPermission.create)
    ..pPS(3, _omitFieldNames ? '' : 'rmPerms', protoName: 'rmPerms')
    ..aOB(4, _omitFieldNames ? '' : 'jetStream', protoName: 'jetStream')
    ..aInt64(5, _omitFieldNames ? '' : 'diskStorage', protoName: 'diskStorage')
    ..aInt64(6, _omitFieldNames ? '' : 'streams')
    ..aInt64(7, _omitFieldNames ? '' : 'consumers')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static EditAccountRequest create() => EditAccountRequest._();
  EditAccountRequest createEmptyInstance() => create();
  static $pb.PbList<EditAccountRequest> createRepeated() => $pb.PbList<EditAccountRequest>();
  @$core.pragma('dart2js:noInline')
  static EditAccountRequest getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<EditAccountRequest>(create);
  static EditAccountRequest? _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)
  $64.NscPermission get permission => $_getN(1);
  @$pb.TagNumber(2)
  set permission($64.NscPermission v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasPermission() => $_has(1);
  @$pb.TagNumber(2)
  void clearPermission() => $_clearField(2);
  @$pb.TagNumber(2)
  $64.NscPermission ensurePermission() => $_ensure(1);

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

  @$pb.TagNumber(4)
  $core.bool get jetStream => $_getBF(3);
  @$pb.TagNumber(4)
  set jetStream($core.bool v) { $_setBool(3, v); }
  @$pb.TagNumber(4)
  $core.bool hasJetStream() => $_has(3);
  @$pb.TagNumber(4)
  void clearJetStream() => $_clearField(4);

  @$pb.TagNumber(5)
  $fixnum.Int64 get diskStorage => $_getI64(4);
  @$pb.TagNumber(5)
  set diskStorage($fixnum.Int64 v) { $_setInt64(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasDiskStorage() => $_has(4);
  @$pb.TagNumber(5)
  void clearDiskStorage() => $_clearField(5);

  @$pb.TagNumber(6)
  $fixnum.Int64 get streams => $_getI64(5);
  @$pb.TagNumber(6)
  set streams($fixnum.Int64 v) { $_setInt64(5, v); }
  @$pb.TagNumber(6)
  $core.bool hasStreams() => $_has(5);
  @$pb.TagNumber(6)
  void clearStreams() => $_clearField(6);

  @$pb.TagNumber(7)
  $fixnum.Int64 get consumers => $_getI64(6);
  @$pb.TagNumber(7)
  set consumers($fixnum.Int64 v) { $_setInt64(6, v); }
  @$pb.TagNumber(7)
  $core.bool hasConsumers() => $_has(6);
  @$pb.TagNumber(7)
  void clearConsumers() => $_clearField(7);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  /// NatsCredentials holds the configuration for interacting with Platform's NATS
  @$pb.TagNumber(1)
  $3.NatsCredentials get credentials => $_getN(0);
  @$pb.TagNumber(1)
  set credentials($3.NatsCredentials v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCredentials() => $_has(0);
  @$pb.TagNumber(1)
  void clearCredentials() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.NatsCredentials ensureCredentials() => $_ensure(0);
}

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'DeleteAccountResult', 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')
  DeleteAccountResult clone() => DeleteAccountResult()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  DeleteAccountResult copyWith(void Function(DeleteAccountResult) updates) => super.copyWith((message) => updates(message as DeleteAccountResult)) as DeleteAccountResult;

  $pb.BuilderInfo get info_ => _i;

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

enum PushAccountsRequest_Params {
  addAcc, 
  removeAcc, 
  pushAll, 
  notSet
}

/// Communication with NATS Server Account Messages
class PushAccountsRequest extends $pb.GeneratedMessage {
  factory PushAccountsRequest({
    $core.String? addAcc,
    $core.String? removeAcc,
    $core.bool? pushAll,
  }) {
    final $result = create();
    if (addAcc != null) {
      $result.addAcc = addAcc;
    }
    if (removeAcc != null) {
      $result.removeAcc = removeAcc;
    }
    if (pushAll != null) {
      $result.pushAll = pushAll;
    }
    return $result;
  }
  PushAccountsRequest._() : super();
  factory PushAccountsRequest.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory PushAccountsRequest.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static const $core.Map<$core.int, PushAccountsRequest_Params> _PushAccountsRequest_ParamsByTag = {
    1 : PushAccountsRequest_Params.addAcc,
    2 : PushAccountsRequest_Params.removeAcc,
    3 : PushAccountsRequest_Params.pushAll,
    0 : PushAccountsRequest_Params.notSet
  };
  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PushAccountsRequest', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..oo(0, [1, 2, 3])
    ..aOS(1, _omitFieldNames ? '' : 'addAcc', protoName: 'addAcc')
    ..aOS(2, _omitFieldNames ? '' : 'removeAcc', protoName: 'removeAcc')
    ..aOB(3, _omitFieldNames ? '' : 'pushAll', protoName: 'pushAll')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  PushAccountsRequest_Params whichParams() => _PushAccountsRequest_ParamsByTag[$_whichOneof(0)]!;
  void clearParams() => $_clearField($_whichOneof(0));

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

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

  @$pb.TagNumber(3)
  $core.bool get pushAll => $_getBF(2);
  @$pb.TagNumber(3)
  set pushAll($core.bool v) { $_setBool(2, v); }
  @$pb.TagNumber(3)
  $core.bool hasPushAll() => $_has(2);
  @$pb.TagNumber(3)
  void clearPushAll() => $_clearField(3);
}

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'PushAccountsResult', 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')
  PushAccountsResult clone() => PushAccountsResult()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  PushAccountsResult copyWith(void Function(PushAccountsResult) updates) => super.copyWith((message) => updates(message as PushAccountsResult)) as PushAccountsResult;

  $pb.BuilderInfo get info_ => _i;

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

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ListAccountsRequest', 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')
  ListAccountsRequest clone() => ListAccountsRequest()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  ListAccountsRequest copyWith(void Function(ListAccountsRequest) updates) => super.copyWith((message) => updates(message as ListAccountsRequest)) as ListAccountsRequest;

  $pb.BuilderInfo get info_ => _i;

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $pb.PbList<$64.NamedNscCredentials> get entities => $_getList(0);
}


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