Skip to content

Commit

Permalink
Refs #BO-1950 - Use chaos proto.
Browse files Browse the repository at this point in the history
  • Loading branch information
Netmisa committed Mar 20, 2023
1 parent f008be4 commit 4fffa0e
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 14 additions & 2 deletions chaos.proto
Original file line number Diff line number Diff line change
Expand Up @@ -180,7 +180,19 @@ message Tag{
optional uint64 updated_at = 4;
}

message Message{
// Need to "extend" TranslatedString with gtfs-realtime, but not possible.
message Translation {
// A UTF-8 string containing the message.
required string text = 1;
// BCP-47 language code. Can be omitted if the language is unknown or if
// no i18n is done at all for the feed. At most one translation is
// allowed to have an unspecified language tag.
optional string language = 2;
// A UTF-8 string containing url to the media (voice) of text
optional string url_audio = 3;
}

message Message{
required string text = 1;
// Channel where the message is active, it can be something like twitter, SMS, web, etc...
required Channel channel = 2;
Expand All @@ -197,7 +209,7 @@ message Message{
// in POSIX time (number of seconds since January 1st 1970 00:00:00 UTC)
optional uint64 notification_date = 7;

repeated transit_realtime.TranslatedString.Translation translation = 8;
repeated Translation translation = 8;
}

// It represents a channel of diffusion like SMS, Push notifications, twitter, etc...
Expand Down
2 changes: 0 additions & 2 deletions gtfs-realtime.proto
Original file line number Diff line number Diff line change
Expand Up @@ -559,8 +559,6 @@ message TranslatedString {
// no i18n is done at all for the feed. At most one translation is
// allowed to have an unspecified language tag.
optional string language = 2;
// A UTF-8 string containing url to the media (voice) of text
optional string url_audio = 3;
}
// At least one translation must be provided.
repeated Translation translation = 1;
Expand Down

0 comments on commit 4fffa0e

Please sign in to comment.