//
//  Generated code. Do not modify.
//  source: order.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 'actor.pb.dart' as $67;
import 'item.pb.dart' as $77;
import 'partner.pb.dart' as $66;
import 'shared.pb.dart' as $3;
import 'tradeShared.pb.dart' as $75;

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

class OrderPayload extends $pb.GeneratedMessage {
  factory OrderPayload({
    $3.DateTime? creationDateTime,
    $75.ReferencedID? parentOrder,
    $core.String? languageCodeISO6391,
    $core.Iterable<$3.MetadataElement>? metaData,
    $75.TradeTier? buyer,
    $75.TradeTier? seller,
    $75.TradeTier? shipFrom,
    $75.TradeTier? shipTo,
    $75.TradeTier? carrier,
    $75.OrderRequestedMilestones? requestedMilestones,
    $core.Iterable<$75.OrderLine>? lines,
  @$core.Deprecated('This field is deprecated.')
    $75.ETA? estimatedTimeArrival,
    $3.DateTime? actualCompletionDateTime,
    $core.Iterable<$75.ExecutionflowSummary>? executionflowSummary,
    $core.String? carrierService,
    $75.OrderStatusStruct? status,
    $core.Iterable<$3.AttachmentSummary>? attachments,
    $core.int? attachmentNumber,
    $core.Iterable<$3.ClaimSummary>? claims,
    $core.int? claimNumber,
    $core.Iterable<$75.ETAbyExecutionflow>? executionflowETAs,
    $75.ETA? orderETA,
  }) {
    final $result = create();
    if (creationDateTime != null) {
      $result.creationDateTime = creationDateTime;
    }
    if (parentOrder != null) {
      $result.parentOrder = parentOrder;
    }
    if (languageCodeISO6391 != null) {
      $result.languageCodeISO6391 = languageCodeISO6391;
    }
    if (metaData != null) {
      $result.metaData.addAll(metaData);
    }
    if (buyer != null) {
      $result.buyer = buyer;
    }
    if (seller != null) {
      $result.seller = seller;
    }
    if (shipFrom != null) {
      $result.shipFrom = shipFrom;
    }
    if (shipTo != null) {
      $result.shipTo = shipTo;
    }
    if (carrier != null) {
      $result.carrier = carrier;
    }
    if (requestedMilestones != null) {
      $result.requestedMilestones = requestedMilestones;
    }
    if (lines != null) {
      $result.lines.addAll(lines);
    }
    if (estimatedTimeArrival != null) {
      // ignore: deprecated_member_use_from_same_package
      $result.estimatedTimeArrival = estimatedTimeArrival;
    }
    if (actualCompletionDateTime != null) {
      $result.actualCompletionDateTime = actualCompletionDateTime;
    }
    if (executionflowSummary != null) {
      $result.executionflowSummary.addAll(executionflowSummary);
    }
    if (carrierService != null) {
      $result.carrierService = carrierService;
    }
    if (status != null) {
      $result.status = status;
    }
    if (attachments != null) {
      $result.attachments.addAll(attachments);
    }
    if (attachmentNumber != null) {
      $result.attachmentNumber = attachmentNumber;
    }
    if (claims != null) {
      $result.claims.addAll(claims);
    }
    if (claimNumber != null) {
      $result.claimNumber = claimNumber;
    }
    if (executionflowETAs != null) {
      $result.executionflowETAs.addAll(executionflowETAs);
    }
    if (orderETA != null) {
      $result.orderETA = orderETA;
    }
    return $result;
  }
  OrderPayload._() : super();
  factory OrderPayload.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory OrderPayload.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'OrderPayload', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$3.DateTime>(1, _omitFieldNames ? '' : 'CreationDateTime', protoName: 'CreationDateTime', subBuilder: $3.DateTime.create)
    ..aOM<$75.ReferencedID>(2, _omitFieldNames ? '' : 'ParentOrder', protoName: 'ParentOrder', subBuilder: $75.ReferencedID.create)
    ..aOS(3, _omitFieldNames ? '' : 'LanguageCodeISO6391', protoName: 'LanguageCodeISO6391')
    ..pc<$3.MetadataElement>(4, _omitFieldNames ? '' : 'MetaData', $pb.PbFieldType.PM, protoName: 'MetaData', subBuilder: $3.MetadataElement.create)
    ..aOM<$75.TradeTier>(5, _omitFieldNames ? '' : 'Buyer', protoName: 'Buyer', subBuilder: $75.TradeTier.create)
    ..aOM<$75.TradeTier>(6, _omitFieldNames ? '' : 'Seller', protoName: 'Seller', subBuilder: $75.TradeTier.create)
    ..aOM<$75.TradeTier>(7, _omitFieldNames ? '' : 'ShipFrom', protoName: 'ShipFrom', subBuilder: $75.TradeTier.create)
    ..aOM<$75.TradeTier>(8, _omitFieldNames ? '' : 'ShipTo', protoName: 'ShipTo', subBuilder: $75.TradeTier.create)
    ..aOM<$75.TradeTier>(9, _omitFieldNames ? '' : 'Carrier', protoName: 'Carrier', subBuilder: $75.TradeTier.create)
    ..aOM<$75.OrderRequestedMilestones>(10, _omitFieldNames ? '' : 'RequestedMilestones', protoName: 'RequestedMilestones', subBuilder: $75.OrderRequestedMilestones.create)
    ..pc<$75.OrderLine>(11, _omitFieldNames ? '' : 'Lines', $pb.PbFieldType.PM, protoName: 'Lines', subBuilder: $75.OrderLine.create)
    ..aOM<$75.ETA>(12, _omitFieldNames ? '' : 'EstimatedTimeArrival', protoName: 'EstimatedTimeArrival', subBuilder: $75.ETA.create)
    ..aOM<$3.DateTime>(13, _omitFieldNames ? '' : 'ActualCompletionDateTime', protoName: 'ActualCompletionDateTime', subBuilder: $3.DateTime.create)
    ..pc<$75.ExecutionflowSummary>(14, _omitFieldNames ? '' : 'ExecutionflowSummary', $pb.PbFieldType.PM, protoName: 'ExecutionflowSummary', subBuilder: $75.ExecutionflowSummary.create)
    ..aOS(16, _omitFieldNames ? '' : 'CarrierService', protoName: 'CarrierService')
    ..aOM<$75.OrderStatusStruct>(17, _omitFieldNames ? '' : 'Status', protoName: 'Status', subBuilder: $75.OrderStatusStruct.create)
    ..pc<$3.AttachmentSummary>(18, _omitFieldNames ? '' : 'Attachments', $pb.PbFieldType.PM, protoName: 'Attachments', subBuilder: $3.AttachmentSummary.create)
    ..a<$core.int>(19, _omitFieldNames ? '' : 'AttachmentNumber', $pb.PbFieldType.O3, protoName: 'AttachmentNumber')
    ..pc<$3.ClaimSummary>(20, _omitFieldNames ? '' : 'Claims', $pb.PbFieldType.PM, protoName: 'Claims', subBuilder: $3.ClaimSummary.create)
    ..a<$core.int>(21, _omitFieldNames ? '' : 'ClaimNumber', $pb.PbFieldType.O3, protoName: 'ClaimNumber')
    ..pc<$75.ETAbyExecutionflow>(22, _omitFieldNames ? '' : 'ExecutionflowETAs', $pb.PbFieldType.PM, protoName: 'ExecutionflowETAs', subBuilder: $75.ETAbyExecutionflow.create)
    ..aOM<$75.ETA>(23, _omitFieldNames ? '' : 'OrderETA', protoName: 'OrderETA', subBuilder: $75.ETA.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')
  OrderPayload clone() => OrderPayload()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  OrderPayload copyWith(void Function(OrderPayload) updates) => super.copyWith((message) => updates(message as OrderPayload)) as OrderPayload;

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.DateTime get creationDateTime => $_getN(0);
  @$pb.TagNumber(1)
  set creationDateTime($3.DateTime v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCreationDateTime() => $_has(0);
  @$pb.TagNumber(1)
  void clearCreationDateTime() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.DateTime ensureCreationDateTime() => $_ensure(0);

  @$pb.TagNumber(2)
  $75.ReferencedID get parentOrder => $_getN(1);
  @$pb.TagNumber(2)
  set parentOrder($75.ReferencedID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasParentOrder() => $_has(1);
  @$pb.TagNumber(2)
  void clearParentOrder() => $_clearField(2);
  @$pb.TagNumber(2)
  $75.ReferencedID ensureParentOrder() => $_ensure(1);

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

  /// Metadata are characteristics specific to the project. They can be of several data form (string, integer, float, boolean or timestamp)
  @$pb.TagNumber(4)
  $pb.PbList<$3.MetadataElement> get metaData => $_getList(3);

  @$pb.TagNumber(5)
  $75.TradeTier get buyer => $_getN(4);
  @$pb.TagNumber(5)
  set buyer($75.TradeTier v) { $_setField(5, v); }
  @$pb.TagNumber(5)
  $core.bool hasBuyer() => $_has(4);
  @$pb.TagNumber(5)
  void clearBuyer() => $_clearField(5);
  @$pb.TagNumber(5)
  $75.TradeTier ensureBuyer() => $_ensure(4);

  @$pb.TagNumber(6)
  $75.TradeTier get seller => $_getN(5);
  @$pb.TagNumber(6)
  set seller($75.TradeTier v) { $_setField(6, v); }
  @$pb.TagNumber(6)
  $core.bool hasSeller() => $_has(5);
  @$pb.TagNumber(6)
  void clearSeller() => $_clearField(6);
  @$pb.TagNumber(6)
  $75.TradeTier ensureSeller() => $_ensure(5);

  /// Where to ship the order from
  @$pb.TagNumber(7)
  $75.TradeTier get shipFrom => $_getN(6);
  @$pb.TagNumber(7)
  set shipFrom($75.TradeTier v) { $_setField(7, v); }
  @$pb.TagNumber(7)
  $core.bool hasShipFrom() => $_has(6);
  @$pb.TagNumber(7)
  void clearShipFrom() => $_clearField(7);
  @$pb.TagNumber(7)
  $75.TradeTier ensureShipFrom() => $_ensure(6);

  /// Where to ship the order to
  @$pb.TagNumber(8)
  $75.TradeTier get shipTo => $_getN(7);
  @$pb.TagNumber(8)
  set shipTo($75.TradeTier v) { $_setField(8, v); }
  @$pb.TagNumber(8)
  $core.bool hasShipTo() => $_has(7);
  @$pb.TagNumber(8)
  void clearShipTo() => $_clearField(8);
  @$pb.TagNumber(8)
  $75.TradeTier ensureShipTo() => $_ensure(7);

  /// Definition of the order carrier
  @$pb.TagNumber(9)
  $75.TradeTier get carrier => $_getN(8);
  @$pb.TagNumber(9)
  set carrier($75.TradeTier v) { $_setField(9, v); }
  @$pb.TagNumber(9)
  $core.bool hasCarrier() => $_has(8);
  @$pb.TagNumber(9)
  void clearCarrier() => $_clearField(9);
  @$pb.TagNumber(9)
  $75.TradeTier ensureCarrier() => $_ensure(8);

  @$pb.TagNumber(10)
  $75.OrderRequestedMilestones get requestedMilestones => $_getN(9);
  @$pb.TagNumber(10)
  set requestedMilestones($75.OrderRequestedMilestones v) { $_setField(10, v); }
  @$pb.TagNumber(10)
  $core.bool hasRequestedMilestones() => $_has(9);
  @$pb.TagNumber(10)
  void clearRequestedMilestones() => $_clearField(10);
  @$pb.TagNumber(10)
  $75.OrderRequestedMilestones ensureRequestedMilestones() => $_ensure(9);

  /// Lines of the order
  @$pb.TagNumber(11)
  $pb.PbList<$75.OrderLine> get lines => $_getList(10);

  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(12)
  $75.ETA get estimatedTimeArrival => $_getN(11);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(12)
  set estimatedTimeArrival($75.ETA v) { $_setField(12, v); }
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(12)
  $core.bool hasEstimatedTimeArrival() => $_has(11);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(12)
  void clearEstimatedTimeArrival() => $_clearField(12);
  @$core.Deprecated('This field is deprecated.')
  @$pb.TagNumber(12)
  $75.ETA ensureEstimatedTimeArrival() => $_ensure(11);

  @$pb.TagNumber(13)
  $3.DateTime get actualCompletionDateTime => $_getN(12);
  @$pb.TagNumber(13)
  set actualCompletionDateTime($3.DateTime v) { $_setField(13, v); }
  @$pb.TagNumber(13)
  $core.bool hasActualCompletionDateTime() => $_has(12);
  @$pb.TagNumber(13)
  void clearActualCompletionDateTime() => $_clearField(13);
  @$pb.TagNumber(13)
  $3.DateTime ensureActualCompletionDateTime() => $_ensure(12);

  @$pb.TagNumber(14)
  $pb.PbList<$75.ExecutionflowSummary> get executionflowSummary => $_getList(13);

  /// Type of carrier service
  @$pb.TagNumber(16)
  $core.String get carrierService => $_getSZ(14);
  @$pb.TagNumber(16)
  set carrierService($core.String v) { $_setString(14, v); }
  @$pb.TagNumber(16)
  $core.bool hasCarrierService() => $_has(14);
  @$pb.TagNumber(16)
  void clearCarrierService() => $_clearField(16);

  @$pb.TagNumber(17)
  $75.OrderStatusStruct get status => $_getN(15);
  @$pb.TagNumber(17)
  set status($75.OrderStatusStruct v) { $_setField(17, v); }
  @$pb.TagNumber(17)
  $core.bool hasStatus() => $_has(15);
  @$pb.TagNumber(17)
  void clearStatus() => $_clearField(17);
  @$pb.TagNumber(17)
  $75.OrderStatusStruct ensureStatus() => $_ensure(15);

  @$pb.TagNumber(18)
  $pb.PbList<$3.AttachmentSummary> get attachments => $_getList(16);

  @$pb.TagNumber(19)
  $core.int get attachmentNumber => $_getIZ(17);
  @$pb.TagNumber(19)
  set attachmentNumber($core.int v) { $_setSignedInt32(17, v); }
  @$pb.TagNumber(19)
  $core.bool hasAttachmentNumber() => $_has(17);
  @$pb.TagNumber(19)
  void clearAttachmentNumber() => $_clearField(19);

  @$pb.TagNumber(20)
  $pb.PbList<$3.ClaimSummary> get claims => $_getList(18);

  @$pb.TagNumber(21)
  $core.int get claimNumber => $_getIZ(19);
  @$pb.TagNumber(21)
  set claimNumber($core.int v) { $_setSignedInt32(19, v); }
  @$pb.TagNumber(21)
  $core.bool hasClaimNumber() => $_has(19);
  @$pb.TagNumber(21)
  void clearClaimNumber() => $_clearField(21);

  @$pb.TagNumber(22)
  $pb.PbList<$75.ETAbyExecutionflow> get executionflowETAs => $_getList(20);

  @$pb.TagNumber(23)
  $75.ETA get orderETA => $_getN(21);
  @$pb.TagNumber(23)
  set orderETA($75.ETA v) { $_setField(23, v); }
  @$pb.TagNumber(23)
  $core.bool hasOrderETA() => $_has(21);
  @$pb.TagNumber(23)
  void clearOrderETA() => $_clearField(23);
  @$pb.TagNumber(23)
  $75.ETA ensureOrderETA() => $_ensure(21);
}

/// Order entity
class Order extends $pb.GeneratedMessage {
  factory Order({
    $3.EventHeader? lastEventHeader,
    $3.EntityID? iD,
    OrderPayload? payload,
  }) {
    final $result = create();
    if (lastEventHeader != null) {
      $result.lastEventHeader = lastEventHeader;
    }
    if (iD != null) {
      $result.iD = iD;
    }
    if (payload != null) {
      $result.payload = payload;
    }
    return $result;
  }
  Order._() : super();
  factory Order.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory Order.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  $3.EventHeader get lastEventHeader => $_getN(0);
  @$pb.TagNumber(1)
  set lastEventHeader($3.EventHeader v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasLastEventHeader() => $_has(0);
  @$pb.TagNumber(1)
  void clearLastEventHeader() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.EventHeader ensureLastEventHeader() => $_ensure(0);

  @$pb.TagNumber(2)
  $3.EntityID get iD => $_getN(1);
  @$pb.TagNumber(2)
  set iD($3.EntityID v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasID() => $_has(1);
  @$pb.TagNumber(2)
  void clearID() => $_clearField(2);
  @$pb.TagNumber(2)
  $3.EntityID ensureID() => $_ensure(1);

  @$pb.TagNumber(3)
  OrderPayload get payload => $_getN(2);
  @$pb.TagNumber(3)
  set payload(OrderPayload v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasPayload() => $_has(2);
  @$pb.TagNumber(3)
  void clearPayload() => $_clearField(3);
  @$pb.TagNumber(3)
  OrderPayload ensurePayload() => $_ensure(2);
}

enum OrderEnrichment_Content {
  item, 
  actor, 
  partner, 
  notSet
}

/// Order Enrichment
class OrderEnrichment extends $pb.GeneratedMessage {
  factory OrderEnrichment({
    $core.String? parentEventID,
    $core.String? entityName,
    $core.String? entityRefID,
    $core.String? refFilter,
    $core.String? mergePath,
    $core.String? project,
    $core.String? parentEntityName,
    $core.String? parentEntityID,
    $77.ItemPayload? item,
    $67.ActorPayload? actor,
    $66.PartnerPayload? partner,
  }) {
    final $result = create();
    if (parentEventID != null) {
      $result.parentEventID = parentEventID;
    }
    if (entityName != null) {
      $result.entityName = entityName;
    }
    if (entityRefID != null) {
      $result.entityRefID = entityRefID;
    }
    if (refFilter != null) {
      $result.refFilter = refFilter;
    }
    if (mergePath != null) {
      $result.mergePath = mergePath;
    }
    if (project != null) {
      $result.project = project;
    }
    if (parentEntityName != null) {
      $result.parentEntityName = parentEntityName;
    }
    if (parentEntityID != null) {
      $result.parentEntityID = parentEntityID;
    }
    if (item != null) {
      $result.item = item;
    }
    if (actor != null) {
      $result.actor = actor;
    }
    if (partner != null) {
      $result.partner = partner;
    }
    return $result;
  }
  OrderEnrichment._() : super();
  factory OrderEnrichment.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory OrderEnrichment.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  static const $core.Map<$core.int, OrderEnrichment_Content> _OrderEnrichment_ContentByTag = {
    10 : OrderEnrichment_Content.item,
    11 : OrderEnrichment_Content.actor,
    12 : OrderEnrichment_Content.partner,
    0 : OrderEnrichment_Content.notSet
  };
  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'OrderEnrichment', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..oo(0, [10, 11, 12])
    ..aOS(1, _omitFieldNames ? '' : 'ParentEventID', protoName: 'ParentEventID')
    ..aOS(2, _omitFieldNames ? '' : 'EntityName', protoName: 'EntityName')
    ..aOS(3, _omitFieldNames ? '' : 'EntityRefID', protoName: 'EntityRefID')
    ..aOS(4, _omitFieldNames ? '' : 'RefFilter', protoName: 'RefFilter')
    ..aOS(5, _omitFieldNames ? '' : 'MergePath', protoName: 'MergePath')
    ..aOS(6, _omitFieldNames ? '' : 'Project', protoName: 'Project')
    ..aOS(7, _omitFieldNames ? '' : 'ParentEntityName', protoName: 'ParentEntityName')
    ..aOS(8, _omitFieldNames ? '' : 'ParentEntityID', protoName: 'ParentEntityID')
    ..aOM<$77.ItemPayload>(10, _omitFieldNames ? '' : 'Item', protoName: 'Item', subBuilder: $77.ItemPayload.create)
    ..aOM<$67.ActorPayload>(11, _omitFieldNames ? '' : 'Actor', protoName: 'Actor', subBuilder: $67.ActorPayload.create)
    ..aOM<$66.PartnerPayload>(12, _omitFieldNames ? '' : 'Partner', protoName: 'Partner', subBuilder: $66.PartnerPayload.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')
  OrderEnrichment clone() => OrderEnrichment()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  OrderEnrichment copyWith(void Function(OrderEnrichment) updates) => super.copyWith((message) => updates(message as OrderEnrichment)) as OrderEnrichment;

  $pb.BuilderInfo get info_ => _i;

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

  OrderEnrichment_Content whichContent() => _OrderEnrichment_ContentByTag[$_whichOneof(0)]!;
  void clearContent() => $_clearField($_whichOneof(0));

  @$pb.TagNumber(1)
  $core.String get parentEventID => $_getSZ(0);
  @$pb.TagNumber(1)
  set parentEventID($core.String v) { $_setString(0, v); }
  @$pb.TagNumber(1)
  $core.bool hasParentEventID() => $_has(0);
  @$pb.TagNumber(1)
  void clearParentEventID() => $_clearField(1);

  @$pb.TagNumber(2)
  $core.String get entityName => $_getSZ(1);
  @$pb.TagNumber(2)
  set entityName($core.String v) { $_setString(1, v); }
  @$pb.TagNumber(2)
  $core.bool hasEntityName() => $_has(1);
  @$pb.TagNumber(2)
  void clearEntityName() => $_clearField(2);

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

  @$pb.TagNumber(4)
  $core.String get refFilter => $_getSZ(3);
  @$pb.TagNumber(4)
  set refFilter($core.String v) { $_setString(3, v); }
  @$pb.TagNumber(4)
  $core.bool hasRefFilter() => $_has(3);
  @$pb.TagNumber(4)
  void clearRefFilter() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get mergePath => $_getSZ(4);
  @$pb.TagNumber(5)
  set mergePath($core.String v) { $_setString(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasMergePath() => $_has(4);
  @$pb.TagNumber(5)
  void clearMergePath() => $_clearField(5);

  @$pb.TagNumber(6)
  $core.String get project => $_getSZ(5);
  @$pb.TagNumber(6)
  set project($core.String v) { $_setString(5, v); }
  @$pb.TagNumber(6)
  $core.bool hasProject() => $_has(5);
  @$pb.TagNumber(6)
  void clearProject() => $_clearField(6);

  @$pb.TagNumber(7)
  $core.String get parentEntityName => $_getSZ(6);
  @$pb.TagNumber(7)
  set parentEntityName($core.String v) { $_setString(6, v); }
  @$pb.TagNumber(7)
  $core.bool hasParentEntityName() => $_has(6);
  @$pb.TagNumber(7)
  void clearParentEntityName() => $_clearField(7);

  @$pb.TagNumber(8)
  $core.String get parentEntityID => $_getSZ(7);
  @$pb.TagNumber(8)
  set parentEntityID($core.String v) { $_setString(7, v); }
  @$pb.TagNumber(8)
  $core.bool hasParentEntityID() => $_has(7);
  @$pb.TagNumber(8)
  void clearParentEntityID() => $_clearField(8);

  @$pb.TagNumber(10)
  $77.ItemPayload get item => $_getN(8);
  @$pb.TagNumber(10)
  set item($77.ItemPayload v) { $_setField(10, v); }
  @$pb.TagNumber(10)
  $core.bool hasItem() => $_has(8);
  @$pb.TagNumber(10)
  void clearItem() => $_clearField(10);
  @$pb.TagNumber(10)
  $77.ItemPayload ensureItem() => $_ensure(8);

  @$pb.TagNumber(11)
  $67.ActorPayload get actor => $_getN(9);
  @$pb.TagNumber(11)
  set actor($67.ActorPayload v) { $_setField(11, v); }
  @$pb.TagNumber(11)
  $core.bool hasActor() => $_has(9);
  @$pb.TagNumber(11)
  void clearActor() => $_clearField(11);
  @$pb.TagNumber(11)
  $67.ActorPayload ensureActor() => $_ensure(9);

  @$pb.TagNumber(12)
  $66.PartnerPayload get partner => $_getN(10);
  @$pb.TagNumber(12)
  set partner($66.PartnerPayload v) { $_setField(12, v); }
  @$pb.TagNumber(12)
  $core.bool hasPartner() => $_has(10);
  @$pb.TagNumber(12)
  void clearPartner() => $_clearField(12);
  @$pb.TagNumber(12)
  $66.PartnerPayload ensurePartner() => $_ensure(10);
}

class OrderTriplet extends $pb.GeneratedMessage {
  factory OrderTriplet({
    Order? current,
    Order? previous,
    Order? lastEvent,
  }) {
    final $result = create();
    if (current != null) {
      $result.current = current;
    }
    if (previous != null) {
      $result.previous = previous;
    }
    if (lastEvent != null) {
      $result.lastEvent = lastEvent;
    }
    return $result;
  }
  OrderTriplet._() : super();
  factory OrderTriplet.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory OrderTriplet.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

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

  @$pb.TagNumber(1)
  Order get current => $_getN(0);
  @$pb.TagNumber(1)
  set current(Order v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasCurrent() => $_has(0);
  @$pb.TagNumber(1)
  void clearCurrent() => $_clearField(1);
  @$pb.TagNumber(1)
  Order ensureCurrent() => $_ensure(0);

  @$pb.TagNumber(2)
  Order get previous => $_getN(1);
  @$pb.TagNumber(2)
  set previous(Order v) { $_setField(2, v); }
  @$pb.TagNumber(2)
  $core.bool hasPrevious() => $_has(1);
  @$pb.TagNumber(2)
  void clearPrevious() => $_clearField(2);
  @$pb.TagNumber(2)
  Order ensurePrevious() => $_ensure(1);

  @$pb.TagNumber(3)
  Order get lastEvent => $_getN(2);
  @$pb.TagNumber(3)
  set lastEvent(Order v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasLastEvent() => $_has(2);
  @$pb.TagNumber(3)
  void clearLastEvent() => $_clearField(3);
  @$pb.TagNumber(3)
  Order ensureLastEvent() => $_ensure(2);
}


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