// GENERATED CODE - DO NOT MODIFY BY HAND

part of 'apply_scans_request.dart';

// **************************************************************************
// BuiltValueGenerator
// **************************************************************************

class _$ApplyScansRequest extends ApplyScansRequest {
  @override
  final BuiltList<ScanEvent> scans;

  factory _$ApplyScansRequest(
          [void Function(ApplyScansRequestBuilder)? updates]) =>
      (ApplyScansRequestBuilder()..update(updates))._build();

  _$ApplyScansRequest._({required this.scans}) : super._();
  @override
  ApplyScansRequest rebuild(void Function(ApplyScansRequestBuilder) updates) =>
      (toBuilder()..update(updates)).build();

  @override
  ApplyScansRequestBuilder toBuilder() =>
      ApplyScansRequestBuilder()..replace(this);

  @override
  bool operator ==(Object other) {
    if (identical(other, this)) return true;
    return other is ApplyScansRequest && scans == other.scans;
  }

  @override
  int get hashCode {
    var _$hash = 0;
    _$hash = $jc(_$hash, scans.hashCode);
    _$hash = $jf(_$hash);
    return _$hash;
  }

  @override
  String toString() {
    return (newBuiltValueToStringHelper(r'ApplyScansRequest')
          ..add('scans', scans))
        .toString();
  }
}

class ApplyScansRequestBuilder
    implements Builder<ApplyScansRequest, ApplyScansRequestBuilder> {
  _$ApplyScansRequest? _$v;

  ListBuilder<ScanEvent>? _scans;
  ListBuilder<ScanEvent> get scans =>
      _$this._scans ??= ListBuilder<ScanEvent>();
  set scans(ListBuilder<ScanEvent>? scans) => _$this._scans = scans;

  ApplyScansRequestBuilder() {
    ApplyScansRequest._defaults(this);
  }

  ApplyScansRequestBuilder get _$this {
    final $v = _$v;
    if ($v != null) {
      _scans = $v.scans.toBuilder();
      _$v = null;
    }
    return this;
  }

  @override
  void replace(ApplyScansRequest other) {
    _$v = other as _$ApplyScansRequest;
  }

  @override
  void update(void Function(ApplyScansRequestBuilder)? updates) {
    if (updates != null) updates(this);
  }

  @override
  ApplyScansRequest build() => _build();

  _$ApplyScansRequest _build() {
    _$ApplyScansRequest _$result;
    try {
      _$result = _$v ??
          _$ApplyScansRequest._(
            scans: scans.build(),
          );
    } catch (_) {
      late String _$failedField;
      try {
        _$failedField = 'scans';
        scans.build();
      } catch (e) {
        throw BuiltValueNestedFieldError(
            r'ApplyScansRequest', _$failedField, e.toString());
      }
      rethrow;
    }
    replace(_$result);
    return _$result;
  }
}

// ignore_for_file: deprecated_member_use_from_same_package,type=lint
