From d23d481e55d80e56f8c929857431a4e025296533 Mon Sep 17 00:00:00 2001 From: Sean Barbeau Date: Fri, 7 Aug 2020 16:44:04 -0400 Subject: [PATCH] fix: Add extensions to TripProperties, remove extra comment This is an editorial follow-up to https://github.com/google/transit/pull/221 to fix two items: * New messages should have the extensions fields to allow 3rd party and internal extensions - this commit adds these fields * An erroneous comment was added that labeled schedule_relationship as experimental - this commit removes it --- gtfs-realtime/proto/gtfs-realtime.proto | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/gtfs-realtime/proto/gtfs-realtime.proto b/gtfs-realtime/proto/gtfs-realtime.proto index 373ae2a64..88581ab05 100644 --- a/gtfs-realtime/proto/gtfs-realtime.proto +++ b/gtfs-realtime/proto/gtfs-realtime.proto @@ -323,6 +323,14 @@ message TripUpdate { // populated and will be ignored by consumers. // NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future. optional string start_time = 3; + + // The extensions namespace allows 3rd-party developers to extend the + // GTFS Realtime Specification in order to add and evaluate new features + // and modifications to the spec. + extensions 1000 to 1999; + + // The following extension IDs are reserved for private use by any organization. + extensions 9000 to 9999; } optional TripProperties trip_properties = 6; @@ -676,7 +684,6 @@ message TripDescriptor { // NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future. DUPLICATED = 6; } - // NOTE: This field is still experimental, and subject to change. It may be formally adopted in the future. optional ScheduleRelationship schedule_relationship = 4; // The extensions namespace allows 3rd-party developers to extend the