// This is a generated file - do not edit.
//
// Generated from itemQuery.proto.

// @dart = 3.3

// ignore_for_file: annotate_overrides, camel_case_types, comment_references
// ignore_for_file: constant_identifier_names
// ignore_for_file: curly_braces_in_flow_control_structures
// ignore_for_file: deprecated_member_use_from_same_package, library_prefixes
// ignore_for_file: non_constant_identifier_names

import 'dart:core' as $core;

import 'package:protobuf/protobuf.dart' as $pb;

import 'item.pb.dart' as $2;
import 'repositoryShared.pb.dart' as $3;
import 'shared.pb.dart' as $1;

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

class ItemByIdQuery extends $pb.GeneratedMessage {
  factory ItemByIdQuery({
    $1.QueryProjectHeader? header,
    $core.Iterable<$1.QueryEntityID>? iDs,
    ItemQueryOptions? options,
  }) {
    final result = create();
    if (header != null) result.header = header;
    if (iDs != null) result.iDs.addAll(iDs);
    if (options != null) result.options = options;
    return result;
  }

  ItemByIdQuery._();

  factory ItemByIdQuery.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory ItemByIdQuery.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ItemByIdQuery', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.QueryProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.QueryProjectHeader.create)
    ..pc<$1.QueryEntityID>(2, _omitFieldNames ? '' : 'IDs', $pb.PbFieldType.PM, protoName: 'IDs', subBuilder: $1.QueryEntityID.create)
    ..aOM<ItemQueryOptions>(3, _omitFieldNames ? '' : 'Options', protoName: 'Options', subBuilder: ItemQueryOptions.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByIdQuery clone() => ItemByIdQuery()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByIdQuery copyWith(void Function(ItemByIdQuery) updates) => super.copyWith((message) => updates(message as ItemByIdQuery)) as ItemByIdQuery;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

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

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

  @$pb.TagNumber(3)
  ItemQueryOptions get options => $_getN(2);
  @$pb.TagNumber(3)
  set options(ItemQueryOptions value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasOptions() => $_has(2);
  @$pb.TagNumber(3)
  void clearOptions() => $_clearField(3);
  @$pb.TagNumber(3)
  ItemQueryOptions ensureOptions() => $_ensure(2);
}

class ItemByIdResult extends $pb.GeneratedMessage {
  factory ItemByIdResult({
    $1.ResultHeader? header,
    $core.Iterable<$2.Item>? objects,
  }) {
    final result = create();
    if (header != null) result.header = header;
    if (objects != null) result.objects.addAll(objects);
    return result;
  }

  ItemByIdResult._();

  factory ItemByIdResult.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory ItemByIdResult.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

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

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByIdResult clone() => ItemByIdResult()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByIdResult copyWith(void Function(ItemByIdResult) updates) => super.copyWith((message) => updates(message as ItemByIdResult)) as ItemByIdResult;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

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

  /// Aggregation object message
  @$pb.TagNumber(2)
  $pb.PbList<$2.Item> get objects => $_getList(1);
}

class ItemByFilterQuery extends $pb.GeneratedMessage {
  factory ItemByFilterQuery({
    $1.QueryProjectHeader? header,
    $core.String? limitFilter,
    $core.String? queryContext,
    $core.Iterable<$1.BlockFilter>? blockFilters,
    ItemQueryOptions? options,
    $1.EntityType? usageContextEntity,
    $core.String? usageContextPath,
  }) {
    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);
    if (options != null) result.options = options;
    if (usageContextEntity != null) result.usageContextEntity = usageContextEntity;
    if (usageContextPath != null) result.usageContextPath = usageContextPath;
    return result;
  }

  ItemByFilterQuery._();

  factory ItemByFilterQuery.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory ItemByFilterQuery.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ItemByFilterQuery', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.QueryProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.QueryProjectHeader.create)
    ..aOS(4, _omitFieldNames ? '' : 'limitFilter', protoName: 'limitFilter')
    ..aOS(5, _omitFieldNames ? '' : 'queryContext', protoName: 'queryContext')
    ..pc<$1.BlockFilter>(6, _omitFieldNames ? '' : 'BlockFilters', $pb.PbFieldType.PM, protoName: 'BlockFilters', subBuilder: $1.BlockFilter.create)
    ..aOM<ItemQueryOptions>(7, _omitFieldNames ? '' : 'Options', protoName: 'Options', subBuilder: ItemQueryOptions.create)
    ..e<$1.EntityType>(8, _omitFieldNames ? '' : 'UsageContextEntity', $pb.PbFieldType.OE, protoName: 'UsageContextEntity', defaultOrMaker: $1.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $1.EntityType.valueOf, enumValues: $1.EntityType.values)
    ..aOS(9, _omitFieldNames ? '' : 'UsageContextPath', protoName: 'UsageContextPath')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByFilterQuery clone() => ItemByFilterQuery()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByFilterQuery copyWith(void Function(ItemByFilterQuery) updates) => super.copyWith((message) => updates(message as ItemByFilterQuery)) as ItemByFilterQuery;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

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

  /// Number of maximum result
  @$pb.TagNumber(4)
  $core.String get limitFilter => $_getSZ(1);
  @$pb.TagNumber(4)
  set limitFilter($core.String value) => $_setString(1, value);
  @$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 value) => $_setString(2, value);
  @$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
  @$pb.TagNumber(6)
  $pb.PbList<$1.BlockFilter> get blockFilters => $_getList(3);

  @$pb.TagNumber(7)
  ItemQueryOptions get options => $_getN(4);
  @$pb.TagNumber(7)
  set options(ItemQueryOptions value) => $_setField(7, value);
  @$pb.TagNumber(7)
  $core.bool hasOptions() => $_has(4);
  @$pb.TagNumber(7)
  void clearOptions() => $_clearField(7);
  @$pb.TagNumber(7)
  ItemQueryOptions ensureOptions() => $_ensure(4);

  @$pb.TagNumber(8)
  $1.EntityType get usageContextEntity => $_getN(5);
  @$pb.TagNumber(8)
  set usageContextEntity($1.EntityType value) => $_setField(8, value);
  @$pb.TagNumber(8)
  $core.bool hasUsageContextEntity() => $_has(5);
  @$pb.TagNumber(8)
  void clearUsageContextEntity() => $_clearField(8);

  @$pb.TagNumber(9)
  $core.String get usageContextPath => $_getSZ(6);
  @$pb.TagNumber(9)
  set usageContextPath($core.String value) => $_setString(6, value);
  @$pb.TagNumber(9)
  $core.bool hasUsageContextPath() => $_has(6);
  @$pb.TagNumber(9)
  void clearUsageContextPath() => $_clearField(9);
}

class ItemByFilterResult extends $pb.GeneratedMessage {
  factory ItemByFilterResult({
    $1.ResultHeader? header,
    $core.Iterable<$2.Item>? 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;
  }

  ItemByFilterResult._();

  factory ItemByFilterResult.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory ItemByFilterResult.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

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

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByFilterResult clone() => ItemByFilterResult()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByFilterResult copyWith(void Function(ItemByFilterResult) updates) => super.copyWith((message) => updates(message as ItemByFilterResult)) as ItemByFilterResult;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

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

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

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

class ItemQueryOptions extends $pb.GeneratedMessage {
  factory ItemQueryOptions({
    $core.Iterable<$core.String>? only,
  }) {
    final result = create();
    if (only != null) result.only.addAll(only);
    return result;
  }

  ItemQueryOptions._();

  factory ItemQueryOptions.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory ItemQueryOptions.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

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

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemQueryOptions clone() => ItemQueryOptions()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemQueryOptions copyWith(void Function(ItemQueryOptions) updates) => super.copyWith((message) => updates(message as ItemQueryOptions)) as ItemQueryOptions;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $pb.PbList<$core.String> get only => $_getList(0);
}

class ItemByMatchQuery extends $pb.GeneratedMessage {
  factory ItemByMatchQuery({
    $1.QueryProjectHeader? header,
    $core.Iterable<$1.BlockFilter>? blockFilters,
    $core.Iterable<$1.MatchField>? matchFields,
    $1.EntityType? usageContextEntity,
    $core.String? usageContextPath,
  }) {
    final result = create();
    if (header != null) result.header = header;
    if (blockFilters != null) result.blockFilters.addAll(blockFilters);
    if (matchFields != null) result.matchFields.addAll(matchFields);
    if (usageContextEntity != null) result.usageContextEntity = usageContextEntity;
    if (usageContextPath != null) result.usageContextPath = usageContextPath;
    return result;
  }

  ItemByMatchQuery._();

  factory ItemByMatchQuery.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory ItemByMatchQuery.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ItemByMatchQuery', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.QueryProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.QueryProjectHeader.create)
    ..pc<$1.BlockFilter>(5, _omitFieldNames ? '' : 'BlockFilters', $pb.PbFieldType.PM, protoName: 'BlockFilters', subBuilder: $1.BlockFilter.create)
    ..pc<$1.MatchField>(6, _omitFieldNames ? '' : 'MatchFields', $pb.PbFieldType.PM, protoName: 'MatchFields', subBuilder: $1.MatchField.create)
    ..e<$1.EntityType>(7, _omitFieldNames ? '' : 'UsageContextEntity', $pb.PbFieldType.OE, protoName: 'UsageContextEntity', defaultOrMaker: $1.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $1.EntityType.valueOf, enumValues: $1.EntityType.values)
    ..aOS(8, _omitFieldNames ? '' : 'UsageContextPath', protoName: 'UsageContextPath')
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByMatchQuery clone() => ItemByMatchQuery()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByMatchQuery copyWith(void Function(ItemByMatchQuery) updates) => super.copyWith((message) => updates(message as ItemByMatchQuery)) as ItemByMatchQuery;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

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

  /// list of blockFilters structure for Find query, each element (BlockFilter) in the list is an "OR" part of the query
  @$pb.TagNumber(5)
  $pb.PbList<$1.BlockFilter> get blockFilters => $_getList(1);

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

  @$pb.TagNumber(7)
  $1.EntityType get usageContextEntity => $_getN(3);
  @$pb.TagNumber(7)
  set usageContextEntity($1.EntityType value) => $_setField(7, value);
  @$pb.TagNumber(7)
  $core.bool hasUsageContextEntity() => $_has(3);
  @$pb.TagNumber(7)
  void clearUsageContextEntity() => $_clearField(7);

  @$pb.TagNumber(8)
  $core.String get usageContextPath => $_getSZ(4);
  @$pb.TagNumber(8)
  set usageContextPath($core.String value) => $_setString(4, value);
  @$pb.TagNumber(8)
  $core.bool hasUsageContextPath() => $_has(4);
  @$pb.TagNumber(8)
  void clearUsageContextPath() => $_clearField(8);
}

class ItemByMatchResult extends $pb.GeneratedMessage {
  factory ItemByMatchResult({
    $core.Iterable<$1.MatchFieldResult>? matchResults,
  }) {
    final result = create();
    if (matchResults != null) result.matchResults.addAll(matchResults);
    return result;
  }

  ItemByMatchResult._();

  factory ItemByMatchResult.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory ItemByMatchResult.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'ItemByMatchResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..pc<$1.MatchFieldResult>(2, _omitFieldNames ? '' : 'MatchResults', $pb.PbFieldType.PM, protoName: 'MatchResults', subBuilder: $1.MatchFieldResult.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByMatchResult clone() => ItemByMatchResult()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  ItemByMatchResult copyWith(void Function(ItemByMatchResult) updates) => super.copyWith((message) => updates(message as ItemByMatchResult)) as ItemByMatchResult;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

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

class GetLVDetailedQuantityQuery extends $pb.GeneratedMessage {
  factory GetLVDetailedQuantityQuery({
    $1.QueryProjectHeader? header,
    $1.QueryEntityID? iD,
    $core.String? lVBranchID,
    $core.double? quantityInbaseLv,
    ItemQueryOptions? options,
  }) {
    final result = create();
    if (header != null) result.header = header;
    if (iD != null) result.iD = iD;
    if (lVBranchID != null) result.lVBranchID = lVBranchID;
    if (quantityInbaseLv != null) result.quantityInbaseLv = quantityInbaseLv;
    if (options != null) result.options = options;
    return result;
  }

  GetLVDetailedQuantityQuery._();

  factory GetLVDetailedQuantityQuery.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory GetLVDetailedQuantityQuery.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetLVDetailedQuantityQuery', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.QueryProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.QueryProjectHeader.create)
    ..aOM<$1.QueryEntityID>(2, _omitFieldNames ? '' : 'ID', protoName: 'ID', subBuilder: $1.QueryEntityID.create)
    ..aOS(3, _omitFieldNames ? '' : 'LVBranchID', protoName: 'LVBranchID')
    ..a<$core.double>(4, _omitFieldNames ? '' : 'quantityInbaseLv', $pb.PbFieldType.OF, protoName: 'quantityInbaseLv')
    ..aOM<ItemQueryOptions>(5, _omitFieldNames ? '' : 'Options', protoName: 'Options', subBuilder: ItemQueryOptions.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  GetLVDetailedQuantityQuery clone() => GetLVDetailedQuantityQuery()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  GetLVDetailedQuantityQuery copyWith(void Function(GetLVDetailedQuantityQuery) updates) => super.copyWith((message) => updates(message as GetLVDetailedQuantityQuery)) as GetLVDetailedQuantityQuery;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

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

  @$pb.TagNumber(2)
  $1.QueryEntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($1.QueryEntityID value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $1.QueryEntityID ensureID() => $_ensure(1);

  @$pb.TagNumber(3)
  $core.String get lVBranchID => $_getSZ(2);
  @$pb.TagNumber(3)
  set lVBranchID($core.String value) => $_setString(2, value);
  @$pb.TagNumber(3)
  $core.bool hasLVBranchID() => $_has(2);
  @$pb.TagNumber(3)
  void clearLVBranchID() => $_clearField(3);

  @$pb.TagNumber(4)
  $core.double get quantityInbaseLv => $_getN(3);
  @$pb.TagNumber(4)
  set quantityInbaseLv($core.double value) => $_setFloat(3, value);
  @$pb.TagNumber(4)
  $core.bool hasQuantityInbaseLv() => $_has(3);
  @$pb.TagNumber(4)
  void clearQuantityInbaseLv() => $_clearField(4);

  @$pb.TagNumber(5)
  ItemQueryOptions get options => $_getN(4);
  @$pb.TagNumber(5)
  set options(ItemQueryOptions value) => $_setField(5, value);
  @$pb.TagNumber(5)
  $core.bool hasOptions() => $_has(4);
  @$pb.TagNumber(5)
  void clearOptions() => $_clearField(5);
  @$pb.TagNumber(5)
  ItemQueryOptions ensureOptions() => $_ensure(4);
}

class GetLVDetailedQuantityResult extends $pb.GeneratedMessage {
  factory GetLVDetailedQuantityResult({
    $core.Iterable<$3.LVDetailedQuantity>? lVDetailedQuantity,
  }) {
    final result = create();
    if (lVDetailedQuantity != null) result.lVDetailedQuantity.addAll(lVDetailedQuantity);
    return result;
  }

  GetLVDetailedQuantityResult._();

  factory GetLVDetailedQuantityResult.fromBuffer($core.List<$core.int> data, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(data, registry);
  factory GetLVDetailedQuantityResult.fromJson($core.String json, [$pb.ExtensionRegistry registry = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(json, registry);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'GetLVDetailedQuantityResult', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..pc<$3.LVDetailedQuantity>(1, _omitFieldNames ? '' : 'LVDetailedQuantity', $pb.PbFieldType.PM, protoName: 'LVDetailedQuantity', subBuilder: $3.LVDetailedQuantity.create)
    ..hasRequiredFields = false
  ;

  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  GetLVDetailedQuantityResult clone() => GetLVDetailedQuantityResult()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  GetLVDetailedQuantityResult copyWith(void Function(GetLVDetailedQuantityResult) updates) => super.copyWith((message) => updates(message as GetLVDetailedQuantityResult)) as GetLVDetailedQuantityResult;

  @$core.override
  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $pb.PbList<$3.LVDetailedQuantity> get lVDetailedQuantity => $_getList(0);
}


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