// This is a generated file - do not edit.
//
// Generated from movementQuery.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 'movement.pb.dart' as $3;
import 'shared.pb.dart' as $1;

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

class MovementByIdQuery extends $pb.GeneratedMessage {
  factory MovementByIdQuery({
    $1.QueryProjectHeader? header,
    $core.Iterable<$1.QueryEntityID>? iDs,
    MovementQueryOptions? 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;
  }

  MovementByIdQuery._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementByIdQuery', 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<MovementQueryOptions>(3, _omitFieldNames ? '' : 'Options', protoName: 'Options', subBuilder: MovementQueryOptions.create)
    ..hasRequiredFields = false
  ;

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

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

  @$core.pragma('dart2js:noInline')
  static MovementByIdQuery create() => MovementByIdQuery._();
  @$core.override
  MovementByIdQuery createEmptyInstance() => create();
  static $pb.PbList<MovementByIdQuery> createRepeated() => $pb.PbList<MovementByIdQuery>();
  @$core.pragma('dart2js:noInline')
  static MovementByIdQuery getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MovementByIdQuery>(create);
  static MovementByIdQuery? _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)
  MovementQueryOptions get options => $_getN(2);
  @$pb.TagNumber(3)
  set options(MovementQueryOptions value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasOptions() => $_has(2);
  @$pb.TagNumber(3)
  void clearOptions() => $_clearField(3);
  @$pb.TagNumber(3)
  MovementQueryOptions ensureOptions() => $_ensure(2);
}

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

  MovementByIdResult._();

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

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

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

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

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

class MovementByFilterQuery extends $pb.GeneratedMessage {
  factory MovementByFilterQuery({
    $1.QueryProjectHeader? header,
    $core.String? limitFilter,
    $core.String? queryContext,
    $core.Iterable<$1.BlockFilter>? blockFilters,
    MovementQueryOptions? 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;
  }

  MovementByFilterQuery._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementByFilterQuery', 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>(7, _omitFieldNames ? '' : 'BlockFilters', $pb.PbFieldType.PM, protoName: 'BlockFilters', subBuilder: $1.BlockFilter.create)
    ..aOM<MovementQueryOptions>(8, _omitFieldNames ? '' : 'Options', protoName: 'Options', subBuilder: MovementQueryOptions.create)
    ..e<$1.EntityType>(9, _omitFieldNames ? '' : 'UsageContextEntity', $pb.PbFieldType.OE, protoName: 'UsageContextEntity', defaultOrMaker: $1.EntityType.ENTITY_TYPE_UNKNOWN, valueOf: $1.EntityType.valueOf, enumValues: $1.EntityType.values)
    ..aOS(10, _omitFieldNames ? '' : 'UsageContextPath', protoName: 'UsageContextPath')
    ..hasRequiredFields = false
  ;

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

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

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

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

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

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

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

  MovementByFilterResult._();

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

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

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

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

  @$core.pragma('dart2js:noInline')
  static MovementByFilterResult create() => MovementByFilterResult._();
  @$core.override
  MovementByFilterResult createEmptyInstance() => create();
  static $pb.PbList<MovementByFilterResult> createRepeated() => $pb.PbList<MovementByFilterResult>();
  @$core.pragma('dart2js:noInline')
  static MovementByFilterResult getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MovementByFilterResult>(create);
  static MovementByFilterResult? _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<$3.Movement> 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 MovementQueryOptions extends $pb.GeneratedMessage {
  factory MovementQueryOptions({
    $core.Iterable<$core.String>? only,
  }) {
    final result = create();
    if (only != null) result.only.addAll(only);
    return result;
  }

  MovementQueryOptions._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementQueryOptions', 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.')
  MovementQueryOptions clone() => MovementQueryOptions()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  MovementQueryOptions copyWith(void Function(MovementQueryOptions) updates) => super.copyWith((message) => updates(message as MovementQueryOptions)) as MovementQueryOptions;

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

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

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

class MovementByMatchQuery extends $pb.GeneratedMessage {
  factory MovementByMatchQuery({
    $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;
  }

  MovementByMatchQuery._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementByMatchQuery', 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.')
  MovementByMatchQuery clone() => MovementByMatchQuery()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  MovementByMatchQuery copyWith(void Function(MovementByMatchQuery) updates) => super.copyWith((message) => updates(message as MovementByMatchQuery)) as MovementByMatchQuery;

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

  @$core.pragma('dart2js:noInline')
  static MovementByMatchQuery create() => MovementByMatchQuery._();
  @$core.override
  MovementByMatchQuery createEmptyInstance() => create();
  static $pb.PbList<MovementByMatchQuery> createRepeated() => $pb.PbList<MovementByMatchQuery>();
  @$core.pragma('dart2js:noInline')
  static MovementByMatchQuery getDefault() => _defaultInstance ??= $pb.GeneratedMessage.$_defaultFor<MovementByMatchQuery>(create);
  static MovementByMatchQuery? _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 MovementByMatchResult extends $pb.GeneratedMessage {
  factory MovementByMatchResult({
    $core.Iterable<$1.MatchFieldResult>? matchResults,
  }) {
    final result = create();
    if (matchResults != null) result.matchResults.addAll(matchResults);
    return result;
  }

  MovementByMatchResult._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementByMatchResult', 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.')
  MovementByMatchResult clone() => MovementByMatchResult()..mergeFromMessage(this);
  @$core.Deprecated('See https://github.com/google/protobuf.dart/issues/998.')
  MovementByMatchResult copyWith(void Function(MovementByMatchResult) updates) => super.copyWith((message) => updates(message as MovementByMatchResult)) as MovementByMatchResult;

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

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

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

class MovementByOperationReferenceQuery extends $pb.GeneratedMessage {
  factory MovementByOperationReferenceQuery({
    $1.QueryProjectHeader? header,
    $core.Iterable<$core.String>? operationReferences,
    MovementQueryOptions? options,
  }) {
    final result = create();
    if (header != null) result.header = header;
    if (operationReferences != null) result.operationReferences.addAll(operationReferences);
    if (options != null) result.options = options;
    return result;
  }

  MovementByOperationReferenceQuery._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'MovementByOperationReferenceQuery', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$1.QueryProjectHeader>(1, _omitFieldNames ? '' : 'Header', protoName: 'Header', subBuilder: $1.QueryProjectHeader.create)
    ..pPS(2, _omitFieldNames ? '' : 'OperationReferences', protoName: 'OperationReferences')
    ..aOM<MovementQueryOptions>(3, _omitFieldNames ? '' : 'Options', protoName: 'Options', subBuilder: MovementQueryOptions.create)
    ..hasRequiredFields = false
  ;

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

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

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

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

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

  MovementByOperationReferenceResult._();

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

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

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

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

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


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