diff options
author | stuebinm | 2024-04-17 01:21:33 +0200 |
---|---|---|
committer | stuebinm | 2024-04-17 01:48:35 +0200 |
commit | 385e15fc22f48a1f8d40b8263a54155fdab499ea (patch) | |
tree | 19f3a8b3fcb017eebdba3f094ceb5ff80c6c0134 /gtfs-realtime | |
parent | a995dabf07574a32c1ae62ad23b96ba7d8e076ee (diff) |
replace protocol-buffers with proto-lens
I do not really like either option, but at least the second one seems
more likely to be maintained (and a little less clunky to use, too, for
what it's worth).
Diffstat (limited to 'gtfs-realtime')
-rw-r--r-- | gtfs-realtime/Proto/GtfsRealtime.hs | 9868 | ||||
-rw-r--r-- | gtfs-realtime/Proto/GtfsRealtime_Fields.hs | 818 |
2 files changed, 10686 insertions, 0 deletions
diff --git a/gtfs-realtime/Proto/GtfsRealtime.hs b/gtfs-realtime/Proto/GtfsRealtime.hs new file mode 100644 index 0000000..847590d --- /dev/null +++ b/gtfs-realtime/Proto/GtfsRealtime.hs @@ -0,0 +1,9868 @@ +{- This file was auto-generated from gtfs-realtime.proto by the proto-lens-protoc program. -} +{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-} +{-# OPTIONS_GHC -Wno-unused-imports#-} +{-# OPTIONS_GHC -Wno-duplicate-exports#-} +{-# OPTIONS_GHC -Wno-dodgy-exports#-} +module Proto.GtfsRealtime ( + Alert(), Alert'Cause(..), Alert'Cause(), Alert'Effect(..), + Alert'Effect(), Alert'SeverityLevel(..), Alert'SeverityLevel(), + EntitySelector(), FeedEntity(), FeedHeader(), + FeedHeader'Incrementality(..), FeedHeader'Incrementality(), + FeedMessage(), Position(), Shape(), TimeRange(), TranslatedImage(), + TranslatedImage'LocalizedImage(), TranslatedString(), + TranslatedString'Translation(), TripDescriptor(), + TripDescriptor'ScheduleRelationship(..), + TripDescriptor'ScheduleRelationship(), TripUpdate(), + TripUpdate'StopTimeEvent(), TripUpdate'StopTimeUpdate(), + TripUpdate'StopTimeUpdate'ScheduleRelationship(..), + TripUpdate'StopTimeUpdate'ScheduleRelationship(), + TripUpdate'StopTimeUpdate'StopTimeProperties(), + TripUpdate'TripProperties(), VehicleDescriptor(), + VehiclePosition(), VehiclePosition'CarriageDetails(), + VehiclePosition'CongestionLevel(..), + VehiclePosition'CongestionLevel(), + VehiclePosition'OccupancyStatus(..), + VehiclePosition'OccupancyStatus(), + VehiclePosition'VehicleStopStatus(..), + VehiclePosition'VehicleStopStatus() + ) where +import qualified Data.ProtoLens.Runtime.Control.DeepSeq as Control.DeepSeq +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Prism as Data.ProtoLens.Prism +import qualified Data.ProtoLens.Runtime.Prelude as Prelude +import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int +import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid +import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word +import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types +import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2 +import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked +import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text +import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map +import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString +import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8 +import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding +import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector +import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic +import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed +import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.activePeriod' @:: Lens' Alert [TimeRange]@ + * 'Proto.GtfsRealtime_Fields.vec'activePeriod' @:: Lens' Alert (Data.Vector.Vector TimeRange)@ + * 'Proto.GtfsRealtime_Fields.informedEntity' @:: Lens' Alert [EntitySelector]@ + * 'Proto.GtfsRealtime_Fields.vec'informedEntity' @:: Lens' Alert (Data.Vector.Vector EntitySelector)@ + * 'Proto.GtfsRealtime_Fields.cause' @:: Lens' Alert Alert'Cause@ + * 'Proto.GtfsRealtime_Fields.maybe'cause' @:: Lens' Alert (Prelude.Maybe Alert'Cause)@ + * 'Proto.GtfsRealtime_Fields.effect' @:: Lens' Alert Alert'Effect@ + * 'Proto.GtfsRealtime_Fields.maybe'effect' @:: Lens' Alert (Prelude.Maybe Alert'Effect)@ + * 'Proto.GtfsRealtime_Fields.url' @:: Lens' Alert TranslatedString@ + * 'Proto.GtfsRealtime_Fields.maybe'url' @:: Lens' Alert (Prelude.Maybe TranslatedString)@ + * 'Proto.GtfsRealtime_Fields.headerText' @:: Lens' Alert TranslatedString@ + * 'Proto.GtfsRealtime_Fields.maybe'headerText' @:: Lens' Alert (Prelude.Maybe TranslatedString)@ + * 'Proto.GtfsRealtime_Fields.descriptionText' @:: Lens' Alert TranslatedString@ + * 'Proto.GtfsRealtime_Fields.maybe'descriptionText' @:: Lens' Alert (Prelude.Maybe TranslatedString)@ + * 'Proto.GtfsRealtime_Fields.ttsHeaderText' @:: Lens' Alert TranslatedString@ + * 'Proto.GtfsRealtime_Fields.maybe'ttsHeaderText' @:: Lens' Alert (Prelude.Maybe TranslatedString)@ + * 'Proto.GtfsRealtime_Fields.ttsDescriptionText' @:: Lens' Alert TranslatedString@ + * 'Proto.GtfsRealtime_Fields.maybe'ttsDescriptionText' @:: Lens' Alert (Prelude.Maybe TranslatedString)@ + * 'Proto.GtfsRealtime_Fields.severityLevel' @:: Lens' Alert Alert'SeverityLevel@ + * 'Proto.GtfsRealtime_Fields.maybe'severityLevel' @:: Lens' Alert (Prelude.Maybe Alert'SeverityLevel)@ + * 'Proto.GtfsRealtime_Fields.image' @:: Lens' Alert TranslatedImage@ + * 'Proto.GtfsRealtime_Fields.maybe'image' @:: Lens' Alert (Prelude.Maybe TranslatedImage)@ + * 'Proto.GtfsRealtime_Fields.imageAlternativeText' @:: Lens' Alert TranslatedString@ + * 'Proto.GtfsRealtime_Fields.maybe'imageAlternativeText' @:: Lens' Alert (Prelude.Maybe TranslatedString)@ -} +data Alert + = Alert'_constructor {_Alert'activePeriod :: !(Data.Vector.Vector TimeRange), + _Alert'informedEntity :: !(Data.Vector.Vector EntitySelector), + _Alert'cause :: !(Prelude.Maybe Alert'Cause), + _Alert'effect :: !(Prelude.Maybe Alert'Effect), + _Alert'url :: !(Prelude.Maybe TranslatedString), + _Alert'headerText :: !(Prelude.Maybe TranslatedString), + _Alert'descriptionText :: !(Prelude.Maybe TranslatedString), + _Alert'ttsHeaderText :: !(Prelude.Maybe TranslatedString), + _Alert'ttsDescriptionText :: !(Prelude.Maybe TranslatedString), + _Alert'severityLevel :: !(Prelude.Maybe Alert'SeverityLevel), + _Alert'image :: !(Prelude.Maybe TranslatedImage), + _Alert'imageAlternativeText :: !(Prelude.Maybe TranslatedString), + _Alert'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show Alert where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField Alert "activePeriod" [TimeRange] where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'activePeriod (\ x__ y__ -> x__ {_Alert'activePeriod = y__})) + (Lens.Family2.Unchecked.lens + Data.Vector.Generic.toList + (\ _ y__ -> Data.Vector.Generic.fromList y__)) +instance Data.ProtoLens.Field.HasField Alert "vec'activePeriod" (Data.Vector.Vector TimeRange) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'activePeriod (\ x__ y__ -> x__ {_Alert'activePeriod = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "informedEntity" [EntitySelector] where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'informedEntity + (\ x__ y__ -> x__ {_Alert'informedEntity = y__})) + (Lens.Family2.Unchecked.lens + Data.Vector.Generic.toList + (\ _ y__ -> Data.Vector.Generic.fromList y__)) +instance Data.ProtoLens.Field.HasField Alert "vec'informedEntity" (Data.Vector.Vector EntitySelector) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'informedEntity + (\ x__ y__ -> x__ {_Alert'informedEntity = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "cause" Alert'Cause where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'cause (\ x__ y__ -> x__ {_Alert'cause = y__})) + (Data.ProtoLens.maybeLens Alert'UNKNOWN_CAUSE) +instance Data.ProtoLens.Field.HasField Alert "maybe'cause" (Prelude.Maybe Alert'Cause) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'cause (\ x__ y__ -> x__ {_Alert'cause = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "effect" Alert'Effect where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'effect (\ x__ y__ -> x__ {_Alert'effect = y__})) + (Data.ProtoLens.maybeLens Alert'UNKNOWN_EFFECT) +instance Data.ProtoLens.Field.HasField Alert "maybe'effect" (Prelude.Maybe Alert'Effect) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'effect (\ x__ y__ -> x__ {_Alert'effect = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "url" TranslatedString where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'url (\ x__ y__ -> x__ {_Alert'url = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField Alert "maybe'url" (Prelude.Maybe TranslatedString) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'url (\ x__ y__ -> x__ {_Alert'url = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "headerText" TranslatedString where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'headerText (\ x__ y__ -> x__ {_Alert'headerText = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField Alert "maybe'headerText" (Prelude.Maybe TranslatedString) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'headerText (\ x__ y__ -> x__ {_Alert'headerText = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "descriptionText" TranslatedString where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'descriptionText + (\ x__ y__ -> x__ {_Alert'descriptionText = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField Alert "maybe'descriptionText" (Prelude.Maybe TranslatedString) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'descriptionText + (\ x__ y__ -> x__ {_Alert'descriptionText = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "ttsHeaderText" TranslatedString where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'ttsHeaderText + (\ x__ y__ -> x__ {_Alert'ttsHeaderText = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField Alert "maybe'ttsHeaderText" (Prelude.Maybe TranslatedString) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'ttsHeaderText + (\ x__ y__ -> x__ {_Alert'ttsHeaderText = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "ttsDescriptionText" TranslatedString where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'ttsDescriptionText + (\ x__ y__ -> x__ {_Alert'ttsDescriptionText = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField Alert "maybe'ttsDescriptionText" (Prelude.Maybe TranslatedString) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'ttsDescriptionText + (\ x__ y__ -> x__ {_Alert'ttsDescriptionText = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "severityLevel" Alert'SeverityLevel where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'severityLevel + (\ x__ y__ -> x__ {_Alert'severityLevel = y__})) + (Data.ProtoLens.maybeLens Alert'UNKNOWN_SEVERITY) +instance Data.ProtoLens.Field.HasField Alert "maybe'severityLevel" (Prelude.Maybe Alert'SeverityLevel) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'severityLevel + (\ x__ y__ -> x__ {_Alert'severityLevel = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "image" TranslatedImage where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'image (\ x__ y__ -> x__ {_Alert'image = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField Alert "maybe'image" (Prelude.Maybe TranslatedImage) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'image (\ x__ y__ -> x__ {_Alert'image = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Alert "imageAlternativeText" TranslatedString where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'imageAlternativeText + (\ x__ y__ -> x__ {_Alert'imageAlternativeText = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField Alert "maybe'imageAlternativeText" (Prelude.Maybe TranslatedString) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Alert'imageAlternativeText + (\ x__ y__ -> x__ {_Alert'imageAlternativeText = y__})) + Prelude.id +instance Data.ProtoLens.Message Alert where + messageName _ = Data.Text.pack "transit_realtime.Alert" + packedMessageDescriptor _ + = "\n\ + \\ENQAlert\DC2@\n\ + \\ractive_period\CAN\SOH \ETX(\v2\ESC.transit_realtime.TimeRangeR\factivePeriod\DC2I\n\ + \\SIinformed_entity\CAN\ENQ \ETX(\v2 .transit_realtime.EntitySelectorR\SOinformedEntity\DC2B\n\ + \\ENQcause\CAN\ACK \SOH(\SO2\GS.transit_realtime.Alert.Cause:\rUNKNOWN_CAUSER\ENQcause\DC2F\n\ + \\ACKeffect\CAN\a \SOH(\SO2\RS.transit_realtime.Alert.Effect:\SOUNKNOWN_EFFECTR\ACKeffect\DC24\n\ + \\ETXurl\CAN\b \SOH(\v2\".transit_realtime.TranslatedStringR\ETXurl\DC2C\n\ + \\vheader_text\CAN\n\ + \ \SOH(\v2\".transit_realtime.TranslatedStringR\n\ + \headerText\DC2M\n\ + \\DLEdescription_text\CAN\v \SOH(\v2\".transit_realtime.TranslatedStringR\SIdescriptionText\DC2J\n\ + \\SItts_header_text\CAN\f \SOH(\v2\".transit_realtime.TranslatedStringR\rttsHeaderText\DC2T\n\ + \\DC4tts_description_text\CAN\r \SOH(\v2\".transit_realtime.TranslatedStringR\DC2ttsDescriptionText\DC2^\n\ + \\SOseverity_level\CAN\SO \SOH(\SO2%.transit_realtime.Alert.SeverityLevel:\DLEUNKNOWN_SEVERITYR\rseverityLevel\DC27\n\ + \\ENQimage\CAN\SI \SOH(\v2!.transit_realtime.TranslatedImageR\ENQimage\DC2X\n\ + \\SYNimage_alternative_text\CAN\DLE \SOH(\v2\".transit_realtime.TranslatedStringR\DC4imageAlternativeText\"\216\SOH\n\ + \\ENQCause\DC2\DC1\n\ + \\rUNKNOWN_CAUSE\DLE\SOH\DC2\SI\n\ + \\vOTHER_CAUSE\DLE\STX\DC2\NAK\n\ + \\DC1TECHNICAL_PROBLEM\DLE\ETX\DC2\n\ + \\n\ + \\ACKSTRIKE\DLE\EOT\DC2\DC1\n\ + \\rDEMONSTRATION\DLE\ENQ\DC2\f\n\ + \\bACCIDENT\DLE\ACK\DC2\v\n\ + \\aHOLIDAY\DLE\a\DC2\v\n\ + \\aWEATHER\DLE\b\DC2\SI\n\ + \\vMAINTENANCE\DLE\t\DC2\DLE\n\ + \\fCONSTRUCTION\DLE\n\ + \\DC2\DC3\n\ + \\SIPOLICE_ACTIVITY\DLE\v\DC2\NAK\n\ + \\DC1MEDICAL_EMERGENCY\DLE\f\"\221\SOH\n\ + \\ACKEffect\DC2\SO\n\ + \\n\ + \NO_SERVICE\DLE\SOH\DC2\DC3\n\ + \\SIREDUCED_SERVICE\DLE\STX\DC2\SYN\n\ + \\DC2SIGNIFICANT_DELAYS\DLE\ETX\DC2\n\ + \\n\ + \\ACKDETOUR\DLE\EOT\DC2\SYN\n\ + \\DC2ADDITIONAL_SERVICE\DLE\ENQ\DC2\DC4\n\ + \\DLEMODIFIED_SERVICE\DLE\ACK\DC2\DLE\n\ + \\fOTHER_EFFECT\DLE\a\DC2\DC2\n\ + \\SOUNKNOWN_EFFECT\DLE\b\DC2\SO\n\ + \\n\ + \STOP_MOVED\DLE\t\DC2\r\n\ + \\tNO_EFFECT\DLE\n\ + \\DC2\ETB\n\ + \\DC3ACCESSIBILITY_ISSUE\DLE\v\"H\n\ + \\rSeverityLevel\DC2\DC4\n\ + \\DLEUNKNOWN_SEVERITY\DLE\SOH\DC2\b\n\ + \\EOTINFO\DLE\STX\DC2\v\n\ + \\aWARNING\DLE\ETX\DC2\n\ + \\n\ + \\ACKSEVERE\DLE\EOT*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + activePeriod__field_descriptor + = Data.ProtoLens.FieldDescriptor + "active_period" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TimeRange) + (Data.ProtoLens.RepeatedField + Data.ProtoLens.Unpacked + (Data.ProtoLens.Field.field @"activePeriod")) :: + Data.ProtoLens.FieldDescriptor Alert + informedEntity__field_descriptor + = Data.ProtoLens.FieldDescriptor + "informed_entity" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor EntitySelector) + (Data.ProtoLens.RepeatedField + Data.ProtoLens.Unpacked + (Data.ProtoLens.Field.field @"informedEntity")) :: + Data.ProtoLens.FieldDescriptor Alert + cause__field_descriptor + = Data.ProtoLens.FieldDescriptor + "cause" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor Alert'Cause) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'cause")) :: + Data.ProtoLens.FieldDescriptor Alert + effect__field_descriptor + = Data.ProtoLens.FieldDescriptor + "effect" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor Alert'Effect) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'effect")) :: + Data.ProtoLens.FieldDescriptor Alert + url__field_descriptor + = Data.ProtoLens.FieldDescriptor + "url" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedString) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'url")) :: + Data.ProtoLens.FieldDescriptor Alert + headerText__field_descriptor + = Data.ProtoLens.FieldDescriptor + "header_text" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedString) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'headerText")) :: + Data.ProtoLens.FieldDescriptor Alert + descriptionText__field_descriptor + = Data.ProtoLens.FieldDescriptor + "description_text" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedString) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'descriptionText")) :: + Data.ProtoLens.FieldDescriptor Alert + ttsHeaderText__field_descriptor + = Data.ProtoLens.FieldDescriptor + "tts_header_text" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedString) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'ttsHeaderText")) :: + Data.ProtoLens.FieldDescriptor Alert + ttsDescriptionText__field_descriptor + = Data.ProtoLens.FieldDescriptor + "tts_description_text" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedString) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'ttsDescriptionText")) :: + Data.ProtoLens.FieldDescriptor Alert + severityLevel__field_descriptor + = Data.ProtoLens.FieldDescriptor + "severity_level" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor Alert'SeverityLevel) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'severityLevel")) :: + Data.ProtoLens.FieldDescriptor Alert + image__field_descriptor + = Data.ProtoLens.FieldDescriptor + "image" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedImage) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'image")) :: + Data.ProtoLens.FieldDescriptor Alert + imageAlternativeText__field_descriptor + = Data.ProtoLens.FieldDescriptor + "image_alternative_text" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedString) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'imageAlternativeText")) :: + Data.ProtoLens.FieldDescriptor Alert + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, activePeriod__field_descriptor), + (Data.ProtoLens.Tag 5, informedEntity__field_descriptor), + (Data.ProtoLens.Tag 6, cause__field_descriptor), + (Data.ProtoLens.Tag 7, effect__field_descriptor), + (Data.ProtoLens.Tag 8, url__field_descriptor), + (Data.ProtoLens.Tag 10, headerText__field_descriptor), + (Data.ProtoLens.Tag 11, descriptionText__field_descriptor), + (Data.ProtoLens.Tag 12, ttsHeaderText__field_descriptor), + (Data.ProtoLens.Tag 13, ttsDescriptionText__field_descriptor), + (Data.ProtoLens.Tag 14, severityLevel__field_descriptor), + (Data.ProtoLens.Tag 15, image__field_descriptor), + (Data.ProtoLens.Tag 16, imageAlternativeText__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _Alert'_unknownFields + (\ x__ y__ -> x__ {_Alert'_unknownFields = y__}) + defMessage + = Alert'_constructor + {_Alert'activePeriod = Data.Vector.Generic.empty, + _Alert'informedEntity = Data.Vector.Generic.empty, + _Alert'cause = Prelude.Nothing, _Alert'effect = Prelude.Nothing, + _Alert'url = Prelude.Nothing, _Alert'headerText = Prelude.Nothing, + _Alert'descriptionText = Prelude.Nothing, + _Alert'ttsHeaderText = Prelude.Nothing, + _Alert'ttsDescriptionText = Prelude.Nothing, + _Alert'severityLevel = Prelude.Nothing, + _Alert'image = Prelude.Nothing, + _Alert'imageAlternativeText = Prelude.Nothing, + _Alert'_unknownFields = []} + parseMessage + = let + loop :: + Alert + -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld TimeRange + -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld EntitySelector + -> Data.ProtoLens.Encoding.Bytes.Parser Alert + loop x mutable'activePeriod mutable'informedEntity + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do frozen'activePeriod <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.unsafeFreeze + mutable'activePeriod) + frozen'informedEntity <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.unsafeFreeze + mutable'informedEntity) + (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) + (Lens.Family2.set + (Data.ProtoLens.Field.field @"vec'activePeriod") + frozen'activePeriod + (Lens.Family2.set + (Data.ProtoLens.Field.field @"vec'informedEntity") + frozen'informedEntity x))) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) + Data.ProtoLens.parseMessage) + "active_period" + v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.append + mutable'activePeriod y) + loop x v mutable'informedEntity + 42 + -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) + Data.ProtoLens.parseMessage) + "informed_entity" + v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.append + mutable'informedEntity y) + loop x mutable'activePeriod v + 48 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "cause" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"cause") y x) + mutable'activePeriod mutable'informedEntity + 56 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "effect" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"effect") y x) + mutable'activePeriod mutable'informedEntity + 66 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "url" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"url") y x) + mutable'activePeriod mutable'informedEntity + 82 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "header_text" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"headerText") y x) + mutable'activePeriod mutable'informedEntity + 90 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "description_text" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"descriptionText") y x) + mutable'activePeriod mutable'informedEntity + 98 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "tts_header_text" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"ttsHeaderText") y x) + mutable'activePeriod mutable'informedEntity + 106 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "tts_description_text" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"ttsDescriptionText") y x) + mutable'activePeriod mutable'informedEntity + 112 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "severity_level" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"severityLevel") y x) + mutable'activePeriod mutable'informedEntity + 122 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "image" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"image") y x) + mutable'activePeriod mutable'informedEntity + 130 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "image_alternative_text" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"imageAlternativeText") y x) + mutable'activePeriod mutable'informedEntity + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + mutable'activePeriod mutable'informedEntity + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do mutable'activePeriod <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + Data.ProtoLens.Encoding.Growing.new + mutable'informedEntity <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + Data.ProtoLens.Encoding.Growing.new + loop + Data.ProtoLens.defMessage mutable'activePeriod + mutable'informedEntity) + "Alert" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.foldMapBuilder + (\ _v + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Lens.Family2.view + (Data.ProtoLens.Field.field @"vec'activePeriod") _x)) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.foldMapBuilder + (\ _v + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 42) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Lens.Family2.view + (Data.ProtoLens.Field.field @"vec'informedEntity") _x)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'cause") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 48) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'effect") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 56) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'url") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 66) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'headerText") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 82) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'descriptionText") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 90) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'ttsHeaderText") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 98) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'ttsDescriptionText") + _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 106) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes + bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'severityLevel") + _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 112) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'image") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 122) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes + bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field + @"maybe'imageAlternativeText") + _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + 130) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length + bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes + bs)) + Data.ProtoLens.encodeMessage _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view + Data.ProtoLens.unknownFields _x))))))))))))) +instance Control.DeepSeq.NFData Alert where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_Alert'_unknownFields x__) + (Control.DeepSeq.deepseq + (_Alert'activePeriod x__) + (Control.DeepSeq.deepseq + (_Alert'informedEntity x__) + (Control.DeepSeq.deepseq + (_Alert'cause x__) + (Control.DeepSeq.deepseq + (_Alert'effect x__) + (Control.DeepSeq.deepseq + (_Alert'url x__) + (Control.DeepSeq.deepseq + (_Alert'headerText x__) + (Control.DeepSeq.deepseq + (_Alert'descriptionText x__) + (Control.DeepSeq.deepseq + (_Alert'ttsHeaderText x__) + (Control.DeepSeq.deepseq + (_Alert'ttsDescriptionText x__) + (Control.DeepSeq.deepseq + (_Alert'severityLevel x__) + (Control.DeepSeq.deepseq + (_Alert'image x__) + (Control.DeepSeq.deepseq + (_Alert'imageAlternativeText x__) ())))))))))))) +data Alert'Cause + = Alert'UNKNOWN_CAUSE | + Alert'OTHER_CAUSE | + Alert'TECHNICAL_PROBLEM | + Alert'STRIKE | + Alert'DEMONSTRATION | + Alert'ACCIDENT | + Alert'HOLIDAY | + Alert'WEATHER | + Alert'MAINTENANCE | + Alert'CONSTRUCTION | + Alert'POLICE_ACTIVITY | + Alert'MEDICAL_EMERGENCY + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum Alert'Cause where + maybeToEnum 1 = Prelude.Just Alert'UNKNOWN_CAUSE + maybeToEnum 2 = Prelude.Just Alert'OTHER_CAUSE + maybeToEnum 3 = Prelude.Just Alert'TECHNICAL_PROBLEM + maybeToEnum 4 = Prelude.Just Alert'STRIKE + maybeToEnum 5 = Prelude.Just Alert'DEMONSTRATION + maybeToEnum 6 = Prelude.Just Alert'ACCIDENT + maybeToEnum 7 = Prelude.Just Alert'HOLIDAY + maybeToEnum 8 = Prelude.Just Alert'WEATHER + maybeToEnum 9 = Prelude.Just Alert'MAINTENANCE + maybeToEnum 10 = Prelude.Just Alert'CONSTRUCTION + maybeToEnum 11 = Prelude.Just Alert'POLICE_ACTIVITY + maybeToEnum 12 = Prelude.Just Alert'MEDICAL_EMERGENCY + maybeToEnum _ = Prelude.Nothing + showEnum Alert'UNKNOWN_CAUSE = "UNKNOWN_CAUSE" + showEnum Alert'OTHER_CAUSE = "OTHER_CAUSE" + showEnum Alert'TECHNICAL_PROBLEM = "TECHNICAL_PROBLEM" + showEnum Alert'STRIKE = "STRIKE" + showEnum Alert'DEMONSTRATION = "DEMONSTRATION" + showEnum Alert'ACCIDENT = "ACCIDENT" + showEnum Alert'HOLIDAY = "HOLIDAY" + showEnum Alert'WEATHER = "WEATHER" + showEnum Alert'MAINTENANCE = "MAINTENANCE" + showEnum Alert'CONSTRUCTION = "CONSTRUCTION" + showEnum Alert'POLICE_ACTIVITY = "POLICE_ACTIVITY" + showEnum Alert'MEDICAL_EMERGENCY = "MEDICAL_EMERGENCY" + readEnum k + | (Prelude.==) k "UNKNOWN_CAUSE" = Prelude.Just Alert'UNKNOWN_CAUSE + | (Prelude.==) k "OTHER_CAUSE" = Prelude.Just Alert'OTHER_CAUSE + | (Prelude.==) k "TECHNICAL_PROBLEM" + = Prelude.Just Alert'TECHNICAL_PROBLEM + | (Prelude.==) k "STRIKE" = Prelude.Just Alert'STRIKE + | (Prelude.==) k "DEMONSTRATION" = Prelude.Just Alert'DEMONSTRATION + | (Prelude.==) k "ACCIDENT" = Prelude.Just Alert'ACCIDENT + | (Prelude.==) k "HOLIDAY" = Prelude.Just Alert'HOLIDAY + | (Prelude.==) k "WEATHER" = Prelude.Just Alert'WEATHER + | (Prelude.==) k "MAINTENANCE" = Prelude.Just Alert'MAINTENANCE + | (Prelude.==) k "CONSTRUCTION" = Prelude.Just Alert'CONSTRUCTION + | (Prelude.==) k "POLICE_ACTIVITY" + = Prelude.Just Alert'POLICE_ACTIVITY + | (Prelude.==) k "MEDICAL_EMERGENCY" + = Prelude.Just Alert'MEDICAL_EMERGENCY + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded Alert'Cause where + minBound = Alert'UNKNOWN_CAUSE + maxBound = Alert'MEDICAL_EMERGENCY +instance Prelude.Enum Alert'Cause where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum Cause: " (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum Alert'UNKNOWN_CAUSE = 1 + fromEnum Alert'OTHER_CAUSE = 2 + fromEnum Alert'TECHNICAL_PROBLEM = 3 + fromEnum Alert'STRIKE = 4 + fromEnum Alert'DEMONSTRATION = 5 + fromEnum Alert'ACCIDENT = 6 + fromEnum Alert'HOLIDAY = 7 + fromEnum Alert'WEATHER = 8 + fromEnum Alert'MAINTENANCE = 9 + fromEnum Alert'CONSTRUCTION = 10 + fromEnum Alert'POLICE_ACTIVITY = 11 + fromEnum Alert'MEDICAL_EMERGENCY = 12 + succ Alert'MEDICAL_EMERGENCY + = Prelude.error + "Alert'Cause.succ: bad argument Alert'MEDICAL_EMERGENCY. This value would be out of bounds." + succ Alert'UNKNOWN_CAUSE = Alert'OTHER_CAUSE + succ Alert'OTHER_CAUSE = Alert'TECHNICAL_PROBLEM + succ Alert'TECHNICAL_PROBLEM = Alert'STRIKE + succ Alert'STRIKE = Alert'DEMONSTRATION + succ Alert'DEMONSTRATION = Alert'ACCIDENT + succ Alert'ACCIDENT = Alert'HOLIDAY + succ Alert'HOLIDAY = Alert'WEATHER + succ Alert'WEATHER = Alert'MAINTENANCE + succ Alert'MAINTENANCE = Alert'CONSTRUCTION + succ Alert'CONSTRUCTION = Alert'POLICE_ACTIVITY + succ Alert'POLICE_ACTIVITY = Alert'MEDICAL_EMERGENCY + pred Alert'UNKNOWN_CAUSE + = Prelude.error + "Alert'Cause.pred: bad argument Alert'UNKNOWN_CAUSE. This value would be out of bounds." + pred Alert'OTHER_CAUSE = Alert'UNKNOWN_CAUSE + pred Alert'TECHNICAL_PROBLEM = Alert'OTHER_CAUSE + pred Alert'STRIKE = Alert'TECHNICAL_PROBLEM + pred Alert'DEMONSTRATION = Alert'STRIKE + pred Alert'ACCIDENT = Alert'DEMONSTRATION + pred Alert'HOLIDAY = Alert'ACCIDENT + pred Alert'WEATHER = Alert'HOLIDAY + pred Alert'MAINTENANCE = Alert'WEATHER + pred Alert'CONSTRUCTION = Alert'MAINTENANCE + pred Alert'POLICE_ACTIVITY = Alert'CONSTRUCTION + pred Alert'MEDICAL_EMERGENCY = Alert'POLICE_ACTIVITY + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault Alert'Cause where + fieldDefault = Alert'UNKNOWN_CAUSE +instance Control.DeepSeq.NFData Alert'Cause where + rnf x__ = Prelude.seq x__ () +data Alert'Effect + = Alert'NO_SERVICE | + Alert'REDUCED_SERVICE | + Alert'SIGNIFICANT_DELAYS | + Alert'DETOUR | + Alert'ADDITIONAL_SERVICE | + Alert'MODIFIED_SERVICE | + Alert'OTHER_EFFECT | + Alert'UNKNOWN_EFFECT | + Alert'STOP_MOVED | + Alert'NO_EFFECT | + Alert'ACCESSIBILITY_ISSUE + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum Alert'Effect where + maybeToEnum 1 = Prelude.Just Alert'NO_SERVICE + maybeToEnum 2 = Prelude.Just Alert'REDUCED_SERVICE + maybeToEnum 3 = Prelude.Just Alert'SIGNIFICANT_DELAYS + maybeToEnum 4 = Prelude.Just Alert'DETOUR + maybeToEnum 5 = Prelude.Just Alert'ADDITIONAL_SERVICE + maybeToEnum 6 = Prelude.Just Alert'MODIFIED_SERVICE + maybeToEnum 7 = Prelude.Just Alert'OTHER_EFFECT + maybeToEnum 8 = Prelude.Just Alert'UNKNOWN_EFFECT + maybeToEnum 9 = Prelude.Just Alert'STOP_MOVED + maybeToEnum 10 = Prelude.Just Alert'NO_EFFECT + maybeToEnum 11 = Prelude.Just Alert'ACCESSIBILITY_ISSUE + maybeToEnum _ = Prelude.Nothing + showEnum Alert'NO_SERVICE = "NO_SERVICE" + showEnum Alert'REDUCED_SERVICE = "REDUCED_SERVICE" + showEnum Alert'SIGNIFICANT_DELAYS = "SIGNIFICANT_DELAYS" + showEnum Alert'DETOUR = "DETOUR" + showEnum Alert'ADDITIONAL_SERVICE = "ADDITIONAL_SERVICE" + showEnum Alert'MODIFIED_SERVICE = "MODIFIED_SERVICE" + showEnum Alert'OTHER_EFFECT = "OTHER_EFFECT" + showEnum Alert'UNKNOWN_EFFECT = "UNKNOWN_EFFECT" + showEnum Alert'STOP_MOVED = "STOP_MOVED" + showEnum Alert'NO_EFFECT = "NO_EFFECT" + showEnum Alert'ACCESSIBILITY_ISSUE = "ACCESSIBILITY_ISSUE" + readEnum k + | (Prelude.==) k "NO_SERVICE" = Prelude.Just Alert'NO_SERVICE + | (Prelude.==) k "REDUCED_SERVICE" + = Prelude.Just Alert'REDUCED_SERVICE + | (Prelude.==) k "SIGNIFICANT_DELAYS" + = Prelude.Just Alert'SIGNIFICANT_DELAYS + | (Prelude.==) k "DETOUR" = Prelude.Just Alert'DETOUR + | (Prelude.==) k "ADDITIONAL_SERVICE" + = Prelude.Just Alert'ADDITIONAL_SERVICE + | (Prelude.==) k "MODIFIED_SERVICE" + = Prelude.Just Alert'MODIFIED_SERVICE + | (Prelude.==) k "OTHER_EFFECT" = Prelude.Just Alert'OTHER_EFFECT + | (Prelude.==) k "UNKNOWN_EFFECT" + = Prelude.Just Alert'UNKNOWN_EFFECT + | (Prelude.==) k "STOP_MOVED" = Prelude.Just Alert'STOP_MOVED + | (Prelude.==) k "NO_EFFECT" = Prelude.Just Alert'NO_EFFECT + | (Prelude.==) k "ACCESSIBILITY_ISSUE" + = Prelude.Just Alert'ACCESSIBILITY_ISSUE + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded Alert'Effect where + minBound = Alert'NO_SERVICE + maxBound = Alert'ACCESSIBILITY_ISSUE +instance Prelude.Enum Alert'Effect where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum Effect: " (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum Alert'NO_SERVICE = 1 + fromEnum Alert'REDUCED_SERVICE = 2 + fromEnum Alert'SIGNIFICANT_DELAYS = 3 + fromEnum Alert'DETOUR = 4 + fromEnum Alert'ADDITIONAL_SERVICE = 5 + fromEnum Alert'MODIFIED_SERVICE = 6 + fromEnum Alert'OTHER_EFFECT = 7 + fromEnum Alert'UNKNOWN_EFFECT = 8 + fromEnum Alert'STOP_MOVED = 9 + fromEnum Alert'NO_EFFECT = 10 + fromEnum Alert'ACCESSIBILITY_ISSUE = 11 + succ Alert'ACCESSIBILITY_ISSUE + = Prelude.error + "Alert'Effect.succ: bad argument Alert'ACCESSIBILITY_ISSUE. This value would be out of bounds." + succ Alert'NO_SERVICE = Alert'REDUCED_SERVICE + succ Alert'REDUCED_SERVICE = Alert'SIGNIFICANT_DELAYS + succ Alert'SIGNIFICANT_DELAYS = Alert'DETOUR + succ Alert'DETOUR = Alert'ADDITIONAL_SERVICE + succ Alert'ADDITIONAL_SERVICE = Alert'MODIFIED_SERVICE + succ Alert'MODIFIED_SERVICE = Alert'OTHER_EFFECT + succ Alert'OTHER_EFFECT = Alert'UNKNOWN_EFFECT + succ Alert'UNKNOWN_EFFECT = Alert'STOP_MOVED + succ Alert'STOP_MOVED = Alert'NO_EFFECT + succ Alert'NO_EFFECT = Alert'ACCESSIBILITY_ISSUE + pred Alert'NO_SERVICE + = Prelude.error + "Alert'Effect.pred: bad argument Alert'NO_SERVICE. This value would be out of bounds." + pred Alert'REDUCED_SERVICE = Alert'NO_SERVICE + pred Alert'SIGNIFICANT_DELAYS = Alert'REDUCED_SERVICE + pred Alert'DETOUR = Alert'SIGNIFICANT_DELAYS + pred Alert'ADDITIONAL_SERVICE = Alert'DETOUR + pred Alert'MODIFIED_SERVICE = Alert'ADDITIONAL_SERVICE + pred Alert'OTHER_EFFECT = Alert'MODIFIED_SERVICE + pred Alert'UNKNOWN_EFFECT = Alert'OTHER_EFFECT + pred Alert'STOP_MOVED = Alert'UNKNOWN_EFFECT + pred Alert'NO_EFFECT = Alert'STOP_MOVED + pred Alert'ACCESSIBILITY_ISSUE = Alert'NO_EFFECT + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault Alert'Effect where + fieldDefault = Alert'NO_SERVICE +instance Control.DeepSeq.NFData Alert'Effect where + rnf x__ = Prelude.seq x__ () +data Alert'SeverityLevel + = Alert'UNKNOWN_SEVERITY | + Alert'INFO | + Alert'WARNING | + Alert'SEVERE + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum Alert'SeverityLevel where + maybeToEnum 1 = Prelude.Just Alert'UNKNOWN_SEVERITY + maybeToEnum 2 = Prelude.Just Alert'INFO + maybeToEnum 3 = Prelude.Just Alert'WARNING + maybeToEnum 4 = Prelude.Just Alert'SEVERE + maybeToEnum _ = Prelude.Nothing + showEnum Alert'UNKNOWN_SEVERITY = "UNKNOWN_SEVERITY" + showEnum Alert'INFO = "INFO" + showEnum Alert'WARNING = "WARNING" + showEnum Alert'SEVERE = "SEVERE" + readEnum k + | (Prelude.==) k "UNKNOWN_SEVERITY" + = Prelude.Just Alert'UNKNOWN_SEVERITY + | (Prelude.==) k "INFO" = Prelude.Just Alert'INFO + | (Prelude.==) k "WARNING" = Prelude.Just Alert'WARNING + | (Prelude.==) k "SEVERE" = Prelude.Just Alert'SEVERE + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded Alert'SeverityLevel where + minBound = Alert'UNKNOWN_SEVERITY + maxBound = Alert'SEVERE +instance Prelude.Enum Alert'SeverityLevel where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum SeverityLevel: " + (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum Alert'UNKNOWN_SEVERITY = 1 + fromEnum Alert'INFO = 2 + fromEnum Alert'WARNING = 3 + fromEnum Alert'SEVERE = 4 + succ Alert'SEVERE + = Prelude.error + "Alert'SeverityLevel.succ: bad argument Alert'SEVERE. This value would be out of bounds." + succ Alert'UNKNOWN_SEVERITY = Alert'INFO + succ Alert'INFO = Alert'WARNING + succ Alert'WARNING = Alert'SEVERE + pred Alert'UNKNOWN_SEVERITY + = Prelude.error + "Alert'SeverityLevel.pred: bad argument Alert'UNKNOWN_SEVERITY. This value would be out of bounds." + pred Alert'INFO = Alert'UNKNOWN_SEVERITY + pred Alert'WARNING = Alert'INFO + pred Alert'SEVERE = Alert'WARNING + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault Alert'SeverityLevel where + fieldDefault = Alert'UNKNOWN_SEVERITY +instance Control.DeepSeq.NFData Alert'SeverityLevel where + rnf x__ = Prelude.seq x__ () +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.agencyId' @:: Lens' EntitySelector Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'agencyId' @:: Lens' EntitySelector (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.routeId' @:: Lens' EntitySelector Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'routeId' @:: Lens' EntitySelector (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.routeType' @:: Lens' EntitySelector Data.Int.Int32@ + * 'Proto.GtfsRealtime_Fields.maybe'routeType' @:: Lens' EntitySelector (Prelude.Maybe Data.Int.Int32)@ + * 'Proto.GtfsRealtime_Fields.trip' @:: Lens' EntitySelector TripDescriptor@ + * 'Proto.GtfsRealtime_Fields.maybe'trip' @:: Lens' EntitySelector (Prelude.Maybe TripDescriptor)@ + * 'Proto.GtfsRealtime_Fields.stopId' @:: Lens' EntitySelector Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'stopId' @:: Lens' EntitySelector (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.directionId' @:: Lens' EntitySelector Data.Word.Word32@ + * 'Proto.GtfsRealtime_Fields.maybe'directionId' @:: Lens' EntitySelector (Prelude.Maybe Data.Word.Word32)@ -} +data EntitySelector + = EntitySelector'_constructor {_EntitySelector'agencyId :: !(Prelude.Maybe Data.Text.Text), + _EntitySelector'routeId :: !(Prelude.Maybe Data.Text.Text), + _EntitySelector'routeType :: !(Prelude.Maybe Data.Int.Int32), + _EntitySelector'trip :: !(Prelude.Maybe TripDescriptor), + _EntitySelector'stopId :: !(Prelude.Maybe Data.Text.Text), + _EntitySelector'directionId :: !(Prelude.Maybe Data.Word.Word32), + _EntitySelector'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show EntitySelector where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField EntitySelector "agencyId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'agencyId + (\ x__ y__ -> x__ {_EntitySelector'agencyId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField EntitySelector "maybe'agencyId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'agencyId + (\ x__ y__ -> x__ {_EntitySelector'agencyId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField EntitySelector "routeId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'routeId + (\ x__ y__ -> x__ {_EntitySelector'routeId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField EntitySelector "maybe'routeId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'routeId + (\ x__ y__ -> x__ {_EntitySelector'routeId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField EntitySelector "routeType" Data.Int.Int32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'routeType + (\ x__ y__ -> x__ {_EntitySelector'routeType = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField EntitySelector "maybe'routeType" (Prelude.Maybe Data.Int.Int32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'routeType + (\ x__ y__ -> x__ {_EntitySelector'routeType = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField EntitySelector "trip" TripDescriptor where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'trip + (\ x__ y__ -> x__ {_EntitySelector'trip = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField EntitySelector "maybe'trip" (Prelude.Maybe TripDescriptor) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'trip + (\ x__ y__ -> x__ {_EntitySelector'trip = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField EntitySelector "stopId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'stopId + (\ x__ y__ -> x__ {_EntitySelector'stopId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField EntitySelector "maybe'stopId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'stopId + (\ x__ y__ -> x__ {_EntitySelector'stopId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField EntitySelector "directionId" Data.Word.Word32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'directionId + (\ x__ y__ -> x__ {_EntitySelector'directionId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField EntitySelector "maybe'directionId" (Prelude.Maybe Data.Word.Word32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _EntitySelector'directionId + (\ x__ y__ -> x__ {_EntitySelector'directionId = y__})) + Prelude.id +instance Data.ProtoLens.Message EntitySelector where + messageName _ = Data.Text.pack "transit_realtime.EntitySelector" + packedMessageDescriptor _ + = "\n\ + \\SOEntitySelector\DC2\ESC\n\ + \\tagency_id\CAN\SOH \SOH(\tR\bagencyId\DC2\EM\n\ + \\broute_id\CAN\STX \SOH(\tR\arouteId\DC2\GS\n\ + \\n\ + \route_type\CAN\ETX \SOH(\ENQR\trouteType\DC24\n\ + \\EOTtrip\CAN\EOT \SOH(\v2 .transit_realtime.TripDescriptorR\EOTtrip\DC2\ETB\n\ + \\astop_id\CAN\ENQ \SOH(\tR\ACKstopId\DC2!\n\ + \\fdirection_id\CAN\ACK \SOH(\rR\vdirectionId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + agencyId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "agency_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'agencyId")) :: + Data.ProtoLens.FieldDescriptor EntitySelector + routeId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "route_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'routeId")) :: + Data.ProtoLens.FieldDescriptor EntitySelector + routeType__field_descriptor + = Data.ProtoLens.FieldDescriptor + "route_type" + (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'routeType")) :: + Data.ProtoLens.FieldDescriptor EntitySelector + trip__field_descriptor + = Data.ProtoLens.FieldDescriptor + "trip" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripDescriptor) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'trip")) :: + Data.ProtoLens.FieldDescriptor EntitySelector + stopId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "stop_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'stopId")) :: + Data.ProtoLens.FieldDescriptor EntitySelector + directionId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "direction_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'directionId")) :: + Data.ProtoLens.FieldDescriptor EntitySelector + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, agencyId__field_descriptor), + (Data.ProtoLens.Tag 2, routeId__field_descriptor), + (Data.ProtoLens.Tag 3, routeType__field_descriptor), + (Data.ProtoLens.Tag 4, trip__field_descriptor), + (Data.ProtoLens.Tag 5, stopId__field_descriptor), + (Data.ProtoLens.Tag 6, directionId__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _EntitySelector'_unknownFields + (\ x__ y__ -> x__ {_EntitySelector'_unknownFields = y__}) + defMessage + = EntitySelector'_constructor + {_EntitySelector'agencyId = Prelude.Nothing, + _EntitySelector'routeId = Prelude.Nothing, + _EntitySelector'routeType = Prelude.Nothing, + _EntitySelector'trip = Prelude.Nothing, + _EntitySelector'stopId = Prelude.Nothing, + _EntitySelector'directionId = Prelude.Nothing, + _EntitySelector'_unknownFields = []} + parseMessage + = let + loop :: + EntitySelector + -> Data.ProtoLens.Encoding.Bytes.Parser EntitySelector + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "agency_id" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"agencyId") y x) + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "route_id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"routeId") y x) + 24 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "route_type" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"routeType") y x) + 34 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "trip" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"trip") y x) + 42 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "stop_id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"stopId") y x) + 48 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "direction_id" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"directionId") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "EntitySelector" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'agencyId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'routeId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'routeType") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 24) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'trip") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 34) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'stopId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 42) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'directionId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 48) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))) +instance Control.DeepSeq.NFData EntitySelector where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_EntitySelector'_unknownFields x__) + (Control.DeepSeq.deepseq + (_EntitySelector'agencyId x__) + (Control.DeepSeq.deepseq + (_EntitySelector'routeId x__) + (Control.DeepSeq.deepseq + (_EntitySelector'routeType x__) + (Control.DeepSeq.deepseq + (_EntitySelector'trip x__) + (Control.DeepSeq.deepseq + (_EntitySelector'stopId x__) + (Control.DeepSeq.deepseq (_EntitySelector'directionId x__) ())))))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.id' @:: Lens' FeedEntity Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.isDeleted' @:: Lens' FeedEntity Prelude.Bool@ + * 'Proto.GtfsRealtime_Fields.maybe'isDeleted' @:: Lens' FeedEntity (Prelude.Maybe Prelude.Bool)@ + * 'Proto.GtfsRealtime_Fields.tripUpdate' @:: Lens' FeedEntity TripUpdate@ + * 'Proto.GtfsRealtime_Fields.maybe'tripUpdate' @:: Lens' FeedEntity (Prelude.Maybe TripUpdate)@ + * 'Proto.GtfsRealtime_Fields.vehicle' @:: Lens' FeedEntity VehiclePosition@ + * 'Proto.GtfsRealtime_Fields.maybe'vehicle' @:: Lens' FeedEntity (Prelude.Maybe VehiclePosition)@ + * 'Proto.GtfsRealtime_Fields.alert' @:: Lens' FeedEntity Alert@ + * 'Proto.GtfsRealtime_Fields.maybe'alert' @:: Lens' FeedEntity (Prelude.Maybe Alert)@ + * 'Proto.GtfsRealtime_Fields.shape' @:: Lens' FeedEntity Shape@ + * 'Proto.GtfsRealtime_Fields.maybe'shape' @:: Lens' FeedEntity (Prelude.Maybe Shape)@ -} +data FeedEntity + = FeedEntity'_constructor {_FeedEntity'id :: !Data.Text.Text, + _FeedEntity'isDeleted :: !(Prelude.Maybe Prelude.Bool), + _FeedEntity'tripUpdate :: !(Prelude.Maybe TripUpdate), + _FeedEntity'vehicle :: !(Prelude.Maybe VehiclePosition), + _FeedEntity'alert :: !(Prelude.Maybe Alert), + _FeedEntity'shape :: !(Prelude.Maybe Shape), + _FeedEntity'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show FeedEntity where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField FeedEntity "id" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'id (\ x__ y__ -> x__ {_FeedEntity'id = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField FeedEntity "isDeleted" Prelude.Bool where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'isDeleted + (\ x__ y__ -> x__ {_FeedEntity'isDeleted = y__})) + (Data.ProtoLens.maybeLens Prelude.False) +instance Data.ProtoLens.Field.HasField FeedEntity "maybe'isDeleted" (Prelude.Maybe Prelude.Bool) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'isDeleted + (\ x__ y__ -> x__ {_FeedEntity'isDeleted = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField FeedEntity "tripUpdate" TripUpdate where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'tripUpdate + (\ x__ y__ -> x__ {_FeedEntity'tripUpdate = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField FeedEntity "maybe'tripUpdate" (Prelude.Maybe TripUpdate) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'tripUpdate + (\ x__ y__ -> x__ {_FeedEntity'tripUpdate = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField FeedEntity "vehicle" VehiclePosition where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'vehicle (\ x__ y__ -> x__ {_FeedEntity'vehicle = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField FeedEntity "maybe'vehicle" (Prelude.Maybe VehiclePosition) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'vehicle (\ x__ y__ -> x__ {_FeedEntity'vehicle = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField FeedEntity "alert" Alert where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'alert (\ x__ y__ -> x__ {_FeedEntity'alert = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField FeedEntity "maybe'alert" (Prelude.Maybe Alert) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'alert (\ x__ y__ -> x__ {_FeedEntity'alert = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField FeedEntity "shape" Shape where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'shape (\ x__ y__ -> x__ {_FeedEntity'shape = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField FeedEntity "maybe'shape" (Prelude.Maybe Shape) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedEntity'shape (\ x__ y__ -> x__ {_FeedEntity'shape = y__})) + Prelude.id +instance Data.ProtoLens.Message FeedEntity where + messageName _ = Data.Text.pack "transit_realtime.FeedEntity" + packedMessageDescriptor _ + = "\n\ + \\n\ + \FeedEntity\DC2\SO\n\ + \\STXid\CAN\SOH \STX(\tR\STXid\DC2$\n\ + \\n\ + \is_deleted\CAN\STX \SOH(\b:\ENQfalseR\tisDeleted\DC2=\n\ + \\vtrip_update\CAN\ETX \SOH(\v2\FS.transit_realtime.TripUpdateR\n\ + \tripUpdate\DC2;\n\ + \\avehicle\CAN\EOT \SOH(\v2!.transit_realtime.VehiclePositionR\avehicle\DC2-\n\ + \\ENQalert\CAN\ENQ \SOH(\v2\ETB.transit_realtime.AlertR\ENQalert\DC2-\n\ + \\ENQshape\CAN\ACK \SOH(\v2\ETB.transit_realtime.ShapeR\ENQshape*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + id__field_descriptor + = Data.ProtoLens.FieldDescriptor + "id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required (Data.ProtoLens.Field.field @"id")) :: + Data.ProtoLens.FieldDescriptor FeedEntity + isDeleted__field_descriptor + = Data.ProtoLens.FieldDescriptor + "is_deleted" + (Data.ProtoLens.ScalarField Data.ProtoLens.BoolField :: + Data.ProtoLens.FieldTypeDescriptor Prelude.Bool) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'isDeleted")) :: + Data.ProtoLens.FieldDescriptor FeedEntity + tripUpdate__field_descriptor + = Data.ProtoLens.FieldDescriptor + "trip_update" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripUpdate) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'tripUpdate")) :: + Data.ProtoLens.FieldDescriptor FeedEntity + vehicle__field_descriptor + = Data.ProtoLens.FieldDescriptor + "vehicle" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor VehiclePosition) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'vehicle")) :: + Data.ProtoLens.FieldDescriptor FeedEntity + alert__field_descriptor + = Data.ProtoLens.FieldDescriptor + "alert" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor Alert) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'alert")) :: + Data.ProtoLens.FieldDescriptor FeedEntity + shape__field_descriptor + = Data.ProtoLens.FieldDescriptor + "shape" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor Shape) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'shape")) :: + Data.ProtoLens.FieldDescriptor FeedEntity + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, id__field_descriptor), + (Data.ProtoLens.Tag 2, isDeleted__field_descriptor), + (Data.ProtoLens.Tag 3, tripUpdate__field_descriptor), + (Data.ProtoLens.Tag 4, vehicle__field_descriptor), + (Data.ProtoLens.Tag 5, alert__field_descriptor), + (Data.ProtoLens.Tag 6, shape__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _FeedEntity'_unknownFields + (\ x__ y__ -> x__ {_FeedEntity'_unknownFields = y__}) + defMessage + = FeedEntity'_constructor + {_FeedEntity'id = Data.ProtoLens.fieldDefault, + _FeedEntity'isDeleted = Prelude.Nothing, + _FeedEntity'tripUpdate = Prelude.Nothing, + _FeedEntity'vehicle = Prelude.Nothing, + _FeedEntity'alert = Prelude.Nothing, + _FeedEntity'shape = Prelude.Nothing, + _FeedEntity'_unknownFields = []} + parseMessage + = let + loop :: + FeedEntity + -> Prelude.Bool -> Data.ProtoLens.Encoding.Bytes.Parser FeedEntity + loop x required'id + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = (if required'id then (:) "id" else Prelude.id) [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "id" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"id") y x) + Prelude.False + 16 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + ((Prelude./=) 0) Data.ProtoLens.Encoding.Bytes.getVarInt) + "is_deleted" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"isDeleted") y x) + required'id + 26 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "trip_update" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"tripUpdate") y x) + required'id + 34 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "vehicle" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"vehicle") y x) + required'id + 42 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "alert" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"alert") y x) + required'id + 50 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "shape" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"shape") y x) + required'id + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + required'id + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage Prelude.True) "FeedEntity" + buildMessage + = \ _x + -> (Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 + (Lens.Family2.view (Data.ProtoLens.Field.field @"id") _x))) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'isDeleted") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 16) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt (\ b -> if b then 1 else 0) + _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'tripUpdate") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 26) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'vehicle") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 34) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'alert") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 42) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'shape") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 50) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))) +instance Control.DeepSeq.NFData FeedEntity where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_FeedEntity'_unknownFields x__) + (Control.DeepSeq.deepseq + (_FeedEntity'id x__) + (Control.DeepSeq.deepseq + (_FeedEntity'isDeleted x__) + (Control.DeepSeq.deepseq + (_FeedEntity'tripUpdate x__) + (Control.DeepSeq.deepseq + (_FeedEntity'vehicle x__) + (Control.DeepSeq.deepseq + (_FeedEntity'alert x__) + (Control.DeepSeq.deepseq (_FeedEntity'shape x__) ())))))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.gtfsRealtimeVersion' @:: Lens' FeedHeader Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.incrementality' @:: Lens' FeedHeader FeedHeader'Incrementality@ + * 'Proto.GtfsRealtime_Fields.maybe'incrementality' @:: Lens' FeedHeader (Prelude.Maybe FeedHeader'Incrementality)@ + * 'Proto.GtfsRealtime_Fields.timestamp' @:: Lens' FeedHeader Data.Word.Word64@ + * 'Proto.GtfsRealtime_Fields.maybe'timestamp' @:: Lens' FeedHeader (Prelude.Maybe Data.Word.Word64)@ -} +data FeedHeader + = FeedHeader'_constructor {_FeedHeader'gtfsRealtimeVersion :: !Data.Text.Text, + _FeedHeader'incrementality :: !(Prelude.Maybe FeedHeader'Incrementality), + _FeedHeader'timestamp :: !(Prelude.Maybe Data.Word.Word64), + _FeedHeader'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show FeedHeader where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField FeedHeader "gtfsRealtimeVersion" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedHeader'gtfsRealtimeVersion + (\ x__ y__ -> x__ {_FeedHeader'gtfsRealtimeVersion = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField FeedHeader "incrementality" FeedHeader'Incrementality where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedHeader'incrementality + (\ x__ y__ -> x__ {_FeedHeader'incrementality = y__})) + (Data.ProtoLens.maybeLens FeedHeader'FULL_DATASET) +instance Data.ProtoLens.Field.HasField FeedHeader "maybe'incrementality" (Prelude.Maybe FeedHeader'Incrementality) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedHeader'incrementality + (\ x__ y__ -> x__ {_FeedHeader'incrementality = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField FeedHeader "timestamp" Data.Word.Word64 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedHeader'timestamp + (\ x__ y__ -> x__ {_FeedHeader'timestamp = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField FeedHeader "maybe'timestamp" (Prelude.Maybe Data.Word.Word64) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedHeader'timestamp + (\ x__ y__ -> x__ {_FeedHeader'timestamp = y__})) + Prelude.id +instance Data.ProtoLens.Message FeedHeader where + messageName _ = Data.Text.pack "transit_realtime.FeedHeader" + packedMessageDescriptor _ + = "\n\ + \\n\ + \FeedHeader\DC22\n\ + \\NAKgtfs_realtime_version\CAN\SOH \STX(\tR\DC3gtfsRealtimeVersion\DC2a\n\ + \\SOincrementality\CAN\STX \SOH(\SO2+.transit_realtime.FeedHeader.Incrementality:\fFULL_DATASETR\SOincrementality\DC2\FS\n\ + \\ttimestamp\CAN\ETX \SOH(\EOTR\ttimestamp\"4\n\ + \\SOIncrementality\DC2\DLE\n\ + \\fFULL_DATASET\DLE\NUL\DC2\DLE\n\ + \\fDIFFERENTIAL\DLE\SOH*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + gtfsRealtimeVersion__field_descriptor + = Data.ProtoLens.FieldDescriptor + "gtfs_realtime_version" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required + (Data.ProtoLens.Field.field @"gtfsRealtimeVersion")) :: + Data.ProtoLens.FieldDescriptor FeedHeader + incrementality__field_descriptor + = Data.ProtoLens.FieldDescriptor + "incrementality" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor FeedHeader'Incrementality) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'incrementality")) :: + Data.ProtoLens.FieldDescriptor FeedHeader + timestamp__field_descriptor + = Data.ProtoLens.FieldDescriptor + "timestamp" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'timestamp")) :: + Data.ProtoLens.FieldDescriptor FeedHeader + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, gtfsRealtimeVersion__field_descriptor), + (Data.ProtoLens.Tag 2, incrementality__field_descriptor), + (Data.ProtoLens.Tag 3, timestamp__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _FeedHeader'_unknownFields + (\ x__ y__ -> x__ {_FeedHeader'_unknownFields = y__}) + defMessage + = FeedHeader'_constructor + {_FeedHeader'gtfsRealtimeVersion = Data.ProtoLens.fieldDefault, + _FeedHeader'incrementality = Prelude.Nothing, + _FeedHeader'timestamp = Prelude.Nothing, + _FeedHeader'_unknownFields = []} + parseMessage + = let + loop :: + FeedHeader + -> Prelude.Bool -> Data.ProtoLens.Encoding.Bytes.Parser FeedHeader + loop x required'gtfsRealtimeVersion + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let + missing + = (if required'gtfsRealtimeVersion then + (:) "gtfs_realtime_version" + else + Prelude.id) + [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "gtfs_realtime_version" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"gtfsRealtimeVersion") y x) + Prelude.False + 16 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "incrementality" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"incrementality") y x) + required'gtfsRealtimeVersion + 24 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + Data.ProtoLens.Encoding.Bytes.getVarInt "timestamp" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"timestamp") y x) + required'gtfsRealtimeVersion + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + required'gtfsRealtimeVersion + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage Prelude.True) "FeedHeader" + buildMessage + = \ _x + -> (Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 + (Lens.Family2.view + (Data.ProtoLens.Field.field @"gtfsRealtimeVersion") _x))) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'incrementality") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 16) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'timestamp") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 24) + (Data.ProtoLens.Encoding.Bytes.putVarInt _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)))) +instance Control.DeepSeq.NFData FeedHeader where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_FeedHeader'_unknownFields x__) + (Control.DeepSeq.deepseq + (_FeedHeader'gtfsRealtimeVersion x__) + (Control.DeepSeq.deepseq + (_FeedHeader'incrementality x__) + (Control.DeepSeq.deepseq (_FeedHeader'timestamp x__) ()))) +data FeedHeader'Incrementality + = FeedHeader'FULL_DATASET | FeedHeader'DIFFERENTIAL + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum FeedHeader'Incrementality where + maybeToEnum 0 = Prelude.Just FeedHeader'FULL_DATASET + maybeToEnum 1 = Prelude.Just FeedHeader'DIFFERENTIAL + maybeToEnum _ = Prelude.Nothing + showEnum FeedHeader'FULL_DATASET = "FULL_DATASET" + showEnum FeedHeader'DIFFERENTIAL = "DIFFERENTIAL" + readEnum k + | (Prelude.==) k "FULL_DATASET" + = Prelude.Just FeedHeader'FULL_DATASET + | (Prelude.==) k "DIFFERENTIAL" + = Prelude.Just FeedHeader'DIFFERENTIAL + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded FeedHeader'Incrementality where + minBound = FeedHeader'FULL_DATASET + maxBound = FeedHeader'DIFFERENTIAL +instance Prelude.Enum FeedHeader'Incrementality where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum Incrementality: " + (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum FeedHeader'FULL_DATASET = 0 + fromEnum FeedHeader'DIFFERENTIAL = 1 + succ FeedHeader'DIFFERENTIAL + = Prelude.error + "FeedHeader'Incrementality.succ: bad argument FeedHeader'DIFFERENTIAL. This value would be out of bounds." + succ FeedHeader'FULL_DATASET = FeedHeader'DIFFERENTIAL + pred FeedHeader'FULL_DATASET + = Prelude.error + "FeedHeader'Incrementality.pred: bad argument FeedHeader'FULL_DATASET. This value would be out of bounds." + pred FeedHeader'DIFFERENTIAL = FeedHeader'FULL_DATASET + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault FeedHeader'Incrementality where + fieldDefault = FeedHeader'FULL_DATASET +instance Control.DeepSeq.NFData FeedHeader'Incrementality where + rnf x__ = Prelude.seq x__ () +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.header' @:: Lens' FeedMessage FeedHeader@ + * 'Proto.GtfsRealtime_Fields.entity' @:: Lens' FeedMessage [FeedEntity]@ + * 'Proto.GtfsRealtime_Fields.vec'entity' @:: Lens' FeedMessage (Data.Vector.Vector FeedEntity)@ -} +data FeedMessage + = FeedMessage'_constructor {_FeedMessage'header :: !FeedHeader, + _FeedMessage'entity :: !(Data.Vector.Vector FeedEntity), + _FeedMessage'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show FeedMessage where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField FeedMessage "header" FeedHeader where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedMessage'header (\ x__ y__ -> x__ {_FeedMessage'header = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField FeedMessage "entity" [FeedEntity] where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedMessage'entity (\ x__ y__ -> x__ {_FeedMessage'entity = y__})) + (Lens.Family2.Unchecked.lens + Data.Vector.Generic.toList + (\ _ y__ -> Data.Vector.Generic.fromList y__)) +instance Data.ProtoLens.Field.HasField FeedMessage "vec'entity" (Data.Vector.Vector FeedEntity) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _FeedMessage'entity (\ x__ y__ -> x__ {_FeedMessage'entity = y__})) + Prelude.id +instance Data.ProtoLens.Message FeedMessage where + messageName _ = Data.Text.pack "transit_realtime.FeedMessage" + packedMessageDescriptor _ + = "\n\ + \\vFeedMessage\DC24\n\ + \\ACKheader\CAN\SOH \STX(\v2\FS.transit_realtime.FeedHeaderR\ACKheader\DC24\n\ + \\ACKentity\CAN\STX \ETX(\v2\FS.transit_realtime.FeedEntityR\ACKentity*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + header__field_descriptor + = Data.ProtoLens.FieldDescriptor + "header" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor FeedHeader) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required (Data.ProtoLens.Field.field @"header")) :: + Data.ProtoLens.FieldDescriptor FeedMessage + entity__field_descriptor + = Data.ProtoLens.FieldDescriptor + "entity" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor FeedEntity) + (Data.ProtoLens.RepeatedField + Data.ProtoLens.Unpacked (Data.ProtoLens.Field.field @"entity")) :: + Data.ProtoLens.FieldDescriptor FeedMessage + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, header__field_descriptor), + (Data.ProtoLens.Tag 2, entity__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _FeedMessage'_unknownFields + (\ x__ y__ -> x__ {_FeedMessage'_unknownFields = y__}) + defMessage + = FeedMessage'_constructor + {_FeedMessage'header = Data.ProtoLens.defMessage, + _FeedMessage'entity = Data.Vector.Generic.empty, + _FeedMessage'_unknownFields = []} + parseMessage + = let + loop :: + FeedMessage + -> Prelude.Bool + -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld FeedEntity + -> Data.ProtoLens.Encoding.Bytes.Parser FeedMessage + loop x required'header mutable'entity + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do frozen'entity <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.unsafeFreeze + mutable'entity) + (let + missing = (if required'header then (:) "header" else Prelude.id) [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) + (Lens.Family2.set + (Data.ProtoLens.Field.field @"vec'entity") frozen'entity x)) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "header" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"header") y x) + Prelude.False mutable'entity + 18 + -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) + Data.ProtoLens.parseMessage) + "entity" + v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.append mutable'entity y) + loop x required'header v + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + required'header mutable'entity + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do mutable'entity <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + Data.ProtoLens.Encoding.Growing.new + loop Data.ProtoLens.defMessage Prelude.True mutable'entity) + "FeedMessage" + buildMessage + = \ _x + -> (Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage + (Lens.Family2.view (Data.ProtoLens.Field.field @"header") _x))) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.foldMapBuilder + (\ _v + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Lens.Family2.view (Data.ProtoLens.Field.field @"vec'entity") _x)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))) +instance Control.DeepSeq.NFData FeedMessage where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_FeedMessage'_unknownFields x__) + (Control.DeepSeq.deepseq + (_FeedMessage'header x__) + (Control.DeepSeq.deepseq (_FeedMessage'entity x__) ())) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.latitude' @:: Lens' Position Prelude.Float@ + * 'Proto.GtfsRealtime_Fields.longitude' @:: Lens' Position Prelude.Float@ + * 'Proto.GtfsRealtime_Fields.bearing' @:: Lens' Position Prelude.Float@ + * 'Proto.GtfsRealtime_Fields.maybe'bearing' @:: Lens' Position (Prelude.Maybe Prelude.Float)@ + * 'Proto.GtfsRealtime_Fields.odometer' @:: Lens' Position Prelude.Double@ + * 'Proto.GtfsRealtime_Fields.maybe'odometer' @:: Lens' Position (Prelude.Maybe Prelude.Double)@ + * 'Proto.GtfsRealtime_Fields.speed' @:: Lens' Position Prelude.Float@ + * 'Proto.GtfsRealtime_Fields.maybe'speed' @:: Lens' Position (Prelude.Maybe Prelude.Float)@ -} +data Position + = Position'_constructor {_Position'latitude :: !Prelude.Float, + _Position'longitude :: !Prelude.Float, + _Position'bearing :: !(Prelude.Maybe Prelude.Float), + _Position'odometer :: !(Prelude.Maybe Prelude.Double), + _Position'speed :: !(Prelude.Maybe Prelude.Float), + _Position'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show Position where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField Position "latitude" Prelude.Float where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Position'latitude (\ x__ y__ -> x__ {_Position'latitude = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Position "longitude" Prelude.Float where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Position'longitude (\ x__ y__ -> x__ {_Position'longitude = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Position "bearing" Prelude.Float where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Position'bearing (\ x__ y__ -> x__ {_Position'bearing = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField Position "maybe'bearing" (Prelude.Maybe Prelude.Float) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Position'bearing (\ x__ y__ -> x__ {_Position'bearing = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Position "odometer" Prelude.Double where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Position'odometer (\ x__ y__ -> x__ {_Position'odometer = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField Position "maybe'odometer" (Prelude.Maybe Prelude.Double) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Position'odometer (\ x__ y__ -> x__ {_Position'odometer = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Position "speed" Prelude.Float where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Position'speed (\ x__ y__ -> x__ {_Position'speed = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField Position "maybe'speed" (Prelude.Maybe Prelude.Float) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Position'speed (\ x__ y__ -> x__ {_Position'speed = y__})) + Prelude.id +instance Data.ProtoLens.Message Position where + messageName _ = Data.Text.pack "transit_realtime.Position" + packedMessageDescriptor _ + = "\n\ + \\bPosition\DC2\SUB\n\ + \\blatitude\CAN\SOH \STX(\STXR\blatitude\DC2\FS\n\ + \\tlongitude\CAN\STX \STX(\STXR\tlongitude\DC2\CAN\n\ + \\abearing\CAN\ETX \SOH(\STXR\abearing\DC2\SUB\n\ + \\bodometer\CAN\EOT \SOH(\SOHR\bodometer\DC2\DC4\n\ + \\ENQspeed\CAN\ENQ \SOH(\STXR\ENQspeed*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + latitude__field_descriptor + = Data.ProtoLens.FieldDescriptor + "latitude" + (Data.ProtoLens.ScalarField Data.ProtoLens.FloatField :: + Data.ProtoLens.FieldTypeDescriptor Prelude.Float) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required + (Data.ProtoLens.Field.field @"latitude")) :: + Data.ProtoLens.FieldDescriptor Position + longitude__field_descriptor + = Data.ProtoLens.FieldDescriptor + "longitude" + (Data.ProtoLens.ScalarField Data.ProtoLens.FloatField :: + Data.ProtoLens.FieldTypeDescriptor Prelude.Float) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required + (Data.ProtoLens.Field.field @"longitude")) :: + Data.ProtoLens.FieldDescriptor Position + bearing__field_descriptor + = Data.ProtoLens.FieldDescriptor + "bearing" + (Data.ProtoLens.ScalarField Data.ProtoLens.FloatField :: + Data.ProtoLens.FieldTypeDescriptor Prelude.Float) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'bearing")) :: + Data.ProtoLens.FieldDescriptor Position + odometer__field_descriptor + = Data.ProtoLens.FieldDescriptor + "odometer" + (Data.ProtoLens.ScalarField Data.ProtoLens.DoubleField :: + Data.ProtoLens.FieldTypeDescriptor Prelude.Double) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'odometer")) :: + Data.ProtoLens.FieldDescriptor Position + speed__field_descriptor + = Data.ProtoLens.FieldDescriptor + "speed" + (Data.ProtoLens.ScalarField Data.ProtoLens.FloatField :: + Data.ProtoLens.FieldTypeDescriptor Prelude.Float) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'speed")) :: + Data.ProtoLens.FieldDescriptor Position + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, latitude__field_descriptor), + (Data.ProtoLens.Tag 2, longitude__field_descriptor), + (Data.ProtoLens.Tag 3, bearing__field_descriptor), + (Data.ProtoLens.Tag 4, odometer__field_descriptor), + (Data.ProtoLens.Tag 5, speed__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _Position'_unknownFields + (\ x__ y__ -> x__ {_Position'_unknownFields = y__}) + defMessage + = Position'_constructor + {_Position'latitude = Data.ProtoLens.fieldDefault, + _Position'longitude = Data.ProtoLens.fieldDefault, + _Position'bearing = Prelude.Nothing, + _Position'odometer = Prelude.Nothing, + _Position'speed = Prelude.Nothing, _Position'_unknownFields = []} + parseMessage + = let + loop :: + Position + -> Prelude.Bool + -> Prelude.Bool -> Data.ProtoLens.Encoding.Bytes.Parser Position + loop x required'latitude required'longitude + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let + missing + = (if required'latitude then (:) "latitude" else Prelude.id) + ((if required'longitude then (:) "longitude" else Prelude.id) []) + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 13 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Data.ProtoLens.Encoding.Bytes.wordToFloat + Data.ProtoLens.Encoding.Bytes.getFixed32) + "latitude" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"latitude") y x) + Prelude.False required'longitude + 21 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Data.ProtoLens.Encoding.Bytes.wordToFloat + Data.ProtoLens.Encoding.Bytes.getFixed32) + "longitude" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"longitude") y x) + required'latitude Prelude.False + 29 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Data.ProtoLens.Encoding.Bytes.wordToFloat + Data.ProtoLens.Encoding.Bytes.getFixed32) + "bearing" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"bearing") y x) + required'latitude required'longitude + 33 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Data.ProtoLens.Encoding.Bytes.wordToDouble + Data.ProtoLens.Encoding.Bytes.getFixed64) + "odometer" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"odometer") y x) + required'latitude required'longitude + 45 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Data.ProtoLens.Encoding.Bytes.wordToFloat + Data.ProtoLens.Encoding.Bytes.getFixed32) + "speed" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"speed") y x) + required'latitude required'longitude + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + required'latitude required'longitude + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage Prelude.True Prelude.True) + "Position" + buildMessage + = \ _x + -> (Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 13) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putFixed32 + Data.ProtoLens.Encoding.Bytes.floatToWord + (Lens.Family2.view (Data.ProtoLens.Field.field @"latitude") _x))) + ((Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 21) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putFixed32 + Data.ProtoLens.Encoding.Bytes.floatToWord + (Lens.Family2.view (Data.ProtoLens.Field.field @"longitude") _x))) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'bearing") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 29) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putFixed32 + Data.ProtoLens.Encoding.Bytes.floatToWord _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'odometer") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 33) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putFixed64 + Data.ProtoLens.Encoding.Bytes.doubleToWord _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'speed") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 45) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putFixed32 + Data.ProtoLens.Encoding.Bytes.floatToWord _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))) +instance Control.DeepSeq.NFData Position where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_Position'_unknownFields x__) + (Control.DeepSeq.deepseq + (_Position'latitude x__) + (Control.DeepSeq.deepseq + (_Position'longitude x__) + (Control.DeepSeq.deepseq + (_Position'bearing x__) + (Control.DeepSeq.deepseq + (_Position'odometer x__) + (Control.DeepSeq.deepseq (_Position'speed x__) ()))))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.shapeId' @:: Lens' Shape Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'shapeId' @:: Lens' Shape (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.encodedPolyline' @:: Lens' Shape Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'encodedPolyline' @:: Lens' Shape (Prelude.Maybe Data.Text.Text)@ -} +data Shape + = Shape'_constructor {_Shape'shapeId :: !(Prelude.Maybe Data.Text.Text), + _Shape'encodedPolyline :: !(Prelude.Maybe Data.Text.Text), + _Shape'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show Shape where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField Shape "shapeId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Shape'shapeId (\ x__ y__ -> x__ {_Shape'shapeId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField Shape "maybe'shapeId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Shape'shapeId (\ x__ y__ -> x__ {_Shape'shapeId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField Shape "encodedPolyline" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Shape'encodedPolyline + (\ x__ y__ -> x__ {_Shape'encodedPolyline = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField Shape "maybe'encodedPolyline" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _Shape'encodedPolyline + (\ x__ y__ -> x__ {_Shape'encodedPolyline = y__})) + Prelude.id +instance Data.ProtoLens.Message Shape where + messageName _ = Data.Text.pack "transit_realtime.Shape" + packedMessageDescriptor _ + = "\n\ + \\ENQShape\DC2\EM\n\ + \\bshape_id\CAN\SOH \SOH(\tR\ashapeId\DC2)\n\ + \\DLEencoded_polyline\CAN\STX \SOH(\tR\SIencodedPolyline*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + shapeId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "shape_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'shapeId")) :: + Data.ProtoLens.FieldDescriptor Shape + encodedPolyline__field_descriptor + = Data.ProtoLens.FieldDescriptor + "encoded_polyline" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'encodedPolyline")) :: + Data.ProtoLens.FieldDescriptor Shape + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, shapeId__field_descriptor), + (Data.ProtoLens.Tag 2, encodedPolyline__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _Shape'_unknownFields + (\ x__ y__ -> x__ {_Shape'_unknownFields = y__}) + defMessage + = Shape'_constructor + {_Shape'shapeId = Prelude.Nothing, + _Shape'encodedPolyline = Prelude.Nothing, + _Shape'_unknownFields = []} + parseMessage + = let + loop :: Shape -> Data.ProtoLens.Encoding.Bytes.Parser Shape + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "shape_id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"shapeId") y x) + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "encoded_polyline" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"encodedPolyline") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "Shape" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'shapeId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'encodedPolyline") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))) +instance Control.DeepSeq.NFData Shape where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_Shape'_unknownFields x__) + (Control.DeepSeq.deepseq + (_Shape'shapeId x__) + (Control.DeepSeq.deepseq (_Shape'encodedPolyline x__) ())) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.start' @:: Lens' TimeRange Data.Word.Word64@ + * 'Proto.GtfsRealtime_Fields.maybe'start' @:: Lens' TimeRange (Prelude.Maybe Data.Word.Word64)@ + * 'Proto.GtfsRealtime_Fields.end' @:: Lens' TimeRange Data.Word.Word64@ + * 'Proto.GtfsRealtime_Fields.maybe'end' @:: Lens' TimeRange (Prelude.Maybe Data.Word.Word64)@ -} +data TimeRange + = TimeRange'_constructor {_TimeRange'start :: !(Prelude.Maybe Data.Word.Word64), + _TimeRange'end :: !(Prelude.Maybe Data.Word.Word64), + _TimeRange'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TimeRange where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TimeRange "start" Data.Word.Word64 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TimeRange'start (\ x__ y__ -> x__ {_TimeRange'start = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TimeRange "maybe'start" (Prelude.Maybe Data.Word.Word64) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TimeRange'start (\ x__ y__ -> x__ {_TimeRange'start = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TimeRange "end" Data.Word.Word64 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TimeRange'end (\ x__ y__ -> x__ {_TimeRange'end = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TimeRange "maybe'end" (Prelude.Maybe Data.Word.Word64) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TimeRange'end (\ x__ y__ -> x__ {_TimeRange'end = y__})) + Prelude.id +instance Data.ProtoLens.Message TimeRange where + messageName _ = Data.Text.pack "transit_realtime.TimeRange" + packedMessageDescriptor _ + = "\n\ + \\tTimeRange\DC2\DC4\n\ + \\ENQstart\CAN\SOH \SOH(\EOTR\ENQstart\DC2\DLE\n\ + \\ETXend\CAN\STX \SOH(\EOTR\ETXend*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + start__field_descriptor + = Data.ProtoLens.FieldDescriptor + "start" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'start")) :: + Data.ProtoLens.FieldDescriptor TimeRange + end__field_descriptor + = Data.ProtoLens.FieldDescriptor + "end" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'end")) :: + Data.ProtoLens.FieldDescriptor TimeRange + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, start__field_descriptor), + (Data.ProtoLens.Tag 2, end__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TimeRange'_unknownFields + (\ x__ y__ -> x__ {_TimeRange'_unknownFields = y__}) + defMessage + = TimeRange'_constructor + {_TimeRange'start = Prelude.Nothing, + _TimeRange'end = Prelude.Nothing, _TimeRange'_unknownFields = []} + parseMessage + = let + loop :: TimeRange -> Data.ProtoLens.Encoding.Bytes.Parser TimeRange + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + Data.ProtoLens.Encoding.Bytes.getVarInt "start" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"start") y x) + 16 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + Data.ProtoLens.Encoding.Bytes.getVarInt "end" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"end") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "TimeRange" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'start") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 8) + (Data.ProtoLens.Encoding.Bytes.putVarInt _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'end") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 16) + (Data.ProtoLens.Encoding.Bytes.putVarInt _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))) +instance Control.DeepSeq.NFData TimeRange where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TimeRange'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TimeRange'start x__) + (Control.DeepSeq.deepseq (_TimeRange'end x__) ())) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.localizedImage' @:: Lens' TranslatedImage [TranslatedImage'LocalizedImage]@ + * 'Proto.GtfsRealtime_Fields.vec'localizedImage' @:: Lens' TranslatedImage (Data.Vector.Vector TranslatedImage'LocalizedImage)@ -} +data TranslatedImage + = TranslatedImage'_constructor {_TranslatedImage'localizedImage :: !(Data.Vector.Vector TranslatedImage'LocalizedImage), + _TranslatedImage'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TranslatedImage where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TranslatedImage "localizedImage" [TranslatedImage'LocalizedImage] where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedImage'localizedImage + (\ x__ y__ -> x__ {_TranslatedImage'localizedImage = y__})) + (Lens.Family2.Unchecked.lens + Data.Vector.Generic.toList + (\ _ y__ -> Data.Vector.Generic.fromList y__)) +instance Data.ProtoLens.Field.HasField TranslatedImage "vec'localizedImage" (Data.Vector.Vector TranslatedImage'LocalizedImage) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedImage'localizedImage + (\ x__ y__ -> x__ {_TranslatedImage'localizedImage = y__})) + Prelude.id +instance Data.ProtoLens.Message TranslatedImage where + messageName _ = Data.Text.pack "transit_realtime.TranslatedImage" + packedMessageDescriptor _ + = "\n\ + \\SITranslatedImage\DC2Y\n\ + \\SIlocalized_image\CAN\SOH \ETX(\v20.transit_realtime.TranslatedImage.LocalizedImageR\SOlocalizedImage\SUBm\n\ + \\SOLocalizedImage\DC2\DLE\n\ + \\ETXurl\CAN\SOH \STX(\tR\ETXurl\DC2\GS\n\ + \\n\ + \media_type\CAN\STX \STX(\tR\tmediaType\DC2\SUB\n\ + \\blanguage\CAN\ETX \SOH(\tR\blanguage*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + localizedImage__field_descriptor + = Data.ProtoLens.FieldDescriptor + "localized_image" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedImage'LocalizedImage) + (Data.ProtoLens.RepeatedField + Data.ProtoLens.Unpacked + (Data.ProtoLens.Field.field @"localizedImage")) :: + Data.ProtoLens.FieldDescriptor TranslatedImage + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, localizedImage__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TranslatedImage'_unknownFields + (\ x__ y__ -> x__ {_TranslatedImage'_unknownFields = y__}) + defMessage + = TranslatedImage'_constructor + {_TranslatedImage'localizedImage = Data.Vector.Generic.empty, + _TranslatedImage'_unknownFields = []} + parseMessage + = let + loop :: + TranslatedImage + -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld TranslatedImage'LocalizedImage + -> Data.ProtoLens.Encoding.Bytes.Parser TranslatedImage + loop x mutable'localizedImage + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do frozen'localizedImage <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.unsafeFreeze + mutable'localizedImage) + (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) + (Lens.Family2.set + (Data.ProtoLens.Field.field @"vec'localizedImage") + frozen'localizedImage x)) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) + Data.ProtoLens.parseMessage) + "localized_image" + v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.append + mutable'localizedImage y) + loop x v + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + mutable'localizedImage + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do mutable'localizedImage <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + Data.ProtoLens.Encoding.Growing.new + loop Data.ProtoLens.defMessage mutable'localizedImage) + "TranslatedImage" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.foldMapBuilder + (\ _v + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Lens.Family2.view + (Data.ProtoLens.Field.field @"vec'localizedImage") _x)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)) +instance Control.DeepSeq.NFData TranslatedImage where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TranslatedImage'_unknownFields x__) + (Control.DeepSeq.deepseq (_TranslatedImage'localizedImage x__) ()) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.url' @:: Lens' TranslatedImage'LocalizedImage Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.mediaType' @:: Lens' TranslatedImage'LocalizedImage Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.language' @:: Lens' TranslatedImage'LocalizedImage Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'language' @:: Lens' TranslatedImage'LocalizedImage (Prelude.Maybe Data.Text.Text)@ -} +data TranslatedImage'LocalizedImage + = TranslatedImage'LocalizedImage'_constructor {_TranslatedImage'LocalizedImage'url :: !Data.Text.Text, + _TranslatedImage'LocalizedImage'mediaType :: !Data.Text.Text, + _TranslatedImage'LocalizedImage'language :: !(Prelude.Maybe Data.Text.Text), + _TranslatedImage'LocalizedImage'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TranslatedImage'LocalizedImage where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TranslatedImage'LocalizedImage "url" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedImage'LocalizedImage'url + (\ x__ y__ -> x__ {_TranslatedImage'LocalizedImage'url = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TranslatedImage'LocalizedImage "mediaType" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedImage'LocalizedImage'mediaType + (\ x__ y__ + -> x__ {_TranslatedImage'LocalizedImage'mediaType = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TranslatedImage'LocalizedImage "language" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedImage'LocalizedImage'language + (\ x__ y__ + -> x__ {_TranslatedImage'LocalizedImage'language = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TranslatedImage'LocalizedImage "maybe'language" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedImage'LocalizedImage'language + (\ x__ y__ + -> x__ {_TranslatedImage'LocalizedImage'language = y__})) + Prelude.id +instance Data.ProtoLens.Message TranslatedImage'LocalizedImage where + messageName _ + = Data.Text.pack "transit_realtime.TranslatedImage.LocalizedImage" + packedMessageDescriptor _ + = "\n\ + \\SOLocalizedImage\DC2\DLE\n\ + \\ETXurl\CAN\SOH \STX(\tR\ETXurl\DC2\GS\n\ + \\n\ + \media_type\CAN\STX \STX(\tR\tmediaType\DC2\SUB\n\ + \\blanguage\CAN\ETX \SOH(\tR\blanguage*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + url__field_descriptor + = Data.ProtoLens.FieldDescriptor + "url" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required (Data.ProtoLens.Field.field @"url")) :: + Data.ProtoLens.FieldDescriptor TranslatedImage'LocalizedImage + mediaType__field_descriptor + = Data.ProtoLens.FieldDescriptor + "media_type" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required + (Data.ProtoLens.Field.field @"mediaType")) :: + Data.ProtoLens.FieldDescriptor TranslatedImage'LocalizedImage + language__field_descriptor + = Data.ProtoLens.FieldDescriptor + "language" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'language")) :: + Data.ProtoLens.FieldDescriptor TranslatedImage'LocalizedImage + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, url__field_descriptor), + (Data.ProtoLens.Tag 2, mediaType__field_descriptor), + (Data.ProtoLens.Tag 3, language__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TranslatedImage'LocalizedImage'_unknownFields + (\ x__ y__ + -> x__ {_TranslatedImage'LocalizedImage'_unknownFields = y__}) + defMessage + = TranslatedImage'LocalizedImage'_constructor + {_TranslatedImage'LocalizedImage'url = Data.ProtoLens.fieldDefault, + _TranslatedImage'LocalizedImage'mediaType = Data.ProtoLens.fieldDefault, + _TranslatedImage'LocalizedImage'language = Prelude.Nothing, + _TranslatedImage'LocalizedImage'_unknownFields = []} + parseMessage + = let + loop :: + TranslatedImage'LocalizedImage + -> Prelude.Bool + -> Prelude.Bool + -> Data.ProtoLens.Encoding.Bytes.Parser TranslatedImage'LocalizedImage + loop x required'mediaType required'url + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let + missing + = (if required'mediaType then (:) "media_type" else Prelude.id) + ((if required'url then (:) "url" else Prelude.id) []) + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "url" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"url") y x) + required'mediaType Prelude.False + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "media_type" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"mediaType") y x) + Prelude.False required'url + 26 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "language" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"language") y x) + required'mediaType required'url + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + required'mediaType required'url + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage Prelude.True Prelude.True) + "LocalizedImage" + buildMessage + = \ _x + -> (Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 + (Lens.Family2.view (Data.ProtoLens.Field.field @"url") _x))) + ((Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 + (Lens.Family2.view (Data.ProtoLens.Field.field @"mediaType") _x))) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'language") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 26) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)))) +instance Control.DeepSeq.NFData TranslatedImage'LocalizedImage where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TranslatedImage'LocalizedImage'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TranslatedImage'LocalizedImage'url x__) + (Control.DeepSeq.deepseq + (_TranslatedImage'LocalizedImage'mediaType x__) + (Control.DeepSeq.deepseq + (_TranslatedImage'LocalizedImage'language x__) ()))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.translation' @:: Lens' TranslatedString [TranslatedString'Translation]@ + * 'Proto.GtfsRealtime_Fields.vec'translation' @:: Lens' TranslatedString (Data.Vector.Vector TranslatedString'Translation)@ -} +data TranslatedString + = TranslatedString'_constructor {_TranslatedString'translation :: !(Data.Vector.Vector TranslatedString'Translation), + _TranslatedString'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TranslatedString where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TranslatedString "translation" [TranslatedString'Translation] where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedString'translation + (\ x__ y__ -> x__ {_TranslatedString'translation = y__})) + (Lens.Family2.Unchecked.lens + Data.Vector.Generic.toList + (\ _ y__ -> Data.Vector.Generic.fromList y__)) +instance Data.ProtoLens.Field.HasField TranslatedString "vec'translation" (Data.Vector.Vector TranslatedString'Translation) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedString'translation + (\ x__ y__ -> x__ {_TranslatedString'translation = y__})) + Prelude.id +instance Data.ProtoLens.Message TranslatedString where + messageName _ = Data.Text.pack "transit_realtime.TranslatedString" + packedMessageDescriptor _ + = "\n\ + \\DLETranslatedString\DC2P\n\ + \\vtranslation\CAN\SOH \ETX(\v2..transit_realtime.TranslatedString.TranslationR\vtranslation\SUBM\n\ + \\vTranslation\DC2\DC2\n\ + \\EOTtext\CAN\SOH \STX(\tR\EOTtext\DC2\SUB\n\ + \\blanguage\CAN\STX \SOH(\tR\blanguage*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + translation__field_descriptor + = Data.ProtoLens.FieldDescriptor + "translation" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TranslatedString'Translation) + (Data.ProtoLens.RepeatedField + Data.ProtoLens.Unpacked + (Data.ProtoLens.Field.field @"translation")) :: + Data.ProtoLens.FieldDescriptor TranslatedString + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, translation__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TranslatedString'_unknownFields + (\ x__ y__ -> x__ {_TranslatedString'_unknownFields = y__}) + defMessage + = TranslatedString'_constructor + {_TranslatedString'translation = Data.Vector.Generic.empty, + _TranslatedString'_unknownFields = []} + parseMessage + = let + loop :: + TranslatedString + -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld TranslatedString'Translation + -> Data.ProtoLens.Encoding.Bytes.Parser TranslatedString + loop x mutable'translation + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do frozen'translation <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.unsafeFreeze + mutable'translation) + (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) + (Lens.Family2.set + (Data.ProtoLens.Field.field @"vec'translation") frozen'translation + x)) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) + Data.ProtoLens.parseMessage) + "translation" + v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.append + mutable'translation y) + loop x v + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + mutable'translation + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do mutable'translation <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + Data.ProtoLens.Encoding.Growing.new + loop Data.ProtoLens.defMessage mutable'translation) + "TranslatedString" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.foldMapBuilder + (\ _v + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Lens.Family2.view + (Data.ProtoLens.Field.field @"vec'translation") _x)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)) +instance Control.DeepSeq.NFData TranslatedString where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TranslatedString'_unknownFields x__) + (Control.DeepSeq.deepseq (_TranslatedString'translation x__) ()) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.text' @:: Lens' TranslatedString'Translation Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.language' @:: Lens' TranslatedString'Translation Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'language' @:: Lens' TranslatedString'Translation (Prelude.Maybe Data.Text.Text)@ -} +data TranslatedString'Translation + = TranslatedString'Translation'_constructor {_TranslatedString'Translation'text :: !Data.Text.Text, + _TranslatedString'Translation'language :: !(Prelude.Maybe Data.Text.Text), + _TranslatedString'Translation'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TranslatedString'Translation where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TranslatedString'Translation "text" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedString'Translation'text + (\ x__ y__ -> x__ {_TranslatedString'Translation'text = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TranslatedString'Translation "language" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedString'Translation'language + (\ x__ y__ -> x__ {_TranslatedString'Translation'language = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TranslatedString'Translation "maybe'language" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TranslatedString'Translation'language + (\ x__ y__ -> x__ {_TranslatedString'Translation'language = y__})) + Prelude.id +instance Data.ProtoLens.Message TranslatedString'Translation where + messageName _ + = Data.Text.pack "transit_realtime.TranslatedString.Translation" + packedMessageDescriptor _ + = "\n\ + \\vTranslation\DC2\DC2\n\ + \\EOTtext\CAN\SOH \STX(\tR\EOTtext\DC2\SUB\n\ + \\blanguage\CAN\STX \SOH(\tR\blanguage*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + text__field_descriptor + = Data.ProtoLens.FieldDescriptor + "text" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required (Data.ProtoLens.Field.field @"text")) :: + Data.ProtoLens.FieldDescriptor TranslatedString'Translation + language__field_descriptor + = Data.ProtoLens.FieldDescriptor + "language" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'language")) :: + Data.ProtoLens.FieldDescriptor TranslatedString'Translation + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, text__field_descriptor), + (Data.ProtoLens.Tag 2, language__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TranslatedString'Translation'_unknownFields + (\ x__ y__ + -> x__ {_TranslatedString'Translation'_unknownFields = y__}) + defMessage + = TranslatedString'Translation'_constructor + {_TranslatedString'Translation'text = Data.ProtoLens.fieldDefault, + _TranslatedString'Translation'language = Prelude.Nothing, + _TranslatedString'Translation'_unknownFields = []} + parseMessage + = let + loop :: + TranslatedString'Translation + -> Prelude.Bool + -> Data.ProtoLens.Encoding.Bytes.Parser TranslatedString'Translation + loop x required'text + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let + missing = (if required'text then (:) "text" else Prelude.id) [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "text" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"text") y x) + Prelude.False + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "language" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"language") y x) + required'text + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + required'text + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage Prelude.True) "Translation" + buildMessage + = \ _x + -> (Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 + (Lens.Family2.view (Data.ProtoLens.Field.field @"text") _x))) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'language") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))) +instance Control.DeepSeq.NFData TranslatedString'Translation where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TranslatedString'Translation'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TranslatedString'Translation'text x__) + (Control.DeepSeq.deepseq + (_TranslatedString'Translation'language x__) ())) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.tripId' @:: Lens' TripDescriptor Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'tripId' @:: Lens' TripDescriptor (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.routeId' @:: Lens' TripDescriptor Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'routeId' @:: Lens' TripDescriptor (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.directionId' @:: Lens' TripDescriptor Data.Word.Word32@ + * 'Proto.GtfsRealtime_Fields.maybe'directionId' @:: Lens' TripDescriptor (Prelude.Maybe Data.Word.Word32)@ + * 'Proto.GtfsRealtime_Fields.startTime' @:: Lens' TripDescriptor Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'startTime' @:: Lens' TripDescriptor (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.startDate' @:: Lens' TripDescriptor Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'startDate' @:: Lens' TripDescriptor (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.scheduleRelationship' @:: Lens' TripDescriptor TripDescriptor'ScheduleRelationship@ + * 'Proto.GtfsRealtime_Fields.maybe'scheduleRelationship' @:: Lens' TripDescriptor (Prelude.Maybe TripDescriptor'ScheduleRelationship)@ -} +data TripDescriptor + = TripDescriptor'_constructor {_TripDescriptor'tripId :: !(Prelude.Maybe Data.Text.Text), + _TripDescriptor'routeId :: !(Prelude.Maybe Data.Text.Text), + _TripDescriptor'directionId :: !(Prelude.Maybe Data.Word.Word32), + _TripDescriptor'startTime :: !(Prelude.Maybe Data.Text.Text), + _TripDescriptor'startDate :: !(Prelude.Maybe Data.Text.Text), + _TripDescriptor'scheduleRelationship :: !(Prelude.Maybe TripDescriptor'ScheduleRelationship), + _TripDescriptor'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TripDescriptor where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TripDescriptor "tripId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'tripId + (\ x__ y__ -> x__ {_TripDescriptor'tripId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripDescriptor "maybe'tripId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'tripId + (\ x__ y__ -> x__ {_TripDescriptor'tripId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripDescriptor "routeId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'routeId + (\ x__ y__ -> x__ {_TripDescriptor'routeId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripDescriptor "maybe'routeId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'routeId + (\ x__ y__ -> x__ {_TripDescriptor'routeId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripDescriptor "directionId" Data.Word.Word32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'directionId + (\ x__ y__ -> x__ {_TripDescriptor'directionId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripDescriptor "maybe'directionId" (Prelude.Maybe Data.Word.Word32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'directionId + (\ x__ y__ -> x__ {_TripDescriptor'directionId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripDescriptor "startTime" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'startTime + (\ x__ y__ -> x__ {_TripDescriptor'startTime = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripDescriptor "maybe'startTime" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'startTime + (\ x__ y__ -> x__ {_TripDescriptor'startTime = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripDescriptor "startDate" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'startDate + (\ x__ y__ -> x__ {_TripDescriptor'startDate = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripDescriptor "maybe'startDate" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'startDate + (\ x__ y__ -> x__ {_TripDescriptor'startDate = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripDescriptor "scheduleRelationship" TripDescriptor'ScheduleRelationship where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'scheduleRelationship + (\ x__ y__ -> x__ {_TripDescriptor'scheduleRelationship = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripDescriptor "maybe'scheduleRelationship" (Prelude.Maybe TripDescriptor'ScheduleRelationship) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripDescriptor'scheduleRelationship + (\ x__ y__ -> x__ {_TripDescriptor'scheduleRelationship = y__})) + Prelude.id +instance Data.ProtoLens.Message TripDescriptor where + messageName _ = Data.Text.pack "transit_realtime.TripDescriptor" + packedMessageDescriptor _ + = "\n\ + \\SOTripDescriptor\DC2\ETB\n\ + \\atrip_id\CAN\SOH \SOH(\tR\ACKtripId\DC2\EM\n\ + \\broute_id\CAN\ENQ \SOH(\tR\arouteId\DC2!\n\ + \\fdirection_id\CAN\ACK \SOH(\rR\vdirectionId\DC2\GS\n\ + \\n\ + \start_time\CAN\STX \SOH(\tR\tstartTime\DC2\GS\n\ + \\n\ + \start_date\CAN\ETX \SOH(\tR\tstartDate\DC2j\n\ + \\NAKschedule_relationship\CAN\EOT \SOH(\SO25.transit_realtime.TripDescriptor.ScheduleRelationshipR\DC4scheduleRelationship\"p\n\ + \\DC4ScheduleRelationship\DC2\r\n\ + \\tSCHEDULED\DLE\NUL\DC2\t\n\ + \\ENQADDED\DLE\SOH\DC2\SI\n\ + \\vUNSCHEDULED\DLE\STX\DC2\f\n\ + \\bCANCELED\DLE\ETX\DC2\SI\n\ + \\vREPLACEMENT\DLE\ENQ\DC2\SO\n\ + \\n\ + \DUPLICATED\DLE\ACK*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + tripId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "trip_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'tripId")) :: + Data.ProtoLens.FieldDescriptor TripDescriptor + routeId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "route_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'routeId")) :: + Data.ProtoLens.FieldDescriptor TripDescriptor + directionId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "direction_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'directionId")) :: + Data.ProtoLens.FieldDescriptor TripDescriptor + startTime__field_descriptor + = Data.ProtoLens.FieldDescriptor + "start_time" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'startTime")) :: + Data.ProtoLens.FieldDescriptor TripDescriptor + startDate__field_descriptor + = Data.ProtoLens.FieldDescriptor + "start_date" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'startDate")) :: + Data.ProtoLens.FieldDescriptor TripDescriptor + scheduleRelationship__field_descriptor + = Data.ProtoLens.FieldDescriptor + "schedule_relationship" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor TripDescriptor'ScheduleRelationship) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'scheduleRelationship")) :: + Data.ProtoLens.FieldDescriptor TripDescriptor + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, tripId__field_descriptor), + (Data.ProtoLens.Tag 5, routeId__field_descriptor), + (Data.ProtoLens.Tag 6, directionId__field_descriptor), + (Data.ProtoLens.Tag 2, startTime__field_descriptor), + (Data.ProtoLens.Tag 3, startDate__field_descriptor), + (Data.ProtoLens.Tag 4, scheduleRelationship__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TripDescriptor'_unknownFields + (\ x__ y__ -> x__ {_TripDescriptor'_unknownFields = y__}) + defMessage + = TripDescriptor'_constructor + {_TripDescriptor'tripId = Prelude.Nothing, + _TripDescriptor'routeId = Prelude.Nothing, + _TripDescriptor'directionId = Prelude.Nothing, + _TripDescriptor'startTime = Prelude.Nothing, + _TripDescriptor'startDate = Prelude.Nothing, + _TripDescriptor'scheduleRelationship = Prelude.Nothing, + _TripDescriptor'_unknownFields = []} + parseMessage + = let + loop :: + TripDescriptor + -> Data.ProtoLens.Encoding.Bytes.Parser TripDescriptor + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "trip_id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"tripId") y x) + 42 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "route_id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"routeId") y x) + 48 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "direction_id" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"directionId") y x) + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "start_time" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"startTime") y x) + 26 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "start_date" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"startDate") y x) + 32 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "schedule_relationship" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"scheduleRelationship") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "TripDescriptor" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'tripId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'routeId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 42) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'directionId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 48) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'startTime") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'startDate") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 26) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'scheduleRelationship") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 32) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral) + Prelude.fromEnum _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))) +instance Control.DeepSeq.NFData TripDescriptor where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TripDescriptor'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TripDescriptor'tripId x__) + (Control.DeepSeq.deepseq + (_TripDescriptor'routeId x__) + (Control.DeepSeq.deepseq + (_TripDescriptor'directionId x__) + (Control.DeepSeq.deepseq + (_TripDescriptor'startTime x__) + (Control.DeepSeq.deepseq + (_TripDescriptor'startDate x__) + (Control.DeepSeq.deepseq + (_TripDescriptor'scheduleRelationship x__) ())))))) +data TripDescriptor'ScheduleRelationship + = TripDescriptor'SCHEDULED | + TripDescriptor'ADDED | + TripDescriptor'UNSCHEDULED | + TripDescriptor'CANCELED | + TripDescriptor'REPLACEMENT | + TripDescriptor'DUPLICATED + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum TripDescriptor'ScheduleRelationship where + maybeToEnum 0 = Prelude.Just TripDescriptor'SCHEDULED + maybeToEnum 1 = Prelude.Just TripDescriptor'ADDED + maybeToEnum 2 = Prelude.Just TripDescriptor'UNSCHEDULED + maybeToEnum 3 = Prelude.Just TripDescriptor'CANCELED + maybeToEnum 5 = Prelude.Just TripDescriptor'REPLACEMENT + maybeToEnum 6 = Prelude.Just TripDescriptor'DUPLICATED + maybeToEnum _ = Prelude.Nothing + showEnum TripDescriptor'SCHEDULED = "SCHEDULED" + showEnum TripDescriptor'ADDED = "ADDED" + showEnum TripDescriptor'UNSCHEDULED = "UNSCHEDULED" + showEnum TripDescriptor'CANCELED = "CANCELED" + showEnum TripDescriptor'REPLACEMENT = "REPLACEMENT" + showEnum TripDescriptor'DUPLICATED = "DUPLICATED" + readEnum k + | (Prelude.==) k "SCHEDULED" + = Prelude.Just TripDescriptor'SCHEDULED + | (Prelude.==) k "ADDED" = Prelude.Just TripDescriptor'ADDED + | (Prelude.==) k "UNSCHEDULED" + = Prelude.Just TripDescriptor'UNSCHEDULED + | (Prelude.==) k "CANCELED" = Prelude.Just TripDescriptor'CANCELED + | (Prelude.==) k "REPLACEMENT" + = Prelude.Just TripDescriptor'REPLACEMENT + | (Prelude.==) k "DUPLICATED" + = Prelude.Just TripDescriptor'DUPLICATED + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded TripDescriptor'ScheduleRelationship where + minBound = TripDescriptor'SCHEDULED + maxBound = TripDescriptor'DUPLICATED +instance Prelude.Enum TripDescriptor'ScheduleRelationship where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum ScheduleRelationship: " + (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum TripDescriptor'SCHEDULED = 0 + fromEnum TripDescriptor'ADDED = 1 + fromEnum TripDescriptor'UNSCHEDULED = 2 + fromEnum TripDescriptor'CANCELED = 3 + fromEnum TripDescriptor'REPLACEMENT = 5 + fromEnum TripDescriptor'DUPLICATED = 6 + succ TripDescriptor'DUPLICATED + = Prelude.error + "TripDescriptor'ScheduleRelationship.succ: bad argument TripDescriptor'DUPLICATED. This value would be out of bounds." + succ TripDescriptor'SCHEDULED = TripDescriptor'ADDED + succ TripDescriptor'ADDED = TripDescriptor'UNSCHEDULED + succ TripDescriptor'UNSCHEDULED = TripDescriptor'CANCELED + succ TripDescriptor'CANCELED = TripDescriptor'REPLACEMENT + succ TripDescriptor'REPLACEMENT = TripDescriptor'DUPLICATED + pred TripDescriptor'SCHEDULED + = Prelude.error + "TripDescriptor'ScheduleRelationship.pred: bad argument TripDescriptor'SCHEDULED. This value would be out of bounds." + pred TripDescriptor'ADDED = TripDescriptor'SCHEDULED + pred TripDescriptor'UNSCHEDULED = TripDescriptor'ADDED + pred TripDescriptor'CANCELED = TripDescriptor'UNSCHEDULED + pred TripDescriptor'REPLACEMENT = TripDescriptor'CANCELED + pred TripDescriptor'DUPLICATED = TripDescriptor'REPLACEMENT + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault TripDescriptor'ScheduleRelationship where + fieldDefault = TripDescriptor'SCHEDULED +instance Control.DeepSeq.NFData TripDescriptor'ScheduleRelationship where + rnf x__ = Prelude.seq x__ () +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.trip' @:: Lens' TripUpdate TripDescriptor@ + * 'Proto.GtfsRealtime_Fields.vehicle' @:: Lens' TripUpdate VehicleDescriptor@ + * 'Proto.GtfsRealtime_Fields.maybe'vehicle' @:: Lens' TripUpdate (Prelude.Maybe VehicleDescriptor)@ + * 'Proto.GtfsRealtime_Fields.stopTimeUpdate' @:: Lens' TripUpdate [TripUpdate'StopTimeUpdate]@ + * 'Proto.GtfsRealtime_Fields.vec'stopTimeUpdate' @:: Lens' TripUpdate (Data.Vector.Vector TripUpdate'StopTimeUpdate)@ + * 'Proto.GtfsRealtime_Fields.timestamp' @:: Lens' TripUpdate Data.Word.Word64@ + * 'Proto.GtfsRealtime_Fields.maybe'timestamp' @:: Lens' TripUpdate (Prelude.Maybe Data.Word.Word64)@ + * 'Proto.GtfsRealtime_Fields.delay' @:: Lens' TripUpdate Data.Int.Int32@ + * 'Proto.GtfsRealtime_Fields.maybe'delay' @:: Lens' TripUpdate (Prelude.Maybe Data.Int.Int32)@ + * 'Proto.GtfsRealtime_Fields.tripProperties' @:: Lens' TripUpdate TripUpdate'TripProperties@ + * 'Proto.GtfsRealtime_Fields.maybe'tripProperties' @:: Lens' TripUpdate (Prelude.Maybe TripUpdate'TripProperties)@ -} +data TripUpdate + = TripUpdate'_constructor {_TripUpdate'trip :: !TripDescriptor, + _TripUpdate'vehicle :: !(Prelude.Maybe VehicleDescriptor), + _TripUpdate'stopTimeUpdate :: !(Data.Vector.Vector TripUpdate'StopTimeUpdate), + _TripUpdate'timestamp :: !(Prelude.Maybe Data.Word.Word64), + _TripUpdate'delay :: !(Prelude.Maybe Data.Int.Int32), + _TripUpdate'tripProperties :: !(Prelude.Maybe TripUpdate'TripProperties), + _TripUpdate'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TripUpdate where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TripUpdate "trip" TripDescriptor where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'trip (\ x__ y__ -> x__ {_TripUpdate'trip = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate "vehicle" VehicleDescriptor where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'vehicle (\ x__ y__ -> x__ {_TripUpdate'vehicle = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField TripUpdate "maybe'vehicle" (Prelude.Maybe VehicleDescriptor) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'vehicle (\ x__ y__ -> x__ {_TripUpdate'vehicle = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate "stopTimeUpdate" [TripUpdate'StopTimeUpdate] where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'stopTimeUpdate + (\ x__ y__ -> x__ {_TripUpdate'stopTimeUpdate = y__})) + (Lens.Family2.Unchecked.lens + Data.Vector.Generic.toList + (\ _ y__ -> Data.Vector.Generic.fromList y__)) +instance Data.ProtoLens.Field.HasField TripUpdate "vec'stopTimeUpdate" (Data.Vector.Vector TripUpdate'StopTimeUpdate) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'stopTimeUpdate + (\ x__ y__ -> x__ {_TripUpdate'stopTimeUpdate = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate "timestamp" Data.Word.Word64 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'timestamp + (\ x__ y__ -> x__ {_TripUpdate'timestamp = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate "maybe'timestamp" (Prelude.Maybe Data.Word.Word64) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'timestamp + (\ x__ y__ -> x__ {_TripUpdate'timestamp = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate "delay" Data.Int.Int32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'delay (\ x__ y__ -> x__ {_TripUpdate'delay = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate "maybe'delay" (Prelude.Maybe Data.Int.Int32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'delay (\ x__ y__ -> x__ {_TripUpdate'delay = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate "tripProperties" TripUpdate'TripProperties where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'tripProperties + (\ x__ y__ -> x__ {_TripUpdate'tripProperties = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField TripUpdate "maybe'tripProperties" (Prelude.Maybe TripUpdate'TripProperties) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'tripProperties + (\ x__ y__ -> x__ {_TripUpdate'tripProperties = y__})) + Prelude.id +instance Data.ProtoLens.Message TripUpdate where + messageName _ = Data.Text.pack "transit_realtime.TripUpdate" + packedMessageDescriptor _ + = "\n\ + \\n\ + \TripUpdate\DC24\n\ + \\EOTtrip\CAN\SOH \STX(\v2 .transit_realtime.TripDescriptorR\EOTtrip\DC2=\n\ + \\avehicle\CAN\ETX \SOH(\v2#.transit_realtime.VehicleDescriptorR\avehicle\DC2U\n\ + \\DLEstop_time_update\CAN\STX \ETX(\v2+.transit_realtime.TripUpdate.StopTimeUpdateR\SOstopTimeUpdate\DC2\FS\n\ + \\ttimestamp\CAN\EOT \SOH(\EOTR\ttimestamp\DC2\DC4\n\ + \\ENQdelay\CAN\ENQ \SOH(\ENQR\ENQdelay\DC2T\n\ + \\SItrip_properties\CAN\ACK \SOH(\v2+.transit_realtime.TripUpdate.TripPropertiesR\SOtripProperties\SUBk\n\ + \\rStopTimeEvent\DC2\DC4\n\ + \\ENQdelay\CAN\SOH \SOH(\ENQR\ENQdelay\DC2\DC2\n\ + \\EOTtime\CAN\STX \SOH(\ETXR\EOTtime\DC2 \n\ + \\vuncertainty\CAN\ETX \SOH(\ENQR\vuncertainty*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\SUB\246\ENQ\n\ + \\SOStopTimeUpdate\DC2#\n\ + \\rstop_sequence\CAN\SOH \SOH(\rR\fstopSequence\DC2\ETB\n\ + \\astop_id\CAN\EOT \SOH(\tR\ACKstopId\DC2D\n\ + \\aarrival\CAN\STX \SOH(\v2*.transit_realtime.TripUpdate.StopTimeEventR\aarrival\DC2H\n\ + \\tdeparture\CAN\ETX \SOH(\v2*.transit_realtime.TripUpdate.StopTimeEventR\tdeparture\DC2o\n\ + \\SUBdeparture_occupancy_status\CAN\a \SOH(\SO21.transit_realtime.VehiclePosition.OccupancyStatusR\CANdepartureOccupancyStatus\DC2\128\SOH\n\ + \\NAKschedule_relationship\CAN\ENQ \SOH(\SO2@.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship:\tSCHEDULEDR\DC4scheduleRelationship\DC2p\n\ + \\DC4stop_time_properties\CAN\ACK \SOH(\v2>.transit_realtime.TripUpdate.StopTimeUpdate.StopTimePropertiesR\DC2stopTimeProperties\SUBN\n\ + \\DC2StopTimeProperties\DC2(\n\ + \\DLEassigned_stop_id\CAN\SOH \SOH(\tR\SOassignedStopId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"P\n\ + \\DC4ScheduleRelationship\DC2\r\n\ + \\tSCHEDULED\DLE\NUL\DC2\v\n\ + \\aSKIPPED\DLE\SOH\DC2\v\n\ + \\aNO_DATA\DLE\STX\DC2\SI\n\ + \\vUNSCHEDULED\DLE\ETX*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\SUB\146\SOH\n\ + \\SOTripProperties\DC2\ETB\n\ + \\atrip_id\CAN\SOH \SOH(\tR\ACKtripId\DC2\GS\n\ + \\n\ + \start_date\CAN\STX \SOH(\tR\tstartDate\DC2\GS\n\ + \\n\ + \start_time\CAN\ETX \SOH(\tR\tstartTime\DC2\EM\n\ + \\bshape_id\CAN\EOT \SOH(\tR\ashapeId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + trip__field_descriptor + = Data.ProtoLens.FieldDescriptor + "trip" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripDescriptor) + (Data.ProtoLens.PlainField + Data.ProtoLens.Required (Data.ProtoLens.Field.field @"trip")) :: + Data.ProtoLens.FieldDescriptor TripUpdate + vehicle__field_descriptor + = Data.ProtoLens.FieldDescriptor + "vehicle" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor VehicleDescriptor) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'vehicle")) :: + Data.ProtoLens.FieldDescriptor TripUpdate + stopTimeUpdate__field_descriptor + = Data.ProtoLens.FieldDescriptor + "stop_time_update" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripUpdate'StopTimeUpdate) + (Data.ProtoLens.RepeatedField + Data.ProtoLens.Unpacked + (Data.ProtoLens.Field.field @"stopTimeUpdate")) :: + Data.ProtoLens.FieldDescriptor TripUpdate + timestamp__field_descriptor + = Data.ProtoLens.FieldDescriptor + "timestamp" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'timestamp")) :: + Data.ProtoLens.FieldDescriptor TripUpdate + delay__field_descriptor + = Data.ProtoLens.FieldDescriptor + "delay" + (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'delay")) :: + Data.ProtoLens.FieldDescriptor TripUpdate + tripProperties__field_descriptor + = Data.ProtoLens.FieldDescriptor + "trip_properties" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripUpdate'TripProperties) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'tripProperties")) :: + Data.ProtoLens.FieldDescriptor TripUpdate + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, trip__field_descriptor), + (Data.ProtoLens.Tag 3, vehicle__field_descriptor), + (Data.ProtoLens.Tag 2, stopTimeUpdate__field_descriptor), + (Data.ProtoLens.Tag 4, timestamp__field_descriptor), + (Data.ProtoLens.Tag 5, delay__field_descriptor), + (Data.ProtoLens.Tag 6, tripProperties__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TripUpdate'_unknownFields + (\ x__ y__ -> x__ {_TripUpdate'_unknownFields = y__}) + defMessage + = TripUpdate'_constructor + {_TripUpdate'trip = Data.ProtoLens.defMessage, + _TripUpdate'vehicle = Prelude.Nothing, + _TripUpdate'stopTimeUpdate = Data.Vector.Generic.empty, + _TripUpdate'timestamp = Prelude.Nothing, + _TripUpdate'delay = Prelude.Nothing, + _TripUpdate'tripProperties = Prelude.Nothing, + _TripUpdate'_unknownFields = []} + parseMessage + = let + loop :: + TripUpdate + -> Prelude.Bool + -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld TripUpdate'StopTimeUpdate + -> Data.ProtoLens.Encoding.Bytes.Parser TripUpdate + loop x required'trip mutable'stopTimeUpdate + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do frozen'stopTimeUpdate <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.unsafeFreeze + mutable'stopTimeUpdate) + (let + missing = (if required'trip then (:) "trip" else Prelude.id) [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) + (Lens.Family2.set + (Data.ProtoLens.Field.field @"vec'stopTimeUpdate") + frozen'stopTimeUpdate x)) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "trip" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"trip") y x) + Prelude.False mutable'stopTimeUpdate + 26 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "vehicle" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"vehicle") y x) + required'trip mutable'stopTimeUpdate + 18 + -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) + Data.ProtoLens.parseMessage) + "stop_time_update" + v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.append + mutable'stopTimeUpdate y) + loop x required'trip v + 32 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + Data.ProtoLens.Encoding.Bytes.getVarInt "timestamp" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"timestamp") y x) + required'trip mutable'stopTimeUpdate + 40 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "delay" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"delay") y x) + required'trip mutable'stopTimeUpdate + 50 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "trip_properties" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"tripProperties") y x) + required'trip mutable'stopTimeUpdate + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + required'trip mutable'stopTimeUpdate + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do mutable'stopTimeUpdate <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + Data.ProtoLens.Encoding.Growing.new + loop Data.ProtoLens.defMessage Prelude.True mutable'stopTimeUpdate) + "TripUpdate" + buildMessage + = \ _x + -> (Data.Monoid.<>) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage + (Lens.Family2.view (Data.ProtoLens.Field.field @"trip") _x))) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'vehicle") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 26) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.foldMapBuilder + (\ _v + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Lens.Family2.view + (Data.ProtoLens.Field.field @"vec'stopTimeUpdate") _x)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'timestamp") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 32) + (Data.ProtoLens.Encoding.Bytes.putVarInt _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'delay") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 40) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral + _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'tripProperties") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 50) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))))))) +instance Control.DeepSeq.NFData TripUpdate where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TripUpdate'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TripUpdate'trip x__) + (Control.DeepSeq.deepseq + (_TripUpdate'vehicle x__) + (Control.DeepSeq.deepseq + (_TripUpdate'stopTimeUpdate x__) + (Control.DeepSeq.deepseq + (_TripUpdate'timestamp x__) + (Control.DeepSeq.deepseq + (_TripUpdate'delay x__) + (Control.DeepSeq.deepseq (_TripUpdate'tripProperties x__) ())))))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.delay' @:: Lens' TripUpdate'StopTimeEvent Data.Int.Int32@ + * 'Proto.GtfsRealtime_Fields.maybe'delay' @:: Lens' TripUpdate'StopTimeEvent (Prelude.Maybe Data.Int.Int32)@ + * 'Proto.GtfsRealtime_Fields.time' @:: Lens' TripUpdate'StopTimeEvent Data.Int.Int64@ + * 'Proto.GtfsRealtime_Fields.maybe'time' @:: Lens' TripUpdate'StopTimeEvent (Prelude.Maybe Data.Int.Int64)@ + * 'Proto.GtfsRealtime_Fields.uncertainty' @:: Lens' TripUpdate'StopTimeEvent Data.Int.Int32@ + * 'Proto.GtfsRealtime_Fields.maybe'uncertainty' @:: Lens' TripUpdate'StopTimeEvent (Prelude.Maybe Data.Int.Int32)@ -} +data TripUpdate'StopTimeEvent + = TripUpdate'StopTimeEvent'_constructor {_TripUpdate'StopTimeEvent'delay :: !(Prelude.Maybe Data.Int.Int32), + _TripUpdate'StopTimeEvent'time :: !(Prelude.Maybe Data.Int.Int64), + _TripUpdate'StopTimeEvent'uncertainty :: !(Prelude.Maybe Data.Int.Int32), + _TripUpdate'StopTimeEvent'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TripUpdate'StopTimeEvent where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeEvent "delay" Data.Int.Int32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeEvent'delay + (\ x__ y__ -> x__ {_TripUpdate'StopTimeEvent'delay = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeEvent "maybe'delay" (Prelude.Maybe Data.Int.Int32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeEvent'delay + (\ x__ y__ -> x__ {_TripUpdate'StopTimeEvent'delay = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeEvent "time" Data.Int.Int64 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeEvent'time + (\ x__ y__ -> x__ {_TripUpdate'StopTimeEvent'time = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeEvent "maybe'time" (Prelude.Maybe Data.Int.Int64) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeEvent'time + (\ x__ y__ -> x__ {_TripUpdate'StopTimeEvent'time = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeEvent "uncertainty" Data.Int.Int32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeEvent'uncertainty + (\ x__ y__ -> x__ {_TripUpdate'StopTimeEvent'uncertainty = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeEvent "maybe'uncertainty" (Prelude.Maybe Data.Int.Int32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeEvent'uncertainty + (\ x__ y__ -> x__ {_TripUpdate'StopTimeEvent'uncertainty = y__})) + Prelude.id +instance Data.ProtoLens.Message TripUpdate'StopTimeEvent where + messageName _ + = Data.Text.pack "transit_realtime.TripUpdate.StopTimeEvent" + packedMessageDescriptor _ + = "\n\ + \\rStopTimeEvent\DC2\DC4\n\ + \\ENQdelay\CAN\SOH \SOH(\ENQR\ENQdelay\DC2\DC2\n\ + \\EOTtime\CAN\STX \SOH(\ETXR\EOTtime\DC2 \n\ + \\vuncertainty\CAN\ETX \SOH(\ENQR\vuncertainty*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + delay__field_descriptor + = Data.ProtoLens.FieldDescriptor + "delay" + (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'delay")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeEvent + time__field_descriptor + = Data.ProtoLens.FieldDescriptor + "time" + (Data.ProtoLens.ScalarField Data.ProtoLens.Int64Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Int.Int64) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'time")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeEvent + uncertainty__field_descriptor + = Data.ProtoLens.FieldDescriptor + "uncertainty" + (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'uncertainty")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeEvent + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, delay__field_descriptor), + (Data.ProtoLens.Tag 2, time__field_descriptor), + (Data.ProtoLens.Tag 3, uncertainty__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeEvent'_unknownFields + (\ x__ y__ -> x__ {_TripUpdate'StopTimeEvent'_unknownFields = y__}) + defMessage + = TripUpdate'StopTimeEvent'_constructor + {_TripUpdate'StopTimeEvent'delay = Prelude.Nothing, + _TripUpdate'StopTimeEvent'time = Prelude.Nothing, + _TripUpdate'StopTimeEvent'uncertainty = Prelude.Nothing, + _TripUpdate'StopTimeEvent'_unknownFields = []} + parseMessage + = let + loop :: + TripUpdate'StopTimeEvent + -> Data.ProtoLens.Encoding.Bytes.Parser TripUpdate'StopTimeEvent + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "delay" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"delay") y x) + 16 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "time" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"time") y x) + 24 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "uncertainty" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"uncertainty") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "StopTimeEvent" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'delay") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 8) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'time") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 16) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'uncertainty") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 24) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)))) +instance Control.DeepSeq.NFData TripUpdate'StopTimeEvent where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TripUpdate'StopTimeEvent'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeEvent'delay x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeEvent'time x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeEvent'uncertainty x__) ()))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.stopSequence' @:: Lens' TripUpdate'StopTimeUpdate Data.Word.Word32@ + * 'Proto.GtfsRealtime_Fields.maybe'stopSequence' @:: Lens' TripUpdate'StopTimeUpdate (Prelude.Maybe Data.Word.Word32)@ + * 'Proto.GtfsRealtime_Fields.stopId' @:: Lens' TripUpdate'StopTimeUpdate Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'stopId' @:: Lens' TripUpdate'StopTimeUpdate (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.arrival' @:: Lens' TripUpdate'StopTimeUpdate TripUpdate'StopTimeEvent@ + * 'Proto.GtfsRealtime_Fields.maybe'arrival' @:: Lens' TripUpdate'StopTimeUpdate (Prelude.Maybe TripUpdate'StopTimeEvent)@ + * 'Proto.GtfsRealtime_Fields.departure' @:: Lens' TripUpdate'StopTimeUpdate TripUpdate'StopTimeEvent@ + * 'Proto.GtfsRealtime_Fields.maybe'departure' @:: Lens' TripUpdate'StopTimeUpdate (Prelude.Maybe TripUpdate'StopTimeEvent)@ + * 'Proto.GtfsRealtime_Fields.departureOccupancyStatus' @:: Lens' TripUpdate'StopTimeUpdate VehiclePosition'OccupancyStatus@ + * 'Proto.GtfsRealtime_Fields.maybe'departureOccupancyStatus' @:: Lens' TripUpdate'StopTimeUpdate (Prelude.Maybe VehiclePosition'OccupancyStatus)@ + * 'Proto.GtfsRealtime_Fields.scheduleRelationship' @:: Lens' TripUpdate'StopTimeUpdate TripUpdate'StopTimeUpdate'ScheduleRelationship@ + * 'Proto.GtfsRealtime_Fields.maybe'scheduleRelationship' @:: Lens' TripUpdate'StopTimeUpdate (Prelude.Maybe TripUpdate'StopTimeUpdate'ScheduleRelationship)@ + * 'Proto.GtfsRealtime_Fields.stopTimeProperties' @:: Lens' TripUpdate'StopTimeUpdate TripUpdate'StopTimeUpdate'StopTimeProperties@ + * 'Proto.GtfsRealtime_Fields.maybe'stopTimeProperties' @:: Lens' TripUpdate'StopTimeUpdate (Prelude.Maybe TripUpdate'StopTimeUpdate'StopTimeProperties)@ -} +data TripUpdate'StopTimeUpdate + = TripUpdate'StopTimeUpdate'_constructor {_TripUpdate'StopTimeUpdate'stopSequence :: !(Prelude.Maybe Data.Word.Word32), + _TripUpdate'StopTimeUpdate'stopId :: !(Prelude.Maybe Data.Text.Text), + _TripUpdate'StopTimeUpdate'arrival :: !(Prelude.Maybe TripUpdate'StopTimeEvent), + _TripUpdate'StopTimeUpdate'departure :: !(Prelude.Maybe TripUpdate'StopTimeEvent), + _TripUpdate'StopTimeUpdate'departureOccupancyStatus :: !(Prelude.Maybe VehiclePosition'OccupancyStatus), + _TripUpdate'StopTimeUpdate'scheduleRelationship :: !(Prelude.Maybe TripUpdate'StopTimeUpdate'ScheduleRelationship), + _TripUpdate'StopTimeUpdate'stopTimeProperties :: !(Prelude.Maybe TripUpdate'StopTimeUpdate'StopTimeProperties), + _TripUpdate'StopTimeUpdate'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TripUpdate'StopTimeUpdate where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "stopSequence" Data.Word.Word32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'stopSequence + (\ x__ y__ -> x__ {_TripUpdate'StopTimeUpdate'stopSequence = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "maybe'stopSequence" (Prelude.Maybe Data.Word.Word32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'stopSequence + (\ x__ y__ -> x__ {_TripUpdate'StopTimeUpdate'stopSequence = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "stopId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'stopId + (\ x__ y__ -> x__ {_TripUpdate'StopTimeUpdate'stopId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "maybe'stopId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'stopId + (\ x__ y__ -> x__ {_TripUpdate'StopTimeUpdate'stopId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "arrival" TripUpdate'StopTimeEvent where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'arrival + (\ x__ y__ -> x__ {_TripUpdate'StopTimeUpdate'arrival = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "maybe'arrival" (Prelude.Maybe TripUpdate'StopTimeEvent) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'arrival + (\ x__ y__ -> x__ {_TripUpdate'StopTimeUpdate'arrival = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "departure" TripUpdate'StopTimeEvent where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'departure + (\ x__ y__ -> x__ {_TripUpdate'StopTimeUpdate'departure = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "maybe'departure" (Prelude.Maybe TripUpdate'StopTimeEvent) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'departure + (\ x__ y__ -> x__ {_TripUpdate'StopTimeUpdate'departure = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "departureOccupancyStatus" VehiclePosition'OccupancyStatus where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'departureOccupancyStatus + (\ x__ y__ + -> x__ + {_TripUpdate'StopTimeUpdate'departureOccupancyStatus = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "maybe'departureOccupancyStatus" (Prelude.Maybe VehiclePosition'OccupancyStatus) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'departureOccupancyStatus + (\ x__ y__ + -> x__ + {_TripUpdate'StopTimeUpdate'departureOccupancyStatus = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "scheduleRelationship" TripUpdate'StopTimeUpdate'ScheduleRelationship where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'scheduleRelationship + (\ x__ y__ + -> x__ {_TripUpdate'StopTimeUpdate'scheduleRelationship = y__})) + (Data.ProtoLens.maybeLens TripUpdate'StopTimeUpdate'SCHEDULED) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "maybe'scheduleRelationship" (Prelude.Maybe TripUpdate'StopTimeUpdate'ScheduleRelationship) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'scheduleRelationship + (\ x__ y__ + -> x__ {_TripUpdate'StopTimeUpdate'scheduleRelationship = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "stopTimeProperties" TripUpdate'StopTimeUpdate'StopTimeProperties where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'stopTimeProperties + (\ x__ y__ + -> x__ {_TripUpdate'StopTimeUpdate'stopTimeProperties = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate "maybe'stopTimeProperties" (Prelude.Maybe TripUpdate'StopTimeUpdate'StopTimeProperties) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'stopTimeProperties + (\ x__ y__ + -> x__ {_TripUpdate'StopTimeUpdate'stopTimeProperties = y__})) + Prelude.id +instance Data.ProtoLens.Message TripUpdate'StopTimeUpdate where + messageName _ + = Data.Text.pack "transit_realtime.TripUpdate.StopTimeUpdate" + packedMessageDescriptor _ + = "\n\ + \\SOStopTimeUpdate\DC2#\n\ + \\rstop_sequence\CAN\SOH \SOH(\rR\fstopSequence\DC2\ETB\n\ + \\astop_id\CAN\EOT \SOH(\tR\ACKstopId\DC2D\n\ + \\aarrival\CAN\STX \SOH(\v2*.transit_realtime.TripUpdate.StopTimeEventR\aarrival\DC2H\n\ + \\tdeparture\CAN\ETX \SOH(\v2*.transit_realtime.TripUpdate.StopTimeEventR\tdeparture\DC2o\n\ + \\SUBdeparture_occupancy_status\CAN\a \SOH(\SO21.transit_realtime.VehiclePosition.OccupancyStatusR\CANdepartureOccupancyStatus\DC2\128\SOH\n\ + \\NAKschedule_relationship\CAN\ENQ \SOH(\SO2@.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship:\tSCHEDULEDR\DC4scheduleRelationship\DC2p\n\ + \\DC4stop_time_properties\CAN\ACK \SOH(\v2>.transit_realtime.TripUpdate.StopTimeUpdate.StopTimePropertiesR\DC2stopTimeProperties\SUBN\n\ + \\DC2StopTimeProperties\DC2(\n\ + \\DLEassigned_stop_id\CAN\SOH \SOH(\tR\SOassignedStopId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"P\n\ + \\DC4ScheduleRelationship\DC2\r\n\ + \\tSCHEDULED\DLE\NUL\DC2\v\n\ + \\aSKIPPED\DLE\SOH\DC2\v\n\ + \\aNO_DATA\DLE\STX\DC2\SI\n\ + \\vUNSCHEDULED\DLE\ETX*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + stopSequence__field_descriptor + = Data.ProtoLens.FieldDescriptor + "stop_sequence" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'stopSequence")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeUpdate + stopId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "stop_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'stopId")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeUpdate + arrival__field_descriptor + = Data.ProtoLens.FieldDescriptor + "arrival" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripUpdate'StopTimeEvent) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'arrival")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeUpdate + departure__field_descriptor + = Data.ProtoLens.FieldDescriptor + "departure" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripUpdate'StopTimeEvent) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'departure")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeUpdate + departureOccupancyStatus__field_descriptor + = Data.ProtoLens.FieldDescriptor + "departure_occupancy_status" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor VehiclePosition'OccupancyStatus) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'departureOccupancyStatus")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeUpdate + scheduleRelationship__field_descriptor + = Data.ProtoLens.FieldDescriptor + "schedule_relationship" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor TripUpdate'StopTimeUpdate'ScheduleRelationship) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'scheduleRelationship")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeUpdate + stopTimeProperties__field_descriptor + = Data.ProtoLens.FieldDescriptor + "stop_time_properties" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripUpdate'StopTimeUpdate'StopTimeProperties) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'stopTimeProperties")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeUpdate + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, stopSequence__field_descriptor), + (Data.ProtoLens.Tag 4, stopId__field_descriptor), + (Data.ProtoLens.Tag 2, arrival__field_descriptor), + (Data.ProtoLens.Tag 3, departure__field_descriptor), + (Data.ProtoLens.Tag 7, departureOccupancyStatus__field_descriptor), + (Data.ProtoLens.Tag 5, scheduleRelationship__field_descriptor), + (Data.ProtoLens.Tag 6, stopTimeProperties__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'_unknownFields + (\ x__ y__ + -> x__ {_TripUpdate'StopTimeUpdate'_unknownFields = y__}) + defMessage + = TripUpdate'StopTimeUpdate'_constructor + {_TripUpdate'StopTimeUpdate'stopSequence = Prelude.Nothing, + _TripUpdate'StopTimeUpdate'stopId = Prelude.Nothing, + _TripUpdate'StopTimeUpdate'arrival = Prelude.Nothing, + _TripUpdate'StopTimeUpdate'departure = Prelude.Nothing, + _TripUpdate'StopTimeUpdate'departureOccupancyStatus = Prelude.Nothing, + _TripUpdate'StopTimeUpdate'scheduleRelationship = Prelude.Nothing, + _TripUpdate'StopTimeUpdate'stopTimeProperties = Prelude.Nothing, + _TripUpdate'StopTimeUpdate'_unknownFields = []} + parseMessage + = let + loop :: + TripUpdate'StopTimeUpdate + -> Data.ProtoLens.Encoding.Bytes.Parser TripUpdate'StopTimeUpdate + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 8 -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "stop_sequence" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"stopSequence") y x) + 34 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "stop_id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"stopId") y x) + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "arrival" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"arrival") y x) + 26 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "departure" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"departure") y x) + 56 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "departure_occupancy_status" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"departureOccupancyStatus") y x) + 40 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "schedule_relationship" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"scheduleRelationship") y x) + 50 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "stop_time_properties" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"stopTimeProperties") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "StopTimeUpdate" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'stopSequence") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 8) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'stopId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 34) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'arrival") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'departure") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 26) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'departureOccupancyStatus") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 56) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'scheduleRelationship") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 40) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'stopTimeProperties") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 50) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))))) +instance Control.DeepSeq.NFData TripUpdate'StopTimeUpdate where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'stopSequence x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'stopId x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'arrival x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'departure x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'departureOccupancyStatus x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'scheduleRelationship x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'stopTimeProperties x__) ()))))))) +data TripUpdate'StopTimeUpdate'ScheduleRelationship + = TripUpdate'StopTimeUpdate'SCHEDULED | + TripUpdate'StopTimeUpdate'SKIPPED | + TripUpdate'StopTimeUpdate'NO_DATA | + TripUpdate'StopTimeUpdate'UNSCHEDULED + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum TripUpdate'StopTimeUpdate'ScheduleRelationship where + maybeToEnum 0 = Prelude.Just TripUpdate'StopTimeUpdate'SCHEDULED + maybeToEnum 1 = Prelude.Just TripUpdate'StopTimeUpdate'SKIPPED + maybeToEnum 2 = Prelude.Just TripUpdate'StopTimeUpdate'NO_DATA + maybeToEnum 3 = Prelude.Just TripUpdate'StopTimeUpdate'UNSCHEDULED + maybeToEnum _ = Prelude.Nothing + showEnum TripUpdate'StopTimeUpdate'SCHEDULED = "SCHEDULED" + showEnum TripUpdate'StopTimeUpdate'SKIPPED = "SKIPPED" + showEnum TripUpdate'StopTimeUpdate'NO_DATA = "NO_DATA" + showEnum TripUpdate'StopTimeUpdate'UNSCHEDULED = "UNSCHEDULED" + readEnum k + | (Prelude.==) k "SCHEDULED" + = Prelude.Just TripUpdate'StopTimeUpdate'SCHEDULED + | (Prelude.==) k "SKIPPED" + = Prelude.Just TripUpdate'StopTimeUpdate'SKIPPED + | (Prelude.==) k "NO_DATA" + = Prelude.Just TripUpdate'StopTimeUpdate'NO_DATA + | (Prelude.==) k "UNSCHEDULED" + = Prelude.Just TripUpdate'StopTimeUpdate'UNSCHEDULED + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded TripUpdate'StopTimeUpdate'ScheduleRelationship where + minBound = TripUpdate'StopTimeUpdate'SCHEDULED + maxBound = TripUpdate'StopTimeUpdate'UNSCHEDULED +instance Prelude.Enum TripUpdate'StopTimeUpdate'ScheduleRelationship where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum ScheduleRelationship: " + (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum TripUpdate'StopTimeUpdate'SCHEDULED = 0 + fromEnum TripUpdate'StopTimeUpdate'SKIPPED = 1 + fromEnum TripUpdate'StopTimeUpdate'NO_DATA = 2 + fromEnum TripUpdate'StopTimeUpdate'UNSCHEDULED = 3 + succ TripUpdate'StopTimeUpdate'UNSCHEDULED + = Prelude.error + "TripUpdate'StopTimeUpdate'ScheduleRelationship.succ: bad argument TripUpdate'StopTimeUpdate'UNSCHEDULED. This value would be out of bounds." + succ TripUpdate'StopTimeUpdate'SCHEDULED + = TripUpdate'StopTimeUpdate'SKIPPED + succ TripUpdate'StopTimeUpdate'SKIPPED + = TripUpdate'StopTimeUpdate'NO_DATA + succ TripUpdate'StopTimeUpdate'NO_DATA + = TripUpdate'StopTimeUpdate'UNSCHEDULED + pred TripUpdate'StopTimeUpdate'SCHEDULED + = Prelude.error + "TripUpdate'StopTimeUpdate'ScheduleRelationship.pred: bad argument TripUpdate'StopTimeUpdate'SCHEDULED. This value would be out of bounds." + pred TripUpdate'StopTimeUpdate'SKIPPED + = TripUpdate'StopTimeUpdate'SCHEDULED + pred TripUpdate'StopTimeUpdate'NO_DATA + = TripUpdate'StopTimeUpdate'SKIPPED + pred TripUpdate'StopTimeUpdate'UNSCHEDULED + = TripUpdate'StopTimeUpdate'NO_DATA + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault TripUpdate'StopTimeUpdate'ScheduleRelationship where + fieldDefault = TripUpdate'StopTimeUpdate'SCHEDULED +instance Control.DeepSeq.NFData TripUpdate'StopTimeUpdate'ScheduleRelationship where + rnf x__ = Prelude.seq x__ () +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.assignedStopId' @:: Lens' TripUpdate'StopTimeUpdate'StopTimeProperties Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'assignedStopId' @:: Lens' TripUpdate'StopTimeUpdate'StopTimeProperties (Prelude.Maybe Data.Text.Text)@ -} +data TripUpdate'StopTimeUpdate'StopTimeProperties + = TripUpdate'StopTimeUpdate'StopTimeProperties'_constructor {_TripUpdate'StopTimeUpdate'StopTimeProperties'assignedStopId :: !(Prelude.Maybe Data.Text.Text), + _TripUpdate'StopTimeUpdate'StopTimeProperties'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TripUpdate'StopTimeUpdate'StopTimeProperties where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate'StopTimeProperties "assignedStopId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'StopTimeProperties'assignedStopId + (\ x__ y__ + -> x__ + {_TripUpdate'StopTimeUpdate'StopTimeProperties'assignedStopId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'StopTimeUpdate'StopTimeProperties "maybe'assignedStopId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'StopTimeProperties'assignedStopId + (\ x__ y__ + -> x__ + {_TripUpdate'StopTimeUpdate'StopTimeProperties'assignedStopId = y__})) + Prelude.id +instance Data.ProtoLens.Message TripUpdate'StopTimeUpdate'StopTimeProperties where + messageName _ + = Data.Text.pack + "transit_realtime.TripUpdate.StopTimeUpdate.StopTimeProperties" + packedMessageDescriptor _ + = "\n\ + \\DC2StopTimeProperties\DC2(\n\ + \\DLEassigned_stop_id\CAN\SOH \SOH(\tR\SOassignedStopId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + assignedStopId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "assigned_stop_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'assignedStopId")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'StopTimeUpdate'StopTimeProperties + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, assignedStopId__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TripUpdate'StopTimeUpdate'StopTimeProperties'_unknownFields + (\ x__ y__ + -> x__ + {_TripUpdate'StopTimeUpdate'StopTimeProperties'_unknownFields = y__}) + defMessage + = TripUpdate'StopTimeUpdate'StopTimeProperties'_constructor + {_TripUpdate'StopTimeUpdate'StopTimeProperties'assignedStopId = Prelude.Nothing, + _TripUpdate'StopTimeUpdate'StopTimeProperties'_unknownFields = []} + parseMessage + = let + loop :: + TripUpdate'StopTimeUpdate'StopTimeProperties + -> Data.ProtoLens.Encoding.Bytes.Parser TripUpdate'StopTimeUpdate'StopTimeProperties + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "assigned_stop_id" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"assignedStopId") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "StopTimeProperties" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'assignedStopId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)) +instance Control.DeepSeq.NFData TripUpdate'StopTimeUpdate'StopTimeProperties where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'StopTimeProperties'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TripUpdate'StopTimeUpdate'StopTimeProperties'assignedStopId x__) + ()) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.tripId' @:: Lens' TripUpdate'TripProperties Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'tripId' @:: Lens' TripUpdate'TripProperties (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.startDate' @:: Lens' TripUpdate'TripProperties Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'startDate' @:: Lens' TripUpdate'TripProperties (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.startTime' @:: Lens' TripUpdate'TripProperties Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'startTime' @:: Lens' TripUpdate'TripProperties (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.shapeId' @:: Lens' TripUpdate'TripProperties Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'shapeId' @:: Lens' TripUpdate'TripProperties (Prelude.Maybe Data.Text.Text)@ -} +data TripUpdate'TripProperties + = TripUpdate'TripProperties'_constructor {_TripUpdate'TripProperties'tripId :: !(Prelude.Maybe Data.Text.Text), + _TripUpdate'TripProperties'startDate :: !(Prelude.Maybe Data.Text.Text), + _TripUpdate'TripProperties'startTime :: !(Prelude.Maybe Data.Text.Text), + _TripUpdate'TripProperties'shapeId :: !(Prelude.Maybe Data.Text.Text), + _TripUpdate'TripProperties'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show TripUpdate'TripProperties where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField TripUpdate'TripProperties "tripId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'tripId + (\ x__ y__ -> x__ {_TripUpdate'TripProperties'tripId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'TripProperties "maybe'tripId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'tripId + (\ x__ y__ -> x__ {_TripUpdate'TripProperties'tripId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'TripProperties "startDate" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'startDate + (\ x__ y__ -> x__ {_TripUpdate'TripProperties'startDate = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'TripProperties "maybe'startDate" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'startDate + (\ x__ y__ -> x__ {_TripUpdate'TripProperties'startDate = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'TripProperties "startTime" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'startTime + (\ x__ y__ -> x__ {_TripUpdate'TripProperties'startTime = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'TripProperties "maybe'startTime" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'startTime + (\ x__ y__ -> x__ {_TripUpdate'TripProperties'startTime = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField TripUpdate'TripProperties "shapeId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'shapeId + (\ x__ y__ -> x__ {_TripUpdate'TripProperties'shapeId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField TripUpdate'TripProperties "maybe'shapeId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'shapeId + (\ x__ y__ -> x__ {_TripUpdate'TripProperties'shapeId = y__})) + Prelude.id +instance Data.ProtoLens.Message TripUpdate'TripProperties where + messageName _ + = Data.Text.pack "transit_realtime.TripUpdate.TripProperties" + packedMessageDescriptor _ + = "\n\ + \\SOTripProperties\DC2\ETB\n\ + \\atrip_id\CAN\SOH \SOH(\tR\ACKtripId\DC2\GS\n\ + \\n\ + \start_date\CAN\STX \SOH(\tR\tstartDate\DC2\GS\n\ + \\n\ + \start_time\CAN\ETX \SOH(\tR\tstartTime\DC2\EM\n\ + \\bshape_id\CAN\EOT \SOH(\tR\ashapeId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + tripId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "trip_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'tripId")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'TripProperties + startDate__field_descriptor + = Data.ProtoLens.FieldDescriptor + "start_date" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'startDate")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'TripProperties + startTime__field_descriptor + = Data.ProtoLens.FieldDescriptor + "start_time" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'startTime")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'TripProperties + shapeId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "shape_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'shapeId")) :: + Data.ProtoLens.FieldDescriptor TripUpdate'TripProperties + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, tripId__field_descriptor), + (Data.ProtoLens.Tag 2, startDate__field_descriptor), + (Data.ProtoLens.Tag 3, startTime__field_descriptor), + (Data.ProtoLens.Tag 4, shapeId__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _TripUpdate'TripProperties'_unknownFields + (\ x__ y__ + -> x__ {_TripUpdate'TripProperties'_unknownFields = y__}) + defMessage + = TripUpdate'TripProperties'_constructor + {_TripUpdate'TripProperties'tripId = Prelude.Nothing, + _TripUpdate'TripProperties'startDate = Prelude.Nothing, + _TripUpdate'TripProperties'startTime = Prelude.Nothing, + _TripUpdate'TripProperties'shapeId = Prelude.Nothing, + _TripUpdate'TripProperties'_unknownFields = []} + parseMessage + = let + loop :: + TripUpdate'TripProperties + -> Data.ProtoLens.Encoding.Bytes.Parser TripUpdate'TripProperties + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "trip_id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"tripId") y x) + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "start_date" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"startDate") y x) + 26 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "start_time" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"startTime") y x) + 34 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "shape_id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"shapeId") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "TripProperties" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'tripId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'startDate") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'startTime") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 26) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'shapeId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 34) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x))))) +instance Control.DeepSeq.NFData TripUpdate'TripProperties where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_TripUpdate'TripProperties'_unknownFields x__) + (Control.DeepSeq.deepseq + (_TripUpdate'TripProperties'tripId x__) + (Control.DeepSeq.deepseq + (_TripUpdate'TripProperties'startDate x__) + (Control.DeepSeq.deepseq + (_TripUpdate'TripProperties'startTime x__) + (Control.DeepSeq.deepseq + (_TripUpdate'TripProperties'shapeId x__) ())))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.id' @:: Lens' VehicleDescriptor Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'id' @:: Lens' VehicleDescriptor (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.label' @:: Lens' VehicleDescriptor Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'label' @:: Lens' VehicleDescriptor (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.licensePlate' @:: Lens' VehicleDescriptor Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'licensePlate' @:: Lens' VehicleDescriptor (Prelude.Maybe Data.Text.Text)@ -} +data VehicleDescriptor + = VehicleDescriptor'_constructor {_VehicleDescriptor'id :: !(Prelude.Maybe Data.Text.Text), + _VehicleDescriptor'label :: !(Prelude.Maybe Data.Text.Text), + _VehicleDescriptor'licensePlate :: !(Prelude.Maybe Data.Text.Text), + _VehicleDescriptor'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show VehicleDescriptor where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField VehicleDescriptor "id" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehicleDescriptor'id + (\ x__ y__ -> x__ {_VehicleDescriptor'id = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehicleDescriptor "maybe'id" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehicleDescriptor'id + (\ x__ y__ -> x__ {_VehicleDescriptor'id = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehicleDescriptor "label" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehicleDescriptor'label + (\ x__ y__ -> x__ {_VehicleDescriptor'label = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehicleDescriptor "maybe'label" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehicleDescriptor'label + (\ x__ y__ -> x__ {_VehicleDescriptor'label = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehicleDescriptor "licensePlate" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehicleDescriptor'licensePlate + (\ x__ y__ -> x__ {_VehicleDescriptor'licensePlate = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehicleDescriptor "maybe'licensePlate" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehicleDescriptor'licensePlate + (\ x__ y__ -> x__ {_VehicleDescriptor'licensePlate = y__})) + Prelude.id +instance Data.ProtoLens.Message VehicleDescriptor where + messageName _ = Data.Text.pack "transit_realtime.VehicleDescriptor" + packedMessageDescriptor _ + = "\n\ + \\DC1VehicleDescriptor\DC2\SO\n\ + \\STXid\CAN\SOH \SOH(\tR\STXid\DC2\DC4\n\ + \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel\DC2#\n\ + \\rlicense_plate\CAN\ETX \SOH(\tR\flicensePlate*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + id__field_descriptor + = Data.ProtoLens.FieldDescriptor + "id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'id")) :: + Data.ProtoLens.FieldDescriptor VehicleDescriptor + label__field_descriptor + = Data.ProtoLens.FieldDescriptor + "label" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'label")) :: + Data.ProtoLens.FieldDescriptor VehicleDescriptor + licensePlate__field_descriptor + = Data.ProtoLens.FieldDescriptor + "license_plate" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'licensePlate")) :: + Data.ProtoLens.FieldDescriptor VehicleDescriptor + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, id__field_descriptor), + (Data.ProtoLens.Tag 2, label__field_descriptor), + (Data.ProtoLens.Tag 3, licensePlate__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _VehicleDescriptor'_unknownFields + (\ x__ y__ -> x__ {_VehicleDescriptor'_unknownFields = y__}) + defMessage + = VehicleDescriptor'_constructor + {_VehicleDescriptor'id = Prelude.Nothing, + _VehicleDescriptor'label = Prelude.Nothing, + _VehicleDescriptor'licensePlate = Prelude.Nothing, + _VehicleDescriptor'_unknownFields = []} + parseMessage + = let + loop :: + VehicleDescriptor + -> Data.ProtoLens.Encoding.Bytes.Parser VehicleDescriptor + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"id") y x) + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "label" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x) + 26 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "license_plate" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"licensePlate") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "VehicleDescriptor" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'id") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'label") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'licensePlate") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 26) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)))) +instance Control.DeepSeq.NFData VehicleDescriptor where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_VehicleDescriptor'_unknownFields x__) + (Control.DeepSeq.deepseq + (_VehicleDescriptor'id x__) + (Control.DeepSeq.deepseq + (_VehicleDescriptor'label x__) + (Control.DeepSeq.deepseq + (_VehicleDescriptor'licensePlate x__) ()))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.trip' @:: Lens' VehiclePosition TripDescriptor@ + * 'Proto.GtfsRealtime_Fields.maybe'trip' @:: Lens' VehiclePosition (Prelude.Maybe TripDescriptor)@ + * 'Proto.GtfsRealtime_Fields.vehicle' @:: Lens' VehiclePosition VehicleDescriptor@ + * 'Proto.GtfsRealtime_Fields.maybe'vehicle' @:: Lens' VehiclePosition (Prelude.Maybe VehicleDescriptor)@ + * 'Proto.GtfsRealtime_Fields.position' @:: Lens' VehiclePosition Position@ + * 'Proto.GtfsRealtime_Fields.maybe'position' @:: Lens' VehiclePosition (Prelude.Maybe Position)@ + * 'Proto.GtfsRealtime_Fields.currentStopSequence' @:: Lens' VehiclePosition Data.Word.Word32@ + * 'Proto.GtfsRealtime_Fields.maybe'currentStopSequence' @:: Lens' VehiclePosition (Prelude.Maybe Data.Word.Word32)@ + * 'Proto.GtfsRealtime_Fields.stopId' @:: Lens' VehiclePosition Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'stopId' @:: Lens' VehiclePosition (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.currentStatus' @:: Lens' VehiclePosition VehiclePosition'VehicleStopStatus@ + * 'Proto.GtfsRealtime_Fields.maybe'currentStatus' @:: Lens' VehiclePosition (Prelude.Maybe VehiclePosition'VehicleStopStatus)@ + * 'Proto.GtfsRealtime_Fields.timestamp' @:: Lens' VehiclePosition Data.Word.Word64@ + * 'Proto.GtfsRealtime_Fields.maybe'timestamp' @:: Lens' VehiclePosition (Prelude.Maybe Data.Word.Word64)@ + * 'Proto.GtfsRealtime_Fields.congestionLevel' @:: Lens' VehiclePosition VehiclePosition'CongestionLevel@ + * 'Proto.GtfsRealtime_Fields.maybe'congestionLevel' @:: Lens' VehiclePosition (Prelude.Maybe VehiclePosition'CongestionLevel)@ + * 'Proto.GtfsRealtime_Fields.occupancyStatus' @:: Lens' VehiclePosition VehiclePosition'OccupancyStatus@ + * 'Proto.GtfsRealtime_Fields.maybe'occupancyStatus' @:: Lens' VehiclePosition (Prelude.Maybe VehiclePosition'OccupancyStatus)@ + * 'Proto.GtfsRealtime_Fields.occupancyPercentage' @:: Lens' VehiclePosition Data.Word.Word32@ + * 'Proto.GtfsRealtime_Fields.maybe'occupancyPercentage' @:: Lens' VehiclePosition (Prelude.Maybe Data.Word.Word32)@ + * 'Proto.GtfsRealtime_Fields.multiCarriageDetails' @:: Lens' VehiclePosition [VehiclePosition'CarriageDetails]@ + * 'Proto.GtfsRealtime_Fields.vec'multiCarriageDetails' @:: Lens' VehiclePosition (Data.Vector.Vector VehiclePosition'CarriageDetails)@ -} +data VehiclePosition + = VehiclePosition'_constructor {_VehiclePosition'trip :: !(Prelude.Maybe TripDescriptor), + _VehiclePosition'vehicle :: !(Prelude.Maybe VehicleDescriptor), + _VehiclePosition'position :: !(Prelude.Maybe Position), + _VehiclePosition'currentStopSequence :: !(Prelude.Maybe Data.Word.Word32), + _VehiclePosition'stopId :: !(Prelude.Maybe Data.Text.Text), + _VehiclePosition'currentStatus :: !(Prelude.Maybe VehiclePosition'VehicleStopStatus), + _VehiclePosition'timestamp :: !(Prelude.Maybe Data.Word.Word64), + _VehiclePosition'congestionLevel :: !(Prelude.Maybe VehiclePosition'CongestionLevel), + _VehiclePosition'occupancyStatus :: !(Prelude.Maybe VehiclePosition'OccupancyStatus), + _VehiclePosition'occupancyPercentage :: !(Prelude.Maybe Data.Word.Word32), + _VehiclePosition'multiCarriageDetails :: !(Data.Vector.Vector VehiclePosition'CarriageDetails), + _VehiclePosition'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show VehiclePosition where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField VehiclePosition "trip" TripDescriptor where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'trip + (\ x__ y__ -> x__ {_VehiclePosition'trip = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'trip" (Prelude.Maybe TripDescriptor) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'trip + (\ x__ y__ -> x__ {_VehiclePosition'trip = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "vehicle" VehicleDescriptor where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'vehicle + (\ x__ y__ -> x__ {_VehiclePosition'vehicle = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'vehicle" (Prelude.Maybe VehicleDescriptor) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'vehicle + (\ x__ y__ -> x__ {_VehiclePosition'vehicle = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "position" Position where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'position + (\ x__ y__ -> x__ {_VehiclePosition'position = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.defMessage) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'position" (Prelude.Maybe Position) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'position + (\ x__ y__ -> x__ {_VehiclePosition'position = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "currentStopSequence" Data.Word.Word32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'currentStopSequence + (\ x__ y__ -> x__ {_VehiclePosition'currentStopSequence = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'currentStopSequence" (Prelude.Maybe Data.Word.Word32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'currentStopSequence + (\ x__ y__ -> x__ {_VehiclePosition'currentStopSequence = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "stopId" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'stopId + (\ x__ y__ -> x__ {_VehiclePosition'stopId = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'stopId" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'stopId + (\ x__ y__ -> x__ {_VehiclePosition'stopId = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "currentStatus" VehiclePosition'VehicleStopStatus where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'currentStatus + (\ x__ y__ -> x__ {_VehiclePosition'currentStatus = y__})) + (Data.ProtoLens.maybeLens VehiclePosition'IN_TRANSIT_TO) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'currentStatus" (Prelude.Maybe VehiclePosition'VehicleStopStatus) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'currentStatus + (\ x__ y__ -> x__ {_VehiclePosition'currentStatus = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "timestamp" Data.Word.Word64 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'timestamp + (\ x__ y__ -> x__ {_VehiclePosition'timestamp = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'timestamp" (Prelude.Maybe Data.Word.Word64) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'timestamp + (\ x__ y__ -> x__ {_VehiclePosition'timestamp = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "congestionLevel" VehiclePosition'CongestionLevel where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'congestionLevel + (\ x__ y__ -> x__ {_VehiclePosition'congestionLevel = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'congestionLevel" (Prelude.Maybe VehiclePosition'CongestionLevel) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'congestionLevel + (\ x__ y__ -> x__ {_VehiclePosition'congestionLevel = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "occupancyStatus" VehiclePosition'OccupancyStatus where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'occupancyStatus + (\ x__ y__ -> x__ {_VehiclePosition'occupancyStatus = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'occupancyStatus" (Prelude.Maybe VehiclePosition'OccupancyStatus) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'occupancyStatus + (\ x__ y__ -> x__ {_VehiclePosition'occupancyStatus = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "occupancyPercentage" Data.Word.Word32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'occupancyPercentage + (\ x__ y__ -> x__ {_VehiclePosition'occupancyPercentage = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition "maybe'occupancyPercentage" (Prelude.Maybe Data.Word.Word32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'occupancyPercentage + (\ x__ y__ -> x__ {_VehiclePosition'occupancyPercentage = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition "multiCarriageDetails" [VehiclePosition'CarriageDetails] where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'multiCarriageDetails + (\ x__ y__ -> x__ {_VehiclePosition'multiCarriageDetails = y__})) + (Lens.Family2.Unchecked.lens + Data.Vector.Generic.toList + (\ _ y__ -> Data.Vector.Generic.fromList y__)) +instance Data.ProtoLens.Field.HasField VehiclePosition "vec'multiCarriageDetails" (Data.Vector.Vector VehiclePosition'CarriageDetails) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'multiCarriageDetails + (\ x__ y__ -> x__ {_VehiclePosition'multiCarriageDetails = y__})) + Prelude.id +instance Data.ProtoLens.Message VehiclePosition where + messageName _ = Data.Text.pack "transit_realtime.VehiclePosition" + packedMessageDescriptor _ + = "\n\ + \\SIVehiclePosition\DC24\n\ + \\EOTtrip\CAN\SOH \SOH(\v2 .transit_realtime.TripDescriptorR\EOTtrip\DC2=\n\ + \\avehicle\CAN\b \SOH(\v2#.transit_realtime.VehicleDescriptorR\avehicle\DC26\n\ + \\bposition\CAN\STX \SOH(\v2\SUB.transit_realtime.PositionR\bposition\DC22\n\ + \\NAKcurrent_stop_sequence\CAN\ETX \SOH(\rR\DC3currentStopSequence\DC2\ETB\n\ + \\astop_id\CAN\a \SOH(\tR\ACKstopId\DC2i\n\ + \\SOcurrent_status\CAN\EOT \SOH(\SO23.transit_realtime.VehiclePosition.VehicleStopStatus:\rIN_TRANSIT_TOR\rcurrentStatus\DC2\FS\n\ + \\ttimestamp\CAN\ENQ \SOH(\EOTR\ttimestamp\DC2\\\n\ + \\DLEcongestion_level\CAN\ACK \SOH(\SO21.transit_realtime.VehiclePosition.CongestionLevelR\SIcongestionLevel\DC2\\\n\ + \\DLEoccupancy_status\CAN\t \SOH(\SO21.transit_realtime.VehiclePosition.OccupancyStatusR\SIoccupancyStatus\DC21\n\ + \\DC4occupancy_percentage\CAN\n\ + \ \SOH(\rR\DC3occupancyPercentage\DC2g\n\ + \\SYNmulti_carriage_details\CAN\v \ETX(\v21.transit_realtime.VehiclePosition.CarriageDetailsR\DC4multiCarriageDetails\SUB\156\STX\n\ + \\SICarriageDetails\DC2\SO\n\ + \\STXid\CAN\SOH \SOH(\tR\STXid\DC2\DC4\n\ + \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel\DC2o\n\ + \\DLEoccupancy_status\CAN\ETX \SOH(\SO21.transit_realtime.VehiclePosition.OccupancyStatus:\DC1NO_DATA_AVAILABLER\SIoccupancyStatus\DC25\n\ + \\DC4occupancy_percentage\CAN\EOT \SOH(\ENQ:\STX-1R\DC3occupancyPercentage\DC2+\n\ + \\DC1carriage_sequence\CAN\ENQ \SOH(\rR\DLEcarriageSequence*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"G\n\ + \\DC1VehicleStopStatus\DC2\SI\n\ + \\vINCOMING_AT\DLE\NUL\DC2\SO\n\ + \\n\ + \STOPPED_AT\DLE\SOH\DC2\DC1\n\ + \\rIN_TRANSIT_TO\DLE\STX\"}\n\ + \\SICongestionLevel\DC2\FS\n\ + \\CANUNKNOWN_CONGESTION_LEVEL\DLE\NUL\DC2\DC4\n\ + \\DLERUNNING_SMOOTHLY\DLE\SOH\DC2\SI\n\ + \\vSTOP_AND_GO\DLE\STX\DC2\SO\n\ + \\n\ + \CONGESTION\DLE\ETX\DC2\NAK\n\ + \\DC1SEVERE_CONGESTION\DLE\EOT\"\217\SOH\n\ + \\SIOccupancyStatus\DC2\t\n\ + \\ENQEMPTY\DLE\NUL\DC2\CAN\n\ + \\DC4MANY_SEATS_AVAILABLE\DLE\SOH\DC2\ETB\n\ + \\DC3FEW_SEATS_AVAILABLE\DLE\STX\DC2\SYN\n\ + \\DC2STANDING_ROOM_ONLY\DLE\ETX\DC2\RS\n\ + \\SUBCRUSHED_STANDING_ROOM_ONLY\DLE\EOT\DC2\b\n\ + \\EOTFULL\DLE\ENQ\DC2\FS\n\ + \\CANNOT_ACCEPTING_PASSENGERS\DLE\ACK\DC2\NAK\n\ + \\DC1NO_DATA_AVAILABLE\DLE\a\DC2\DC1\n\ + \\rNOT_BOARDABLE\DLE\b*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + trip__field_descriptor + = Data.ProtoLens.FieldDescriptor + "trip" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor TripDescriptor) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'trip")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + vehicle__field_descriptor + = Data.ProtoLens.FieldDescriptor + "vehicle" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor VehicleDescriptor) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'vehicle")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + position__field_descriptor + = Data.ProtoLens.FieldDescriptor + "position" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor Position) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'position")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + currentStopSequence__field_descriptor + = Data.ProtoLens.FieldDescriptor + "current_stop_sequence" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'currentStopSequence")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + stopId__field_descriptor + = Data.ProtoLens.FieldDescriptor + "stop_id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'stopId")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + currentStatus__field_descriptor + = Data.ProtoLens.FieldDescriptor + "current_status" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor VehiclePosition'VehicleStopStatus) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'currentStatus")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + timestamp__field_descriptor + = Data.ProtoLens.FieldDescriptor + "timestamp" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt64Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word64) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'timestamp")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + congestionLevel__field_descriptor + = Data.ProtoLens.FieldDescriptor + "congestion_level" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor VehiclePosition'CongestionLevel) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'congestionLevel")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + occupancyStatus__field_descriptor + = Data.ProtoLens.FieldDescriptor + "occupancy_status" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor VehiclePosition'OccupancyStatus) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'occupancyStatus")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + occupancyPercentage__field_descriptor + = Data.ProtoLens.FieldDescriptor + "occupancy_percentage" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'occupancyPercentage")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + multiCarriageDetails__field_descriptor + = Data.ProtoLens.FieldDescriptor + "multi_carriage_details" + (Data.ProtoLens.MessageField Data.ProtoLens.MessageType :: + Data.ProtoLens.FieldTypeDescriptor VehiclePosition'CarriageDetails) + (Data.ProtoLens.RepeatedField + Data.ProtoLens.Unpacked + (Data.ProtoLens.Field.field @"multiCarriageDetails")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, trip__field_descriptor), + (Data.ProtoLens.Tag 8, vehicle__field_descriptor), + (Data.ProtoLens.Tag 2, position__field_descriptor), + (Data.ProtoLens.Tag 3, currentStopSequence__field_descriptor), + (Data.ProtoLens.Tag 7, stopId__field_descriptor), + (Data.ProtoLens.Tag 4, currentStatus__field_descriptor), + (Data.ProtoLens.Tag 5, timestamp__field_descriptor), + (Data.ProtoLens.Tag 6, congestionLevel__field_descriptor), + (Data.ProtoLens.Tag 9, occupancyStatus__field_descriptor), + (Data.ProtoLens.Tag 10, occupancyPercentage__field_descriptor), + (Data.ProtoLens.Tag 11, multiCarriageDetails__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _VehiclePosition'_unknownFields + (\ x__ y__ -> x__ {_VehiclePosition'_unknownFields = y__}) + defMessage + = VehiclePosition'_constructor + {_VehiclePosition'trip = Prelude.Nothing, + _VehiclePosition'vehicle = Prelude.Nothing, + _VehiclePosition'position = Prelude.Nothing, + _VehiclePosition'currentStopSequence = Prelude.Nothing, + _VehiclePosition'stopId = Prelude.Nothing, + _VehiclePosition'currentStatus = Prelude.Nothing, + _VehiclePosition'timestamp = Prelude.Nothing, + _VehiclePosition'congestionLevel = Prelude.Nothing, + _VehiclePosition'occupancyStatus = Prelude.Nothing, + _VehiclePosition'occupancyPercentage = Prelude.Nothing, + _VehiclePosition'multiCarriageDetails = Data.Vector.Generic.empty, + _VehiclePosition'_unknownFields = []} + parseMessage + = let + loop :: + VehiclePosition + -> Data.ProtoLens.Encoding.Growing.Growing Data.Vector.Vector Data.ProtoLens.Encoding.Growing.RealWorld VehiclePosition'CarriageDetails + -> Data.ProtoLens.Encoding.Bytes.Parser VehiclePosition + loop x mutable'multiCarriageDetails + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do frozen'multiCarriageDetails <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.unsafeFreeze + mutable'multiCarriageDetails) + (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) + (Lens.Family2.set + (Data.ProtoLens.Field.field @"vec'multiCarriageDetails") + frozen'multiCarriageDetails x)) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "trip" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"trip") y x) + mutable'multiCarriageDetails + 66 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "vehicle" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"vehicle") y x) + mutable'multiCarriageDetails + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) Data.ProtoLens.parseMessage) + "position" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"position") y x) + mutable'multiCarriageDetails + 24 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "current_stop_sequence" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"currentStopSequence") y x) + mutable'multiCarriageDetails + 58 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "stop_id" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"stopId") y x) + mutable'multiCarriageDetails + 32 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "current_status" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"currentStatus") y x) + mutable'multiCarriageDetails + 40 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + Data.ProtoLens.Encoding.Bytes.getVarInt "timestamp" + loop + (Lens.Family2.set (Data.ProtoLens.Field.field @"timestamp") y x) + mutable'multiCarriageDetails + 48 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "congestion_level" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"congestionLevel") y x) + mutable'multiCarriageDetails + 72 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "occupancy_status" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"occupancyStatus") y x) + mutable'multiCarriageDetails + 80 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "occupancy_percentage" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"occupancyPercentage") y x) + mutable'multiCarriageDetails + 90 + -> do !y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.isolate + (Prelude.fromIntegral len) + Data.ProtoLens.parseMessage) + "multi_carriage_details" + v <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + (Data.ProtoLens.Encoding.Growing.append + mutable'multiCarriageDetails y) + loop x v + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + mutable'multiCarriageDetails + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do mutable'multiCarriageDetails <- Data.ProtoLens.Encoding.Parser.Unsafe.unsafeLiftIO + Data.ProtoLens.Encoding.Growing.new + loop Data.ProtoLens.defMessage mutable'multiCarriageDetails) + "VehiclePosition" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'trip") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'vehicle") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 66) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'position") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.ProtoLens.encodeMessage _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'currentStopSequence") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 24) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'stopId") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 58) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'currentStatus") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 32) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'timestamp") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 40) + (Data.ProtoLens.Encoding.Bytes.putVarInt _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'congestionLevel") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 48) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'occupancyStatus") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 72) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field + @"maybe'occupancyPercentage") + _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 80) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt + Prelude.fromIntegral _v)) + ((Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.foldMapBuilder + (\ _v + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 90) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral + (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes + bs)) + Data.ProtoLens.encodeMessage _v)) + (Lens.Family2.view + (Data.ProtoLens.Field.field + @"vec'multiCarriageDetails") + _x)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view + Data.ProtoLens.unknownFields _x)))))))))))) +instance Control.DeepSeq.NFData VehiclePosition where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_VehiclePosition'_unknownFields x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'trip x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'vehicle x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'position x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'currentStopSequence x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'stopId x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'currentStatus x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'timestamp x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'congestionLevel x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'occupancyStatus x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'occupancyPercentage x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'multiCarriageDetails x__) + ()))))))))))) +{- | Fields : + + * 'Proto.GtfsRealtime_Fields.id' @:: Lens' VehiclePosition'CarriageDetails Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'id' @:: Lens' VehiclePosition'CarriageDetails (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.label' @:: Lens' VehiclePosition'CarriageDetails Data.Text.Text@ + * 'Proto.GtfsRealtime_Fields.maybe'label' @:: Lens' VehiclePosition'CarriageDetails (Prelude.Maybe Data.Text.Text)@ + * 'Proto.GtfsRealtime_Fields.occupancyStatus' @:: Lens' VehiclePosition'CarriageDetails VehiclePosition'OccupancyStatus@ + * 'Proto.GtfsRealtime_Fields.maybe'occupancyStatus' @:: Lens' VehiclePosition'CarriageDetails (Prelude.Maybe VehiclePosition'OccupancyStatus)@ + * 'Proto.GtfsRealtime_Fields.occupancyPercentage' @:: Lens' VehiclePosition'CarriageDetails Data.Int.Int32@ + * 'Proto.GtfsRealtime_Fields.maybe'occupancyPercentage' @:: Lens' VehiclePosition'CarriageDetails (Prelude.Maybe Data.Int.Int32)@ + * 'Proto.GtfsRealtime_Fields.carriageSequence' @:: Lens' VehiclePosition'CarriageDetails Data.Word.Word32@ + * 'Proto.GtfsRealtime_Fields.maybe'carriageSequence' @:: Lens' VehiclePosition'CarriageDetails (Prelude.Maybe Data.Word.Word32)@ -} +data VehiclePosition'CarriageDetails + = VehiclePosition'CarriageDetails'_constructor {_VehiclePosition'CarriageDetails'id :: !(Prelude.Maybe Data.Text.Text), + _VehiclePosition'CarriageDetails'label :: !(Prelude.Maybe Data.Text.Text), + _VehiclePosition'CarriageDetails'occupancyStatus :: !(Prelude.Maybe VehiclePosition'OccupancyStatus), + _VehiclePosition'CarriageDetails'occupancyPercentage :: !(Prelude.Maybe Data.Int.Int32), + _VehiclePosition'CarriageDetails'carriageSequence :: !(Prelude.Maybe Data.Word.Word32), + _VehiclePosition'CarriageDetails'_unknownFields :: !Data.ProtoLens.FieldSet} + deriving stock (Prelude.Eq, Prelude.Ord) +instance Prelude.Show VehiclePosition'CarriageDetails where + showsPrec _ __x __s + = Prelude.showChar + '{' + (Prelude.showString + (Data.ProtoLens.showMessageShort __x) (Prelude.showChar '}' __s)) +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "id" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'id + (\ x__ y__ -> x__ {_VehiclePosition'CarriageDetails'id = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "maybe'id" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'id + (\ x__ y__ -> x__ {_VehiclePosition'CarriageDetails'id = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "label" Data.Text.Text where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'label + (\ x__ y__ -> x__ {_VehiclePosition'CarriageDetails'label = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "maybe'label" (Prelude.Maybe Data.Text.Text) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'label + (\ x__ y__ -> x__ {_VehiclePosition'CarriageDetails'label = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "occupancyStatus" VehiclePosition'OccupancyStatus where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'occupancyStatus + (\ x__ y__ + -> x__ {_VehiclePosition'CarriageDetails'occupancyStatus = y__})) + (Data.ProtoLens.maybeLens VehiclePosition'NO_DATA_AVAILABLE) +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "maybe'occupancyStatus" (Prelude.Maybe VehiclePosition'OccupancyStatus) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'occupancyStatus + (\ x__ y__ + -> x__ {_VehiclePosition'CarriageDetails'occupancyStatus = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "occupancyPercentage" Data.Int.Int32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'occupancyPercentage + (\ x__ y__ + -> x__ + {_VehiclePosition'CarriageDetails'occupancyPercentage = y__})) + (Data.ProtoLens.maybeLens (-1)) +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "maybe'occupancyPercentage" (Prelude.Maybe Data.Int.Int32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'occupancyPercentage + (\ x__ y__ + -> x__ + {_VehiclePosition'CarriageDetails'occupancyPercentage = y__})) + Prelude.id +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "carriageSequence" Data.Word.Word32 where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'carriageSequence + (\ x__ y__ + -> x__ {_VehiclePosition'CarriageDetails'carriageSequence = y__})) + (Data.ProtoLens.maybeLens Data.ProtoLens.fieldDefault) +instance Data.ProtoLens.Field.HasField VehiclePosition'CarriageDetails "maybe'carriageSequence" (Prelude.Maybe Data.Word.Word32) where + fieldOf _ + = (Prelude..) + (Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'carriageSequence + (\ x__ y__ + -> x__ {_VehiclePosition'CarriageDetails'carriageSequence = y__})) + Prelude.id +instance Data.ProtoLens.Message VehiclePosition'CarriageDetails where + messageName _ + = Data.Text.pack "transit_realtime.VehiclePosition.CarriageDetails" + packedMessageDescriptor _ + = "\n\ + \\SICarriageDetails\DC2\SO\n\ + \\STXid\CAN\SOH \SOH(\tR\STXid\DC2\DC4\n\ + \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel\DC2o\n\ + \\DLEoccupancy_status\CAN\ETX \SOH(\SO21.transit_realtime.VehiclePosition.OccupancyStatus:\DC1NO_DATA_AVAILABLER\SIoccupancyStatus\DC25\n\ + \\DC4occupancy_percentage\CAN\EOT \SOH(\ENQ:\STX-1R\DC3occupancyPercentage\DC2+\n\ + \\DC1carriage_sequence\CAN\ENQ \SOH(\rR\DLEcarriageSequence*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N" + packedFileDescriptor _ = packedFileDescriptor + fieldsByTag + = let + id__field_descriptor + = Data.ProtoLens.FieldDescriptor + "id" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'id")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition'CarriageDetails + label__field_descriptor + = Data.ProtoLens.FieldDescriptor + "label" + (Data.ProtoLens.ScalarField Data.ProtoLens.StringField :: + Data.ProtoLens.FieldTypeDescriptor Data.Text.Text) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'label")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition'CarriageDetails + occupancyStatus__field_descriptor + = Data.ProtoLens.FieldDescriptor + "occupancy_status" + (Data.ProtoLens.ScalarField Data.ProtoLens.EnumField :: + Data.ProtoLens.FieldTypeDescriptor VehiclePosition'OccupancyStatus) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'occupancyStatus")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition'CarriageDetails + occupancyPercentage__field_descriptor + = Data.ProtoLens.FieldDescriptor + "occupancy_percentage" + (Data.ProtoLens.ScalarField Data.ProtoLens.Int32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Int.Int32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'occupancyPercentage")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition'CarriageDetails + carriageSequence__field_descriptor + = Data.ProtoLens.FieldDescriptor + "carriage_sequence" + (Data.ProtoLens.ScalarField Data.ProtoLens.UInt32Field :: + Data.ProtoLens.FieldTypeDescriptor Data.Word.Word32) + (Data.ProtoLens.OptionalField + (Data.ProtoLens.Field.field @"maybe'carriageSequence")) :: + Data.ProtoLens.FieldDescriptor VehiclePosition'CarriageDetails + in + Data.Map.fromList + [(Data.ProtoLens.Tag 1, id__field_descriptor), + (Data.ProtoLens.Tag 2, label__field_descriptor), + (Data.ProtoLens.Tag 3, occupancyStatus__field_descriptor), + (Data.ProtoLens.Tag 4, occupancyPercentage__field_descriptor), + (Data.ProtoLens.Tag 5, carriageSequence__field_descriptor)] + unknownFields + = Lens.Family2.Unchecked.lens + _VehiclePosition'CarriageDetails'_unknownFields + (\ x__ y__ + -> x__ {_VehiclePosition'CarriageDetails'_unknownFields = y__}) + defMessage + = VehiclePosition'CarriageDetails'_constructor + {_VehiclePosition'CarriageDetails'id = Prelude.Nothing, + _VehiclePosition'CarriageDetails'label = Prelude.Nothing, + _VehiclePosition'CarriageDetails'occupancyStatus = Prelude.Nothing, + _VehiclePosition'CarriageDetails'occupancyPercentage = Prelude.Nothing, + _VehiclePosition'CarriageDetails'carriageSequence = Prelude.Nothing, + _VehiclePosition'CarriageDetails'_unknownFields = []} + parseMessage + = let + loop :: + VehiclePosition'CarriageDetails + -> Data.ProtoLens.Encoding.Bytes.Parser VehiclePosition'CarriageDetails + loop x + = do end <- Data.ProtoLens.Encoding.Bytes.atEnd + if end then + do (let missing = [] + in + if Prelude.null missing then + Prelude.return () + else + Prelude.fail + ((Prelude.++) + "Missing required fields: " + (Prelude.show (missing :: [Prelude.String])))) + Prelude.return + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> Prelude.reverse t) x) + else + do tag <- Data.ProtoLens.Encoding.Bytes.getVarInt + case tag of + 10 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "id" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"id") y x) + 18 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (do len <- Data.ProtoLens.Encoding.Bytes.getVarInt + Data.ProtoLens.Encoding.Bytes.getText + (Prelude.fromIntegral len)) + "label" + loop (Lens.Family2.set (Data.ProtoLens.Field.field @"label") y x) + 24 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.toEnum + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt)) + "occupancy_status" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"occupancyStatus") y x) + 32 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "occupancy_percentage" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"occupancyPercentage") y x) + 40 + -> do y <- (Data.ProtoLens.Encoding.Bytes.<?>) + (Prelude.fmap + Prelude.fromIntegral + Data.ProtoLens.Encoding.Bytes.getVarInt) + "carriage_sequence" + loop + (Lens.Family2.set + (Data.ProtoLens.Field.field @"carriageSequence") y x) + wire + -> do !y <- Data.ProtoLens.Encoding.Wire.parseTaggedValueFromWire + wire + loop + (Lens.Family2.over + Data.ProtoLens.unknownFields (\ !t -> (:) y t) x) + in + (Data.ProtoLens.Encoding.Bytes.<?>) + (do loop Data.ProtoLens.defMessage) "CarriageDetails" + buildMessage + = \ _x + -> (Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'id") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 10) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view (Data.ProtoLens.Field.field @"maybe'label") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 18) + ((Prelude..) + (\ bs + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt + (Prelude.fromIntegral (Data.ByteString.length bs))) + (Data.ProtoLens.Encoding.Bytes.putBytes bs)) + Data.Text.Encoding.encodeUtf8 _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'occupancyStatus") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 24) + ((Prelude..) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral) + Prelude.fromEnum _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'occupancyPercentage") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 32) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral _v)) + ((Data.Monoid.<>) + (case + Lens.Family2.view + (Data.ProtoLens.Field.field @"maybe'carriageSequence") _x + of + Prelude.Nothing -> Data.Monoid.mempty + (Prelude.Just _v) + -> (Data.Monoid.<>) + (Data.ProtoLens.Encoding.Bytes.putVarInt 40) + ((Prelude..) + Data.ProtoLens.Encoding.Bytes.putVarInt Prelude.fromIntegral + _v)) + (Data.ProtoLens.Encoding.Wire.buildFieldSet + (Lens.Family2.view Data.ProtoLens.unknownFields _x)))))) +instance Control.DeepSeq.NFData VehiclePosition'CarriageDetails where + rnf + = \ x__ + -> Control.DeepSeq.deepseq + (_VehiclePosition'CarriageDetails'_unknownFields x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'CarriageDetails'id x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'CarriageDetails'label x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'CarriageDetails'occupancyStatus x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'CarriageDetails'occupancyPercentage x__) + (Control.DeepSeq.deepseq + (_VehiclePosition'CarriageDetails'carriageSequence x__) ()))))) +data VehiclePosition'CongestionLevel + = VehiclePosition'UNKNOWN_CONGESTION_LEVEL | + VehiclePosition'RUNNING_SMOOTHLY | + VehiclePosition'STOP_AND_GO | + VehiclePosition'CONGESTION | + VehiclePosition'SEVERE_CONGESTION + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum VehiclePosition'CongestionLevel where + maybeToEnum 0 + = Prelude.Just VehiclePosition'UNKNOWN_CONGESTION_LEVEL + maybeToEnum 1 = Prelude.Just VehiclePosition'RUNNING_SMOOTHLY + maybeToEnum 2 = Prelude.Just VehiclePosition'STOP_AND_GO + maybeToEnum 3 = Prelude.Just VehiclePosition'CONGESTION + maybeToEnum 4 = Prelude.Just VehiclePosition'SEVERE_CONGESTION + maybeToEnum _ = Prelude.Nothing + showEnum VehiclePosition'UNKNOWN_CONGESTION_LEVEL + = "UNKNOWN_CONGESTION_LEVEL" + showEnum VehiclePosition'RUNNING_SMOOTHLY = "RUNNING_SMOOTHLY" + showEnum VehiclePosition'STOP_AND_GO = "STOP_AND_GO" + showEnum VehiclePosition'CONGESTION = "CONGESTION" + showEnum VehiclePosition'SEVERE_CONGESTION = "SEVERE_CONGESTION" + readEnum k + | (Prelude.==) k "UNKNOWN_CONGESTION_LEVEL" + = Prelude.Just VehiclePosition'UNKNOWN_CONGESTION_LEVEL + | (Prelude.==) k "RUNNING_SMOOTHLY" + = Prelude.Just VehiclePosition'RUNNING_SMOOTHLY + | (Prelude.==) k "STOP_AND_GO" + = Prelude.Just VehiclePosition'STOP_AND_GO + | (Prelude.==) k "CONGESTION" + = Prelude.Just VehiclePosition'CONGESTION + | (Prelude.==) k "SEVERE_CONGESTION" + = Prelude.Just VehiclePosition'SEVERE_CONGESTION + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded VehiclePosition'CongestionLevel where + minBound = VehiclePosition'UNKNOWN_CONGESTION_LEVEL + maxBound = VehiclePosition'SEVERE_CONGESTION +instance Prelude.Enum VehiclePosition'CongestionLevel where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum CongestionLevel: " + (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum VehiclePosition'UNKNOWN_CONGESTION_LEVEL = 0 + fromEnum VehiclePosition'RUNNING_SMOOTHLY = 1 + fromEnum VehiclePosition'STOP_AND_GO = 2 + fromEnum VehiclePosition'CONGESTION = 3 + fromEnum VehiclePosition'SEVERE_CONGESTION = 4 + succ VehiclePosition'SEVERE_CONGESTION + = Prelude.error + "VehiclePosition'CongestionLevel.succ: bad argument VehiclePosition'SEVERE_CONGESTION. This value would be out of bounds." + succ VehiclePosition'UNKNOWN_CONGESTION_LEVEL + = VehiclePosition'RUNNING_SMOOTHLY + succ VehiclePosition'RUNNING_SMOOTHLY = VehiclePosition'STOP_AND_GO + succ VehiclePosition'STOP_AND_GO = VehiclePosition'CONGESTION + succ VehiclePosition'CONGESTION = VehiclePosition'SEVERE_CONGESTION + pred VehiclePosition'UNKNOWN_CONGESTION_LEVEL + = Prelude.error + "VehiclePosition'CongestionLevel.pred: bad argument VehiclePosition'UNKNOWN_CONGESTION_LEVEL. This value would be out of bounds." + pred VehiclePosition'RUNNING_SMOOTHLY + = VehiclePosition'UNKNOWN_CONGESTION_LEVEL + pred VehiclePosition'STOP_AND_GO = VehiclePosition'RUNNING_SMOOTHLY + pred VehiclePosition'CONGESTION = VehiclePosition'STOP_AND_GO + pred VehiclePosition'SEVERE_CONGESTION = VehiclePosition'CONGESTION + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault VehiclePosition'CongestionLevel where + fieldDefault = VehiclePosition'UNKNOWN_CONGESTION_LEVEL +instance Control.DeepSeq.NFData VehiclePosition'CongestionLevel where + rnf x__ = Prelude.seq x__ () +data VehiclePosition'OccupancyStatus + = VehiclePosition'EMPTY | + VehiclePosition'MANY_SEATS_AVAILABLE | + VehiclePosition'FEW_SEATS_AVAILABLE | + VehiclePosition'STANDING_ROOM_ONLY | + VehiclePosition'CRUSHED_STANDING_ROOM_ONLY | + VehiclePosition'FULL | + VehiclePosition'NOT_ACCEPTING_PASSENGERS | + VehiclePosition'NO_DATA_AVAILABLE | + VehiclePosition'NOT_BOARDABLE + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum VehiclePosition'OccupancyStatus where + maybeToEnum 0 = Prelude.Just VehiclePosition'EMPTY + maybeToEnum 1 = Prelude.Just VehiclePosition'MANY_SEATS_AVAILABLE + maybeToEnum 2 = Prelude.Just VehiclePosition'FEW_SEATS_AVAILABLE + maybeToEnum 3 = Prelude.Just VehiclePosition'STANDING_ROOM_ONLY + maybeToEnum 4 + = Prelude.Just VehiclePosition'CRUSHED_STANDING_ROOM_ONLY + maybeToEnum 5 = Prelude.Just VehiclePosition'FULL + maybeToEnum 6 + = Prelude.Just VehiclePosition'NOT_ACCEPTING_PASSENGERS + maybeToEnum 7 = Prelude.Just VehiclePosition'NO_DATA_AVAILABLE + maybeToEnum 8 = Prelude.Just VehiclePosition'NOT_BOARDABLE + maybeToEnum _ = Prelude.Nothing + showEnum VehiclePosition'EMPTY = "EMPTY" + showEnum VehiclePosition'MANY_SEATS_AVAILABLE + = "MANY_SEATS_AVAILABLE" + showEnum VehiclePosition'FEW_SEATS_AVAILABLE + = "FEW_SEATS_AVAILABLE" + showEnum VehiclePosition'STANDING_ROOM_ONLY = "STANDING_ROOM_ONLY" + showEnum VehiclePosition'CRUSHED_STANDING_ROOM_ONLY + = "CRUSHED_STANDING_ROOM_ONLY" + showEnum VehiclePosition'FULL = "FULL" + showEnum VehiclePosition'NOT_ACCEPTING_PASSENGERS + = "NOT_ACCEPTING_PASSENGERS" + showEnum VehiclePosition'NO_DATA_AVAILABLE = "NO_DATA_AVAILABLE" + showEnum VehiclePosition'NOT_BOARDABLE = "NOT_BOARDABLE" + readEnum k + | (Prelude.==) k "EMPTY" = Prelude.Just VehiclePosition'EMPTY + | (Prelude.==) k "MANY_SEATS_AVAILABLE" + = Prelude.Just VehiclePosition'MANY_SEATS_AVAILABLE + | (Prelude.==) k "FEW_SEATS_AVAILABLE" + = Prelude.Just VehiclePosition'FEW_SEATS_AVAILABLE + | (Prelude.==) k "STANDING_ROOM_ONLY" + = Prelude.Just VehiclePosition'STANDING_ROOM_ONLY + | (Prelude.==) k "CRUSHED_STANDING_ROOM_ONLY" + = Prelude.Just VehiclePosition'CRUSHED_STANDING_ROOM_ONLY + | (Prelude.==) k "FULL" = Prelude.Just VehiclePosition'FULL + | (Prelude.==) k "NOT_ACCEPTING_PASSENGERS" + = Prelude.Just VehiclePosition'NOT_ACCEPTING_PASSENGERS + | (Prelude.==) k "NO_DATA_AVAILABLE" + = Prelude.Just VehiclePosition'NO_DATA_AVAILABLE + | (Prelude.==) k "NOT_BOARDABLE" + = Prelude.Just VehiclePosition'NOT_BOARDABLE + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded VehiclePosition'OccupancyStatus where + minBound = VehiclePosition'EMPTY + maxBound = VehiclePosition'NOT_BOARDABLE +instance Prelude.Enum VehiclePosition'OccupancyStatus where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum OccupancyStatus: " + (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum VehiclePosition'EMPTY = 0 + fromEnum VehiclePosition'MANY_SEATS_AVAILABLE = 1 + fromEnum VehiclePosition'FEW_SEATS_AVAILABLE = 2 + fromEnum VehiclePosition'STANDING_ROOM_ONLY = 3 + fromEnum VehiclePosition'CRUSHED_STANDING_ROOM_ONLY = 4 + fromEnum VehiclePosition'FULL = 5 + fromEnum VehiclePosition'NOT_ACCEPTING_PASSENGERS = 6 + fromEnum VehiclePosition'NO_DATA_AVAILABLE = 7 + fromEnum VehiclePosition'NOT_BOARDABLE = 8 + succ VehiclePosition'NOT_BOARDABLE + = Prelude.error + "VehiclePosition'OccupancyStatus.succ: bad argument VehiclePosition'NOT_BOARDABLE. This value would be out of bounds." + succ VehiclePosition'EMPTY = VehiclePosition'MANY_SEATS_AVAILABLE + succ VehiclePosition'MANY_SEATS_AVAILABLE + = VehiclePosition'FEW_SEATS_AVAILABLE + succ VehiclePosition'FEW_SEATS_AVAILABLE + = VehiclePosition'STANDING_ROOM_ONLY + succ VehiclePosition'STANDING_ROOM_ONLY + = VehiclePosition'CRUSHED_STANDING_ROOM_ONLY + succ VehiclePosition'CRUSHED_STANDING_ROOM_ONLY + = VehiclePosition'FULL + succ VehiclePosition'FULL + = VehiclePosition'NOT_ACCEPTING_PASSENGERS + succ VehiclePosition'NOT_ACCEPTING_PASSENGERS + = VehiclePosition'NO_DATA_AVAILABLE + succ VehiclePosition'NO_DATA_AVAILABLE + = VehiclePosition'NOT_BOARDABLE + pred VehiclePosition'EMPTY + = Prelude.error + "VehiclePosition'OccupancyStatus.pred: bad argument VehiclePosition'EMPTY. This value would be out of bounds." + pred VehiclePosition'MANY_SEATS_AVAILABLE = VehiclePosition'EMPTY + pred VehiclePosition'FEW_SEATS_AVAILABLE + = VehiclePosition'MANY_SEATS_AVAILABLE + pred VehiclePosition'STANDING_ROOM_ONLY + = VehiclePosition'FEW_SEATS_AVAILABLE + pred VehiclePosition'CRUSHED_STANDING_ROOM_ONLY + = VehiclePosition'STANDING_ROOM_ONLY + pred VehiclePosition'FULL + = VehiclePosition'CRUSHED_STANDING_ROOM_ONLY + pred VehiclePosition'NOT_ACCEPTING_PASSENGERS + = VehiclePosition'FULL + pred VehiclePosition'NO_DATA_AVAILABLE + = VehiclePosition'NOT_ACCEPTING_PASSENGERS + pred VehiclePosition'NOT_BOARDABLE + = VehiclePosition'NO_DATA_AVAILABLE + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault VehiclePosition'OccupancyStatus where + fieldDefault = VehiclePosition'EMPTY +instance Control.DeepSeq.NFData VehiclePosition'OccupancyStatus where + rnf x__ = Prelude.seq x__ () +data VehiclePosition'VehicleStopStatus + = VehiclePosition'INCOMING_AT | + VehiclePosition'STOPPED_AT | + VehiclePosition'IN_TRANSIT_TO + deriving stock (Prelude.Show, Prelude.Eq, Prelude.Ord) +instance Data.ProtoLens.MessageEnum VehiclePosition'VehicleStopStatus where + maybeToEnum 0 = Prelude.Just VehiclePosition'INCOMING_AT + maybeToEnum 1 = Prelude.Just VehiclePosition'STOPPED_AT + maybeToEnum 2 = Prelude.Just VehiclePosition'IN_TRANSIT_TO + maybeToEnum _ = Prelude.Nothing + showEnum VehiclePosition'INCOMING_AT = "INCOMING_AT" + showEnum VehiclePosition'STOPPED_AT = "STOPPED_AT" + showEnum VehiclePosition'IN_TRANSIT_TO = "IN_TRANSIT_TO" + readEnum k + | (Prelude.==) k "INCOMING_AT" + = Prelude.Just VehiclePosition'INCOMING_AT + | (Prelude.==) k "STOPPED_AT" + = Prelude.Just VehiclePosition'STOPPED_AT + | (Prelude.==) k "IN_TRANSIT_TO" + = Prelude.Just VehiclePosition'IN_TRANSIT_TO + | Prelude.otherwise + = (Prelude.>>=) (Text.Read.readMaybe k) Data.ProtoLens.maybeToEnum +instance Prelude.Bounded VehiclePosition'VehicleStopStatus where + minBound = VehiclePosition'INCOMING_AT + maxBound = VehiclePosition'IN_TRANSIT_TO +instance Prelude.Enum VehiclePosition'VehicleStopStatus where + toEnum k__ + = Prelude.maybe + (Prelude.error + ((Prelude.++) + "toEnum: unknown value for enum VehicleStopStatus: " + (Prelude.show k__))) + Prelude.id (Data.ProtoLens.maybeToEnum k__) + fromEnum VehiclePosition'INCOMING_AT = 0 + fromEnum VehiclePosition'STOPPED_AT = 1 + fromEnum VehiclePosition'IN_TRANSIT_TO = 2 + succ VehiclePosition'IN_TRANSIT_TO + = Prelude.error + "VehiclePosition'VehicleStopStatus.succ: bad argument VehiclePosition'IN_TRANSIT_TO. This value would be out of bounds." + succ VehiclePosition'INCOMING_AT = VehiclePosition'STOPPED_AT + succ VehiclePosition'STOPPED_AT = VehiclePosition'IN_TRANSIT_TO + pred VehiclePosition'INCOMING_AT + = Prelude.error + "VehiclePosition'VehicleStopStatus.pred: bad argument VehiclePosition'INCOMING_AT. This value would be out of bounds." + pred VehiclePosition'STOPPED_AT = VehiclePosition'INCOMING_AT + pred VehiclePosition'IN_TRANSIT_TO = VehiclePosition'STOPPED_AT + enumFrom = Data.ProtoLens.Message.Enum.messageEnumFrom + enumFromTo = Data.ProtoLens.Message.Enum.messageEnumFromTo + enumFromThen = Data.ProtoLens.Message.Enum.messageEnumFromThen + enumFromThenTo = Data.ProtoLens.Message.Enum.messageEnumFromThenTo +instance Data.ProtoLens.FieldDefault VehiclePosition'VehicleStopStatus where + fieldDefault = VehiclePosition'INCOMING_AT +instance Control.DeepSeq.NFData VehiclePosition'VehicleStopStatus where + rnf x__ = Prelude.seq x__ () +packedFileDescriptor :: Data.ByteString.ByteString +packedFileDescriptor + = "\n\ + \\DC3gtfs-realtime.proto\DC2\DLEtransit_realtime\"\137\SOH\n\ + \\vFeedMessage\DC24\n\ + \\ACKheader\CAN\SOH \STX(\v2\FS.transit_realtime.FeedHeaderR\ACKheader\DC24\n\ + \\ACKentity\CAN\STX \ETX(\v2\FS.transit_realtime.FeedEntityR\ACKentity*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\135\STX\n\ + \\n\ + \FeedHeader\DC22\n\ + \\NAKgtfs_realtime_version\CAN\SOH \STX(\tR\DC3gtfsRealtimeVersion\DC2a\n\ + \\SOincrementality\CAN\STX \SOH(\SO2+.transit_realtime.FeedHeader.Incrementality:\fFULL_DATASETR\SOincrementality\DC2\FS\n\ + \\ttimestamp\CAN\ETX \SOH(\EOTR\ttimestamp\"4\n\ + \\SOIncrementality\DC2\DLE\n\ + \\fFULL_DATASET\DLE\NUL\DC2\DLE\n\ + \\fDIFFERENTIAL\DLE\SOH*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\172\STX\n\ + \\n\ + \FeedEntity\DC2\SO\n\ + \\STXid\CAN\SOH \STX(\tR\STXid\DC2$\n\ + \\n\ + \is_deleted\CAN\STX \SOH(\b:\ENQfalseR\tisDeleted\DC2=\n\ + \\vtrip_update\CAN\ETX \SOH(\v2\FS.transit_realtime.TripUpdateR\n\ + \tripUpdate\DC2;\n\ + \\avehicle\CAN\EOT \SOH(\v2!.transit_realtime.VehiclePositionR\avehicle\DC2-\n\ + \\ENQalert\CAN\ENQ \SOH(\v2\ETB.transit_realtime.AlertR\ENQalert\DC2-\n\ + \\ENQshape\CAN\ACK \SOH(\v2\ETB.transit_realtime.ShapeR\ENQshape*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\237\n\ + \\n\ + \\n\ + \TripUpdate\DC24\n\ + \\EOTtrip\CAN\SOH \STX(\v2 .transit_realtime.TripDescriptorR\EOTtrip\DC2=\n\ + \\avehicle\CAN\ETX \SOH(\v2#.transit_realtime.VehicleDescriptorR\avehicle\DC2U\n\ + \\DLEstop_time_update\CAN\STX \ETX(\v2+.transit_realtime.TripUpdate.StopTimeUpdateR\SOstopTimeUpdate\DC2\FS\n\ + \\ttimestamp\CAN\EOT \SOH(\EOTR\ttimestamp\DC2\DC4\n\ + \\ENQdelay\CAN\ENQ \SOH(\ENQR\ENQdelay\DC2T\n\ + \\SItrip_properties\CAN\ACK \SOH(\v2+.transit_realtime.TripUpdate.TripPropertiesR\SOtripProperties\SUBk\n\ + \\rStopTimeEvent\DC2\DC4\n\ + \\ENQdelay\CAN\SOH \SOH(\ENQR\ENQdelay\DC2\DC2\n\ + \\EOTtime\CAN\STX \SOH(\ETXR\EOTtime\DC2 \n\ + \\vuncertainty\CAN\ETX \SOH(\ENQR\vuncertainty*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\SUB\246\ENQ\n\ + \\SOStopTimeUpdate\DC2#\n\ + \\rstop_sequence\CAN\SOH \SOH(\rR\fstopSequence\DC2\ETB\n\ + \\astop_id\CAN\EOT \SOH(\tR\ACKstopId\DC2D\n\ + \\aarrival\CAN\STX \SOH(\v2*.transit_realtime.TripUpdate.StopTimeEventR\aarrival\DC2H\n\ + \\tdeparture\CAN\ETX \SOH(\v2*.transit_realtime.TripUpdate.StopTimeEventR\tdeparture\DC2o\n\ + \\SUBdeparture_occupancy_status\CAN\a \SOH(\SO21.transit_realtime.VehiclePosition.OccupancyStatusR\CANdepartureOccupancyStatus\DC2\128\SOH\n\ + \\NAKschedule_relationship\CAN\ENQ \SOH(\SO2@.transit_realtime.TripUpdate.StopTimeUpdate.ScheduleRelationship:\tSCHEDULEDR\DC4scheduleRelationship\DC2p\n\ + \\DC4stop_time_properties\CAN\ACK \SOH(\v2>.transit_realtime.TripUpdate.StopTimeUpdate.StopTimePropertiesR\DC2stopTimeProperties\SUBN\n\ + \\DC2StopTimeProperties\DC2(\n\ + \\DLEassigned_stop_id\CAN\SOH \SOH(\tR\SOassignedStopId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"P\n\ + \\DC4ScheduleRelationship\DC2\r\n\ + \\tSCHEDULED\DLE\NUL\DC2\v\n\ + \\aSKIPPED\DLE\SOH\DC2\v\n\ + \\aNO_DATA\DLE\STX\DC2\SI\n\ + \\vUNSCHEDULED\DLE\ETX*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\SUB\146\SOH\n\ + \\SOTripProperties\DC2\ETB\n\ + \\atrip_id\CAN\SOH \SOH(\tR\ACKtripId\DC2\GS\n\ + \\n\ + \start_date\CAN\STX \SOH(\tR\tstartDate\DC2\GS\n\ + \\n\ + \start_time\CAN\ETX \SOH(\tR\tstartTime\DC2\EM\n\ + \\bshape_id\CAN\EOT \SOH(\tR\ashapeId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\191\v\n\ + \\SIVehiclePosition\DC24\n\ + \\EOTtrip\CAN\SOH \SOH(\v2 .transit_realtime.TripDescriptorR\EOTtrip\DC2=\n\ + \\avehicle\CAN\b \SOH(\v2#.transit_realtime.VehicleDescriptorR\avehicle\DC26\n\ + \\bposition\CAN\STX \SOH(\v2\SUB.transit_realtime.PositionR\bposition\DC22\n\ + \\NAKcurrent_stop_sequence\CAN\ETX \SOH(\rR\DC3currentStopSequence\DC2\ETB\n\ + \\astop_id\CAN\a \SOH(\tR\ACKstopId\DC2i\n\ + \\SOcurrent_status\CAN\EOT \SOH(\SO23.transit_realtime.VehiclePosition.VehicleStopStatus:\rIN_TRANSIT_TOR\rcurrentStatus\DC2\FS\n\ + \\ttimestamp\CAN\ENQ \SOH(\EOTR\ttimestamp\DC2\\\n\ + \\DLEcongestion_level\CAN\ACK \SOH(\SO21.transit_realtime.VehiclePosition.CongestionLevelR\SIcongestionLevel\DC2\\\n\ + \\DLEoccupancy_status\CAN\t \SOH(\SO21.transit_realtime.VehiclePosition.OccupancyStatusR\SIoccupancyStatus\DC21\n\ + \\DC4occupancy_percentage\CAN\n\ + \ \SOH(\rR\DC3occupancyPercentage\DC2g\n\ + \\SYNmulti_carriage_details\CAN\v \ETX(\v21.transit_realtime.VehiclePosition.CarriageDetailsR\DC4multiCarriageDetails\SUB\156\STX\n\ + \\SICarriageDetails\DC2\SO\n\ + \\STXid\CAN\SOH \SOH(\tR\STXid\DC2\DC4\n\ + \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel\DC2o\n\ + \\DLEoccupancy_status\CAN\ETX \SOH(\SO21.transit_realtime.VehiclePosition.OccupancyStatus:\DC1NO_DATA_AVAILABLER\SIoccupancyStatus\DC25\n\ + \\DC4occupancy_percentage\CAN\EOT \SOH(\ENQ:\STX-1R\DC3occupancyPercentage\DC2+\n\ + \\DC1carriage_sequence\CAN\ENQ \SOH(\rR\DLEcarriageSequence*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"G\n\ + \\DC1VehicleStopStatus\DC2\SI\n\ + \\vINCOMING_AT\DLE\NUL\DC2\SO\n\ + \\n\ + \STOPPED_AT\DLE\SOH\DC2\DC1\n\ + \\rIN_TRANSIT_TO\DLE\STX\"}\n\ + \\SICongestionLevel\DC2\FS\n\ + \\CANUNKNOWN_CONGESTION_LEVEL\DLE\NUL\DC2\DC4\n\ + \\DLERUNNING_SMOOTHLY\DLE\SOH\DC2\SI\n\ + \\vSTOP_AND_GO\DLE\STX\DC2\SO\n\ + \\n\ + \CONGESTION\DLE\ETX\DC2\NAK\n\ + \\DC1SEVERE_CONGESTION\DLE\EOT\"\217\SOH\n\ + \\SIOccupancyStatus\DC2\t\n\ + \\ENQEMPTY\DLE\NUL\DC2\CAN\n\ + \\DC4MANY_SEATS_AVAILABLE\DLE\SOH\DC2\ETB\n\ + \\DC3FEW_SEATS_AVAILABLE\DLE\STX\DC2\SYN\n\ + \\DC2STANDING_ROOM_ONLY\DLE\ETX\DC2\RS\n\ + \\SUBCRUSHED_STANDING_ROOM_ONLY\DLE\EOT\DC2\b\n\ + \\EOTFULL\DLE\ENQ\DC2\FS\n\ + \\CANNOT_ACCEPTING_PASSENGERS\DLE\ACK\DC2\NAK\n\ + \\DC1NO_DATA_AVAILABLE\DLE\a\DC2\DC1\n\ + \\rNOT_BOARDABLE\DLE\b*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\148\v\n\ + \\ENQAlert\DC2@\n\ + \\ractive_period\CAN\SOH \ETX(\v2\ESC.transit_realtime.TimeRangeR\factivePeriod\DC2I\n\ + \\SIinformed_entity\CAN\ENQ \ETX(\v2 .transit_realtime.EntitySelectorR\SOinformedEntity\DC2B\n\ + \\ENQcause\CAN\ACK \SOH(\SO2\GS.transit_realtime.Alert.Cause:\rUNKNOWN_CAUSER\ENQcause\DC2F\n\ + \\ACKeffect\CAN\a \SOH(\SO2\RS.transit_realtime.Alert.Effect:\SOUNKNOWN_EFFECTR\ACKeffect\DC24\n\ + \\ETXurl\CAN\b \SOH(\v2\".transit_realtime.TranslatedStringR\ETXurl\DC2C\n\ + \\vheader_text\CAN\n\ + \ \SOH(\v2\".transit_realtime.TranslatedStringR\n\ + \headerText\DC2M\n\ + \\DLEdescription_text\CAN\v \SOH(\v2\".transit_realtime.TranslatedStringR\SIdescriptionText\DC2J\n\ + \\SItts_header_text\CAN\f \SOH(\v2\".transit_realtime.TranslatedStringR\rttsHeaderText\DC2T\n\ + \\DC4tts_description_text\CAN\r \SOH(\v2\".transit_realtime.TranslatedStringR\DC2ttsDescriptionText\DC2^\n\ + \\SOseverity_level\CAN\SO \SOH(\SO2%.transit_realtime.Alert.SeverityLevel:\DLEUNKNOWN_SEVERITYR\rseverityLevel\DC27\n\ + \\ENQimage\CAN\SI \SOH(\v2!.transit_realtime.TranslatedImageR\ENQimage\DC2X\n\ + \\SYNimage_alternative_text\CAN\DLE \SOH(\v2\".transit_realtime.TranslatedStringR\DC4imageAlternativeText\"\216\SOH\n\ + \\ENQCause\DC2\DC1\n\ + \\rUNKNOWN_CAUSE\DLE\SOH\DC2\SI\n\ + \\vOTHER_CAUSE\DLE\STX\DC2\NAK\n\ + \\DC1TECHNICAL_PROBLEM\DLE\ETX\DC2\n\ + \\n\ + \\ACKSTRIKE\DLE\EOT\DC2\DC1\n\ + \\rDEMONSTRATION\DLE\ENQ\DC2\f\n\ + \\bACCIDENT\DLE\ACK\DC2\v\n\ + \\aHOLIDAY\DLE\a\DC2\v\n\ + \\aWEATHER\DLE\b\DC2\SI\n\ + \\vMAINTENANCE\DLE\t\DC2\DLE\n\ + \\fCONSTRUCTION\DLE\n\ + \\DC2\DC3\n\ + \\SIPOLICE_ACTIVITY\DLE\v\DC2\NAK\n\ + \\DC1MEDICAL_EMERGENCY\DLE\f\"\221\SOH\n\ + \\ACKEffect\DC2\SO\n\ + \\n\ + \NO_SERVICE\DLE\SOH\DC2\DC3\n\ + \\SIREDUCED_SERVICE\DLE\STX\DC2\SYN\n\ + \\DC2SIGNIFICANT_DELAYS\DLE\ETX\DC2\n\ + \\n\ + \\ACKDETOUR\DLE\EOT\DC2\SYN\n\ + \\DC2ADDITIONAL_SERVICE\DLE\ENQ\DC2\DC4\n\ + \\DLEMODIFIED_SERVICE\DLE\ACK\DC2\DLE\n\ + \\fOTHER_EFFECT\DLE\a\DC2\DC2\n\ + \\SOUNKNOWN_EFFECT\DLE\b\DC2\SO\n\ + \\n\ + \STOP_MOVED\DLE\t\DC2\r\n\ + \\tNO_EFFECT\DLE\n\ + \\DC2\ETB\n\ + \\DC3ACCESSIBILITY_ISSUE\DLE\v\"H\n\ + \\rSeverityLevel\DC2\DC4\n\ + \\DLEUNKNOWN_SEVERITY\DLE\SOH\DC2\b\n\ + \\EOTINFO\DLE\STX\DC2\v\n\ + \\aWARNING\DLE\ETX\DC2\n\ + \\n\ + \\ACKSEVERE\DLE\EOT*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"C\n\ + \\tTimeRange\DC2\DC4\n\ + \\ENQstart\CAN\SOH \SOH(\EOTR\ENQstart\DC2\DLE\n\ + \\ETXend\CAN\STX \SOH(\EOTR\ETXend*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\160\SOH\n\ + \\bPosition\DC2\SUB\n\ + \\blatitude\CAN\SOH \STX(\STXR\blatitude\DC2\FS\n\ + \\tlongitude\CAN\STX \STX(\STXR\tlongitude\DC2\CAN\n\ + \\abearing\CAN\ETX \SOH(\STXR\abearing\DC2\SUB\n\ + \\bodometer\CAN\EOT \SOH(\SOHR\bodometer\DC2\DC4\n\ + \\ENQspeed\CAN\ENQ \SOH(\STXR\ENQspeed*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\147\ETX\n\ + \\SOTripDescriptor\DC2\ETB\n\ + \\atrip_id\CAN\SOH \SOH(\tR\ACKtripId\DC2\EM\n\ + \\broute_id\CAN\ENQ \SOH(\tR\arouteId\DC2!\n\ + \\fdirection_id\CAN\ACK \SOH(\rR\vdirectionId\DC2\GS\n\ + \\n\ + \start_time\CAN\STX \SOH(\tR\tstartTime\DC2\GS\n\ + \\n\ + \start_date\CAN\ETX \SOH(\tR\tstartDate\DC2j\n\ + \\NAKschedule_relationship\CAN\EOT \SOH(\SO25.transit_realtime.TripDescriptor.ScheduleRelationshipR\DC4scheduleRelationship\"p\n\ + \\DC4ScheduleRelationship\DC2\r\n\ + \\tSCHEDULED\DLE\NUL\DC2\t\n\ + \\ENQADDED\DLE\SOH\DC2\SI\n\ + \\vUNSCHEDULED\DLE\STX\DC2\f\n\ + \\bCANCELED\DLE\ETX\DC2\SI\n\ + \\vREPLACEMENT\DLE\ENQ\DC2\SO\n\ + \\n\ + \DUPLICATED\DLE\ACK*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"n\n\ + \\DC1VehicleDescriptor\DC2\SO\n\ + \\STXid\CAN\SOH \SOH(\tR\STXid\DC2\DC4\n\ + \\ENQlabel\CAN\STX \SOH(\tR\ENQlabel\DC2#\n\ + \\rlicense_plate\CAN\ETX \SOH(\tR\flicensePlate*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\233\SOH\n\ + \\SOEntitySelector\DC2\ESC\n\ + \\tagency_id\CAN\SOH \SOH(\tR\bagencyId\DC2\EM\n\ + \\broute_id\CAN\STX \SOH(\tR\arouteId\DC2\GS\n\ + \\n\ + \route_type\CAN\ETX \SOH(\ENQR\trouteType\DC24\n\ + \\EOTtrip\CAN\EOT \SOH(\v2 .transit_realtime.TripDescriptorR\EOTtrip\DC2\ETB\n\ + \\astop_id\CAN\ENQ \SOH(\tR\ACKstopId\DC2!\n\ + \\fdirection_id\CAN\ACK \SOH(\rR\vdirectionId*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\195\SOH\n\ + \\DLETranslatedString\DC2P\n\ + \\vtranslation\CAN\SOH \ETX(\v2..transit_realtime.TranslatedString.TranslationR\vtranslation\SUBM\n\ + \\vTranslation\DC2\DC2\n\ + \\EOTtext\CAN\SOH \STX(\tR\EOTtext\DC2\SUB\n\ + \\blanguage\CAN\STX \SOH(\tR\blanguage*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"\235\SOH\n\ + \\SITranslatedImage\DC2Y\n\ + \\SIlocalized_image\CAN\SOH \ETX(\v20.transit_realtime.TranslatedImage.LocalizedImageR\SOlocalizedImage\SUBm\n\ + \\SOLocalizedImage\DC2\DLE\n\ + \\ETXurl\CAN\SOH \STX(\tR\ETXurl\DC2\GS\n\ + \\n\ + \media_type\CAN\STX \STX(\tR\tmediaType\DC2\SUB\n\ + \\blanguage\CAN\ETX \SOH(\tR\blanguage*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144N\"]\n\ + \\ENQShape\DC2\EM\n\ + \\bshape_id\CAN\SOH \SOH(\tR\ashapeId\DC2)\n\ + \\DLEencoded_polyline\CAN\STX \SOH(\tR\SIencodedPolyline*\ACK\b\232\a\DLE\208\SI*\ACK\b\168F\DLE\144NB\SI\n\ + \\rGTFS.realtimeJ\229\169\ETX\n\ + \\a\DC2\ENQ\CAN\NUL\226\a\SOH\n\ + \\206\a\n\ + \\SOH\f\DC2\ETX\CAN\NUL\DC22\200\EOT Copyright 2015 The GTFS Specifications Authors.\n\ + \\n\ + \ Licensed under the Apache License, Version 2.0 (the \"License\");\n\ + \ you may not use this file except in compliance with the License.\n\ + \ You may obtain a copy of the License at\n\ + \\n\ + \ https://www.apache.org/licenses/LICENSE-2.0\n\ + \\n\ + \ Unless required by applicable law or agreed to in writing, software\n\ + \ distributed under the License is distributed on an \"AS IS\" BASIS,\n\ + \ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n\ + \ See the License for the specific language governing permissions and\n\ + \ limitations under the License.\n\ + \2\248\STX Protocol definition file for GTFS Realtime.\n\ + \\n\ + \ GTFS Realtime lets transit agencies provide consumers with realtime\n\ + \ information about disruptions to their service (stations closed, lines not\n\ + \ operating, important delays etc), location of their vehicles and expected\n\ + \ arrival times.\n\ + \\n\ + \ This protocol is published at:\n\ + \ https://github.com/google/transit/tree/master/gtfs-realtime\n\ + \\n\ + \\b\n\ + \\SOH\b\DC2\ETX\EM\NUL&\n\ + \\t\n\ + \\STX\b\SOH\DC2\ETX\EM\NUL&\n\ + \\b\n\ + \\SOH\STX\DC2\ETX\SUB\NUL\EM\n\ + \\180\EOT\n\ + \\STX\EOT\NUL\DC2\EOT%\NUL3\SOH\SUB\167\EOT The contents of a feed message.\n\ + \ A feed is a continuous stream of feed messages. Each message in the stream is\n\ + \ obtained as a response to an appropriate HTTP GET request.\n\ + \ A realtime feed is always defined with relation to an existing GTFS feed.\n\ + \ All the entity ids are resolved with respect to the GTFS feed.\n\ + \ Note that \"required\" and \"optional\" as stated in this file refer to Protocol\n\ + \ Buffer cardinality, not semantic cardinality. See reference.md at\n\ + \ https://github.com/google/transit/tree/master/gtfs-realtime for field\n\ + \ semantic cardinality.\n\ + \\n\ + \\n\ + \\n\ + \\ETX\EOT\NUL\SOH\DC2\ETX%\b\DC3\n\ + \9\n\ + \\EOT\EOT\NUL\STX\NUL\DC2\ETX'\STX!\SUB, Metadata about this feed and feed message.\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\NUL\STX\NUL\EOT\DC2\ETX'\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\NUL\STX\NUL\ACK\DC2\ETX'\v\NAK\n\ + \\f\n\ + \\ENQ\EOT\NUL\STX\NUL\SOH\DC2\ETX'\SYN\FS\n\ + \\f\n\ + \\ENQ\EOT\NUL\STX\NUL\ETX\DC2\ETX'\US \n\ + \$\n\ + \\EOT\EOT\NUL\STX\SOH\DC2\ETX*\STX!\SUB\ETB Contents of the feed.\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\NUL\STX\SOH\EOT\DC2\ETX*\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\NUL\STX\SOH\ACK\DC2\ETX*\v\NAK\n\ + \\f\n\ + \\ENQ\EOT\NUL\STX\SOH\SOH\DC2\ETX*\SYN\FS\n\ + \\f\n\ + \\ENQ\EOT\NUL\STX\SOH\ETX\DC2\ETX*\US \n\ + \\184\SOH\n\ + \\ETX\EOT\NUL\ENQ\DC2\ETX/\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\v\n\ + \\EOT\EOT\NUL\ENQ\NUL\DC2\ETX/\r\EM\n\ + \\f\n\ + \\ENQ\EOT\NUL\ENQ\NUL\SOH\DC2\ETX/\r\DC1\n\ + \\f\n\ + \\ENQ\EOT\NUL\ENQ\NUL\STX\DC2\ETX/\NAK\EM\n\ + \[\n\ + \\ETX\EOT\NUL\ENQ\DC2\ETX2\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\v\n\ + \\EOT\EOT\NUL\ENQ\SOH\DC2\ETX2\r\EM\n\ + \\f\n\ + \\ENQ\EOT\NUL\ENQ\SOH\SOH\DC2\ETX2\r\DC1\n\ + \\f\n\ + \\ENQ\EOT\NUL\ENQ\SOH\STX\DC2\ETX2\NAK\EM\n\ + \?\n\ + \\STX\EOT\SOH\DC2\EOT6\NULR\SOH\SUB3 Metadata about a feed, included in feed messages.\n\ + \\n\ + \\n\ + \\n\ + \\ETX\EOT\SOH\SOH\DC2\ETX6\b\DC2\n\ + \p\n\ + \\EOT\EOT\SOH\STX\NUL\DC2\ETX9\STX,\SUBc Version of the feed specification.\n\ + \ The current version is 2.0. Valid versions are \"2.0\", \"1.0\".\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\NUL\EOT\DC2\ETX9\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\NUL\ENQ\DC2\ETX9\v\DC1\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\NUL\SOH\DC2\ETX9\DC2'\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\NUL\ETX\DC2\ETX9*+\n\ + \\239\STX\n\ + \\EOT\EOT\SOH\EOT\NUL\DC2\EOT@\STXC\ETX\SUB\224\STX Determines whether the current fetch is incremental. Currently,\n\ + \ DIFFERENTIAL mode is unsupported and behavior is unspecified for feeds\n\ + \ that use this mode. There are discussions on the GTFS Realtime mailing\n\ + \ list around fully specifying the behavior of DIFFERENTIAL mode and the\n\ + \ documentation will be updated when those discussions are finalized.\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\SOH\EOT\NUL\SOH\DC2\ETX@\a\NAK\n\ + \\r\n\ + \\ACK\EOT\SOH\EOT\NUL\STX\NUL\DC2\ETXA\EOT\NAK\n\ + \\SO\n\ + \\a\EOT\SOH\EOT\NUL\STX\NUL\SOH\DC2\ETXA\EOT\DLE\n\ + \\SO\n\ + \\a\EOT\SOH\EOT\NUL\STX\NUL\STX\DC2\ETXA\DC3\DC4\n\ + \\r\n\ + \\ACK\EOT\SOH\EOT\NUL\STX\SOH\DC2\ETXB\EOT\NAK\n\ + \\SO\n\ + \\a\EOT\SOH\EOT\NUL\STX\SOH\SOH\DC2\ETXB\EOT\DLE\n\ + \\SO\n\ + \\a\EOT\SOH\EOT\NUL\STX\SOH\STX\DC2\ETXB\DC3\DC4\n\ + \\v\n\ + \\EOT\EOT\SOH\STX\SOH\DC2\ETXD\STXF\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\SOH\EOT\DC2\ETXD\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\SOH\ACK\DC2\ETXD\v\EM\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\SOH\SOH\DC2\ETXD\SUB(\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\SOH\ETX\DC2\ETXD+,\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\SOH\b\DC2\ETXD-E\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\SOH\a\DC2\ETXD8D\n\ + \\196\SOH\n\ + \\EOT\EOT\SOH\STX\STX\DC2\ETXI\STX \SUB\182\SOH This timestamp identifies the moment when the content of this feed has been\n\ + \ created (in server time). In POSIX time (i.e., number of seconds since\n\ + \ January 1st 1970 00:00:00 UTC).\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\STX\EOT\DC2\ETXI\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\STX\ENQ\DC2\ETXI\v\DC1\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\STX\SOH\DC2\ETXI\DC2\ESC\n\ + \\f\n\ + \\ENQ\EOT\SOH\STX\STX\ETX\DC2\ETXI\RS\US\n\ + \\184\SOH\n\ + \\ETX\EOT\SOH\ENQ\DC2\ETXN\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\v\n\ + \\EOT\EOT\SOH\ENQ\NUL\DC2\ETXN\r\EM\n\ + \\f\n\ + \\ENQ\EOT\SOH\ENQ\NUL\SOH\DC2\ETXN\r\DC1\n\ + \\f\n\ + \\ENQ\EOT\SOH\ENQ\NUL\STX\DC2\ETXN\NAK\EM\n\ + \[\n\ + \\ETX\EOT\SOH\ENQ\DC2\ETXQ\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\v\n\ + \\EOT\EOT\SOH\ENQ\SOH\DC2\ETXQ\r\EM\n\ + \\f\n\ + \\ENQ\EOT\SOH\ENQ\SOH\SOH\DC2\ETXQ\r\DC1\n\ + \\f\n\ + \\ENQ\EOT\SOH\ENQ\SOH\STX\DC2\ETXQ\NAK\EM\n\ + \H\n\ + \\STX\EOT\STX\DC2\EOTU\NULt\SOH\SUB< A definition (or update) of an entity in the transit feed.\n\ + \\n\ + \\n\ + \\n\ + \\ETX\EOT\STX\SOH\DC2\ETXU\b\DC2\n\ + \\250\ETX\n\ + \\EOT\EOT\STX\STX\NUL\DC2\ETX^\STX\EM\SUB\236\ETX The ids are used only to provide incrementality support. The id should be\n\ + \ unique within a FeedMessage. Consequent FeedMessages may contain\n\ + \ FeedEntities with the same id. In case of a DIFFERENTIAL update the new\n\ + \ FeedEntity with some id will replace the old FeedEntity with the same id\n\ + \ (or delete it - see is_deleted below).\n\ + \ The actual GTFS entities (e.g. stations, routes, trips) referenced by the\n\ + \ feed must be specified by explicit selectors (see EntitySelector below for\n\ + \ more info).\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\NUL\EOT\DC2\ETX^\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\NUL\ENQ\DC2\ETX^\v\DC1\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\NUL\SOH\DC2\ETX^\DC2\DC4\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\NUL\ETX\DC2\ETX^\ETB\CAN\n\ + \\\\n\ + \\EOT\EOT\STX\STX\SOH\DC2\ETXb\STX1\SUBO Whether this entity is to be deleted. Relevant only for incremental\n\ + \ fetches.\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\SOH\EOT\DC2\ETXb\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\SOH\ENQ\DC2\ETXb\v\SI\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\SOH\SOH\DC2\ETXb\DLE\SUB\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\SOH\ETX\DC2\ETXb\GS\RS\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\SOH\b\DC2\ETXb\US0\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\SOH\a\DC2\ETXb*/\n\ + \\135\SOH\n\ + \\EOT\EOT\STX\STX\STX\DC2\ETXf\STX&\SUBz Data about the entity itself. Exactly one of the following fields must be\n\ + \ present (unless the entity is being deleted).\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\STX\EOT\DC2\ETXf\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\STX\ACK\DC2\ETXf\v\NAK\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\STX\SOH\DC2\ETXf\SYN!\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\STX\ETX\DC2\ETXf$%\n\ + \\v\n\ + \\EOT\EOT\STX\STX\ETX\DC2\ETXg\STX'\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\ETX\EOT\DC2\ETXg\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\ETX\ACK\DC2\ETXg\v\SUB\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\ETX\SOH\DC2\ETXg\ESC\"\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\ETX\ETX\DC2\ETXg%&\n\ + \\v\n\ + \\EOT\EOT\STX\STX\EOT\DC2\ETXh\STX\ESC\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\EOT\EOT\DC2\ETXh\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\EOT\ACK\DC2\ETXh\v\DLE\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\EOT\SOH\DC2\ETXh\DC1\SYN\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\EOT\ETX\DC2\ETXh\EM\SUB\n\ + \w\n\ + \\EOT\EOT\STX\STX\ENQ\DC2\ETXk\STX\ESC\SUBj NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\ENQ\EOT\DC2\ETXk\STX\n\ + \\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\ENQ\ACK\DC2\ETXk\v\DLE\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\ENQ\SOH\DC2\ETXk\DC1\SYN\n\ + \\f\n\ + \\ENQ\EOT\STX\STX\ENQ\ETX\DC2\ETXk\EM\SUB\n\ + \\184\SOH\n\ + \\ETX\EOT\STX\ENQ\DC2\ETXp\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\v\n\ + \\EOT\EOT\STX\ENQ\NUL\DC2\ETXp\r\EM\n\ + \\f\n\ + \\ENQ\EOT\STX\ENQ\NUL\SOH\DC2\ETXp\r\DC1\n\ + \\f\n\ + \\ENQ\EOT\STX\ENQ\NUL\STX\DC2\ETXp\NAK\EM\n\ + \[\n\ + \\ETX\EOT\STX\ENQ\DC2\ETXs\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\v\n\ + \\EOT\EOT\STX\ENQ\SOH\DC2\ETXs\r\EM\n\ + \\f\n\ + \\ENQ\EOT\STX\ENQ\SOH\SOH\DC2\ETXs\r\DC1\n\ + \\f\n\ + \\ENQ\EOT\STX\ENQ\SOH\STX\DC2\ETXs\NAK\EM\n\ + \\239\f\n\ + \\STX\EOT\ETX\DC2\ACK\148\SOH\NUL\140\ETX\SOH\SUB\192\f Realtime update of the progress of a vehicle along a trip.\n\ + \ Depending on the value of ScheduleRelationship, a TripUpdate can specify:\n\ + \ - A trip that proceeds along the schedule.\n\ + \ - A trip that proceeds along a route but has no fixed schedule.\n\ + \ - A trip that have been added or removed with regard to schedule.\n\ + \\n\ + \ The updates can be for future, predicted arrival/departure events, or for\n\ + \ past events that already occurred.\n\ + \ Normally, updates should get more precise and more certain (see\n\ + \ uncertainty below) as the events gets closer to current time.\n\ + \ Even if that is not possible, the information for past events should be\n\ + \ precise and certain. In particular, if an update points to time in the past\n\ + \ but its update's uncertainty is not 0, the client should conclude that the\n\ + \ update is a (wrong) prediction and that the trip has not completed yet.\n\ + \\n\ + \ Note that the update can describe a trip that is already completed.\n\ + \ To this end, it is enough to provide an update for the last stop of the trip.\n\ + \ If the time of that is in the past, the client will conclude from that that\n\ + \ the whole trip is in the past (it is possible, although inconsequential, to\n\ + \ also provide updates for preceding stops).\n\ + \ This option is most relevant for a trip that has completed ahead of schedule,\n\ + \ but according to the schedule, the trip is still proceeding at the current\n\ + \ time. Removing the updates for this trip could make the client assume\n\ + \ that the trip is still proceeding.\n\ + \ Note that the feed provider is allowed, but not required, to purge past\n\ + \ updates - this is one case where this would be practically useful.\n\ + \2\RS\n\ + \ Entities used in the feed.\n\ + \\n\ + \\n\ + \\v\n\ + \\ETX\EOT\ETX\SOH\DC2\EOT\148\SOH\b\DC2\n\ + \\150\STX\n\ + \\EOT\EOT\ETX\STX\NUL\DC2\EOT\153\SOH\STX#\SUB\135\STX The Trip that this message applies to. There can be at most one\n\ + \ TripUpdate entity for each actual trip instance.\n\ + \ If there is none, that means there is no prediction information available.\n\ + \ It does *not* mean that the trip is progressing according to schedule.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\NUL\EOT\DC2\EOT\153\SOH\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\NUL\ACK\DC2\EOT\153\SOH\v\EM\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\NUL\SOH\DC2\EOT\153\SOH\SUB\RS\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\NUL\ETX\DC2\EOT\153\SOH!\"\n\ + \P\n\ + \\EOT\EOT\ETX\STX\SOH\DC2\EOT\156\SOH\STX)\SUBB Additional information on the vehicle that is serving this trip.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\SOH\EOT\DC2\EOT\156\SOH\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\SOH\ACK\DC2\EOT\156\SOH\v\FS\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\SOH\SOH\DC2\EOT\156\SOH\GS$\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\SOH\ETX\DC2\EOT\156\SOH'(\n\ + \\179\ACK\n\ + \\EOT\EOT\ETX\ETX\NUL\DC2\ACK\173\SOH\STX\197\SOH\ETX\SUB\162\ACK Timing information for a single predicted event (either arrival or\n\ + \ departure).\n\ + \ Timing consists of delay and/or estimated time, and uncertainty.\n\ + \ - delay should be used when the prediction is given relative to some\n\ + \ existing schedule in GTFS.\n\ + \ - time should be given whether there is a predicted schedule or not. If\n\ + \ both time and delay are specified, time will take precedence\n\ + \ (although normally, time, if given for a scheduled trip, should be\n\ + \ equal to scheduled time in GTFS + delay).\n\ + \\n\ + \ Uncertainty applies equally to both time and delay.\n\ + \ The uncertainty roughly specifies the expected error in true delay (but\n\ + \ note, we don't yet define its precise statistical meaning). It's possible\n\ + \ for the uncertainty to be 0, for example for trains that are driven under\n\ + \ computer timing control.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\ETX\NUL\SOH\DC2\EOT\173\SOH\n\ + \\ETB\n\ + \\205\SOH\n\ + \\ACK\EOT\ETX\ETX\NUL\STX\NUL\DC2\EOT\177\SOH\EOT\GS\SUB\188\SOH Delay (in seconds) can be positive (meaning that the vehicle is late) or\n\ + \ negative (meaning that the vehicle is ahead of schedule). Delay of 0\n\ + \ means that the vehicle is exactly on time.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\NUL\EOT\DC2\EOT\177\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\NUL\ENQ\DC2\EOT\177\SOH\r\DC2\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\NUL\SOH\DC2\EOT\177\SOH\DC3\CAN\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\NUL\ETX\DC2\EOT\177\SOH\ESC\FS\n\ + \w\n\ + \\ACK\EOT\ETX\ETX\NUL\STX\SOH\DC2\EOT\182\SOH\EOT\FS\SUBg Event as absolute time.\n\ + \ In Unix time (i.e., number of seconds since January 1st 1970 00:00:00\n\ + \ UTC).\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\SOH\EOT\DC2\EOT\182\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\SOH\ENQ\DC2\EOT\182\SOH\r\DC2\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\SOH\SOH\DC2\EOT\182\SOH\DC3\ETB\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\SOH\ETX\DC2\EOT\182\SOH\SUB\ESC\n\ + \\158\STX\n\ + \\ACK\EOT\ETX\ETX\NUL\STX\STX\DC2\EOT\188\SOH\EOT#\SUB\141\STX If uncertainty is omitted, it is interpreted as unknown.\n\ + \ If the prediction is unknown or too uncertain, the delay (or time) field\n\ + \ should be empty. In such case, the uncertainty field is ignored.\n\ + \ To specify a completely certain prediction, set its uncertainty to 0.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\STX\EOT\DC2\EOT\188\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\STX\ENQ\DC2\EOT\188\SOH\r\DC2\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\STX\SOH\DC2\EOT\188\SOH\DC3\RS\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\STX\STX\ETX\DC2\EOT\188\SOH!\"\n\ + \\187\SOH\n\ + \\ENQ\EOT\ETX\ETX\NUL\ENQ\DC2\EOT\193\SOH\EOT\FS\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features\n\ + \ and modifications to the spec.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\ETX\ETX\NUL\ENQ\NUL\DC2\EOT\193\SOH\SI\ESC\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\ENQ\NUL\SOH\DC2\EOT\193\SOH\SI\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\ENQ\NUL\STX\DC2\EOT\193\SOH\ETB\ESC\n\ + \^\n\ + \\ENQ\EOT\ETX\ETX\NUL\ENQ\DC2\EOT\196\SOH\EOT\FS\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\ETX\ETX\NUL\ENQ\SOH\DC2\EOT\196\SOH\SI\ESC\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\ENQ\SOH\SOH\DC2\EOT\196\SOH\SI\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\NUL\ENQ\SOH\STX\DC2\EOT\196\SOH\ETB\ESC\n\ + \\171\ETX\n\ + \\EOT\EOT\ETX\ETX\SOH\DC2\ACK\202\SOH\STX\164\STX\ETX\SUB\209\SOH Realtime update for arrival and/or departure events for a given stop on a\n\ + \ trip. Updates can be supplied for both past and future events.\n\ + \ The producer is allowed, although not required, to drop past events.\n\ + \\"\198\SOH The update is linked to a specific stop either through stop_sequence or\n\ + \ stop_id, so one of the fields below must necessarily be set.\n\ + \ See the documentation in TripDescriptor for more information.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\ETX\SOH\SOH\DC2\EOT\202\SOH\n\ + \\CAN\n\ + \W\n\ + \\ACK\EOT\ETX\ETX\SOH\STX\NUL\DC2\EOT\208\SOH\EOT&\SUBG Must be the same as in stop_times.txt in the corresponding GTFS feed.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\NUL\EOT\DC2\EOT\208\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\NUL\ENQ\DC2\EOT\208\SOH\r\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\NUL\SOH\DC2\EOT\208\SOH\DC4!\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\NUL\ETX\DC2\EOT\208\SOH$%\n\ + \R\n\ + \\ACK\EOT\ETX\ETX\SOH\STX\SOH\DC2\EOT\210\SOH\EOT \SUBB Must be the same as in stops.txt in the corresponding GTFS feed.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\SOH\EOT\DC2\EOT\210\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\SOH\ENQ\DC2\EOT\210\SOH\r\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\SOH\SOH\DC2\EOT\210\SOH\DC4\ESC\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\SOH\ETX\DC2\EOT\210\SOH\RS\US\n\ + \\SO\n\ + \\ACK\EOT\ETX\ETX\SOH\STX\STX\DC2\EOT\212\SOH\EOT'\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\STX\EOT\DC2\EOT\212\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\STX\ACK\DC2\EOT\212\SOH\r\SUB\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\STX\SOH\DC2\EOT\212\SOH\ESC\"\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\STX\ETX\DC2\EOT\212\SOH%&\n\ + \\SO\n\ + \\ACK\EOT\ETX\ETX\SOH\STX\ETX\DC2\EOT\213\SOH\EOT)\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ETX\EOT\DC2\EOT\213\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ETX\ACK\DC2\EOT\213\SOH\r\SUB\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ETX\SOH\DC2\EOT\213\SOH\ESC$\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ETX\ETX\DC2\EOT\213\SOH'(\n\ + \\138\STX\n\ + \\ACK\EOT\ETX\ETX\SOH\STX\EOT\DC2\EOT\219\SOH\EOTL\SUB\249\SOH Expected occupancy after departure from the given stop.\n\ + \ Should be provided only for future stops.\n\ + \ In order to provide departure_occupancy_status without either arrival or\n\ + \ departure StopTimeEvents, ScheduleRelationship should be set to NO_DATA. \n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\EOT\EOT\DC2\EOT\219\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\EOT\ACK\DC2\EOT\219\SOH\r,\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\EOT\SOH\DC2\EOT\219\SOH-G\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\EOT\ETX\DC2\EOT\219\SOHJK\n\ + \T\n\ + \\ACK\EOT\ETX\ETX\SOH\EOT\NUL\DC2\ACK\222\SOH\EOT\250\SOH\ENQ\SUBB The relation between the StopTimeEvents and the static schedule.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\EOT\NUL\SOH\DC2\EOT\222\SOH\t\GS\n\ + \\199\ETX\n\ + \\b\EOT\ETX\ETX\SOH\EOT\NUL\STX\NUL\DC2\EOT\229\SOH\ACK\DC4\SUB\180\ETX The vehicle is proceeding in accordance with its static schedule of\n\ + \ stops, although not necessarily according to the times of the schedule.\n\ + \ At least one of arrival and departure must be provided. If the schedule\n\ + \ for this stop contains both arrival and departure times then so must\n\ + \ this update. Frequency-based trips (GTFS frequencies.txt with exact_times = 0)\n\ + \ should not have a SCHEDULED value and should use UNSCHEDULED instead.\n\ + \\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\EOT\NUL\STX\NUL\SOH\DC2\EOT\229\SOH\ACK\SI\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\EOT\NUL\STX\NUL\STX\DC2\EOT\229\SOH\DC2\DC3\n\ + \{\n\ + \\b\EOT\ETX\ETX\SOH\EOT\NUL\STX\SOH\DC2\EOT\233\SOH\ACK\DC2\SUBi The stop is skipped, i.e., the vehicle will not stop at this stop.\n\ + \ Arrival and departure are optional.\n\ + \\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\EOT\NUL\STX\SOH\SOH\DC2\EOT\233\SOH\ACK\r\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\EOT\NUL\STX\SOH\STX\DC2\EOT\233\SOH\DLE\DC1\n\ + \\238\STX\n\ + \\b\EOT\ETX\ETX\SOH\EOT\NUL\STX\STX\DC2\EOT\241\SOH\ACK\DC2\SUB\219\STX No StopTimeEvents are given for this stop.\n\ + \ The main intention for this value is to give time predictions only for\n\ + \ part of a trip, i.e., if the last update for a trip has a NO_DATA\n\ + \ specifier, then StopTimeEvents for the rest of the stops in the trip\n\ + \ are considered to be unspecified as well.\n\ + \ Neither arrival nor departure should be supplied.\n\ + \\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\EOT\NUL\STX\STX\SOH\DC2\EOT\241\SOH\ACK\r\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\EOT\NUL\STX\STX\STX\DC2\EOT\241\SOH\DLE\DC1\n\ + \\235\ETX\n\ + \\b\EOT\ETX\ETX\SOH\EOT\NUL\STX\ETX\DC2\EOT\249\SOH\ACK\SYN\SUB\216\ETX The vehicle is operating a trip defined in GTFS frequencies.txt with exact_times = 0.\n\ + \ This value should not be used for trips that are not defined in GTFS frequencies.txt,\n\ + \ or trips in GTFS frequencies.txt with exact_times = 1. Trips containing StopTimeUpdates\n\ + \ with ScheduleRelationship=UNSCHEDULED must also set TripDescriptor.ScheduleRelationship=UNSCHEDULED.\n\ + \ NOTE: This field is still experimental, and subject to change. It may be\n\ + \ formally adopted in the future.\n\ + \\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\EOT\NUL\STX\ETX\SOH\DC2\EOT\249\SOH\ACK\DC1\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\EOT\NUL\STX\ETX\STX\DC2\EOT\249\SOH\DC4\NAK\n\ + \\DLE\n\ + \\ACK\EOT\ETX\ETX\SOH\STX\ENQ\DC2\ACK\251\SOH\EOT\252\SOH\RS\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ENQ\EOT\DC2\EOT\251\SOH\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ENQ\ACK\DC2\EOT\251\SOH\r!\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ENQ\SOH\DC2\EOT\251\SOH\"7\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ENQ\ETX\DC2\EOT\251\SOH:;\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ENQ\b\DC2\EOT\252\SOH\b\GS\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ENQ\a\DC2\EOT\252\SOH\DC3\FS\n\ + \\175\SOH\n\ + \\ACK\EOT\ETX\ETX\SOH\ETX\NUL\DC2\ACK\128\STX\EOT\151\STX\ENQ\SUB\156\SOH Provides the updated values for the stop time.\n\ + \ NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\ETX\NUL\SOH\DC2\EOT\128\STX\f\RS\n\ + \\231\t\n\ + \\b\EOT\ETX\ETX\SOH\ETX\NUL\STX\NUL\DC2\EOT\142\STX\ACK+\SUB\212\t Supports real-time stop assignments. Refers to a stop_id defined in the GTFS stops.txt.\n\ + \ The new assigned_stop_id should not result in a significantly different trip experience for the end user than\n\ + \ the stop_id defined in GTFS stop_times.txt. In other words, the end user should not view this new stop_id as an\n\ + \ \"unusual change\" if the new stop was presented within an app without any additional context.\n\ + \ For example, this field is intended to be used for platform assignments by using a stop_id that belongs to the\n\ + \ same station as the stop originally defined in GTFS stop_times.txt.\n\ + \ To assign a stop without providing any real-time arrival or departure predictions, populate this field and set\n\ + \ StopTimeUpdate.schedule_relationship = NO_DATA.\n\ + \ If this field is populated, it is preferred to omit `StopTimeUpdate.stop_id` and use only `StopTimeUpdate.stop_sequence`. If\n\ + \ `StopTimeProperties.assigned_stop_id` and `StopTimeUpdate.stop_id` are populated, `StopTimeUpdate.stop_id` must match `assigned_stop_id`.\n\ + \ Platform assignments should be reflected in other GTFS-realtime fields as well\n\ + \ (e.g., `VehiclePosition.stop_id`).\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\ETX\NUL\STX\NUL\EOT\DC2\EOT\142\STX\ACK\SO\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\ETX\NUL\STX\NUL\ENQ\DC2\EOT\142\STX\SI\NAK\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\ETX\NUL\STX\NUL\SOH\DC2\EOT\142\STX\SYN&\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\ETX\NUL\STX\NUL\ETX\DC2\EOT\142\STX)*\n\ + \\189\SOH\n\ + \\a\EOT\ETX\ETX\SOH\ETX\NUL\ENQ\DC2\EOT\147\STX\ACK\RS\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features\n\ + \ and modifications to the spec.\n\ + \\n\ + \\DLE\n\ + \\b\EOT\ETX\ETX\SOH\ETX\NUL\ENQ\NUL\DC2\EOT\147\STX\DC1\GS\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\ETX\NUL\ENQ\NUL\SOH\DC2\EOT\147\STX\DC1\NAK\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\ETX\NUL\ENQ\NUL\STX\DC2\EOT\147\STX\EM\GS\n\ + \`\n\ + \\a\EOT\ETX\ETX\SOH\ETX\NUL\ENQ\DC2\EOT\150\STX\ACK\RS\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\DLE\n\ + \\b\EOT\ETX\ETX\SOH\ETX\NUL\ENQ\SOH\DC2\EOT\150\STX\DC1\GS\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\ETX\NUL\ENQ\SOH\SOH\DC2\EOT\150\STX\DC1\NAK\n\ + \\DC1\n\ + \\t\EOT\ETX\ETX\SOH\ETX\NUL\ENQ\SOH\STX\DC2\EOT\150\STX\EM\GS\n\ + \\199\SOH\n\ + \\ACK\EOT\ETX\ETX\SOH\STX\ACK\DC2\EOT\155\STX\EOT9\SUB\182\SOH Realtime updates for certain properties defined within GTFS stop_times.txt\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ACK\EOT\DC2\EOT\155\STX\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ACK\ACK\DC2\EOT\155\STX\r\US\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ACK\SOH\DC2\EOT\155\STX 4\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\STX\ACK\ETX\DC2\EOT\155\STX78\n\ + \\187\SOH\n\ + \\ENQ\EOT\ETX\ETX\SOH\ENQ\DC2\EOT\160\STX\EOT\FS\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features\n\ + \ and modifications to the spec.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\ETX\ETX\SOH\ENQ\NUL\DC2\EOT\160\STX\SI\ESC\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\ENQ\NUL\SOH\DC2\EOT\160\STX\SI\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\ENQ\NUL\STX\DC2\EOT\160\STX\ETB\ESC\n\ + \^\n\ + \\ENQ\EOT\ETX\ETX\SOH\ENQ\DC2\EOT\163\STX\EOT\FS\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\ETX\ETX\SOH\ENQ\SOH\DC2\EOT\163\STX\SI\ESC\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\ENQ\SOH\SOH\DC2\EOT\163\STX\SI\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\SOH\ENQ\SOH\STX\DC2\EOT\163\STX\ETB\ESC\n\ + \\189\ACK\n\ + \\EOT\EOT\ETX\STX\STX\DC2\EOT\185\STX\STX/\SUB\174\ACK Updates to StopTimes for the trip (both future, i.e., predictions, and in\n\ + \ some cases, past ones, i.e., those that already happened).\n\ + \ The updates must be sorted by stop_sequence, and apply for all the\n\ + \ following stops of the trip up to the next specified one.\n\ + \\n\ + \ Example 1:\n\ + \ For a trip with 20 stops, a StopTimeUpdate with arrival delay and departure\n\ + \ delay of 0 for stop_sequence of the current stop means that the trip is\n\ + \ exactly on time.\n\ + \\n\ + \ Example 2:\n\ + \ For the same trip instance, 3 StopTimeUpdates are provided:\n\ + \ - delay of 5 min for stop_sequence 3\n\ + \ - delay of 1 min for stop_sequence 8\n\ + \ - delay of unspecified duration for stop_sequence 10\n\ + \ This will be interpreted as:\n\ + \ - stop_sequences 3,4,5,6,7 have delay of 5 min.\n\ + \ - stop_sequences 8,9 have delay of 1 min.\n\ + \ - stop_sequences 10,... have unknown delay.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\STX\EOT\DC2\EOT\185\STX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\STX\ACK\DC2\EOT\185\STX\v\EM\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\STX\SOH\DC2\EOT\185\STX\SUB*\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\STX\ETX\DC2\EOT\185\STX-.\n\ + \\184\STX\n\ + \\EOT\EOT\ETX\STX\ETX\DC2\EOT\191\STX\STX \SUB\169\STX The most recent moment at which the vehicle's real-time progress was measured\n\ + \ to estimate StopTimes in the future. When StopTimes in the past are provided,\n\ + \ arrival/departure times may be earlier than this value. In POSIX\n\ + \ time (i.e., the number of seconds since January 1st 1970 00:00:00 UTC).\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\ETX\EOT\DC2\EOT\191\STX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\ETX\ENQ\DC2\EOT\191\STX\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\ETX\SOH\DC2\EOT\191\STX\DC2\ESC\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\ETX\ETX\DC2\EOT\191\STX\RS\US\n\ + \\221\ACK\n\ + \\EOT\EOT\ETX\STX\EOT\DC2\EOT\211\STX\STX\ESC\SUB\206\ACK The current schedule deviation for the trip. Delay should only be\n\ + \ specified when the prediction is given relative to some existing schedule\n\ + \ in GTFS.\n\ + \\n\ + \ Delay (in seconds) can be positive (meaning that the vehicle is late) or\n\ + \ negative (meaning that the vehicle is ahead of schedule). Delay of 0\n\ + \ means that the vehicle is exactly on time.\n\ + \\n\ + \ Delay information in StopTimeUpdates take precedent of trip-level delay\n\ + \ information, such that trip-level delay is only propagated until the next\n\ + \ stop along the trip with a StopTimeUpdate delay value specified.\n\ + \\n\ + \ Feed providers are strongly encouraged to provide a TripUpdate.timestamp\n\ + \ value indicating when the delay value was last updated, in order to\n\ + \ evaluate the freshness of the data.\n\ + \\n\ + \ NOTE: This field is still experimental, and subject to change. It may be\n\ + \ formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\EOT\EOT\DC2\EOT\211\STX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\EOT\ENQ\DC2\EOT\211\STX\v\DLE\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\EOT\SOH\DC2\EOT\211\STX\DC1\SYN\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\EOT\ETX\DC2\EOT\211\STX\EM\SUB\n\ + \\160\STX\n\ + \\EOT\EOT\ETX\ETX\STX\DC2\ACK\216\STX\STX\130\ETX\ETX\SUB\143\STX Defines updated properties of the trip, such as a new shape_id when there is a detour. Or defines the\n\ + \ trip_id, start_date, and start_time of a DUPLICATED trip. \n\ + \ NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\ETX\STX\SOH\DC2\EOT\216\STX\n\ + \\CAN\n\ + \\228\EOT\n\ + \\ACK\EOT\ETX\ETX\STX\STX\NUL\DC2\EOT\223\STX\EOT \SUB\211\EOT Defines the identifier of a new trip that is a duplicate of an existing trip defined in (CSV) GTFS trips.txt\n\ + \ but will start at a different service date and/or time (defined using the TripProperties.start_date and\n\ + \ TripProperties.start_time fields). See definition of trips.trip_id in (CSV) GTFS. Its value must be different\n\ + \ than the ones used in the (CSV) GTFS. Required if schedule_relationship=DUPLICATED, otherwise this field must not\n\ + \ be populated and will be ignored by consumers.\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\NUL\EOT\DC2\EOT\223\STX\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\NUL\ENQ\DC2\EOT\223\STX\r\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\NUL\SOH\DC2\EOT\223\STX\DC4\ESC\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\NUL\ETX\DC2\EOT\223\STX\RS\US\n\ + \\195\STX\n\ + \\ACK\EOT\ETX\ETX\STX\STX\SOH\DC2\EOT\227\STX\EOT#\SUB\178\STX Service date on which the DUPLICATED trip will be run, in YYYYMMDD format. Required if\n\ + \ schedule_relationship=DUPLICATED, otherwise this field must not be populated and will be ignored by consumers.\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\SOH\EOT\DC2\EOT\227\STX\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\SOH\ENQ\DC2\EOT\227\STX\r\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\SOH\SOH\DC2\EOT\227\STX\DC4\RS\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\SOH\ETX\DC2\EOT\227\STX!\"\n\ + \\251\t\n\ + \\ACK\EOT\ETX\ETX\STX\STX\STX\DC2\EOT\240\STX\EOT#\SUB\234\t Defines the departure start time of the trip when it\226\128\153s duplicated. See definition of stop_times.departure_time\n\ + \ in (CSV) GTFS. Scheduled arrival and departure times for the duplicated trip are calculated based on the offset\n\ + \ between the original trip departure_time and this field. For example, if a GTFS trip has stop A with a\n\ + \ departure_time of 10:00:00 and stop B with departure_time of 10:01:00, and this field is populated with the value\n\ + \ of 10:30:00, stop B on the duplicated trip will have a scheduled departure_time of 10:31:00. Real-time prediction\n\ + \ delay values are applied to this calculated schedule time to determine the predicted time. For example, if a\n\ + \ departure delay of 30 is provided for stop B, then the predicted departure time is 10:31:30. Real-time\n\ + \ prediction time values do not have any offset applied to them and indicate the predicted time as provided.\n\ + \ For example, if a departure time representing 10:31:30 is provided for stop B, then the predicted departure time\n\ + \ is 10:31:30. This field is required if schedule_relationship is DUPLICATED, otherwise this field must not be\n\ + \ populated and will be ignored by consumers.\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\STX\EOT\DC2\EOT\240\STX\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\STX\ENQ\DC2\EOT\240\STX\r\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\STX\SOH\DC2\EOT\240\STX\DC4\RS\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\STX\ETX\DC2\EOT\240\STX!\"\n\ + \\239\ACK\n\ + \\ACK\EOT\ETX\ETX\STX\STX\ETX\DC2\EOT\249\STX\EOT!\SUB\222\ACK Specifies the shape of the vehicle travel path when the trip shape differs from the shape specified in\n\ + \ (CSV) GTFS or to specify it in real-time when it's not provided by (CSV) GTFS, such as a vehicle that takes differing\n\ + \ paths based on rider demand. See definition of trips.shape_id in (CSV) GTFS. If a shape is neither defined in (CSV) GTFS\n\ + \ nor in real-time, the shape is considered unknown. This field can refer to a shape defined in the (CSV) GTFS in shapes.txt\n\ + \ or a Shape in the (protobuf) real-time feed. The order of stops (stop sequences) for this trip must remain the same as\n\ + \ (CSV) GTFS. Stops that are a part of the original trip but will no longer be made, such as when a detour occurs, should\n\ + \ be marked as schedule_relationship=SKIPPED.\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future. \n\ + \\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\ETX\EOT\DC2\EOT\249\STX\EOT\f\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\ETX\ENQ\DC2\EOT\249\STX\r\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\ETX\SOH\DC2\EOT\249\STX\DC4\FS\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\STX\ETX\ETX\DC2\EOT\249\STX\US \n\ + \\187\SOH\n\ + \\ENQ\EOT\ETX\ETX\STX\ENQ\DC2\EOT\254\STX\EOT\FS\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features\n\ + \ and modifications to the spec.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\ETX\ETX\STX\ENQ\NUL\DC2\EOT\254\STX\SI\ESC\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\ENQ\NUL\SOH\DC2\EOT\254\STX\SI\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\ENQ\NUL\STX\DC2\EOT\254\STX\ETB\ESC\n\ + \^\n\ + \\ENQ\EOT\ETX\ETX\STX\ENQ\DC2\EOT\129\ETX\EOT\FS\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\ETX\ETX\STX\ENQ\SOH\DC2\EOT\129\ETX\SI\ESC\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\ENQ\SOH\SOH\DC2\EOT\129\ETX\SI\DC3\n\ + \\SI\n\ + \\a\EOT\ETX\ETX\STX\ENQ\SOH\STX\DC2\EOT\129\ETX\ETB\ESC\n\ + \\f\n\ + \\EOT\EOT\ETX\STX\ENQ\DC2\EOT\131\ETX\STX.\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\ENQ\EOT\DC2\EOT\131\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\ENQ\ACK\DC2\EOT\131\ETX\v\EM\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\ENQ\SOH\DC2\EOT\131\ETX\SUB)\n\ + \\r\n\ + \\ENQ\EOT\ETX\STX\ENQ\ETX\DC2\EOT\131\ETX,-\n\ + \\185\SOH\n\ + \\ETX\EOT\ETX\ENQ\DC2\EOT\136\ETX\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\ETX\ENQ\NUL\DC2\EOT\136\ETX\r\EM\n\ + \\r\n\ + \\ENQ\EOT\ETX\ENQ\NUL\SOH\DC2\EOT\136\ETX\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\ETX\ENQ\NUL\STX\DC2\EOT\136\ETX\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\ETX\ENQ\DC2\EOT\139\ETX\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\ETX\ENQ\SOH\DC2\EOT\139\ETX\r\EM\n\ + \\r\n\ + \\ENQ\EOT\ETX\ENQ\SOH\SOH\DC2\EOT\139\ETX\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\ETX\ENQ\SOH\STX\DC2\EOT\139\ETX\NAK\EM\n\ + \E\n\ + \\STX\EOT\EOT\DC2\ACK\143\ETX\NUL\189\EOT\SOH\SUB7 Realtime positioning information for a given vehicle.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\EOT\SOH\DC2\EOT\143\ETX\b\ETB\n\ + \\146\SOH\n\ + \\EOT\EOT\EOT\STX\NUL\DC2\EOT\147\ETX\STX#\SUB\131\SOH The Trip that this vehicle is serving.\n\ + \ Can be empty or partial if the vehicle can not be identified with a given\n\ + \ trip instance.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\NUL\EOT\DC2\EOT\147\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\NUL\ACK\DC2\EOT\147\ETX\v\EM\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\NUL\SOH\DC2\EOT\147\ETX\SUB\RS\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\NUL\ETX\DC2\EOT\147\ETX!\"\n\ + \P\n\ + \\EOT\EOT\EOT\STX\SOH\DC2\EOT\150\ETX\STX)\SUBB Additional information on the vehicle that is serving this trip.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\SOH\EOT\DC2\EOT\150\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\SOH\ACK\DC2\EOT\150\ETX\v\FS\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\SOH\SOH\DC2\EOT\150\ETX\GS$\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\SOH\ETX\DC2\EOT\150\ETX'(\n\ + \1\n\ + \\EOT\EOT\EOT\STX\STX\DC2\EOT\153\ETX\STX!\SUB# Current position of this vehicle.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\STX\EOT\DC2\EOT\153\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\STX\ACK\DC2\EOT\153\ETX\v\DC3\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\STX\SOH\DC2\EOT\153\ETX\DC4\FS\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\STX\ETX\DC2\EOT\153\ETX\US \n\ + \\224\SOH\n\ + \\EOT\EOT\EOT\STX\ETX\DC2\EOT\159\ETX\STX,\SUB\209\SOH The stop sequence index of the current stop. The meaning of\n\ + \ current_stop_sequence (i.e., the stop that it refers to) is determined by\n\ + \ current_status.\n\ + \ If current_status is missing IN_TRANSIT_TO is assumed.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ETX\EOT\DC2\EOT\159\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ETX\ENQ\DC2\EOT\159\ETX\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ETX\SOH\DC2\EOT\159\ETX\DC2'\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ETX\ETX\DC2\EOT\159\ETX*+\n\ + \x\n\ + \\EOT\EOT\EOT\STX\EOT\DC2\EOT\162\ETX\STX\RS\SUBj Identifies the current stop. The value must be the same as in stops.txt in\n\ + \ the corresponding GTFS feed.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\EOT\EOT\DC2\EOT\162\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\EOT\ENQ\DC2\EOT\162\ETX\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\EOT\SOH\DC2\EOT\162\ETX\DC2\EM\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\EOT\ETX\DC2\EOT\162\ETX\FS\GS\n\ + \\SO\n\ + \\EOT\EOT\EOT\EOT\NUL\DC2\ACK\164\ETX\STX\174\ETX\ETX\n\ + \\r\n\ + \\ENQ\EOT\EOT\EOT\NUL\SOH\DC2\EOT\164\ETX\a\CAN\n\ + \}\n\ + \\ACK\EOT\EOT\EOT\NUL\STX\NUL\DC2\EOT\167\ETX\EOT\DC4\SUBm The vehicle is just about to arrive at the stop (on a stop\n\ + \ display, the vehicle symbol typically flashes).\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\NUL\STX\NUL\SOH\DC2\EOT\167\ETX\EOT\SI\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\NUL\STX\NUL\STX\DC2\EOT\167\ETX\DC2\DC3\n\ + \6\n\ + \\ACK\EOT\EOT\EOT\NUL\STX\SOH\DC2\EOT\170\ETX\EOT\DC3\SUB& The vehicle is standing at the stop.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\NUL\STX\SOH\SOH\DC2\EOT\170\ETX\EOT\SO\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\NUL\STX\SOH\STX\DC2\EOT\170\ETX\DC1\DC2\n\ + \N\n\ + \\ACK\EOT\EOT\EOT\NUL\STX\STX\DC2\EOT\173\ETX\EOT\SYN\SUB> The vehicle has departed and is in transit to the next stop.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\NUL\STX\STX\SOH\DC2\EOT\173\ETX\EOT\DC1\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\NUL\STX\STX\STX\DC2\EOT\173\ETX\DC4\NAK\n\ + \\DEL\n\ + \\EOT\EOT\EOT\STX\ENQ\DC2\EOT\177\ETX\STXJ\SUBq The exact status of the vehicle with respect to the current stop.\n\ + \ Ignored if current_stop_sequence is missing.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ENQ\EOT\DC2\EOT\177\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ENQ\ACK\DC2\EOT\177\ETX\v\FS\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ENQ\SOH\DC2\EOT\177\ETX\GS+\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ENQ\ETX\DC2\EOT\177\ETX./\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ENQ\b\DC2\EOT\177\ETX0I\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ENQ\a\DC2\EOT\177\ETX;H\n\ + \\147\SOH\n\ + \\EOT\EOT\EOT\STX\ACK\DC2\EOT\181\ETX\STX \SUB\132\SOH Moment at which the vehicle's position was measured. In POSIX time\n\ + \ (i.e., number of seconds since January 1st 1970 00:00:00 UTC).\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ACK\EOT\DC2\EOT\181\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ACK\ENQ\DC2\EOT\181\ETX\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ACK\SOH\DC2\EOT\181\ETX\DC2\ESC\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\ACK\ETX\DC2\EOT\181\ETX\RS\US\n\ + \B\n\ + \\EOT\EOT\EOT\EOT\SOH\DC2\ACK\184\ETX\STX\190\ETX\ETX\SUB2 Congestion level that is affecting this vehicle.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\EOT\SOH\SOH\DC2\EOT\184\ETX\a\SYN\n\ + \\SO\n\ + \\ACK\EOT\EOT\EOT\SOH\STX\NUL\DC2\EOT\185\ETX\EOT!\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\NUL\SOH\DC2\EOT\185\ETX\EOT\FS\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\NUL\STX\DC2\EOT\185\ETX\US \n\ + \\SO\n\ + \\ACK\EOT\EOT\EOT\SOH\STX\SOH\DC2\EOT\186\ETX\EOT\EM\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\SOH\SOH\DC2\EOT\186\ETX\EOT\DC4\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\SOH\STX\DC2\EOT\186\ETX\ETB\CAN\n\ + \\SO\n\ + \\ACK\EOT\EOT\EOT\SOH\STX\STX\DC2\EOT\187\ETX\EOT\DC4\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\STX\SOH\DC2\EOT\187\ETX\EOT\SI\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\STX\STX\DC2\EOT\187\ETX\DC2\DC3\n\ + \\SO\n\ + \\ACK\EOT\EOT\EOT\SOH\STX\ETX\DC2\EOT\188\ETX\EOT\DC3\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\ETX\SOH\DC2\EOT\188\ETX\EOT\SO\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\ETX\STX\DC2\EOT\188\ETX\DC1\DC2\n\ + \,\n\ + \\ACK\EOT\EOT\EOT\SOH\STX\EOT\DC2\EOT\189\ETX\EOT\SUB\"\FS People leaving their cars.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\EOT\SOH\DC2\EOT\189\ETX\EOT\NAK\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\SOH\STX\EOT\STX\DC2\EOT\189\ETX\CAN\EM\n\ + \\f\n\ + \\EOT\EOT\EOT\STX\a\DC2\EOT\191\ETX\STX0\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\a\EOT\DC2\EOT\191\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\a\ACK\DC2\EOT\191\ETX\v\SUB\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\a\SOH\DC2\EOT\191\ETX\ESC+\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\a\ETX\DC2\EOT\191\ETX./\n\ + \\128\ENQ\n\ + \\EOT\EOT\EOT\EOT\STX\DC2\ACK\201\ETX\STX\239\ETX\ETX\SUB\239\EOT The state of passenger occupancy for the vehicle or carriage.\n\ + \ Individual producers may not publish all OccupancyStatus values. Therefore, consumers\n\ + \ must not assume that the OccupancyStatus values follow a linear scale.\n\ + \ Consumers should represent OccupancyStatus values as the state indicated \n\ + \ and intended by the producer. Likewise, producers must use OccupancyStatus values that\n\ + \ correspond to actual vehicle occupancy states.\n\ + \ For describing passenger occupancy levels on a linear scale, see `occupancy_percentage`.\n\ + \ This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\EOT\STX\SOH\DC2\EOT\201\ETX\a\SYN\n\ + \\154\SOH\n\ + \\ACK\EOT\EOT\EOT\STX\STX\NUL\DC2\EOT\204\ETX\EOT\SO\SUB\137\SOH The vehicle or carriage is considered empty by most measures, and has few or no\n\ + \ passengers onboard, but is still accepting passengers.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\NUL\SOH\DC2\EOT\204\ETX\EOT\t\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\NUL\STX\DC2\EOT\204\ETX\f\r\n\ + \\248\SOH\n\ + \\ACK\EOT\EOT\EOT\STX\STX\SOH\DC2\EOT\210\ETX\EOT\GS\SUB\231\SOH The vehicle or carriage has a large number of seats available.\n\ + \ The amount of free seats out of the total seats available to be\n\ + \ considered large enough to fall into this category is determined at the\n\ + \ discretion of the producer.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\SOH\SOH\DC2\EOT\210\ETX\EOT\CAN\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\SOH\STX\DC2\EOT\210\ETX\ESC\FS\n\ + \\136\STX\n\ + \\ACK\EOT\EOT\EOT\STX\STX\STX\DC2\EOT\216\ETX\EOT\FS\SUB\247\SOH The vehicle or carriage has a relatively small number of seats available.\n\ + \ The amount of free seats out of the total seats available to be\n\ + \ considered small enough to fall into this category is determined at the\n\ + \ discretion of the feed producer.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\STX\SOH\DC2\EOT\216\ETX\EOT\ETB\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\STX\STX\DC2\EOT\216\ETX\SUB\ESC\n\ + \]\n\ + \\ACK\EOT\EOT\EOT\STX\STX\ETX\DC2\EOT\219\ETX\EOT\ESC\SUBM The vehicle or carriage can currently accommodate only standing passengers.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\ETX\SOH\DC2\EOT\219\ETX\EOT\SYN\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\ETX\STX\DC2\EOT\219\ETX\EM\SUB\n\ + \}\n\ + \\ACK\EOT\EOT\EOT\STX\STX\EOT\DC2\EOT\223\ETX\EOT#\SUBm The vehicle or carriage can currently accommodate only standing passengers\n\ + \ and has limited space for them.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\EOT\SOH\DC2\EOT\223\ETX\EOT\RS\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\EOT\STX\DC2\EOT\223\ETX!\"\n\ + \~\n\ + \\ACK\EOT\EOT\EOT\STX\STX\ENQ\DC2\EOT\227\ETX\EOT\r\SUBn The vehicle or carriage is considered full by most measures, but may still be\n\ + \ allowing passengers to board.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\ENQ\SOH\DC2\EOT\227\ETX\EOT\b\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\ENQ\STX\DC2\EOT\227\ETX\v\f\n\ + \s\n\ + \\ACK\EOT\EOT\EOT\STX\STX\ACK\DC2\EOT\230\ETX\EOT!\SUBc The vehicle or carriage is not accepting passengers, but usually accepts passengers for boarding.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\ACK\SOH\DC2\EOT\230\ETX\EOT\FS\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\ACK\STX\DC2\EOT\230\ETX\US \n\ + \a\n\ + \\ACK\EOT\EOT\EOT\STX\STX\a\DC2\EOT\233\ETX\EOT\SUB\SUBQ The vehicle or carriage doesn't have any occupancy data available at that time.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\a\SOH\DC2\EOT\233\ETX\EOT\NAK\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\a\STX\DC2\EOT\233\ETX\CAN\EM\n\ + \\171\SOH\n\ + \\ACK\EOT\EOT\EOT\STX\STX\b\DC2\EOT\237\ETX\EOT\SYN\SUB\154\SOH The vehicle or carriage is not boardable and never accepts passengers.\n\ + \ Useful for special vehicles or carriages (engine, maintenance carriage, etc\226\128\166).\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\b\SOH\DC2\EOT\237\ETX\EOT\DC1\n\ + \\SI\n\ + \\a\EOT\EOT\EOT\STX\STX\b\STX\DC2\EOT\237\ETX\DC4\NAK\n\ + \\193\SOH\n\ + \\EOT\EOT\EOT\STX\b\DC2\EOT\242\ETX\STX0\SUB\178\SOH If multi_carriage_status is populated with per-carriage OccupancyStatus,\n\ + \ then this field should describe the entire vehicle with all carriages accepting passengers considered.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\b\EOT\DC2\EOT\242\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\b\ACK\DC2\EOT\242\ETX\v\SUB\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\b\SOH\DC2\EOT\242\ETX\ESC+\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\b\ETX\DC2\EOT\242\ETX./\n\ + \\239\ACK\n\ + \\EOT\EOT\EOT\STX\t\DC2\EOT\253\ETX\STX,\SUB\224\ACK A percentage value indicating the degree of passenger occupancy in the vehicle.\n\ + \ The values are represented as an integer without decimals. 0 means 0% and 100 means 100%.\n\ + \ The value 100 should represent the total maximum occupancy the vehicle was designed for,\n\ + \ including both seated and standing capacity, and current operating regulations allow.\n\ + \ The value may exceed 100 if there are more passengers than the maximum designed capacity.\n\ + \ The precision of occupancy_percentage should be low enough that individual passengers cannot be tracked boarding or alighting the vehicle.\n\ + \ If multi_carriage_status is populated with per-carriage occupancy_percentage, \n\ + \ then this field should describe the entire vehicle with all carriages accepting passengers considered.\n\ + \ This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\t\EOT\DC2\EOT\253\ETX\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\t\ENQ\DC2\EOT\253\ETX\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\t\SOH\DC2\EOT\253\ETX\DC2&\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\t\ETX\DC2\EOT\253\ETX)+\n\ + \\201\SOH\n\ + \\EOT\EOT\EOT\ETX\NUL\DC2\ACK\129\EOT\STX\169\EOT\ETX\SUB\184\SOH Carriage specific details, used for vehicles composed of several carriages\n\ + \ This message/field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\ETX\NUL\SOH\DC2\EOT\129\EOT\n\ + \\EM\n\ + \O\n\ + \\ACK\EOT\EOT\ETX\NUL\STX\NUL\DC2\EOT\132\EOT\EOT\ESC\SUB? Identification of the carriage. Should be unique per vehicle.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\NUL\EOT\DC2\EOT\132\EOT\EOT\f\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\NUL\ENQ\DC2\EOT\132\EOT\r\DC3\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\NUL\SOH\DC2\EOT\132\EOT\DC4\SYN\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\NUL\ETX\DC2\EOT\132\EOT\EM\SUB\n\ + \\250\SOH\n\ + \\ACK\EOT\EOT\ETX\NUL\STX\SOH\DC2\EOT\137\EOT\EOT\RS\SUB\233\SOH User visible label that may be shown to the passenger to help identify\n\ + \ the carriage. Example: \"7712\", \"Car ABC-32\", etc...\n\ + \ This message/field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\SOH\EOT\DC2\EOT\137\EOT\EOT\f\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\SOH\ENQ\DC2\EOT\137\EOT\r\DC3\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\SOH\SOH\DC2\EOT\137\EOT\DC4\EM\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\SOH\ETX\DC2\EOT\137\EOT\FS\GS\n\ + \\184\SOH\n\ + \\ACK\EOT\EOT\ETX\NUL\STX\STX\DC2\EOT\141\EOT\EOTP\SUB\167\SOH Occupancy status for this given carriage, in this vehicle\n\ + \ This message/field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\STX\EOT\DC2\EOT\141\EOT\EOT\f\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\STX\ACK\DC2\EOT\141\EOT\r\FS\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\STX\SOH\DC2\EOT\141\EOT\GS-\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\STX\ETX\DC2\EOT\141\EOT01\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\STX\b\DC2\EOT\141\EOT2O\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\STX\a\DC2\EOT\141\EOT=N\n\ + \\223\STX\n\ + \\ACK\EOT\EOT\ETX\NUL\STX\ETX\DC2\EOT\147\EOT\EOT;\SUB\206\STX Occupancy percentage for this given carriage, in this vehicle.\n\ + \ Follows the same rules as \"VehiclePosition.occupancy_percentage\"\n\ + \ -1 in case data is not available for this given carriage (as protobuf defaults to 0 otherwise)\n\ + \ This message/field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\ETX\EOT\DC2\EOT\147\EOT\EOT\f\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\ETX\ENQ\DC2\EOT\147\EOT\r\DC2\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\ETX\SOH\DC2\EOT\147\EOT\DC3'\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\ETX\ETX\DC2\EOT\147\EOT*+\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\ETX\b\DC2\EOT\147\EOT,:\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\ETX\a\DC2\EOT\147\EOT79\n\ + \\247\ACK\n\ + \\ACK\EOT\EOT\ETX\NUL\STX\EOT\DC2\EOT\160\EOT\EOT*\SUB\230\ACK Identifies the order of this carriage with respect to the other\n\ + \ carriages in the vehicle's list of CarriageDetails.\n\ + \ The first carriage in the direction of travel must have a value of 1.\n\ + \ The second value corresponds to the second carriage in the direction\n\ + \ of travel and must have a value of 2, and so forth.\n\ + \ For example, the first carriage in the direction of travel has a value of 1.\n\ + \ If the second carriage in the direction of travel has a value of 3,\n\ + \ consumers will discard data for all carriages (i.e., the multi_carriage_details field).\n\ + \ Carriages without data must be represented with a valid carriage_sequence number and the fields \n\ + \ without data should be omitted (alternately, those fields could also be included and set to the \"no data\" values).\n\ + \ This message/field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\EOT\EOT\DC2\EOT\160\EOT\EOT\f\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\EOT\ENQ\DC2\EOT\160\EOT\r\DC3\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\EOT\SOH\DC2\EOT\160\EOT\DC4%\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\STX\EOT\ETX\DC2\EOT\160\EOT()\n\ + \\187\SOH\n\ + \\ENQ\EOT\EOT\ETX\NUL\ENQ\DC2\EOT\165\EOT\EOT\FS\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\EOT\ETX\NUL\ENQ\NUL\DC2\EOT\165\EOT\SI\ESC\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\ENQ\NUL\SOH\DC2\EOT\165\EOT\SI\DC3\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\ENQ\NUL\STX\DC2\EOT\165\EOT\ETB\ESC\n\ + \^\n\ + \\ENQ\EOT\EOT\ETX\NUL\ENQ\DC2\EOT\168\EOT\EOT\FS\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\EOT\ETX\NUL\ENQ\SOH\DC2\EOT\168\EOT\SI\ESC\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\ENQ\SOH\SOH\DC2\EOT\168\EOT\SI\DC3\n\ + \\SI\n\ + \\a\EOT\EOT\ETX\NUL\ENQ\SOH\STX\DC2\EOT\168\EOT\ETB\ESC\n\ + \\201\EOT\n\ + \\EOT\EOT\EOT\STX\n\ + \\DC2\EOT\180\EOT\STX7\SUB\186\EOT Details of the multiple carriages of this given vehicle.\n\ + \ The first occurrence represents the first carriage of the vehicle, \n\ + \ given the current direction of travel. \n\ + \ The number of occurrences of the multi_carriage_details \n\ + \ field represents the number of carriages of the vehicle.\n\ + \ It also includes non boardable carriages, \n\ + \ like engines, maintenance carriages, etc\226\128\166 as they provide valuable \n\ + \ information to passengers about where to stand on a platform.\n\ + \ This message/field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\n\ + \\EOT\DC2\EOT\180\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\n\ + \\ACK\DC2\EOT\180\EOT\v\SUB\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\n\ + \\SOH\DC2\EOT\180\EOT\ESC1\n\ + \\r\n\ + \\ENQ\EOT\EOT\STX\n\ + \\ETX\DC2\EOT\180\EOT46\n\ + \\185\SOH\n\ + \\ETX\EOT\EOT\ENQ\DC2\EOT\185\EOT\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\EOT\ENQ\NUL\DC2\EOT\185\EOT\r\EM\n\ + \\r\n\ + \\ENQ\EOT\EOT\ENQ\NUL\SOH\DC2\EOT\185\EOT\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\EOT\ENQ\NUL\STX\DC2\EOT\185\EOT\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\EOT\ENQ\DC2\EOT\188\EOT\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\EOT\ENQ\SOH\DC2\EOT\188\EOT\r\EM\n\ + \\r\n\ + \\ENQ\EOT\EOT\ENQ\SOH\SOH\DC2\EOT\188\EOT\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\EOT\ENQ\SOH\STX\DC2\EOT\188\EOT\NAK\EM\n\ + \Y\n\ + \\STX\EOT\ENQ\DC2\ACK\192\EOT\NUL\154\ENQ\SOH\SUBK An alert, indicating some sort of incident in the public transit network.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\ENQ\SOH\DC2\EOT\192\EOT\b\r\n\ + \\212\SOH\n\ + \\EOT\EOT\ENQ\STX\NUL\DC2\EOT\196\EOT\STX'\SUB\197\SOH Time when the alert should be shown to the user. If missing, the\n\ + \ alert will be shown as long as it appears in the feed.\n\ + \ If multiple ranges are given, the alert will be shown during all of them.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\NUL\EOT\DC2\EOT\196\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\NUL\ACK\DC2\EOT\196\EOT\v\DC4\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\NUL\SOH\DC2\EOT\196\EOT\NAK\"\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\NUL\ETX\DC2\EOT\196\EOT%&\n\ + \D\n\ + \\EOT\EOT\ENQ\STX\SOH\DC2\EOT\199\EOT\STX.\SUB6 Entities whose users we should notify of this alert.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\SOH\EOT\DC2\EOT\199\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\SOH\ACK\DC2\EOT\199\EOT\v\EM\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\SOH\SOH\DC2\EOT\199\EOT\SUB)\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\SOH\ETX\DC2\EOT\199\EOT,-\n\ + \&\n\ + \\EOT\EOT\ENQ\EOT\NUL\DC2\ACK\202\EOT\STX\215\EOT\ETX\SUB\SYN Cause of this alert.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\EOT\NUL\SOH\DC2\EOT\202\EOT\a\f\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\NUL\DC2\EOT\203\EOT\EOT\SYN\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\NUL\SOH\DC2\EOT\203\EOT\EOT\DC1\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\NUL\STX\DC2\EOT\203\EOT\DC4\NAK\n\ + \,\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\SOH\DC2\EOT\204\EOT\EOT\DC4\"\FS Not machine-representable.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\SOH\SOH\DC2\EOT\204\EOT\EOT\SI\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\SOH\STX\DC2\EOT\204\EOT\DC2\DC3\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\STX\DC2\EOT\205\EOT\EOT\SUB\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\STX\SOH\DC2\EOT\205\EOT\EOT\NAK\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\STX\STX\DC2\EOT\205\EOT\CAN\EM\n\ + \B\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\ETX\DC2\EOT\206\EOT\EOT\SI\"2 Public transit agency employees stopped working.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\ETX\SOH\DC2\EOT\206\EOT\EOT\n\ + \\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\ETX\STX\DC2\EOT\206\EOT\r\SO\n\ + \2\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\EOT\DC2\EOT\207\EOT\EOT\SYN\"\" People are blocking the streets.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\EOT\SOH\DC2\EOT\207\EOT\EOT\DC1\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\EOT\STX\DC2\EOT\207\EOT\DC4\NAK\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\ENQ\DC2\EOT\208\EOT\EOT\DC1\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\ENQ\SOH\DC2\EOT\208\EOT\EOT\f\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\ENQ\STX\DC2\EOT\208\EOT\SI\DLE\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\ACK\DC2\EOT\209\EOT\EOT\DLE\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\ACK\SOH\DC2\EOT\209\EOT\EOT\v\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\ACK\STX\DC2\EOT\209\EOT\SO\SI\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\a\DC2\EOT\210\EOT\EOT\DLE\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\a\SOH\DC2\EOT\210\EOT\EOT\v\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\a\STX\DC2\EOT\210\EOT\SO\SI\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\b\DC2\EOT\211\EOT\EOT\DC4\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\b\SOH\DC2\EOT\211\EOT\EOT\SI\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\b\STX\DC2\EOT\211\EOT\DC2\DC3\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\t\DC2\EOT\212\EOT\EOT\SYN\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\t\SOH\DC2\EOT\212\EOT\EOT\DLE\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\t\STX\DC2\EOT\212\EOT\DC3\NAK\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\n\ + \\DC2\EOT\213\EOT\EOT\EM\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\n\ + \\SOH\DC2\EOT\213\EOT\EOT\DC3\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\n\ + \\STX\DC2\EOT\213\EOT\SYN\CAN\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\NUL\STX\v\DC2\EOT\214\EOT\EOT\ESC\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\v\SOH\DC2\EOT\214\EOT\EOT\NAK\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\NUL\STX\v\STX\DC2\EOT\214\EOT\CAN\SUB\n\ + \\f\n\ + \\EOT\EOT\ENQ\STX\STX\DC2\EOT\216\EOT\STX5\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\STX\EOT\DC2\EOT\216\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\STX\ACK\DC2\EOT\216\EOT\v\DLE\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\STX\SOH\DC2\EOT\216\EOT\DC1\SYN\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\STX\ETX\DC2\EOT\216\EOT\EM\SUB\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\STX\b\DC2\EOT\216\EOT\ESC4\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\STX\a\DC2\EOT\216\EOT&3\n\ + \L\n\ + \\EOT\EOT\ENQ\EOT\SOH\DC2\ACK\219\EOT\STX\236\EOT\ETX\SUB< What is the effect of this problem on the affected entity.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\EOT\SOH\SOH\DC2\EOT\219\EOT\a\r\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\NUL\DC2\EOT\220\EOT\EOT\DC3\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\NUL\SOH\DC2\EOT\220\EOT\EOT\SO\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\NUL\STX\DC2\EOT\220\EOT\DC1\DC2\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\SOH\DC2\EOT\221\EOT\EOT\CAN\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\SOH\SOH\DC2\EOT\221\EOT\EOT\DC3\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\SOH\STX\DC2\EOT\221\EOT\SYN\ETB\n\ + \\175\SOH\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\STX\DC2\EOT\226\EOT\EOT\ESC\SUB\158\SOH We don't care about INsignificant delays: they are hard to detect, have\n\ + \ little impact on the user, and would clutter the results as they are too\n\ + \ frequent.\n\ + \\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\STX\SOH\DC2\EOT\226\EOT\EOT\SYN\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\STX\STX\DC2\EOT\226\EOT\EM\SUB\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\ETX\DC2\EOT\228\EOT\EOT\SI\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\ETX\SOH\DC2\EOT\228\EOT\EOT\n\ + \\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\ETX\STX\DC2\EOT\228\EOT\r\SO\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\EOT\DC2\EOT\229\EOT\EOT\ESC\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\EOT\SOH\DC2\EOT\229\EOT\EOT\SYN\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\EOT\STX\DC2\EOT\229\EOT\EM\SUB\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\ENQ\DC2\EOT\230\EOT\EOT\EM\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\ENQ\SOH\DC2\EOT\230\EOT\EOT\DC4\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\ENQ\STX\DC2\EOT\230\EOT\ETB\CAN\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\ACK\DC2\EOT\231\EOT\EOT\NAK\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\ACK\SOH\DC2\EOT\231\EOT\EOT\DLE\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\ACK\STX\DC2\EOT\231\EOT\DC3\DC4\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\a\DC2\EOT\232\EOT\EOT\ETB\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\a\SOH\DC2\EOT\232\EOT\EOT\DC2\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\a\STX\DC2\EOT\232\EOT\NAK\SYN\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\b\DC2\EOT\233\EOT\EOT\DC3\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\b\SOH\DC2\EOT\233\EOT\EOT\SO\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\b\STX\DC2\EOT\233\EOT\DC1\DC2\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\t\DC2\EOT\234\EOT\EOT\DC3\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\t\SOH\DC2\EOT\234\EOT\EOT\r\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\t\STX\DC2\EOT\234\EOT\DLE\DC2\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\SOH\STX\n\ + \\DC2\EOT\235\EOT\EOT\GS\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\n\ + \\SOH\DC2\EOT\235\EOT\EOT\ETB\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\SOH\STX\n\ + \\STX\DC2\EOT\235\EOT\SUB\FS\n\ + \\f\n\ + \\EOT\EOT\ENQ\STX\ETX\DC2\EOT\237\EOT\STX8\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ETX\EOT\DC2\EOT\237\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ETX\ACK\DC2\EOT\237\EOT\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ETX\SOH\DC2\EOT\237\EOT\DC2\CAN\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ETX\ETX\DC2\EOT\237\EOT\ESC\FS\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ETX\b\DC2\EOT\237\EOT\GS7\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ETX\a\DC2\EOT\237\EOT(6\n\ + \N\n\ + \\EOT\EOT\ENQ\STX\EOT\DC2\EOT\240\EOT\STX$\SUB@ The URL which provides additional information about the alert.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\EOT\EOT\DC2\EOT\240\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\EOT\ACK\DC2\EOT\240\EOT\v\ESC\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\EOT\SOH\DC2\EOT\240\EOT\FS\US\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\EOT\ETX\DC2\EOT\240\EOT\"#\n\ + \W\n\ + \\EOT\EOT\ENQ\STX\ENQ\DC2\EOT\243\EOT\STX-\SUBI Alert header. Contains a short summary of the alert text as plain-text.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ENQ\EOT\DC2\EOT\243\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ENQ\ACK\DC2\EOT\243\EOT\v\ESC\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ENQ\SOH\DC2\EOT\243\EOT\FS'\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ENQ\ETX\DC2\EOT\243\EOT*,\n\ + \\143\SOH\n\ + \\EOT\EOT\ENQ\STX\ACK\DC2\EOT\247\EOT\STX2\SUB\128\SOH Full description for the alert as plain-text. The information in the\n\ + \ description should add to the information of the header.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ACK\EOT\DC2\EOT\247\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ACK\ACK\DC2\EOT\247\EOT\v\ESC\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ACK\SOH\DC2\EOT\247\EOT\FS,\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\ACK\ETX\DC2\EOT\247\EOT/1\n\ + \\140\SOH\n\ + \\EOT\EOT\ENQ\STX\a\DC2\EOT\250\EOT\STX1\SUB~ Text for alert header to be used in text-to-speech implementations. This field is the text-to-speech version of header_text.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\a\EOT\DC2\EOT\250\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\a\ACK\DC2\EOT\250\EOT\v\ESC\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\a\SOH\DC2\EOT\250\EOT\FS+\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\a\ETX\DC2\EOT\250\EOT.0\n\ + \\164\SOH\n\ + \\EOT\EOT\ENQ\STX\b\DC2\EOT\253\EOT\STX6\SUB\149\SOH Text for full description for the alert to be used in text-to-speech implementations. This field is the text-to-speech version of description_text.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\b\EOT\DC2\EOT\253\EOT\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\b\ACK\DC2\EOT\253\EOT\v\ESC\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\b\SOH\DC2\EOT\253\EOT\FS0\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\b\ETX\DC2\EOT\253\EOT35\n\ + \)\n\ + \\EOT\EOT\ENQ\EOT\STX\DC2\ACK\128\ENQ\STX\133\ENQ\ETX\SUB\EM Severity of this alert.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\EOT\STX\SOH\DC2\EOT\128\ENQ\a\DC4\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\STX\STX\NUL\DC2\EOT\129\ENQ\b\GS\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\STX\STX\NUL\SOH\DC2\EOT\129\ENQ\b\CAN\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\STX\STX\NUL\STX\DC2\EOT\129\ENQ\ESC\FS\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\STX\STX\SOH\DC2\EOT\130\ENQ\b\DC1\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\STX\STX\SOH\SOH\DC2\EOT\130\ENQ\b\f\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\STX\STX\SOH\STX\DC2\EOT\130\ENQ\SI\DLE\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\STX\STX\STX\DC2\EOT\131\ENQ\b\DC4\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\STX\STX\STX\SOH\DC2\EOT\131\ENQ\b\SI\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\STX\STX\STX\STX\DC2\EOT\131\ENQ\DC2\DC3\n\ + \\SO\n\ + \\ACK\EOT\ENQ\EOT\STX\STX\ETX\DC2\EOT\132\ENQ\b\DC3\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\STX\STX\ETX\SOH\DC2\EOT\132\ENQ\b\SO\n\ + \\SI\n\ + \\a\EOT\ENQ\EOT\STX\STX\ETX\STX\DC2\EOT\132\ENQ\DC1\DC2\n\ + \\f\n\ + \\EOT\EOT\ENQ\STX\t\DC2\EOT\135\ENQ\STXJ\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\t\EOT\DC2\EOT\135\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\t\ACK\DC2\EOT\135\ENQ\v\CAN\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\t\SOH\DC2\EOT\135\ENQ\EM'\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\t\ETX\DC2\EOT\135\ENQ*,\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\t\b\DC2\EOT\135\ENQ-I\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\t\a\DC2\EOT\135\ENQ8H\n\ + \\166\EOT\n\ + \\EOT\EOT\ENQ\STX\n\ + \\DC2\EOT\140\ENQ\STX&\SUB\151\EOT TranslatedImage to be displayed along the alert text. Used to explain visually the alert effect of a detour, station closure, etc. The image must enhance the understanding of the alert. Any essential information communicated within the image must also be contained in the alert text.\n\ + \ The following types of images are discouraged : image containing mainly text, marketing or branded images that add no additional information. \n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\n\ + \\EOT\DC2\EOT\140\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\n\ + \\ACK\DC2\EOT\140\ENQ\v\SUB\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\n\ + \\SOH\DC2\EOT\140\ENQ\ESC \n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\n\ + \\ETX\DC2\EOT\140\ENQ#%\n\ + \\245\STX\n\ + \\EOT\EOT\ENQ\STX\v\DC2\EOT\145\ENQ\STX8\SUB\230\STX Text describing the appearance of the linked image in the `image` field (e.g., in case the image can't be displayed\n\ + \ or the user can't see the image for accessibility reasons). See the HTML spec for alt image text - https://html.spec.whatwg.org/#alt.\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\v\EOT\DC2\EOT\145\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\v\ACK\DC2\EOT\145\ENQ\v\ESC\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\v\SOH\DC2\EOT\145\ENQ\FS2\n\ + \\r\n\ + \\ENQ\EOT\ENQ\STX\v\ETX\DC2\EOT\145\ENQ57\n\ + \\185\SOH\n\ + \\ETX\EOT\ENQ\ENQ\DC2\EOT\150\ENQ\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features\n\ + \ and modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\ENQ\ENQ\NUL\DC2\EOT\150\ENQ\r\EM\n\ + \\r\n\ + \\ENQ\EOT\ENQ\ENQ\NUL\SOH\DC2\EOT\150\ENQ\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\ENQ\ENQ\NUL\STX\DC2\EOT\150\ENQ\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\ENQ\ENQ\DC2\EOT\153\ENQ\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\ENQ\ENQ\SOH\DC2\EOT\153\ENQ\r\EM\n\ + \\r\n\ + \\ENQ\EOT\ENQ\ENQ\SOH\SOH\DC2\EOT\153\ENQ\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\ENQ\ENQ\SOH\STX\DC2\EOT\153\ENQ\NAK\EM\n\ + \\201\SOH\n\ + \\STX\EOT\ACK\DC2\ACK\162\ENQ\NUL\180\ENQ\SOH\SUB\143\SOH A time interval. The interval is considered active at time 't' if 't' is\n\ + \ greater than or equal to the start time and less than the end time.\n\ + \2)\n\ + \ Low level data structures used above.\n\ + \\n\ + \\n\ + \\v\n\ + \\ETX\EOT\ACK\SOH\DC2\EOT\162\ENQ\b\DC1\n\ + \\158\SOH\n\ + \\EOT\EOT\ACK\STX\NUL\DC2\EOT\166\ENQ\STX\FS\SUB\143\SOH Start time, in POSIX time (i.e., number of seconds since January 1st 1970\n\ + \ 00:00:00 UTC).\n\ + \ If missing, the interval starts at minus infinity.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ACK\STX\NUL\EOT\DC2\EOT\166\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ACK\STX\NUL\ENQ\DC2\EOT\166\ENQ\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\ACK\STX\NUL\SOH\DC2\EOT\166\ENQ\DC2\ETB\n\ + \\r\n\ + \\ENQ\EOT\ACK\STX\NUL\ETX\DC2\EOT\166\ENQ\SUB\ESC\n\ + \\153\SOH\n\ + \\EOT\EOT\ACK\STX\SOH\DC2\EOT\171\ENQ\STX\SUB\SUB\138\SOH End time, in POSIX time (i.e., number of seconds since January 1st 1970\n\ + \ 00:00:00 UTC).\n\ + \ If missing, the interval ends at plus infinity.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ACK\STX\SOH\EOT\DC2\EOT\171\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\ACK\STX\SOH\ENQ\DC2\EOT\171\ENQ\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\ACK\STX\SOH\SOH\DC2\EOT\171\ENQ\DC2\NAK\n\ + \\r\n\ + \\ENQ\EOT\ACK\STX\SOH\ETX\DC2\EOT\171\ENQ\CAN\EM\n\ + \\185\SOH\n\ + \\ETX\EOT\ACK\ENQ\DC2\EOT\176\ENQ\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\ACK\ENQ\NUL\DC2\EOT\176\ENQ\r\EM\n\ + \\r\n\ + \\ENQ\EOT\ACK\ENQ\NUL\SOH\DC2\EOT\176\ENQ\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\ACK\ENQ\NUL\STX\DC2\EOT\176\ENQ\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\ACK\ENQ\DC2\EOT\179\ENQ\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\ACK\ENQ\SOH\DC2\EOT\179\ENQ\r\EM\n\ + \\r\n\ + \\ENQ\EOT\ACK\ENQ\SOH\SOH\DC2\EOT\179\ENQ\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\ACK\ENQ\SOH\STX\DC2\EOT\179\ENQ\NAK\EM\n\ + \\ESC\n\ + \\STX\EOT\a\DC2\ACK\183\ENQ\NUL\209\ENQ\SOH\SUB\r A position.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\a\SOH\DC2\EOT\183\ENQ\b\DLE\n\ + \?\n\ + \\EOT\EOT\a\STX\NUL\DC2\EOT\185\ENQ\STX\RS\SUB1 Degrees North, in the WGS-84 coordinate system.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\NUL\EOT\DC2\EOT\185\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\NUL\ENQ\DC2\EOT\185\ENQ\v\DLE\n\ + \\r\n\ + \\ENQ\EOT\a\STX\NUL\SOH\DC2\EOT\185\ENQ\DC1\EM\n\ + \\r\n\ + \\ENQ\EOT\a\STX\NUL\ETX\DC2\EOT\185\ENQ\FS\GS\n\ + \>\n\ + \\EOT\EOT\a\STX\SOH\DC2\EOT\188\ENQ\STX\US\SUB0 Degrees East, in the WGS-84 coordinate system.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\SOH\EOT\DC2\EOT\188\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\SOH\ENQ\DC2\EOT\188\ENQ\v\DLE\n\ + \\r\n\ + \\ENQ\EOT\a\STX\SOH\SOH\DC2\EOT\188\ENQ\DC1\SUB\n\ + \\r\n\ + \\ENQ\EOT\a\STX\SOH\ETX\DC2\EOT\188\ENQ\GS\RS\n\ + \\186\STX\n\ + \\EOT\EOT\a\STX\STX\DC2\EOT\195\ENQ\STX\GS\SUB\171\STX Bearing, in degrees, clockwise from North, i.e., 0 is North and 90 is East.\n\ + \ This can be the compass bearing, or the direction towards the next stop\n\ + \ or intermediate location.\n\ + \ This should not be direction deduced from the sequence of previous\n\ + \ positions, which can be computed from previous data.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\STX\EOT\DC2\EOT\195\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\STX\ENQ\DC2\EOT\195\ENQ\v\DLE\n\ + \\r\n\ + \\ENQ\EOT\a\STX\STX\SOH\DC2\EOT\195\ENQ\DC1\CAN\n\ + \\r\n\ + \\ENQ\EOT\a\STX\STX\ETX\DC2\EOT\195\ENQ\ESC\FS\n\ + \*\n\ + \\EOT\EOT\a\STX\ETX\DC2\EOT\198\ENQ\STX\US\SUB\FS Odometer value, in meters.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\ETX\EOT\DC2\EOT\198\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\ETX\ENQ\DC2\EOT\198\ENQ\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\a\STX\ETX\SOH\DC2\EOT\198\ENQ\DC2\SUB\n\ + \\r\n\ + \\ENQ\EOT\a\STX\ETX\ETX\DC2\EOT\198\ENQ\GS\RS\n\ + \N\n\ + \\EOT\EOT\a\STX\EOT\DC2\EOT\200\ENQ\STX\ESC\SUB@ Momentary speed measured by the vehicle, in meters per second.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\EOT\EOT\DC2\EOT\200\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\a\STX\EOT\ENQ\DC2\EOT\200\ENQ\v\DLE\n\ + \\r\n\ + \\ENQ\EOT\a\STX\EOT\SOH\DC2\EOT\200\ENQ\DC1\SYN\n\ + \\r\n\ + \\ENQ\EOT\a\STX\EOT\ETX\DC2\EOT\200\ENQ\EM\SUB\n\ + \\185\SOH\n\ + \\ETX\EOT\a\ENQ\DC2\EOT\205\ENQ\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\a\ENQ\NUL\DC2\EOT\205\ENQ\r\EM\n\ + \\r\n\ + \\ENQ\EOT\a\ENQ\NUL\SOH\DC2\EOT\205\ENQ\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\a\ENQ\NUL\STX\DC2\EOT\205\ENQ\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\a\ENQ\DC2\EOT\208\ENQ\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\a\ENQ\SOH\DC2\EOT\208\ENQ\r\EM\n\ + \\r\n\ + \\ENQ\EOT\a\ENQ\SOH\SOH\DC2\EOT\208\ENQ\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\a\ENQ\SOH\STX\DC2\EOT\208\ENQ\NAK\EM\n\ + \\208\EOT\n\ + \\STX\EOT\b\DC2\ACK\220\ENQ\NUL\189\ACK\SOH\SUB\193\EOT A descriptor that identifies an instance of a GTFS trip, or all instances of\n\ + \ a trip along a route.\n\ + \ - To specify a single trip instance, the trip_id (and if necessary,\n\ + \ start_time) is set. If route_id is also set, then it should be same as one\n\ + \ that the given trip corresponds to.\n\ + \ - To specify all the trips along a given route, only the route_id should be\n\ + \ set. Note that if the trip_id is not known, then stop sequence ids in\n\ + \ TripUpdate are not sufficient, and stop_ids must be provided as well. In\n\ + \ addition, absolute arrival/departure times must be provided.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\b\SOH\DC2\EOT\220\ENQ\b\SYN\n\ + \\184\EOT\n\ + \\EOT\EOT\b\STX\NUL\DC2\EOT\227\ENQ\STX\RS\SUB\169\EOT The trip_id from the GTFS feed that this selector refers to.\n\ + \ For non frequency-based trips, this field is enough to uniquely identify\n\ + \ the trip. For frequency-based trip, start_time and start_date might also be\n\ + \ necessary. When schedule_relationship is DUPLICATED within a TripUpdate, the trip_id identifies the trip from\n\ + \ static GTFS to be duplicated. When schedule_relationship is DUPLICATED within a VehiclePosition, the trip_id\n\ + \ identifies the new duplicate trip and must contain the value for the corresponding TripUpdate.TripProperties.trip_id.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\NUL\EOT\DC2\EOT\227\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\NUL\ENQ\DC2\EOT\227\ENQ\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\b\STX\NUL\SOH\DC2\EOT\227\ENQ\DC2\EM\n\ + \\r\n\ + \\ENQ\EOT\b\STX\NUL\ETX\DC2\EOT\227\ENQ\FS\GS\n\ + \H\n\ + \\EOT\EOT\b\STX\SOH\DC2\EOT\230\ENQ\STX\US\SUB: The route_id from the GTFS that this selector refers to.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\SOH\EOT\DC2\EOT\230\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\SOH\ENQ\DC2\EOT\230\ENQ\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\b\STX\SOH\SOH\DC2\EOT\230\ENQ\DC2\SUB\n\ + \\r\n\ + \\ENQ\EOT\b\STX\SOH\ETX\DC2\EOT\230\ENQ\GS\RS\n\ + \\138\SOH\n\ + \\EOT\EOT\b\STX\STX\DC2\EOT\234\ENQ\STX#\SUB| The direction_id from the GTFS feed trips.txt file, indicating the\n\ + \ direction of travel for trips this selector refers to.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\STX\EOT\DC2\EOT\234\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\STX\ENQ\DC2\EOT\234\ENQ\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\b\STX\STX\SOH\DC2\EOT\234\ENQ\DC2\RS\n\ + \\r\n\ + \\ENQ\EOT\b\STX\STX\ETX\DC2\EOT\234\ENQ!\"\n\ + \\245\a\n\ + \\EOT\EOT\b\STX\ETX\DC2\EOT\251\ENQ\STX!\SUB\230\a The initially scheduled start time of this trip instance.\n\ + \ When the trip_id corresponds to a non-frequency-based trip, this field\n\ + \ should either be omitted or be equal to the value in the GTFS feed. When\n\ + \ the trip_id correponds to a frequency-based trip, the start_time must be\n\ + \ specified for trip updates and vehicle positions. If the trip corresponds\n\ + \ to exact_times=1 GTFS record, then start_time must be some multiple\n\ + \ (including zero) of headway_secs later than frequencies.txt start_time for\n\ + \ the corresponding time period. If the trip corresponds to exact_times=0,\n\ + \ then its start_time may be arbitrary, and is initially expected to be the\n\ + \ first departure of the trip. Once established, the start_time of this\n\ + \ frequency-based trip should be considered immutable, even if the first\n\ + \ departure time changes -- that time change may instead be reflected in a\n\ + \ StopTimeUpdate.\n\ + \ Format and semantics of the field is same as that of\n\ + \ GTFS/frequencies.txt/start_time, e.g., 11:15:35 or 25:15:35.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\ETX\EOT\DC2\EOT\251\ENQ\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\ETX\ENQ\DC2\EOT\251\ENQ\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\b\STX\ETX\SOH\DC2\EOT\251\ENQ\DC2\FS\n\ + \\r\n\ + \\ENQ\EOT\b\STX\ETX\ETX\DC2\EOT\251\ENQ\US \n\ + \\199\EOT\n\ + \\EOT\EOT\b\STX\EOT\DC2\EOT\134\ACK\STX!\SUB\184\EOT The scheduled start date of this trip instance.\n\ + \ Must be provided to disambiguate trips that are so late as to collide with\n\ + \ a scheduled trip on a next day. For example, for a train that departs 8:00\n\ + \ and 20:00 every day, and is 12 hours late, there would be two distinct\n\ + \ trips on the same time.\n\ + \ This field can be provided but is not mandatory for schedules in which such\n\ + \ collisions are impossible - for example, a service running on hourly\n\ + \ schedule where a vehicle that is one hour late is not considered to be\n\ + \ related to schedule anymore.\n\ + \ In YYYYMMDD format.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\EOT\EOT\DC2\EOT\134\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\EOT\ENQ\DC2\EOT\134\ACK\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\b\STX\EOT\SOH\DC2\EOT\134\ACK\DC2\FS\n\ + \\r\n\ + \\ENQ\EOT\b\STX\EOT\ETX\DC2\EOT\134\ACK\US \n\ + \\219\SOH\n\ + \\EOT\EOT\b\EOT\NUL\DC2\ACK\139\ACK\STX\179\ACK\ETX\SUB\202\SOH The relation between this trip and the static schedule. If a trip is done\n\ + \ in accordance with temporary schedule, not reflected in GTFS, then it\n\ + \ shouldn't be marked as SCHEDULED, but likely as ADDED.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\EOT\NUL\SOH\DC2\EOT\139\ACK\a\ESC\n\ + \\145\SOH\n\ + \\ACK\EOT\b\EOT\NUL\STX\NUL\DC2\EOT\142\ACK\EOT\DC2\SUB\128\SOH Trip that is running in accordance with its GTFS schedule, or is close\n\ + \ enough to the scheduled trip to be associated with it.\n\ + \\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\NUL\SOH\DC2\EOT\142\ACK\EOT\r\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\NUL\STX\DC2\EOT\142\ACK\DLE\DC1\n\ + \\176\EOT\n\ + \\ACK\EOT\b\EOT\NUL\STX\SOH\DC2\EOT\151\ACK\EOT\SO\SUB\159\EOT An extra trip that was added in addition to a running schedule, for\n\ + \ example, to replace a broken vehicle or to respond to sudden passenger\n\ + \ load.\n\ + \ NOTE: Currently, behavior is unspecified for feeds that use this mode. There are discussions on the GTFS GitHub\n\ + \ [(1)](https://github.com/google/transit/issues/106) [(2)](https://github.com/google/transit/pull/221)\n\ + \ [(3)](https://github.com/google/transit/pull/219) around fully specifying or deprecating ADDED trips and the\n\ + \ documentation will be updated when those discussions are finalized.\n\ + \\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\SOH\SOH\DC2\EOT\151\ACK\EOT\t\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\SOH\STX\DC2\EOT\151\ACK\f\r\n\ + \\226\SOH\n\ + \\ACK\EOT\b\EOT\NUL\STX\STX\DC2\EOT\155\ACK\EOT\DC4\SUB\209\SOH A trip that is running with no schedule associated to it (GTFS frequencies.txt exact_times=0).\n\ + \ Trips with ScheduleRelationship=UNSCHEDULED must also set all StopTimeUpdates.ScheduleRelationship=UNSCHEDULED.\n\ + \\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\STX\SOH\DC2\EOT\155\ACK\EOT\SI\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\STX\STX\DC2\EOT\155\ACK\DC2\DC3\n\ + \F\n\ + \\ACK\EOT\b\EOT\NUL\STX\ETX\DC2\EOT\158\ACK\EOT\DC1\SUB6 A trip that existed in the schedule but was removed.\n\ + \\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\ETX\SOH\DC2\EOT\158\ACK\EOT\f\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\ETX\STX\DC2\EOT\158\ACK\SI\DLE\n\ + \^\n\ + \\ACK\EOT\b\EOT\NUL\STX\EOT\DC2\EOT\161\ACK\EOT\DC4\SUB8 Should not be used - for backwards-compatibility only.\n\ + \\"\DC4 [deprecated=true];\n\ + \\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\EOT\SOH\DC2\EOT\161\ACK\EOT\SI\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\EOT\STX\DC2\EOT\161\ACK\DC2\DC3\n\ + \\157\f\n\ + \\ACK\EOT\b\EOT\NUL\STX\ENQ\DC2\EOT\178\ACK\EOT\DC3\SUB\140\f An extra trip that was added in addition to a running schedule, for example, to replace a broken vehicle or to\n\ + \ respond to sudden passenger load. Used with TripUpdate.TripProperties.trip_id, TripUpdate.TripProperties.start_date,\n\ + \ and TripUpdate.TripProperties.start_time to copy an existing trip from static GTFS but start at a different service\n\ + \ date and/or time. Duplicating a trip is allowed if the service related to the original trip in (CSV) GTFS\n\ + \ (in calendar.txt or calendar_dates.txt) is operating within the next 30 days. The trip to be duplicated is\n\ + \ identified via TripUpdate.TripDescriptor.trip_id. This enumeration does not modify the existing trip referenced by\n\ + \ TripUpdate.TripDescriptor.trip_id - if a producer wants to cancel the original trip, it must publish a separate\n\ + \ TripUpdate with the value of CANCELED. Trips defined in GTFS frequencies.txt with exact_times that is empty or\n\ + \ equal to 0 cannot be duplicated. The VehiclePosition.TripDescriptor.trip_id for the new trip must contain\n\ + \ the matching value from TripUpdate.TripProperties.trip_id and VehiclePosition.TripDescriptor.ScheduleRelationship\n\ + \ must also be set to DUPLICATED.\n\ + \ Existing producers and consumers that were using the ADDED enumeration to represent duplicated trips must follow\n\ + \ the migration guide (https://github.com/google/transit/tree/master/gtfs-realtime/spec/en/examples/migration-duplicated.md)\n\ + \ to transition to the DUPLICATED enumeration.\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\ENQ\SOH\DC2\EOT\178\ACK\EOT\SO\n\ + \\SI\n\ + \\a\EOT\b\EOT\NUL\STX\ENQ\STX\DC2\EOT\178\ACK\DC1\DC2\n\ + \\f\n\ + \\EOT\EOT\b\STX\ENQ\DC2\EOT\180\ACK\STX:\n\ + \\r\n\ + \\ENQ\EOT\b\STX\ENQ\EOT\DC2\EOT\180\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\b\STX\ENQ\ACK\DC2\EOT\180\ACK\v\US\n\ + \\r\n\ + \\ENQ\EOT\b\STX\ENQ\SOH\DC2\EOT\180\ACK 5\n\ + \\r\n\ + \\ENQ\EOT\b\STX\ENQ\ETX\DC2\EOT\180\ACK89\n\ + \\185\SOH\n\ + \\ETX\EOT\b\ENQ\DC2\EOT\185\ACK\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\b\ENQ\NUL\DC2\EOT\185\ACK\r\EM\n\ + \\r\n\ + \\ENQ\EOT\b\ENQ\NUL\SOH\DC2\EOT\185\ACK\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\b\ENQ\NUL\STX\DC2\EOT\185\ACK\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\b\ENQ\DC2\EOT\188\ACK\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\b\ENQ\SOH\DC2\EOT\188\ACK\r\EM\n\ + \\r\n\ + \\ENQ\EOT\b\ENQ\SOH\SOH\DC2\EOT\188\ACK\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\b\ENQ\SOH\STX\DC2\EOT\188\ACK\NAK\EM\n\ + \O\n\ + \\STX\EOT\t\DC2\ACK\192\ACK\NUL\212\ACK\SOH\SUBA Identification information for the vehicle performing the trip.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\t\SOH\DC2\EOT\192\ACK\b\EM\n\ + \\171\SOH\n\ + \\EOT\EOT\t\STX\NUL\DC2\EOT\196\ACK\STX\EM\SUB\156\SOH Internal system identification of the vehicle. Should be unique per\n\ + \ vehicle, and can be used for tracking the vehicle as it proceeds through\n\ + \ the system.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\t\STX\NUL\EOT\DC2\EOT\196\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\t\STX\NUL\ENQ\DC2\EOT\196\ACK\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\t\STX\NUL\SOH\DC2\EOT\196\ACK\DC2\DC4\n\ + \\r\n\ + \\ENQ\EOT\t\STX\NUL\ETX\DC2\EOT\196\ACK\ETB\CAN\n\ + \~\n\ + \\EOT\EOT\t\STX\SOH\DC2\EOT\200\ACK\STX\FS\SUBp User visible label, i.e., something that must be shown to the passenger to\n\ + \ help identify the correct vehicle.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\t\STX\SOH\EOT\DC2\EOT\200\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\t\STX\SOH\ENQ\DC2\EOT\200\ACK\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\t\STX\SOH\SOH\DC2\EOT\200\ACK\DC2\ETB\n\ + \\r\n\ + \\ENQ\EOT\t\STX\SOH\ETX\DC2\EOT\200\ACK\SUB\ESC\n\ + \1\n\ + \\EOT\EOT\t\STX\STX\DC2\EOT\203\ACK\STX$\SUB# The license plate of the vehicle.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\t\STX\STX\EOT\DC2\EOT\203\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\t\STX\STX\ENQ\DC2\EOT\203\ACK\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\t\STX\STX\SOH\DC2\EOT\203\ACK\DC2\US\n\ + \\r\n\ + \\ENQ\EOT\t\STX\STX\ETX\DC2\EOT\203\ACK\"#\n\ + \\185\SOH\n\ + \\ETX\EOT\t\ENQ\DC2\EOT\208\ACK\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\t\ENQ\NUL\DC2\EOT\208\ACK\r\EM\n\ + \\r\n\ + \\ENQ\EOT\t\ENQ\NUL\SOH\DC2\EOT\208\ACK\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\t\ENQ\NUL\STX\DC2\EOT\208\ACK\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\t\ENQ\DC2\EOT\211\ACK\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\t\ENQ\SOH\DC2\EOT\211\ACK\r\EM\n\ + \\r\n\ + \\ENQ\EOT\t\ENQ\SOH\SOH\DC2\EOT\211\ACK\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\t\ENQ\SOH\STX\DC2\EOT\211\ACK\NAK\EM\n\ + \8\n\ + \\STX\EOT\n\ + \\DC2\ACK\215\ACK\NUL\237\ACK\SOH\SUB* A selector for an entity in a GTFS feed.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\n\ + \\SOH\DC2\EOT\215\ACK\b\SYN\n\ + \\226\SOH\n\ + \\EOT\EOT\n\ + \\STX\NUL\DC2\EOT\220\ACK\STX \SUB\211\SOH The values of the fields should correspond to the appropriate fields in the\n\ + \ GTFS feed.\n\ + \ At least one specifier must be given. If several are given, then the\n\ + \ matching has to apply to all the given specifiers.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\NUL\EOT\DC2\EOT\220\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\NUL\ENQ\DC2\EOT\220\ACK\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\NUL\SOH\DC2\EOT\220\ACK\DC2\ESC\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\NUL\ETX\DC2\EOT\220\ACK\RS\US\n\ + \\f\n\ + \\EOT\EOT\n\ + \\STX\SOH\DC2\EOT\221\ACK\STX\US\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\SOH\EOT\DC2\EOT\221\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\SOH\ENQ\DC2\EOT\221\ACK\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\SOH\SOH\DC2\EOT\221\ACK\DC2\SUB\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\SOH\ETX\DC2\EOT\221\ACK\GS\RS\n\ + \2\n\ + \\EOT\EOT\n\ + \\STX\STX\DC2\EOT\223\ACK\STX \SUB$ corresponds to route_type in GTFS.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\STX\EOT\DC2\EOT\223\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\STX\ENQ\DC2\EOT\223\ACK\v\DLE\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\STX\SOH\DC2\EOT\223\ACK\DC1\ESC\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\STX\ETX\DC2\EOT\223\ACK\RS\US\n\ + \\f\n\ + \\EOT\EOT\n\ + \\STX\ETX\DC2\EOT\224\ACK\STX#\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\ETX\EOT\DC2\EOT\224\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\ETX\ACK\DC2\EOT\224\ACK\v\EM\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\ETX\SOH\DC2\EOT\224\ACK\SUB\RS\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\ETX\ETX\DC2\EOT\224\ACK!\"\n\ + \\f\n\ + \\EOT\EOT\n\ + \\STX\EOT\DC2\EOT\225\ACK\STX\RS\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\EOT\EOT\DC2\EOT\225\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\EOT\ENQ\DC2\EOT\225\ACK\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\EOT\SOH\DC2\EOT\225\ACK\DC2\EM\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\EOT\ETX\DC2\EOT\225\ACK\FS\GS\n\ + \t\n\ + \\EOT\EOT\n\ + \\STX\ENQ\DC2\EOT\228\ACK\STX#\SUBf Corresponds to trip direction_id in GTFS trips.txt. If provided the\n\ + \ route_id must also be provided.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\ENQ\EOT\DC2\EOT\228\ACK\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\ENQ\ENQ\DC2\EOT\228\ACK\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\ENQ\SOH\DC2\EOT\228\ACK\DC2\RS\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\STX\ENQ\ETX\DC2\EOT\228\ACK!\"\n\ + \\185\SOH\n\ + \\ETX\EOT\n\ + \\ENQ\DC2\EOT\233\ACK\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\n\ + \\ENQ\NUL\DC2\EOT\233\ACK\r\EM\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\ENQ\NUL\SOH\DC2\EOT\233\ACK\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\ENQ\NUL\STX\DC2\EOT\233\ACK\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\n\ + \\ENQ\DC2\EOT\236\ACK\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\n\ + \\ENQ\SOH\DC2\EOT\236\ACK\r\EM\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\ENQ\SOH\SOH\DC2\EOT\236\ACK\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\n\ + \\ENQ\SOH\STX\DC2\EOT\236\ACK\NAK\EM\n\ + \\155\EOT\n\ + \\STX\EOT\v\DC2\ACK\249\ACK\NUL\148\a\SOH\SUB\140\EOT An internationalized message containing per-language versions of a snippet of\n\ + \ text or a URL.\n\ + \ One of the strings from a message will be picked up. The resolution proceeds\n\ + \ as follows:\n\ + \ 1. If the UI language matches the language code of a translation,\n\ + \ the first matching translation is picked.\n\ + \ 2. If a default UI language (e.g., English) matches the language code of a\n\ + \ translation, the first matching translation is picked.\n\ + \ 3. If some translation has an unspecified language code, that translation is\n\ + \ picked.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\v\SOH\DC2\EOT\249\ACK\b\CAN\n\ + \\SO\n\ + \\EOT\EOT\v\ETX\NUL\DC2\ACK\250\ACK\STX\137\a\ETX\n\ + \\r\n\ + \\ENQ\EOT\v\ETX\NUL\SOH\DC2\EOT\250\ACK\n\ + \\NAK\n\ + \8\n\ + \\ACK\EOT\v\ETX\NUL\STX\NUL\DC2\EOT\252\ACK\EOT\GS\SUB( A UTF-8 string containing the message.\n\ + \\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\STX\NUL\EOT\DC2\EOT\252\ACK\EOT\f\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\STX\NUL\ENQ\DC2\EOT\252\ACK\r\DC3\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\STX\NUL\SOH\DC2\EOT\252\ACK\DC4\CAN\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\STX\NUL\ETX\DC2\EOT\252\ACK\ESC\FS\n\ + \\199\SOH\n\ + \\ACK\EOT\v\ETX\NUL\STX\SOH\DC2\EOT\128\a\EOT!\SUB\182\SOH BCP-47 language code. Can be omitted if the language is unknown or if\n\ + \ no i18n is done at all for the feed. At most one translation is\n\ + \ allowed to have an unspecified language tag.\n\ + \\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\STX\SOH\EOT\DC2\EOT\128\a\EOT\f\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\STX\SOH\ENQ\DC2\EOT\128\a\r\DC3\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\STX\SOH\SOH\DC2\EOT\128\a\DC4\FS\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\STX\SOH\ETX\DC2\EOT\128\a\US \n\ + \\187\SOH\n\ + \\ENQ\EOT\v\ETX\NUL\ENQ\DC2\EOT\133\a\EOT\FS\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\v\ETX\NUL\ENQ\NUL\DC2\EOT\133\a\SI\ESC\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\ENQ\NUL\SOH\DC2\EOT\133\a\SI\DC3\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\ENQ\NUL\STX\DC2\EOT\133\a\ETB\ESC\n\ + \^\n\ + \\ENQ\EOT\v\ETX\NUL\ENQ\DC2\EOT\136\a\EOT\FS\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\v\ETX\NUL\ENQ\SOH\DC2\EOT\136\a\SI\ESC\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\ENQ\SOH\SOH\DC2\EOT\136\a\SI\DC3\n\ + \\SI\n\ + \\a\EOT\v\ETX\NUL\ENQ\SOH\STX\DC2\EOT\136\a\ETB\ESC\n\ + \:\n\ + \\EOT\EOT\v\STX\NUL\DC2\EOT\139\a\STX'\SUB, At least one translation must be provided.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\v\STX\NUL\EOT\DC2\EOT\139\a\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\v\STX\NUL\ACK\DC2\EOT\139\a\v\SYN\n\ + \\r\n\ + \\ENQ\EOT\v\STX\NUL\SOH\DC2\EOT\139\a\ETB\"\n\ + \\r\n\ + \\ENQ\EOT\v\STX\NUL\ETX\DC2\EOT\139\a%&\n\ + \\185\SOH\n\ + \\ETX\EOT\v\ENQ\DC2\EOT\144\a\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\v\ENQ\NUL\DC2\EOT\144\a\r\EM\n\ + \\r\n\ + \\ENQ\EOT\v\ENQ\NUL\SOH\DC2\EOT\144\a\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\v\ENQ\NUL\STX\DC2\EOT\144\a\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\v\ENQ\DC2\EOT\147\a\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\v\ENQ\SOH\DC2\EOT\147\a\r\EM\n\ + \\r\n\ + \\ENQ\EOT\v\ENQ\SOH\SOH\DC2\EOT\147\a\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\v\ENQ\SOH\STX\DC2\EOT\147\a\NAK\EM\n\ + \\173\ENQ\n\ + \\STX\EOT\f\DC2\ACK\161\a\NUL\197\a\SOH\SUB\158\ENQ An internationalized image containing per-language versions of a URL linking to an image\n\ + \ along with meta information\n\ + \ Only one of the images from a message will be retained by consumers. The resolution proceeds\n\ + \ as follows:\n\ + \ 1. If the UI language matches the language code of a translation,\n\ + \ the first matching translation is picked.\n\ + \ 2. If a default UI language (e.g., English) matches the language code of a\n\ + \ translation, the first matching translation is picked.\n\ + \ 3. If some translation has an unspecified language code, that translation is\n\ + \ picked.\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\f\SOH\DC2\EOT\161\a\b\ETB\n\ + \\SO\n\ + \\EOT\EOT\f\ETX\NUL\DC2\ACK\162\a\STX\186\a\ETX\n\ + \\r\n\ + \\ENQ\EOT\f\ETX\NUL\SOH\DC2\EOT\162\a\n\ + \\CAN\n\ + \\151\EOT\n\ + \\ACK\EOT\f\ETX\NUL\STX\NUL\DC2\EOT\167\a\EOT\FS\SUB\134\EOT String containing an URL linking to an image\n\ + \ The image linked must be less than 2MB. \n\ + \ If an image changes in a significant enough way that an update is required on the consumer side, the producer must update the URL to a new one.\n\ + \ The URL should be a fully qualified URL that includes http:// or https://, and any special characters in the URL must be correctly escaped. See the following\194\160https://www.w3.org/Addressing/URL/4_URI_Recommentations.html\194\160for a description of how to create fully qualified URL values.\n\ + \\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\NUL\EOT\DC2\EOT\167\a\EOT\f\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\NUL\ENQ\DC2\EOT\167\a\r\DC3\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\NUL\SOH\DC2\EOT\167\a\DC4\ETB\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\NUL\ETX\DC2\EOT\167\a\SUB\ESC\n\ + \v\n\ + \\ACK\EOT\f\ETX\NUL\STX\SOH\DC2\EOT\171\a\EOT#\SUBf IANA media type as to specify the type of image to be displayed. \n\ + \ The type must start with \"image/\"\n\ + \\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\SOH\EOT\DC2\EOT\171\a\EOT\f\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\SOH\ENQ\DC2\EOT\171\a\r\DC3\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\SOH\SOH\DC2\EOT\171\a\DC4\RS\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\SOH\ETX\DC2\EOT\171\a!\"\n\ + \\199\SOH\n\ + \\ACK\EOT\f\ETX\NUL\STX\STX\DC2\EOT\176\a\EOT!\SUB\182\SOH BCP-47 language code. Can be omitted if the language is unknown or if\n\ + \ no i18n is done at all for the feed. At most one translation is\n\ + \ allowed to have an unspecified language tag.\n\ + \\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\STX\EOT\DC2\EOT\176\a\EOT\f\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\STX\ENQ\DC2\EOT\176\a\r\DC3\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\STX\SOH\DC2\EOT\176\a\DC4\FS\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\STX\STX\ETX\DC2\EOT\176\a\US \n\ + \\187\SOH\n\ + \\ENQ\EOT\f\ETX\NUL\ENQ\DC2\EOT\182\a\EOT\FS\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\f\ETX\NUL\ENQ\NUL\DC2\EOT\182\a\SI\ESC\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\ENQ\NUL\SOH\DC2\EOT\182\a\SI\DC3\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\ENQ\NUL\STX\DC2\EOT\182\a\ETB\ESC\n\ + \^\n\ + \\ENQ\EOT\f\ETX\NUL\ENQ\DC2\EOT\185\a\EOT\FS\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\SO\n\ + \\ACK\EOT\f\ETX\NUL\ENQ\SOH\DC2\EOT\185\a\SI\ESC\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\ENQ\SOH\SOH\DC2\EOT\185\a\SI\DC3\n\ + \\SI\n\ + \\a\EOT\f\ETX\NUL\ENQ\SOH\STX\DC2\EOT\185\a\ETB\ESC\n\ + \>\n\ + \\EOT\EOT\f\STX\NUL\DC2\EOT\188\a\STX.\SUB0 At least one localized image must be provided.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\f\STX\NUL\EOT\DC2\EOT\188\a\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\f\STX\NUL\ACK\DC2\EOT\188\a\v\EM\n\ + \\r\n\ + \\ENQ\EOT\f\STX\NUL\SOH\DC2\EOT\188\a\SUB)\n\ + \\r\n\ + \\ENQ\EOT\f\STX\NUL\ETX\DC2\EOT\188\a,-\n\ + \\185\SOH\n\ + \\ETX\EOT\f\ENQ\DC2\EOT\193\a\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\f\ENQ\NUL\DC2\EOT\193\a\r\EM\n\ + \\r\n\ + \\ENQ\EOT\f\ENQ\NUL\SOH\DC2\EOT\193\a\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\f\ENQ\NUL\STX\DC2\EOT\193\a\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\f\ENQ\DC2\EOT\196\a\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\f\ENQ\SOH\DC2\EOT\196\a\r\EM\n\ + \\r\n\ + \\ENQ\EOT\f\ENQ\SOH\SOH\DC2\EOT\196\a\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\f\ENQ\SOH\STX\DC2\EOT\196\a\NAK\EM\n\ + \\198\EOT\n\ + \\STX\EOT\r\DC2\ACK\205\a\NUL\226\a\SOH\SUB\183\EOT Describes the physical path that a vehicle takes when it's not part of the (CSV) GTFS,\n\ + \ such as for a detour. Shapes belong to Trips, and consist of a sequence of shape points.\n\ + \ Tracing the points in order provides the path of the vehicle. Shapes do not need to intercept\n\ + \ the location of Stops exactly, but all Stops on a trip should lie within a small distance of\n\ + \ the shape for that trip, i.e. close to straight line segments connecting the shape points\n\ + \ NOTE: This message is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\v\n\ + \\ETX\EOT\r\SOH\DC2\EOT\205\a\b\r\n\ + \\155\ETX\n\ + \\EOT\EOT\r\STX\NUL\DC2\EOT\210\a\STX\US\SUB\140\ETX Identifier of the shape. Must be different than any shape_id defined in the (CSV) GTFS.\n\ + \ This field is required as per reference.md, but needs to be specified here optional because \"Required is Forever\"\n\ + \ See https://developers.google.com/protocol-buffers/docs/proto#specifying_field_rules\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\r\STX\NUL\EOT\DC2\EOT\210\a\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\r\STX\NUL\ENQ\DC2\EOT\210\a\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\r\STX\NUL\SOH\DC2\EOT\210\a\DC2\SUB\n\ + \\r\n\ + \\ENQ\EOT\r\STX\NUL\ETX\DC2\EOT\210\a\GS\RS\n\ + \\161\EOT\n\ + \\EOT\EOT\r\STX\SOH\DC2\EOT\217\a\STX'\SUB\146\EOT Encoded polyline representation of the shape. This polyline must contain at least two points.\n\ + \ For more information about encoded polylines, see https://developers.google.com/maps/documentation/utilities/polylinealgorithm\n\ + \ This field is required as per reference.md, but needs to be specified here optional because \"Required is Forever\"\n\ + \ See https://developers.google.com/protocol-buffers/docs/proto#specifying_field_rules\n\ + \ NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future.\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\r\STX\SOH\EOT\DC2\EOT\217\a\STX\n\ + \\n\ + \\r\n\ + \\ENQ\EOT\r\STX\SOH\ENQ\DC2\EOT\217\a\v\DC1\n\ + \\r\n\ + \\ENQ\EOT\r\STX\SOH\SOH\DC2\EOT\217\a\DC2\"\n\ + \\r\n\ + \\ENQ\EOT\r\STX\SOH\ETX\DC2\EOT\217\a%&\n\ + \\185\SOH\n\ + \\ETX\EOT\r\ENQ\DC2\EOT\222\a\STX\SUB\SUB\171\SOH The extensions namespace allows 3rd-party developers to extend the\n\ + \ GTFS Realtime Specification in order to add and evaluate new features and\n\ + \ modifications to the spec.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\r\ENQ\NUL\DC2\EOT\222\a\r\EM\n\ + \\r\n\ + \\ENQ\EOT\r\ENQ\NUL\SOH\DC2\EOT\222\a\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\r\ENQ\NUL\STX\DC2\EOT\222\a\NAK\EM\n\ + \\\\n\ + \\ETX\EOT\r\ENQ\DC2\EOT\225\a\STX\SUB\SUBO The following extension IDs are reserved for private use by any organization.\n\ + \\n\ + \\f\n\ + \\EOT\EOT\r\ENQ\SOH\DC2\EOT\225\a\r\EM\n\ + \\r\n\ + \\ENQ\EOT\r\ENQ\SOH\SOH\DC2\EOT\225\a\r\DC1\n\ + \\r\n\ + \\ENQ\EOT\r\ENQ\SOH\STX\DC2\EOT\225\a\NAK\EM"
\ No newline at end of file diff --git a/gtfs-realtime/Proto/GtfsRealtime_Fields.hs b/gtfs-realtime/Proto/GtfsRealtime_Fields.hs new file mode 100644 index 0000000..0b2896c --- /dev/null +++ b/gtfs-realtime/Proto/GtfsRealtime_Fields.hs @@ -0,0 +1,818 @@ +{- This file was auto-generated from gtfs-realtime.proto by the proto-lens-protoc program. -} +{-# LANGUAGE ScopedTypeVariables, DataKinds, TypeFamilies, UndecidableInstances, GeneralizedNewtypeDeriving, MultiParamTypeClasses, FlexibleContexts, FlexibleInstances, PatternSynonyms, MagicHash, NoImplicitPrelude, DataKinds, BangPatterns, TypeApplications, OverloadedStrings, DerivingStrategies#-} +{-# OPTIONS_GHC -Wno-unused-imports#-} +{-# OPTIONS_GHC -Wno-duplicate-exports#-} +{-# OPTIONS_GHC -Wno-dodgy-exports#-} +module Proto.GtfsRealtime_Fields where +import qualified Data.ProtoLens.Runtime.Prelude as Prelude +import qualified Data.ProtoLens.Runtime.Data.Int as Data.Int +import qualified Data.ProtoLens.Runtime.Data.Monoid as Data.Monoid +import qualified Data.ProtoLens.Runtime.Data.Word as Data.Word +import qualified Data.ProtoLens.Runtime.Data.ProtoLens as Data.ProtoLens +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Bytes as Data.ProtoLens.Encoding.Bytes +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Growing as Data.ProtoLens.Encoding.Growing +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Parser.Unsafe as Data.ProtoLens.Encoding.Parser.Unsafe +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Encoding.Wire as Data.ProtoLens.Encoding.Wire +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Field as Data.ProtoLens.Field +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Message.Enum as Data.ProtoLens.Message.Enum +import qualified Data.ProtoLens.Runtime.Data.ProtoLens.Service.Types as Data.ProtoLens.Service.Types +import qualified Data.ProtoLens.Runtime.Lens.Family2 as Lens.Family2 +import qualified Data.ProtoLens.Runtime.Lens.Family2.Unchecked as Lens.Family2.Unchecked +import qualified Data.ProtoLens.Runtime.Data.Text as Data.Text +import qualified Data.ProtoLens.Runtime.Data.Map as Data.Map +import qualified Data.ProtoLens.Runtime.Data.ByteString as Data.ByteString +import qualified Data.ProtoLens.Runtime.Data.ByteString.Char8 as Data.ByteString.Char8 +import qualified Data.ProtoLens.Runtime.Data.Text.Encoding as Data.Text.Encoding +import qualified Data.ProtoLens.Runtime.Data.Vector as Data.Vector +import qualified Data.ProtoLens.Runtime.Data.Vector.Generic as Data.Vector.Generic +import qualified Data.ProtoLens.Runtime.Data.Vector.Unboxed as Data.Vector.Unboxed +import qualified Data.ProtoLens.Runtime.Text.Read as Text.Read +activePeriod :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "activePeriod" a) => + Lens.Family2.LensLike' f s a +activePeriod = Data.ProtoLens.Field.field @"activePeriod" +agencyId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "agencyId" a) => + Lens.Family2.LensLike' f s a +agencyId = Data.ProtoLens.Field.field @"agencyId" +alert :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "alert" a) => + Lens.Family2.LensLike' f s a +alert = Data.ProtoLens.Field.field @"alert" +arrival :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "arrival" a) => + Lens.Family2.LensLike' f s a +arrival = Data.ProtoLens.Field.field @"arrival" +assignedStopId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "assignedStopId" a) => + Lens.Family2.LensLike' f s a +assignedStopId = Data.ProtoLens.Field.field @"assignedStopId" +bearing :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "bearing" a) => + Lens.Family2.LensLike' f s a +bearing = Data.ProtoLens.Field.field @"bearing" +carriageSequence :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "carriageSequence" a) => + Lens.Family2.LensLike' f s a +carriageSequence = Data.ProtoLens.Field.field @"carriageSequence" +cause :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "cause" a) => + Lens.Family2.LensLike' f s a +cause = Data.ProtoLens.Field.field @"cause" +congestionLevel :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "congestionLevel" a) => + Lens.Family2.LensLike' f s a +congestionLevel = Data.ProtoLens.Field.field @"congestionLevel" +currentStatus :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "currentStatus" a) => + Lens.Family2.LensLike' f s a +currentStatus = Data.ProtoLens.Field.field @"currentStatus" +currentStopSequence :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "currentStopSequence" a) => + Lens.Family2.LensLike' f s a +currentStopSequence + = Data.ProtoLens.Field.field @"currentStopSequence" +delay :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "delay" a) => + Lens.Family2.LensLike' f s a +delay = Data.ProtoLens.Field.field @"delay" +departure :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "departure" a) => + Lens.Family2.LensLike' f s a +departure = Data.ProtoLens.Field.field @"departure" +departureOccupancyStatus :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "departureOccupancyStatus" a) => + Lens.Family2.LensLike' f s a +departureOccupancyStatus + = Data.ProtoLens.Field.field @"departureOccupancyStatus" +descriptionText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "descriptionText" a) => + Lens.Family2.LensLike' f s a +descriptionText = Data.ProtoLens.Field.field @"descriptionText" +directionId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "directionId" a) => + Lens.Family2.LensLike' f s a +directionId = Data.ProtoLens.Field.field @"directionId" +effect :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "effect" a) => + Lens.Family2.LensLike' f s a +effect = Data.ProtoLens.Field.field @"effect" +encodedPolyline :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "encodedPolyline" a) => + Lens.Family2.LensLike' f s a +encodedPolyline = Data.ProtoLens.Field.field @"encodedPolyline" +end :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "end" a) => + Lens.Family2.LensLike' f s a +end = Data.ProtoLens.Field.field @"end" +entity :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "entity" a) => + Lens.Family2.LensLike' f s a +entity = Data.ProtoLens.Field.field @"entity" +gtfsRealtimeVersion :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "gtfsRealtimeVersion" a) => + Lens.Family2.LensLike' f s a +gtfsRealtimeVersion + = Data.ProtoLens.Field.field @"gtfsRealtimeVersion" +header :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "header" a) => + Lens.Family2.LensLike' f s a +header = Data.ProtoLens.Field.field @"header" +headerText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "headerText" a) => + Lens.Family2.LensLike' f s a +headerText = Data.ProtoLens.Field.field @"headerText" +id :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "id" a) => + Lens.Family2.LensLike' f s a +id = Data.ProtoLens.Field.field @"id" +image :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "image" a) => + Lens.Family2.LensLike' f s a +image = Data.ProtoLens.Field.field @"image" +imageAlternativeText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "imageAlternativeText" a) => + Lens.Family2.LensLike' f s a +imageAlternativeText + = Data.ProtoLens.Field.field @"imageAlternativeText" +incrementality :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "incrementality" a) => + Lens.Family2.LensLike' f s a +incrementality = Data.ProtoLens.Field.field @"incrementality" +informedEntity :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "informedEntity" a) => + Lens.Family2.LensLike' f s a +informedEntity = Data.ProtoLens.Field.field @"informedEntity" +isDeleted :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "isDeleted" a) => + Lens.Family2.LensLike' f s a +isDeleted = Data.ProtoLens.Field.field @"isDeleted" +label :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "label" a) => + Lens.Family2.LensLike' f s a +label = Data.ProtoLens.Field.field @"label" +language :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "language" a) => + Lens.Family2.LensLike' f s a +language = Data.ProtoLens.Field.field @"language" +latitude :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "latitude" a) => + Lens.Family2.LensLike' f s a +latitude = Data.ProtoLens.Field.field @"latitude" +licensePlate :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "licensePlate" a) => + Lens.Family2.LensLike' f s a +licensePlate = Data.ProtoLens.Field.field @"licensePlate" +localizedImage :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "localizedImage" a) => + Lens.Family2.LensLike' f s a +localizedImage = Data.ProtoLens.Field.field @"localizedImage" +longitude :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "longitude" a) => + Lens.Family2.LensLike' f s a +longitude = Data.ProtoLens.Field.field @"longitude" +maybe'agencyId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'agencyId" a) => + Lens.Family2.LensLike' f s a +maybe'agencyId = Data.ProtoLens.Field.field @"maybe'agencyId" +maybe'alert :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'alert" a) => + Lens.Family2.LensLike' f s a +maybe'alert = Data.ProtoLens.Field.field @"maybe'alert" +maybe'arrival :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'arrival" a) => + Lens.Family2.LensLike' f s a +maybe'arrival = Data.ProtoLens.Field.field @"maybe'arrival" +maybe'assignedStopId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'assignedStopId" a) => + Lens.Family2.LensLike' f s a +maybe'assignedStopId + = Data.ProtoLens.Field.field @"maybe'assignedStopId" +maybe'bearing :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'bearing" a) => + Lens.Family2.LensLike' f s a +maybe'bearing = Data.ProtoLens.Field.field @"maybe'bearing" +maybe'carriageSequence :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'carriageSequence" a) => + Lens.Family2.LensLike' f s a +maybe'carriageSequence + = Data.ProtoLens.Field.field @"maybe'carriageSequence" +maybe'cause :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'cause" a) => + Lens.Family2.LensLike' f s a +maybe'cause = Data.ProtoLens.Field.field @"maybe'cause" +maybe'congestionLevel :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'congestionLevel" a) => + Lens.Family2.LensLike' f s a +maybe'congestionLevel + = Data.ProtoLens.Field.field @"maybe'congestionLevel" +maybe'currentStatus :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'currentStatus" a) => + Lens.Family2.LensLike' f s a +maybe'currentStatus + = Data.ProtoLens.Field.field @"maybe'currentStatus" +maybe'currentStopSequence :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'currentStopSequence" a) => + Lens.Family2.LensLike' f s a +maybe'currentStopSequence + = Data.ProtoLens.Field.field @"maybe'currentStopSequence" +maybe'delay :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'delay" a) => + Lens.Family2.LensLike' f s a +maybe'delay = Data.ProtoLens.Field.field @"maybe'delay" +maybe'departure :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'departure" a) => + Lens.Family2.LensLike' f s a +maybe'departure = Data.ProtoLens.Field.field @"maybe'departure" +maybe'departureOccupancyStatus :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'departureOccupancyStatus" a) => + Lens.Family2.LensLike' f s a +maybe'departureOccupancyStatus + = Data.ProtoLens.Field.field @"maybe'departureOccupancyStatus" +maybe'descriptionText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'descriptionText" a) => + Lens.Family2.LensLike' f s a +maybe'descriptionText + = Data.ProtoLens.Field.field @"maybe'descriptionText" +maybe'directionId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'directionId" a) => + Lens.Family2.LensLike' f s a +maybe'directionId = Data.ProtoLens.Field.field @"maybe'directionId" +maybe'effect :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'effect" a) => + Lens.Family2.LensLike' f s a +maybe'effect = Data.ProtoLens.Field.field @"maybe'effect" +maybe'encodedPolyline :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'encodedPolyline" a) => + Lens.Family2.LensLike' f s a +maybe'encodedPolyline + = Data.ProtoLens.Field.field @"maybe'encodedPolyline" +maybe'end :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'end" a) => + Lens.Family2.LensLike' f s a +maybe'end = Data.ProtoLens.Field.field @"maybe'end" +maybe'headerText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'headerText" a) => + Lens.Family2.LensLike' f s a +maybe'headerText = Data.ProtoLens.Field.field @"maybe'headerText" +maybe'id :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'id" a) => + Lens.Family2.LensLike' f s a +maybe'id = Data.ProtoLens.Field.field @"maybe'id" +maybe'image :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'image" a) => + Lens.Family2.LensLike' f s a +maybe'image = Data.ProtoLens.Field.field @"maybe'image" +maybe'imageAlternativeText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'imageAlternativeText" a) => + Lens.Family2.LensLike' f s a +maybe'imageAlternativeText + = Data.ProtoLens.Field.field @"maybe'imageAlternativeText" +maybe'incrementality :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'incrementality" a) => + Lens.Family2.LensLike' f s a +maybe'incrementality + = Data.ProtoLens.Field.field @"maybe'incrementality" +maybe'isDeleted :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'isDeleted" a) => + Lens.Family2.LensLike' f s a +maybe'isDeleted = Data.ProtoLens.Field.field @"maybe'isDeleted" +maybe'label :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'label" a) => + Lens.Family2.LensLike' f s a +maybe'label = Data.ProtoLens.Field.field @"maybe'label" +maybe'language :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'language" a) => + Lens.Family2.LensLike' f s a +maybe'language = Data.ProtoLens.Field.field @"maybe'language" +maybe'licensePlate :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'licensePlate" a) => + Lens.Family2.LensLike' f s a +maybe'licensePlate + = Data.ProtoLens.Field.field @"maybe'licensePlate" +maybe'occupancyPercentage :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'occupancyPercentage" a) => + Lens.Family2.LensLike' f s a +maybe'occupancyPercentage + = Data.ProtoLens.Field.field @"maybe'occupancyPercentage" +maybe'occupancyStatus :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'occupancyStatus" a) => + Lens.Family2.LensLike' f s a +maybe'occupancyStatus + = Data.ProtoLens.Field.field @"maybe'occupancyStatus" +maybe'odometer :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'odometer" a) => + Lens.Family2.LensLike' f s a +maybe'odometer = Data.ProtoLens.Field.field @"maybe'odometer" +maybe'position :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'position" a) => + Lens.Family2.LensLike' f s a +maybe'position = Data.ProtoLens.Field.field @"maybe'position" +maybe'routeId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'routeId" a) => + Lens.Family2.LensLike' f s a +maybe'routeId = Data.ProtoLens.Field.field @"maybe'routeId" +maybe'routeType :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'routeType" a) => + Lens.Family2.LensLike' f s a +maybe'routeType = Data.ProtoLens.Field.field @"maybe'routeType" +maybe'scheduleRelationship :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'scheduleRelationship" a) => + Lens.Family2.LensLike' f s a +maybe'scheduleRelationship + = Data.ProtoLens.Field.field @"maybe'scheduleRelationship" +maybe'severityLevel :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'severityLevel" a) => + Lens.Family2.LensLike' f s a +maybe'severityLevel + = Data.ProtoLens.Field.field @"maybe'severityLevel" +maybe'shape :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'shape" a) => + Lens.Family2.LensLike' f s a +maybe'shape = Data.ProtoLens.Field.field @"maybe'shape" +maybe'shapeId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'shapeId" a) => + Lens.Family2.LensLike' f s a +maybe'shapeId = Data.ProtoLens.Field.field @"maybe'shapeId" +maybe'speed :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'speed" a) => + Lens.Family2.LensLike' f s a +maybe'speed = Data.ProtoLens.Field.field @"maybe'speed" +maybe'start :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'start" a) => + Lens.Family2.LensLike' f s a +maybe'start = Data.ProtoLens.Field.field @"maybe'start" +maybe'startDate :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'startDate" a) => + Lens.Family2.LensLike' f s a +maybe'startDate = Data.ProtoLens.Field.field @"maybe'startDate" +maybe'startTime :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'startTime" a) => + Lens.Family2.LensLike' f s a +maybe'startTime = Data.ProtoLens.Field.field @"maybe'startTime" +maybe'stopId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'stopId" a) => + Lens.Family2.LensLike' f s a +maybe'stopId = Data.ProtoLens.Field.field @"maybe'stopId" +maybe'stopSequence :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'stopSequence" a) => + Lens.Family2.LensLike' f s a +maybe'stopSequence + = Data.ProtoLens.Field.field @"maybe'stopSequence" +maybe'stopTimeProperties :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'stopTimeProperties" a) => + Lens.Family2.LensLike' f s a +maybe'stopTimeProperties + = Data.ProtoLens.Field.field @"maybe'stopTimeProperties" +maybe'time :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'time" a) => + Lens.Family2.LensLike' f s a +maybe'time = Data.ProtoLens.Field.field @"maybe'time" +maybe'timestamp :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'timestamp" a) => + Lens.Family2.LensLike' f s a +maybe'timestamp = Data.ProtoLens.Field.field @"maybe'timestamp" +maybe'trip :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'trip" a) => + Lens.Family2.LensLike' f s a +maybe'trip = Data.ProtoLens.Field.field @"maybe'trip" +maybe'tripId :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'tripId" a) => + Lens.Family2.LensLike' f s a +maybe'tripId = Data.ProtoLens.Field.field @"maybe'tripId" +maybe'tripProperties :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'tripProperties" a) => + Lens.Family2.LensLike' f s a +maybe'tripProperties + = Data.ProtoLens.Field.field @"maybe'tripProperties" +maybe'tripUpdate :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'tripUpdate" a) => + Lens.Family2.LensLike' f s a +maybe'tripUpdate = Data.ProtoLens.Field.field @"maybe'tripUpdate" +maybe'ttsDescriptionText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'ttsDescriptionText" a) => + Lens.Family2.LensLike' f s a +maybe'ttsDescriptionText + = Data.ProtoLens.Field.field @"maybe'ttsDescriptionText" +maybe'ttsHeaderText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'ttsHeaderText" a) => + Lens.Family2.LensLike' f s a +maybe'ttsHeaderText + = Data.ProtoLens.Field.field @"maybe'ttsHeaderText" +maybe'uncertainty :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'uncertainty" a) => + Lens.Family2.LensLike' f s a +maybe'uncertainty = Data.ProtoLens.Field.field @"maybe'uncertainty" +maybe'url :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'url" a) => + Lens.Family2.LensLike' f s a +maybe'url = Data.ProtoLens.Field.field @"maybe'url" +maybe'vehicle :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "maybe'vehicle" a) => + Lens.Family2.LensLike' f s a +maybe'vehicle = Data.ProtoLens.Field.field @"maybe'vehicle" +mediaType :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "mediaType" a) => + Lens.Family2.LensLike' f s a +mediaType = Data.ProtoLens.Field.field @"mediaType" +multiCarriageDetails :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "multiCarriageDetails" a) => + Lens.Family2.LensLike' f s a +multiCarriageDetails + = Data.ProtoLens.Field.field @"multiCarriageDetails" +occupancyPercentage :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "occupancyPercentage" a) => + Lens.Family2.LensLike' f s a +occupancyPercentage + = Data.ProtoLens.Field.field @"occupancyPercentage" +occupancyStatus :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "occupancyStatus" a) => + Lens.Family2.LensLike' f s a +occupancyStatus = Data.ProtoLens.Field.field @"occupancyStatus" +odometer :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "odometer" a) => + Lens.Family2.LensLike' f s a +odometer = Data.ProtoLens.Field.field @"odometer" +position :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "position" a) => + Lens.Family2.LensLike' f s a +position = Data.ProtoLens.Field.field @"position" +routeId :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "routeId" a) => + Lens.Family2.LensLike' f s a +routeId = Data.ProtoLens.Field.field @"routeId" +routeType :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "routeType" a) => + Lens.Family2.LensLike' f s a +routeType = Data.ProtoLens.Field.field @"routeType" +scheduleRelationship :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "scheduleRelationship" a) => + Lens.Family2.LensLike' f s a +scheduleRelationship + = Data.ProtoLens.Field.field @"scheduleRelationship" +severityLevel :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "severityLevel" a) => + Lens.Family2.LensLike' f s a +severityLevel = Data.ProtoLens.Field.field @"severityLevel" +shape :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "shape" a) => + Lens.Family2.LensLike' f s a +shape = Data.ProtoLens.Field.field @"shape" +shapeId :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "shapeId" a) => + Lens.Family2.LensLike' f s a +shapeId = Data.ProtoLens.Field.field @"shapeId" +speed :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "speed" a) => + Lens.Family2.LensLike' f s a +speed = Data.ProtoLens.Field.field @"speed" +start :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "start" a) => + Lens.Family2.LensLike' f s a +start = Data.ProtoLens.Field.field @"start" +startDate :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "startDate" a) => + Lens.Family2.LensLike' f s a +startDate = Data.ProtoLens.Field.field @"startDate" +startTime :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "startTime" a) => + Lens.Family2.LensLike' f s a +startTime = Data.ProtoLens.Field.field @"startTime" +stopId :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "stopId" a) => + Lens.Family2.LensLike' f s a +stopId = Data.ProtoLens.Field.field @"stopId" +stopSequence :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "stopSequence" a) => + Lens.Family2.LensLike' f s a +stopSequence = Data.ProtoLens.Field.field @"stopSequence" +stopTimeProperties :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "stopTimeProperties" a) => + Lens.Family2.LensLike' f s a +stopTimeProperties + = Data.ProtoLens.Field.field @"stopTimeProperties" +stopTimeUpdate :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "stopTimeUpdate" a) => + Lens.Family2.LensLike' f s a +stopTimeUpdate = Data.ProtoLens.Field.field @"stopTimeUpdate" +text :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "text" a) => + Lens.Family2.LensLike' f s a +text = Data.ProtoLens.Field.field @"text" +time :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "time" a) => + Lens.Family2.LensLike' f s a +time = Data.ProtoLens.Field.field @"time" +timestamp :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "timestamp" a) => + Lens.Family2.LensLike' f s a +timestamp = Data.ProtoLens.Field.field @"timestamp" +translation :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "translation" a) => + Lens.Family2.LensLike' f s a +translation = Data.ProtoLens.Field.field @"translation" +trip :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "trip" a) => + Lens.Family2.LensLike' f s a +trip = Data.ProtoLens.Field.field @"trip" +tripId :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "tripId" a) => + Lens.Family2.LensLike' f s a +tripId = Data.ProtoLens.Field.field @"tripId" +tripProperties :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "tripProperties" a) => + Lens.Family2.LensLike' f s a +tripProperties = Data.ProtoLens.Field.field @"tripProperties" +tripUpdate :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "tripUpdate" a) => + Lens.Family2.LensLike' f s a +tripUpdate = Data.ProtoLens.Field.field @"tripUpdate" +ttsDescriptionText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "ttsDescriptionText" a) => + Lens.Family2.LensLike' f s a +ttsDescriptionText + = Data.ProtoLens.Field.field @"ttsDescriptionText" +ttsHeaderText :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "ttsHeaderText" a) => + Lens.Family2.LensLike' f s a +ttsHeaderText = Data.ProtoLens.Field.field @"ttsHeaderText" +uncertainty :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "uncertainty" a) => + Lens.Family2.LensLike' f s a +uncertainty = Data.ProtoLens.Field.field @"uncertainty" +url :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "url" a) => + Lens.Family2.LensLike' f s a +url = Data.ProtoLens.Field.field @"url" +vec'activePeriod :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "vec'activePeriod" a) => + Lens.Family2.LensLike' f s a +vec'activePeriod = Data.ProtoLens.Field.field @"vec'activePeriod" +vec'entity :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "vec'entity" a) => + Lens.Family2.LensLike' f s a +vec'entity = Data.ProtoLens.Field.field @"vec'entity" +vec'informedEntity :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "vec'informedEntity" a) => + Lens.Family2.LensLike' f s a +vec'informedEntity + = Data.ProtoLens.Field.field @"vec'informedEntity" +vec'localizedImage :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "vec'localizedImage" a) => + Lens.Family2.LensLike' f s a +vec'localizedImage + = Data.ProtoLens.Field.field @"vec'localizedImage" +vec'multiCarriageDetails :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "vec'multiCarriageDetails" a) => + Lens.Family2.LensLike' f s a +vec'multiCarriageDetails + = Data.ProtoLens.Field.field @"vec'multiCarriageDetails" +vec'stopTimeUpdate :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "vec'stopTimeUpdate" a) => + Lens.Family2.LensLike' f s a +vec'stopTimeUpdate + = Data.ProtoLens.Field.field @"vec'stopTimeUpdate" +vec'translation :: + forall f s a. + (Prelude.Functor f, + Data.ProtoLens.Field.HasField s "vec'translation" a) => + Lens.Family2.LensLike' f s a +vec'translation = Data.ProtoLens.Field.field @"vec'translation" +vehicle :: + forall f s a. + (Prelude.Functor f, Data.ProtoLens.Field.HasField s "vehicle" a) => + Lens.Family2.LensLike' f s a +vehicle = Data.ProtoLens.Field.field @"vehicle"
\ No newline at end of file |