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

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.QueryProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.QueryProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.QueryProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $pb.PbList<$3.EntityID> get iDs => $_getList(1);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.ResultHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.ResultHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.ResultHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $pb.PbList<$86.Handlingunit> get objects => $_getList(1);
}

class HandlingunitByFilterQuery extends $pb.GeneratedMessage {
  factory HandlingunitByFilterQuery({
    $3.QueryProjectHeader? header,
    $core.String? limitFilter,
    $core.String? queryContext,
    $core.Iterable<$3.BlockFilter>? blockFilters,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (limitFilter != null) {
      $result.limitFilter = limitFilter;
    }
    if (queryContext != null) {
      $result.queryContext = queryContext;
    }
    if (blockFilters != null) {
      $result.blockFilters.addAll(blockFilters);
    }
    return $result;
  }
  HandlingunitByFilterQuery._() : super();
  factory HandlingunitByFilterQuery.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory HandlingunitByFilterQuery.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.QueryProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.QueryProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.QueryProjectHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(4)
  $core.String get limitFilter => $_getSZ(1);
  @$pb.TagNumber(4)
  set limitFilter($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(4)
  $core.bool hasLimitFilter() => $_has(1);
  @$pb.TagNumber(4)
  void clearLimitFilter() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get queryContext => $_getSZ(2);
  @$pb.TagNumber(5)
  set queryContext($core.String v) { $_setString(2, v); }
  @$pb.TagNumber(5)
  $core.bool hasQueryContext() => $_has(2);
  @$pb.TagNumber(5)
  void clearQueryContext() => $_clearField(5);

  /// list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
  @$pb.TagNumber(7)
  $pb.PbList<$3.BlockFilter> get blockFilters => $_getList(3);
}

class HandlingunitByFilterResult extends $pb.GeneratedMessage {
  factory HandlingunitByFilterResult({
    $3.ResultHeader? header,
    $core.Iterable<$86.Handlingunit>? objects,
    $core.String? queryContext,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (objects != null) {
      $result.objects.addAll(objects);
    }
    if (queryContext != null) {
      $result.queryContext = queryContext;
    }
    return $result;
  }
  HandlingunitByFilterResult._() : super();
  factory HandlingunitByFilterResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory HandlingunitByFilterResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'HandlingunitByFilterResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.ResultHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $3.ResultHeader.create)
    ..pc<$86.Handlingunit>(2, _omitFieldNames ? '' : 'Objects', $pb.PbFieldType.PM, protoName: 'Objects', subBuilder: $86.Handlingunit.create)
    ..aOS(3, _omitFieldNames ? '' : 'queryContext', protoName: 'queryContext')
    ..hasRequiredFields = false
  ;

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.ResultHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.ResultHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.ResultHeader ensureHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $pb.PbList<$86.Handlingunit> get objects => $_getList(1);

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

class HandlingunitByMatchQuery extends $pb.GeneratedMessage {
  factory HandlingunitByMatchQuery({
    $3.QueryProjectHeader? header,
    $core.Iterable<$3.BlockFilter>? blockFilters,
    $core.Iterable<$3.MatchField>? matchFields,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (blockFilters != null) {
      $result.blockFilters.addAll(blockFilters);
    }
    if (matchFields != null) {
      $result.matchFields.addAll(matchFields);
    }
    return $result;
  }
  HandlingunitByMatchQuery._() : super();
  factory HandlingunitByMatchQuery.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory HandlingunitByMatchQuery.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.QueryProjectHeader get header => $_getN(0);
  @$pb.TagNumber(1)
  set header($3.QueryProjectHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.QueryProjectHeader ensureHeader() => $_ensure(0);

  /// list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query, if not empty, simpleFilters (deprecated) & rangeFilters (deprecated) will be ignored
  @$pb.TagNumber(5)
  $pb.PbList<$3.BlockFilter> get blockFilters => $_getList(1);

  /// MatchField list structure, for FindMatching query
  @$pb.TagNumber(6)
  $pb.PbList<$3.MatchField> get matchFields => $_getList(2);
}

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

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(2)
  $pb.PbList<$3.MatchFieldResult> get matchResults => $_getList(0);
}


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