//
//  Generated code. Do not modify.
//  source: transportShared.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 'repositoryShared.pb.dart' as $65;
import 'shared.pb.dart' as $3;
import 'tradeShared.pb.dart' as $75;
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,
    $3.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._() : super();
  factory TrackingStatus.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory TrackingStatus.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  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<$3.DateTime>(3, _omitFieldNames ? '' : 'ActualDate', protoName: 'ActualDate', subBuilder: $3.DateTime.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')
  TrackingStatus clone() => TrackingStatus()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  TrackingStatus copyWith(void Function(TrackingStatus) updates) => super.copyWith((message) => updates(message as TrackingStatus)) as TrackingStatus;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static TrackingStatus create() => TrackingStatus._();
  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 v) { $_setField(1, v); }
  @$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 v) { $_setString(1, v); }
  @$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)
  $3.DateTime get actualDate => $_getN(2);
  @$pb.TagNumber(3)
  set actualDate($3.DateTime v) { $_setField(3, v); }
  @$pb.TagNumber(3)
  $core.bool hasActualDate() => $_has(2);
  @$pb.TagNumber(3)
  void clearActualDate() => $_clearField(3);
  @$pb.TagNumber(3)
  $3.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._() : super();
  factory TrackingStatusStruct.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory TrackingStatusStruct.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static TrackingStatusStruct create() => TrackingStatusStruct._();
  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 v) { $_setField(1, v); }
  @$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 v) { $_setString(2, v); }
  @$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,
    $65.GeographicalCoordinates? location,
    $core.String? reason,
    $core.String? plusCode,
    $75.TradeTier? hUCarrier,
    $75.TradeTier? hUShipFrom,
    $75.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._() : super();
  factory TrackingSummary.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory TrackingSummary.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

  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<$65.GeographicalCoordinates>(6, _omitFieldNames ? '' : 'Location', protoName: 'Location', subBuilder: $65.GeographicalCoordinates.create)
    ..aOS(7, _omitFieldNames ? '' : 'Reason', protoName: 'Reason')
    ..aOS(8, _omitFieldNames ? '' : 'PlusCode', protoName: 'PlusCode')
    ..aOM<$75.TradeTier>(9, _omitFieldNames ? '' : 'HUCarrier', protoName: 'HUCarrier', subBuilder: $75.TradeTier.create)
    ..aOM<$75.TradeTier>(10, _omitFieldNames ? '' : 'HUShipFrom', protoName: 'HUShipFrom', subBuilder: $75.TradeTier.create)
    ..aOM<$75.TradeTier>(11, _omitFieldNames ? '' : 'HUShipTo', protoName: 'HUShipTo', subBuilder: $75.TradeTier.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')
  TrackingSummary clone() => TrackingSummary()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  TrackingSummary copyWith(void Function(TrackingSummary) updates) => super.copyWith((message) => updates(message as TrackingSummary)) as TrackingSummary;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static TrackingSummary create() => TrackingSummary._();
  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 v) { $_setString(0, v); }
  @$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 v) { $_setField(2, v); }
  @$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 v) { $_setString(2, v); }
  @$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 v) { $_setString(3, v); }
  @$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 v) { $_setString(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasNextTrackingID() => $_has(4);
  @$pb.TagNumber(5)
  void clearNextTrackingID() => $_clearField(5);

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

  @$pb.TagNumber(7)
  $core.String get reason => $_getSZ(6);
  @$pb.TagNumber(7)
  set reason($core.String v) { $_setString(6, v); }
  @$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 v) { $_setString(7, v); }
  @$pb.TagNumber(8)
  $core.bool hasPlusCode() => $_has(7);
  @$pb.TagNumber(8)
  void clearPlusCode() => $_clearField(8);

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

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

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

///
/// Description for tracking event could be added ...
class TrackingEvent extends $pb.GeneratedMessage {
  factory TrackingEvent({
    $3.DateTime? date,
    TrackingEventCode? code,
    $65.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._() : super();
  factory TrackingEvent.fromBuffer($core.List<$core.int> i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromBuffer(i, r);
  factory TrackingEvent.fromJson($core.String i, [$pb.ExtensionRegistry r = $pb.ExtensionRegistry.EMPTY]) => create()..mergeFromJson(i, r);

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

  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.deepCopy] instead. '
  'Will be removed in next major version')
  TrackingEvent clone() => TrackingEvent()..mergeFromMessage(this);
  @$core.Deprecated(
  'Using this can add significant overhead to your binary. '
  'Use [GeneratedMessageGenericExtensions.rebuild] instead. '
  'Will be removed in next major version')
  TrackingEvent copyWith(void Function(TrackingEvent) updates) => super.copyWith((message) => updates(message as TrackingEvent)) as TrackingEvent;

  $pb.BuilderInfo get info_ => _i;

  @$core.pragma('dart2js:noInline')
  static TrackingEvent create() => TrackingEvent._();
  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)
  $3.DateTime get date => $_getN(0);
  @$pb.TagNumber(1)
  set date($3.DateTime v) { $_setField(1, v); }
  @$pb.TagNumber(1)
  $core.bool hasDate() => $_has(0);
  @$pb.TagNumber(1)
  void clearDate() => $_clearField(1);
  @$pb.TagNumber(1)
  $3.DateTime ensureDate() => $_ensure(0);

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

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

  @$pb.TagNumber(4)
  $core.String get reason => $_getSZ(3);
  @$pb.TagNumber(4)
  set reason($core.String v) { $_setString(3, v); }
  @$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 v) { $_setString(4, v); }
  @$pb.TagNumber(5)
  $core.bool hasPlusCode() => $_has(4);
  @$pb.TagNumber(5)
  void clearPlusCode() => $_clearField(5);
}


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