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

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

  $pb.BuilderInfo get info_ => _i;

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

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

  $pb.BuilderInfo get info_ => _i;

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