// This is a generated file - do not edit.
//
// Generated from transportShared.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 'repositoryShared.pb.dart' as $1;
import 'shared.pb.dart' as $0;
import 'tradeShared.pb.dart' as $2;
import 'transportShared.pbenum.dart';

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

export 'transportShared.pbenum.dart';

class TrackingStatus extends $pb.GeneratedMessage {
  factory TrackingStatus({
    TrackingStatusCode? statusCode,
    $core.String? date,
    $0.DateTime? actualDate,
  }) {
    final result = create();
    if (statusCode != null) result.statusCode = statusCode;
    if (date != null) result.date = date;
    if (actualDate != null) result.actualDate = actualDate;
    return result;
  }

  TrackingStatus._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackingStatus', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..e<TrackingStatusCode>(1, _omitFieldNames ? '' : 'StatusCode', $pb.PbFieldType.OE, protoName: 'StatusCode', defaultOrMaker: TrackingStatusCode.TRACKINGSTATUS_0000_UNKNOWN, valueOf: TrackingStatusCode.valueOf, enumValues: TrackingStatusCode.values)
    ..aOS(2, _omitFieldNames ? '' : 'Date', protoName: 'Date')
    ..aOM<$0.DateTime>(3, _omitFieldNames ? '' : 'ActualDate', protoName: 'ActualDate', subBuilder: $0.DateTime.create)
    ..hasRequiredFields = false
  ;

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

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

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

  @$pb.TagNumber(1)
  TrackingStatusCode get statusCode => $_getN(0);
  @$pb.TagNumber(1)
  set statusCode(TrackingStatusCode value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasStatusCode() => $_has(0);
  @$pb.TagNumber(1)
  void clearStatusCode() => $_clearField(1);

  /// UTC date/time in <a href='https://en.wikipedia.org/wiki/ISO_8601'>ISO 8601</a> format
  @$pb.TagNumber(2)
  $core.String get date => $_getSZ(1);
  @$pb.TagNumber(2)
  set date($core.String value) => $_setString(1, value);
  @$pb.TagNumber(2)
  $core.bool hasDate() => $_has(1);
  @$pb.TagNumber(2)
  void clearDate() => $_clearField(2);

  /// Status effective date. Set by the event's RefDate that triggered the status change.
  @$pb.TagNumber(3)
  $0.DateTime get actualDate => $_getN(2);
  @$pb.TagNumber(3)
  set actualDate($0.DateTime value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasActualDate() => $_has(2);
  @$pb.TagNumber(3)
  void clearActualDate() => $_clearField(3);
  @$pb.TagNumber(3)
  $0.DateTime ensureActualDate() => $_ensure(2);
}

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

  TrackingStatusStruct._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackingStatusStruct', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<TrackingStatus>(1, _omitFieldNames ? '' : 'Current', protoName: 'Current', subBuilder: TrackingStatus.create)
    ..pc<TrackingStatus>(2, _omitFieldNames ? '' : 'History', $pb.PbFieldType.PM, protoName: 'History', subBuilder: TrackingStatus.create)
    ..aOS(3, _omitFieldNames ? '' : 'CreationDate', protoName: 'CreationDate')
    ..hasRequiredFields = false
  ;

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

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

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

  /// Current status of the Handlingunit entity
  @$pb.TagNumber(1)
  TrackingStatus get current => $_getN(0);
  @$pb.TagNumber(1)
  set current(TrackingStatus value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasCurrent() => $_has(0);
  @$pb.TagNumber(1)
  void clearCurrent() => $_clearField(1);
  @$pb.TagNumber(1)
  TrackingStatus ensureCurrent() => $_ensure(0);

  /// List of all status history of the Handlingunit entity
  @$pb.TagNumber(2)
  $pb.PbList<TrackingStatus> get history => $_getList(1);

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

class TrackingSummary extends $pb.GeneratedMessage {
  factory TrackingSummary({
    $core.String? trackingID,
    TrackingStatus? status,
    $core.String? trackedHandlingunitID,
    $core.String? trackingURL,
    $core.String? nextTrackingID,
    $1.GeographicalCoordinates? location,
    $core.String? reason,
    $core.String? plusCode,
    $2.TradeTier? hUCarrier,
    $2.TradeTier? hUShipFrom,
    $2.TradeTier? hUShipTo,
  }) {
    final result = create();
    if (trackingID != null) result.trackingID = trackingID;
    if (status != null) result.status = status;
    if (trackedHandlingunitID != null) result.trackedHandlingunitID = trackedHandlingunitID;
    if (trackingURL != null) result.trackingURL = trackingURL;
    if (nextTrackingID != null) result.nextTrackingID = nextTrackingID;
    if (location != null) result.location = location;
    if (reason != null) result.reason = reason;
    if (plusCode != null) result.plusCode = plusCode;
    if (hUCarrier != null) result.hUCarrier = hUCarrier;
    if (hUShipFrom != null) result.hUShipFrom = hUShipFrom;
    if (hUShipTo != null) result.hUShipTo = hUShipTo;
    return result;
  }

  TrackingSummary._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackingSummary', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOS(1, _omitFieldNames ? '' : 'TrackingID', protoName: 'TrackingID')
    ..aOM<TrackingStatus>(2, _omitFieldNames ? '' : 'Status', protoName: 'Status', subBuilder: TrackingStatus.create)
    ..aOS(3, _omitFieldNames ? '' : 'TrackedHandlingunitID', protoName: 'TrackedHandlingunitID')
    ..aOS(4, _omitFieldNames ? '' : 'TrackingURL', protoName: 'TrackingURL')
    ..aOS(5, _omitFieldNames ? '' : 'NextTrackingID', protoName: 'NextTrackingID')
    ..aOM<$1.GeographicalCoordinates>(6, _omitFieldNames ? '' : 'Location', protoName: 'Location', subBuilder: $1.GeographicalCoordinates.create)
    ..aOS(7, _omitFieldNames ? '' : 'Reason', protoName: 'Reason')
    ..aOS(8, _omitFieldNames ? '' : 'PlusCode', protoName: 'PlusCode')
    ..aOM<$2.TradeTier>(9, _omitFieldNames ? '' : 'HUCarrier', protoName: 'HUCarrier', subBuilder: $2.TradeTier.create)
    ..aOM<$2.TradeTier>(10, _omitFieldNames ? '' : 'HUShipFrom', protoName: 'HUShipFrom', subBuilder: $2.TradeTier.create)
    ..aOM<$2.TradeTier>(11, _omitFieldNames ? '' : 'HUShipTo', protoName: 'HUShipTo', subBuilder: $2.TradeTier.create)
    ..hasRequiredFields = false
  ;

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

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

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

  @$pb.TagNumber(1)
  $core.String get trackingID => $_getSZ(0);
  @$pb.TagNumber(1)
  set trackingID($core.String value) => $_setString(0, value);
  @$pb.TagNumber(1)
  $core.bool hasTrackingID() => $_has(0);
  @$pb.TagNumber(1)
  void clearTrackingID() => $_clearField(1);

  @$pb.TagNumber(2)
  TrackingStatus get status => $_getN(1);
  @$pb.TagNumber(2)
  set status(TrackingStatus value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasStatus() => $_has(1);
  @$pb.TagNumber(2)
  void clearStatus() => $_clearField(2);
  @$pb.TagNumber(2)
  TrackingStatus ensureStatus() => $_ensure(1);

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

  @$pb.TagNumber(4)
  $core.String get trackingURL => $_getSZ(3);
  @$pb.TagNumber(4)
  set trackingURL($core.String value) => $_setString(3, value);
  @$pb.TagNumber(4)
  $core.bool hasTrackingURL() => $_has(3);
  @$pb.TagNumber(4)
  void clearTrackingURL() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get nextTrackingID => $_getSZ(4);
  @$pb.TagNumber(5)
  set nextTrackingID($core.String value) => $_setString(4, value);
  @$pb.TagNumber(5)
  $core.bool hasNextTrackingID() => $_has(4);
  @$pb.TagNumber(5)
  void clearNextTrackingID() => $_clearField(5);

  @$pb.TagNumber(6)
  $1.GeographicalCoordinates get location => $_getN(5);
  @$pb.TagNumber(6)
  set location($1.GeographicalCoordinates value) => $_setField(6, value);
  @$pb.TagNumber(6)
  $core.bool hasLocation() => $_has(5);
  @$pb.TagNumber(6)
  void clearLocation() => $_clearField(6);
  @$pb.TagNumber(6)
  $1.GeographicalCoordinates ensureLocation() => $_ensure(5);

  @$pb.TagNumber(7)
  $core.String get reason => $_getSZ(6);
  @$pb.TagNumber(7)
  set reason($core.String value) => $_setString(6, value);
  @$pb.TagNumber(7)
  $core.bool hasReason() => $_has(6);
  @$pb.TagNumber(7)
  void clearReason() => $_clearField(7);

  @$pb.TagNumber(8)
  $core.String get plusCode => $_getSZ(7);
  @$pb.TagNumber(8)
  set plusCode($core.String value) => $_setString(7, value);
  @$pb.TagNumber(8)
  $core.bool hasPlusCode() => $_has(7);
  @$pb.TagNumber(8)
  void clearPlusCode() => $_clearField(8);

  /// DateTime DispatchedDateTime = 8 ;
  @$pb.TagNumber(9)
  $2.TradeTier get hUCarrier => $_getN(8);
  @$pb.TagNumber(9)
  set hUCarrier($2.TradeTier value) => $_setField(9, value);
  @$pb.TagNumber(9)
  $core.bool hasHUCarrier() => $_has(8);
  @$pb.TagNumber(9)
  void clearHUCarrier() => $_clearField(9);
  @$pb.TagNumber(9)
  $2.TradeTier ensureHUCarrier() => $_ensure(8);

  @$pb.TagNumber(10)
  $2.TradeTier get hUShipFrom => $_getN(9);
  @$pb.TagNumber(10)
  set hUShipFrom($2.TradeTier value) => $_setField(10, value);
  @$pb.TagNumber(10)
  $core.bool hasHUShipFrom() => $_has(9);
  @$pb.TagNumber(10)
  void clearHUShipFrom() => $_clearField(10);
  @$pb.TagNumber(10)
  $2.TradeTier ensureHUShipFrom() => $_ensure(9);

  @$pb.TagNumber(11)
  $2.TradeTier get hUShipTo => $_getN(10);
  @$pb.TagNumber(11)
  set hUShipTo($2.TradeTier value) => $_setField(11, value);
  @$pb.TagNumber(11)
  $core.bool hasHUShipTo() => $_has(10);
  @$pb.TagNumber(11)
  void clearHUShipTo() => $_clearField(11);
  @$pb.TagNumber(11)
  $2.TradeTier ensureHUShipTo() => $_ensure(10);
}

///
/// Description for tracking event could be added ...
class TrackingEvent extends $pb.GeneratedMessage {
  factory TrackingEvent({
    $0.DateTime? date,
    TrackingEventCode? code,
    $1.GeographicalCoordinates? location,
    $core.String? reason,
    $core.String? plusCode,
  }) {
    final result = create();
    if (date != null) result.date = date;
    if (code != null) result.code = code;
    if (location != null) result.location = location;
    if (reason != null) result.reason = reason;
    if (plusCode != null) result.plusCode = plusCode;
    return result;
  }

  TrackingEvent._();

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

  static final $pb.BuilderInfo _i = $pb.BuilderInfo(_omitMessageNames ? '' : 'TrackingEvent', package: const $pb.PackageName(_omitMessageNames ? '' : 'api'), createEmptyInstance: create)
    ..aOM<$0.DateTime>(1, _omitFieldNames ? '' : 'Date', protoName: 'Date', subBuilder: $0.DateTime.create)
    ..e<TrackingEventCode>(2, _omitFieldNames ? '' : 'Code', $pb.PbFieldType.OE, protoName: 'Code', defaultOrMaker: TrackingEventCode.TRACKING_EVENT_UNKNOWN, valueOf: TrackingEventCode.valueOf, enumValues: TrackingEventCode.values)
    ..aOM<$1.GeographicalCoordinates>(3, _omitFieldNames ? '' : 'Location', protoName: 'Location', subBuilder: $1.GeographicalCoordinates.create)
    ..aOS(4, _omitFieldNames ? '' : 'Reason', protoName: 'Reason')
    ..aOS(5, _omitFieldNames ? '' : 'PlusCode', protoName: 'PlusCode')
    ..hasRequiredFields = false
  ;

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

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

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

  @$pb.TagNumber(1)
  $0.DateTime get date => $_getN(0);
  @$pb.TagNumber(1)
  set date($0.DateTime value) => $_setField(1, value);
  @$pb.TagNumber(1)
  $core.bool hasDate() => $_has(0);
  @$pb.TagNumber(1)
  void clearDate() => $_clearField(1);
  @$pb.TagNumber(1)
  $0.DateTime ensureDate() => $_ensure(0);

  @$pb.TagNumber(2)
  TrackingEventCode get code => $_getN(1);
  @$pb.TagNumber(2)
  set code(TrackingEventCode value) => $_setField(2, value);
  @$pb.TagNumber(2)
  $core.bool hasCode() => $_has(1);
  @$pb.TagNumber(2)
  void clearCode() => $_clearField(2);

  @$pb.TagNumber(3)
  $1.GeographicalCoordinates get location => $_getN(2);
  @$pb.TagNumber(3)
  set location($1.GeographicalCoordinates value) => $_setField(3, value);
  @$pb.TagNumber(3)
  $core.bool hasLocation() => $_has(2);
  @$pb.TagNumber(3)
  void clearLocation() => $_clearField(3);
  @$pb.TagNumber(3)
  $1.GeographicalCoordinates ensureLocation() => $_ensure(2);

  @$pb.TagNumber(4)
  $core.String get reason => $_getSZ(3);
  @$pb.TagNumber(4)
  set reason($core.String value) => $_setString(3, value);
  @$pb.TagNumber(4)
  $core.bool hasReason() => $_has(3);
  @$pb.TagNumber(4)
  void clearReason() => $_clearField(4);

  @$pb.TagNumber(5)
  $core.String get plusCode => $_getSZ(4);
  @$pb.TagNumber(5)
  set plusCode($core.String value) => $_setString(4, value);
  @$pb.TagNumber(5)
  $core.bool hasPlusCode() => $_has(4);
  @$pb.TagNumber(5)
  void clearPlusCode() => $_clearField(5);
}


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