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

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

class OrderByIdQuery extends $pb.GeneratedMessage {
  factory OrderByIdQuery({
    $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;
  }
  OrderByIdQuery._() : super();
  factory OrderByIdQuery.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory OrderByIdQuery.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static OrderByIdQuery create() => OrderByIdQuery._();
  OrderByIdQuery createEmptyInstance() => create();
  static $pb.PbList<OrderByIdQuery> createRepeated() => $pb.PbList<OrderByIdQuery>();
  @$core.pragma('dart2js:noInline')
  static OrderByIdQuery getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OrderByIdQuery>(create);
  static OrderByIdQuery? _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 OrderByIdResult extends $pb.GeneratedMessage {
  factory OrderByIdResult({
    $3.ResultHeader? header,
    $core.Iterable<$89.Order>? objects,
  }) {
    final $result = create();
    if (header != null) {
      $result.header = header;
    }
    if (objects != null) {
      $result.objects.addAll(objects);
    }
    return $result;
  }
  OrderByIdResult._() : super();
  factory OrderByIdResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory OrderByIdResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

class OrderByFilterQuery extends $pb.GeneratedMessage {
  factory OrderByFilterQuery({
    $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;
  }
  OrderByFilterQuery._() : super();
  factory OrderByFilterQuery.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory OrderByFilterQuery.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  /// Number of maximum result
  @$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(6)
  $pb.PbList<$3.BlockFilter> get blockFilters => $_getList(3);
}

class OrderByFilterResult extends $pb.GeneratedMessage {
  factory OrderByFilterResult({
    $3.ResultHeader? header,
    $core.Iterable<$89.Order>? 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;
  }
  OrderByFilterResult._() : super();
  factory OrderByFilterResult.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory OrderByFilterResult.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static OrderByFilterResult create() => OrderByFilterResult._();
  OrderByFilterResult createEmptyInstance() => create();
  static $pb.PbList<OrderByFilterResult> createRepeated() => $pb.PbList<OrderByFilterResult>();
  @$core.pragma('dart2js:noInline')
  static OrderByFilterResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OrderByFilterResult>(create);
  static OrderByFilterResult? _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<$89.Order> 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 OrderByMatchQuery extends $pb.GeneratedMessage {
  factory OrderByMatchQuery({
    $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;
  }
  OrderByMatchQuery._() : super();
  factory OrderByMatchQuery.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory OrderByMatchQuery.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static OrderByMatchQuery create() => OrderByMatchQuery._();
  OrderByMatchQuery createEmptyInstance() => create();
  static $pb.PbList<OrderByMatchQuery> createRepeated() => $pb.PbList<OrderByMatchQuery>();
  @$core.pragma('dart2js:noInline')
  static OrderByMatchQuery getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<OrderByMatchQuery>(create);
  static OrderByMatchQuery? _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(7)
  $pb.PbList<$3.BlockFilter> get blockFilters => $_getList(1);

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

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

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

  $pb.BuilderInfo get info_ => _i;

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