From 35c9c8d62d2b5457cc3d74ccc8a3ff568461e44f Mon Sep 17 00:00:00 2001 From: "dependabot[bot]" <49699333+dependabot[bot]@users.noreply.github.com> Date: Wed, 11 Oct 2023 23:32:22 +0000 Subject: [PATCH] build(deps-dev): Bump gpb from 4.19.7 to 4.20.0 Bumps [gpb](https://github.com/tomas-abrahamsson/gpb) from 4.19.7 to 4.20.0. - [Release notes](https://github.com/tomas-abrahamsson/gpb/releases) - [Changelog](https://github.com/tomas-abrahamsson/gpb/blob/master/ChangeLog) - [Commits](https://github.com/tomas-abrahamsson/gpb/compare/4.19.7...4.20.0) --- updated-dependencies: - dependency-name: gpb dependency-type: direct:development update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] --- mix.lock | 2 +- src/gtfs_realtime_proto.erl | 156 +++++++++++++++++++++++++++--------- 2 files changed, 119 insertions(+), 39 deletions(-) diff --git a/mix.lock b/mix.lock index 99ee6583..778dfe50 100644 --- a/mix.lock +++ b/mix.lock @@ -19,7 +19,7 @@ "exjsx": {:hex, :exjsx, "4.0.0", "60548841e0212df401e38e63c0078ec57b33e7ea49b032c796ccad8cde794b5c", [:mix], [{:jsx, "~> 2.8.0", [hex: :jsx, repo: "hexpm", optional: false]}], "hexpm"}, "file_system": {:hex, :file_system, "0.2.10", "fb082005a9cd1711c05b5248710f8826b02d7d1784e7c3451f9c1231d4fc162d", [:mix], [], "hexpm", "41195edbfb562a593726eda3b3e8b103a309b733ad25f3d642ba49696bf715dc"}, "gen_stage": {:hex, :gen_stage, "1.2.1", "19d8b5e9a5996d813b8245338a28246307fd8b9c99d1237de199d21efc4c76a1", [:mix], [], "hexpm", "83e8be657fa05b992ffa6ac1e3af6d57aa50aace8f691fcf696ff02f8335b001"}, - "gpb": {:hex, :gpb, "4.19.7", "a0da133db34a62796cbffba8ae8210cc266a0e6303a79c5d92ceadc9bccc9cd0", [:make, :rebar3], [], "hexpm", "82d6a10474551b2c6d057082e05e2d7dfcfc1d22362f4bd5e9077456268d0578"}, + "gpb": {:hex, :gpb, "4.20.0", "3617fb7762801c1bed0460ed496d5bab0f4d76e26b923a9ad9abf026c2220e8a", [:make, :rebar3], [], "hexpm", "4268756a98674d5159eeaa0fd4501b7e43b2dd7f10a1f052499e9b09f107d40b"}, "hackney": {:hex, :hackney, "1.18.1", "f48bf88f521f2a229fc7bae88cf4f85adc9cd9bcf23b5dc8eb6a1788c662c4f6", [:rebar3], [{:certifi, "~> 2.9.0", [hex: :certifi, repo: "hexpm", optional: false]}, {:idna, "~> 6.1.0", [hex: :idna, repo: "hexpm", optional: false]}, {:metrics, "~> 1.0.0", [hex: :metrics, repo: "hexpm", optional: false]}, {:mimerl, "~> 1.1", [hex: :mimerl, repo: "hexpm", optional: false]}, {:parse_trans, "3.3.1", [hex: :parse_trans, repo: "hexpm", optional: false]}, {:ssl_verify_fun, "~> 1.1.0", [hex: :ssl_verify_fun, repo: "hexpm", optional: false]}, {:unicode_util_compat, "~> 0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "a4ecdaff44297e9b5894ae499e9a070ea1888c84afdd1fd9b7b2bc384950128e"}, "httpoison": {:hex, :httpoison, "1.8.0", "6b85dea15820b7804ef607ff78406ab449dd78bed923a49c7160e1886e987a3d", [:mix], [{:hackney, "~> 1.17", [hex: :hackney, repo: "hexpm", optional: false]}], "hexpm", "28089eaa98cf90c66265b6b5ad87c59a3729bea2e74e9d08f9b51eb9729b3c3a"}, "idna": {:hex, :idna, "6.1.1", "8a63070e9f7d0c62eb9d9fcb360a7de382448200fbbd1b106cc96d3d8099df8d", [:rebar3], [{:unicode_util_compat, "~>0.7.0", [hex: :unicode_util_compat, repo: "hexpm", optional: false]}], "hexpm", "92376eb7894412ed19ac475e4a86f7b413c1b9fbb5bd16dccd57934157944cea"}, diff --git a/src/gtfs_realtime_proto.erl b/src/gtfs_realtime_proto.erl index 7d517e6a..733a62d4 100644 --- a/src/gtfs_realtime_proto.erl +++ b/src/gtfs_realtime_proto.erl @@ -1,7 +1,7 @@ %% -*- coding: utf-8 -*- %% @private %% Automatically generated, do not edit -%% Generated by gpb_compile version 4.19.7 +%% Generated by gpb_compile version 4.20.0 %% Version source: file -module(gtfs_realtime_proto). @@ -4442,11 +4442,11 @@ verify_msg(Msg, MsgName, Opts) -> -compile({nowarn_unused_function,v_msg_FeedMessage/3}). -dialyzer({nowarn_function,v_msg_FeedMessage/3}). v_msg_FeedMessage(#{header := F1} = M, Path, TrUserData) -> - v_msg_FeedHeader(F1, [header | Path], TrUserData), + v_submsg_FeedHeader(F1, [header | Path], TrUserData), case M of #{entity := F2} -> if is_list(F2) -> - _ = [v_msg_FeedEntity(Elem, [entity | Path], TrUserData) || Elem <- F2], + _ = [v_submsg_FeedEntity(Elem, [entity | Path], TrUserData) || Elem <- F2], ok; true -> mk_type_error({invalid_list_of, {msg, 'FeedEntity'}}, F2, [entity | Path]) end; @@ -4461,6 +4461,10 @@ v_msg_FeedMessage(#{header := F1} = M, Path, TrUserData) -> v_msg_FeedMessage(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [header] -- maps:keys(M), 'FeedMessage'}, M, Path); v_msg_FeedMessage(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedMessage'}, X, Path). +-compile({nowarn_unused_function,v_submsg_FeedHeader/3}). +-dialyzer({nowarn_function,v_submsg_FeedHeader/3}). +v_submsg_FeedHeader(Msg, Path, TrUserData) -> v_msg_FeedHeader(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_FeedHeader/3}). -dialyzer({nowarn_function,v_msg_FeedHeader/3}). v_msg_FeedHeader(#{gtfs_realtime_version := F1} = M, Path, TrUserData) -> @@ -4483,6 +4487,10 @@ v_msg_FeedHeader(#{gtfs_realtime_version := F1} = M, Path, TrUserData) -> v_msg_FeedHeader(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [gtfs_realtime_version] -- maps:keys(M), 'FeedHeader'}, M, Path); v_msg_FeedHeader(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedHeader'}, X, Path). +-compile({nowarn_unused_function,v_submsg_FeedEntity/3}). +-dialyzer({nowarn_function,v_submsg_FeedEntity/3}). +v_submsg_FeedEntity(Msg, Path, TrUserData) -> v_msg_FeedEntity(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_FeedEntity/3}). -dialyzer({nowarn_function,v_msg_FeedEntity/3}). v_msg_FeedEntity(#{id := F1} = M, Path, TrUserData) -> @@ -4492,19 +4500,19 @@ v_msg_FeedEntity(#{id := F1} = M, Path, TrUserData) -> _ -> ok end, case M of - #{trip_update := F3} -> v_msg_TripUpdate(F3, [trip_update | Path], TrUserData); + #{trip_update := F3} -> v_submsg_TripUpdate(F3, [trip_update | Path], TrUserData); _ -> ok end, case M of - #{vehicle := F4} -> v_msg_VehiclePosition(F4, [vehicle | Path], TrUserData); + #{vehicle := F4} -> v_submsg_VehiclePosition(F4, [vehicle | Path], TrUserData); _ -> ok end, case M of - #{alert := F5} -> v_msg_Alert(F5, [alert | Path], TrUserData); + #{alert := F5} -> v_submsg_Alert(F5, [alert | Path], TrUserData); _ -> ok end, case M of - #{shape := F6} -> v_msg_Shape(F6, [shape | Path], TrUserData); + #{shape := F6} -> v_submsg_Shape(F6, [shape | Path], TrUserData); _ -> ok end, lists:foreach(fun (id) -> ok; @@ -4520,6 +4528,10 @@ v_msg_FeedEntity(#{id := F1} = M, Path, TrUserData) -> v_msg_FeedEntity(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [id] -- maps:keys(M), 'FeedEntity'}, M, Path); v_msg_FeedEntity(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedEntity'}, X, Path). +-compile({nowarn_unused_function,'v_submsg_TripUpdate.StopTimeEvent'/3}). +-dialyzer({nowarn_function,'v_submsg_TripUpdate.StopTimeEvent'/3}). +'v_submsg_TripUpdate.StopTimeEvent'(Msg, Path, TrUserData) -> 'v_msg_TripUpdate.StopTimeEvent'(Msg, Path, TrUserData). + -compile({nowarn_unused_function,'v_msg_TripUpdate.StopTimeEvent'/3}). -dialyzer({nowarn_function,'v_msg_TripUpdate.StopTimeEvent'/3}). 'v_msg_TripUpdate.StopTimeEvent'(#{} = M, Path, TrUserData) -> @@ -4545,6 +4557,10 @@ v_msg_FeedEntity(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedEnti 'v_msg_TripUpdate.StopTimeEvent'(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'TripUpdate.StopTimeEvent'}, M, Path); 'v_msg_TripUpdate.StopTimeEvent'(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TripUpdate.StopTimeEvent'}, X, Path). +-compile({nowarn_unused_function,'v_submsg_TripUpdate.StopTimeUpdate'/3}). +-dialyzer({nowarn_function,'v_submsg_TripUpdate.StopTimeUpdate'/3}). +'v_submsg_TripUpdate.StopTimeUpdate'(Msg, Path, TrUserData) -> 'v_msg_TripUpdate.StopTimeUpdate'(Msg, Path, TrUserData). + -compile({nowarn_unused_function,'v_msg_TripUpdate.StopTimeUpdate'/3}). -dialyzer({nowarn_function,'v_msg_TripUpdate.StopTimeUpdate'/3}). 'v_msg_TripUpdate.StopTimeUpdate'(#{} = M, Path, TrUserData) -> @@ -4557,11 +4573,11 @@ v_msg_FeedEntity(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedEnti _ -> ok end, case M of - #{arrival := F3} -> 'v_msg_TripUpdate.StopTimeEvent'(F3, [arrival | Path], TrUserData); + #{arrival := F3} -> 'v_submsg_TripUpdate.StopTimeEvent'(F3, [arrival | Path], TrUserData); _ -> ok end, case M of - #{departure := F4} -> 'v_msg_TripUpdate.StopTimeEvent'(F4, [departure | Path], TrUserData); + #{departure := F4} -> 'v_submsg_TripUpdate.StopTimeEvent'(F4, [departure | Path], TrUserData); _ -> ok end, case M of @@ -4573,7 +4589,7 @@ v_msg_FeedEntity(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedEnti _ -> ok end, case M of - #{stop_time_properties := F7} -> 'v_msg_TripUpdate.StopTimeUpdate.StopTimeProperties'(F7, [stop_time_properties | Path], TrUserData); + #{stop_time_properties := F7} -> 'v_submsg_TripUpdate.StopTimeUpdate.StopTimeProperties'(F7, [stop_time_properties | Path], TrUserData); _ -> ok end, lists:foreach(fun (stop_sequence) -> ok; @@ -4590,6 +4606,10 @@ v_msg_FeedEntity(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedEnti 'v_msg_TripUpdate.StopTimeUpdate'(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'TripUpdate.StopTimeUpdate'}, M, Path); 'v_msg_TripUpdate.StopTimeUpdate'(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TripUpdate.StopTimeUpdate'}, X, Path). +-compile({nowarn_unused_function,'v_submsg_TripUpdate.StopTimeUpdate.StopTimeProperties'/3}). +-dialyzer({nowarn_function,'v_submsg_TripUpdate.StopTimeUpdate.StopTimeProperties'/3}). +'v_submsg_TripUpdate.StopTimeUpdate.StopTimeProperties'(Msg, Path, TrUserData) -> 'v_msg_TripUpdate.StopTimeUpdate.StopTimeProperties'(Msg, Path, TrUserData). + -compile({nowarn_unused_function,'v_msg_TripUpdate.StopTimeUpdate.StopTimeProperties'/3}). -dialyzer({nowarn_function,'v_msg_TripUpdate.StopTimeUpdate.StopTimeProperties'/3}). 'v_msg_TripUpdate.StopTimeUpdate.StopTimeProperties'(#{} = M, Path, TrUserData) -> @@ -4605,6 +4625,10 @@ v_msg_FeedEntity(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedEnti 'v_msg_TripUpdate.StopTimeUpdate.StopTimeProperties'(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'TripUpdate.StopTimeUpdate.StopTimeProperties'}, M, Path); 'v_msg_TripUpdate.StopTimeUpdate.StopTimeProperties'(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TripUpdate.StopTimeUpdate.StopTimeProperties'}, X, Path). +-compile({nowarn_unused_function,'v_submsg_TripUpdate.TripProperties'/3}). +-dialyzer({nowarn_function,'v_submsg_TripUpdate.TripProperties'/3}). +'v_submsg_TripUpdate.TripProperties'(Msg, Path, TrUserData) -> 'v_msg_TripUpdate.TripProperties'(Msg, Path, TrUserData). + -compile({nowarn_unused_function,'v_msg_TripUpdate.TripProperties'/3}). -dialyzer({nowarn_function,'v_msg_TripUpdate.TripProperties'/3}). 'v_msg_TripUpdate.TripProperties'(#{} = M, Path, TrUserData) -> @@ -4635,18 +4659,22 @@ v_msg_FeedEntity(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'FeedEnti 'v_msg_TripUpdate.TripProperties'(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'TripUpdate.TripProperties'}, M, Path); 'v_msg_TripUpdate.TripProperties'(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TripUpdate.TripProperties'}, X, Path). +-compile({nowarn_unused_function,v_submsg_TripUpdate/3}). +-dialyzer({nowarn_function,v_submsg_TripUpdate/3}). +v_submsg_TripUpdate(Msg, Path, TrUserData) -> v_msg_TripUpdate(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_TripUpdate/3}). -dialyzer({nowarn_function,v_msg_TripUpdate/3}). v_msg_TripUpdate(#{trip := F1} = M, Path, TrUserData) -> - v_msg_TripDescriptor(F1, [trip | Path], TrUserData), + v_submsg_TripDescriptor(F1, [trip | Path], TrUserData), case M of - #{vehicle := F2} -> v_msg_VehicleDescriptor(F2, [vehicle | Path], TrUserData); + #{vehicle := F2} -> v_submsg_VehicleDescriptor(F2, [vehicle | Path], TrUserData); _ -> ok end, case M of #{stop_time_update := F3} -> if is_list(F3) -> - _ = ['v_msg_TripUpdate.StopTimeUpdate'(Elem, [stop_time_update | Path], TrUserData) || Elem <- F3], + _ = ['v_submsg_TripUpdate.StopTimeUpdate'(Elem, [stop_time_update | Path], TrUserData) || Elem <- F3], ok; true -> mk_type_error({invalid_list_of, {msg, 'TripUpdate.StopTimeUpdate'}}, F3, [stop_time_update | Path]) end; @@ -4661,7 +4689,7 @@ v_msg_TripUpdate(#{trip := F1} = M, Path, TrUserData) -> _ -> ok end, case M of - #{trip_properties := F6} -> 'v_msg_TripUpdate.TripProperties'(F6, [trip_properties | Path], TrUserData); + #{trip_properties := F6} -> 'v_submsg_TripUpdate.TripProperties'(F6, [trip_properties | Path], TrUserData); _ -> ok end, lists:foreach(fun (trip) -> ok; @@ -4677,6 +4705,10 @@ v_msg_TripUpdate(#{trip := F1} = M, Path, TrUserData) -> v_msg_TripUpdate(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [trip] -- maps:keys(M), 'TripUpdate'}, M, Path); v_msg_TripUpdate(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TripUpdate'}, X, Path). +-compile({nowarn_unused_function,'v_submsg_VehiclePosition.CarriageDetails'/3}). +-dialyzer({nowarn_function,'v_submsg_VehiclePosition.CarriageDetails'/3}). +'v_submsg_VehiclePosition.CarriageDetails'(Msg, Path, TrUserData) -> 'v_msg_VehiclePosition.CarriageDetails'(Msg, Path, TrUserData). + -compile({nowarn_unused_function,'v_msg_VehiclePosition.CarriageDetails'/3}). -dialyzer({nowarn_function,'v_msg_VehiclePosition.CarriageDetails'/3}). 'v_msg_VehiclePosition.CarriageDetails'(#{} = M, Path, TrUserData) -> @@ -4712,19 +4744,23 @@ v_msg_TripUpdate(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TripUpda 'v_msg_VehiclePosition.CarriageDetails'(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'VehiclePosition.CarriageDetails'}, M, Path); 'v_msg_VehiclePosition.CarriageDetails'(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'VehiclePosition.CarriageDetails'}, X, Path). +-compile({nowarn_unused_function,v_submsg_VehiclePosition/3}). +-dialyzer({nowarn_function,v_submsg_VehiclePosition/3}). +v_submsg_VehiclePosition(Msg, Path, TrUserData) -> v_msg_VehiclePosition(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_VehiclePosition/3}). -dialyzer({nowarn_function,v_msg_VehiclePosition/3}). v_msg_VehiclePosition(#{} = M, Path, TrUserData) -> case M of - #{trip := F1} -> v_msg_TripDescriptor(F1, [trip | Path], TrUserData); + #{trip := F1} -> v_submsg_TripDescriptor(F1, [trip | Path], TrUserData); _ -> ok end, case M of - #{vehicle := F2} -> v_msg_VehicleDescriptor(F2, [vehicle | Path], TrUserData); + #{vehicle := F2} -> v_submsg_VehicleDescriptor(F2, [vehicle | Path], TrUserData); _ -> ok end, case M of - #{position := F3} -> v_msg_Position(F3, [position | Path], TrUserData); + #{position := F3} -> v_submsg_Position(F3, [position | Path], TrUserData); _ -> ok end, case M of @@ -4758,7 +4794,7 @@ v_msg_VehiclePosition(#{} = M, Path, TrUserData) -> case M of #{multi_carriage_details := F11} -> if is_list(F11) -> - _ = ['v_msg_VehiclePosition.CarriageDetails'(Elem, [multi_carriage_details | Path], TrUserData) || Elem <- F11], + _ = ['v_submsg_VehiclePosition.CarriageDetails'(Elem, [multi_carriage_details | Path], TrUserData) || Elem <- F11], ok; true -> mk_type_error({invalid_list_of, {msg, 'VehiclePosition.CarriageDetails'}}, F11, [multi_carriage_details | Path]) end; @@ -4782,13 +4818,17 @@ v_msg_VehiclePosition(#{} = M, Path, TrUserData) -> v_msg_VehiclePosition(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'VehiclePosition'}, M, Path); v_msg_VehiclePosition(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'VehiclePosition'}, X, Path). +-compile({nowarn_unused_function,v_submsg_Alert/3}). +-dialyzer({nowarn_function,v_submsg_Alert/3}). +v_submsg_Alert(Msg, Path, TrUserData) -> v_msg_Alert(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_Alert/3}). -dialyzer({nowarn_function,v_msg_Alert/3}). v_msg_Alert(#{} = M, Path, TrUserData) -> case M of #{active_period := F1} -> if is_list(F1) -> - _ = [v_msg_TimeRange(Elem, [active_period | Path], TrUserData) || Elem <- F1], + _ = [v_submsg_TimeRange(Elem, [active_period | Path], TrUserData) || Elem <- F1], ok; true -> mk_type_error({invalid_list_of, {msg, 'TimeRange'}}, F1, [active_period | Path]) end; @@ -4797,7 +4837,7 @@ v_msg_Alert(#{} = M, Path, TrUserData) -> case M of #{informed_entity := F2} -> if is_list(F2) -> - _ = [v_msg_EntitySelector(Elem, [informed_entity | Path], TrUserData) || Elem <- F2], + _ = [v_submsg_EntitySelector(Elem, [informed_entity | Path], TrUserData) || Elem <- F2], ok; true -> mk_type_error({invalid_list_of, {msg, 'EntitySelector'}}, F2, [informed_entity | Path]) end; @@ -4812,23 +4852,23 @@ v_msg_Alert(#{} = M, Path, TrUserData) -> _ -> ok end, case M of - #{url := F5} -> v_msg_TranslatedString(F5, [url | Path], TrUserData); + #{url := F5} -> v_submsg_TranslatedString(F5, [url | Path], TrUserData); _ -> ok end, case M of - #{header_text := F6} -> v_msg_TranslatedString(F6, [header_text | Path], TrUserData); + #{header_text := F6} -> v_submsg_TranslatedString(F6, [header_text | Path], TrUserData); _ -> ok end, case M of - #{description_text := F7} -> v_msg_TranslatedString(F7, [description_text | Path], TrUserData); + #{description_text := F7} -> v_submsg_TranslatedString(F7, [description_text | Path], TrUserData); _ -> ok end, case M of - #{tts_header_text := F8} -> v_msg_TranslatedString(F8, [tts_header_text | Path], TrUserData); + #{tts_header_text := F8} -> v_submsg_TranslatedString(F8, [tts_header_text | Path], TrUserData); _ -> ok end, case M of - #{tts_description_text := F9} -> v_msg_TranslatedString(F9, [tts_description_text | Path], TrUserData); + #{tts_description_text := F9} -> v_submsg_TranslatedString(F9, [tts_description_text | Path], TrUserData); _ -> ok end, case M of @@ -4836,19 +4876,19 @@ v_msg_Alert(#{} = M, Path, TrUserData) -> _ -> ok end, case M of - #{image := F11} -> v_msg_TranslatedImage(F11, [image | Path], TrUserData); + #{image := F11} -> v_submsg_TranslatedImage(F11, [image | Path], TrUserData); _ -> ok end, case M of - #{image_alternative_text := F12} -> v_msg_TranslatedString(F12, [image_alternative_text | Path], TrUserData); + #{image_alternative_text := F12} -> v_submsg_TranslatedString(F12, [image_alternative_text | Path], TrUserData); _ -> ok end, case M of - #{cause_detail := F13} -> v_msg_TranslatedString(F13, [cause_detail | Path], TrUserData); + #{cause_detail := F13} -> v_submsg_TranslatedString(F13, [cause_detail | Path], TrUserData); _ -> ok end, case M of - #{effect_detail := F14} -> v_msg_TranslatedString(F14, [effect_detail | Path], TrUserData); + #{effect_detail := F14} -> v_submsg_TranslatedString(F14, [effect_detail | Path], TrUserData); _ -> ok end, lists:foreach(fun (active_period) -> ok; @@ -4872,6 +4912,10 @@ v_msg_Alert(#{} = M, Path, TrUserData) -> v_msg_Alert(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'Alert'}, M, Path); v_msg_Alert(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'Alert'}, X, Path). +-compile({nowarn_unused_function,v_submsg_TimeRange/3}). +-dialyzer({nowarn_function,v_submsg_TimeRange/3}). +v_submsg_TimeRange(Msg, Path, TrUserData) -> v_msg_TimeRange(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_TimeRange/3}). -dialyzer({nowarn_function,v_msg_TimeRange/3}). v_msg_TimeRange(#{} = M, Path, TrUserData) -> @@ -4892,6 +4936,10 @@ v_msg_TimeRange(#{} = M, Path, TrUserData) -> v_msg_TimeRange(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'TimeRange'}, M, Path); v_msg_TimeRange(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TimeRange'}, X, Path). +-compile({nowarn_unused_function,v_submsg_Position/3}). +-dialyzer({nowarn_function,v_submsg_Position/3}). +v_submsg_Position(Msg, Path, TrUserData) -> v_msg_Position(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_Position/3}). -dialyzer({nowarn_function,v_msg_Position/3}). v_msg_Position(#{latitude := F1, longitude := F2} = M, Path, TrUserData) -> @@ -4921,6 +4969,10 @@ v_msg_Position(#{latitude := F1, longitude := F2} = M, Path, TrUserData) -> v_msg_Position(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [latitude, longitude] -- maps:keys(M), 'Position'}, M, Path); v_msg_Position(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'Position'}, X, Path). +-compile({nowarn_unused_function,v_submsg_TripDescriptor/3}). +-dialyzer({nowarn_function,v_submsg_TripDescriptor/3}). +v_submsg_TripDescriptor(Msg, Path, TrUserData) -> v_msg_TripDescriptor(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_TripDescriptor/3}). -dialyzer({nowarn_function,v_msg_TripDescriptor/3}). v_msg_TripDescriptor(#{} = M, Path, TrUserData) -> @@ -4961,6 +5013,10 @@ v_msg_TripDescriptor(#{} = M, Path, TrUserData) -> v_msg_TripDescriptor(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'TripDescriptor'}, M, Path); v_msg_TripDescriptor(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TripDescriptor'}, X, Path). +-compile({nowarn_unused_function,v_submsg_VehicleDescriptor/3}). +-dialyzer({nowarn_function,v_submsg_VehicleDescriptor/3}). +v_submsg_VehicleDescriptor(Msg, Path, TrUserData) -> v_msg_VehicleDescriptor(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_VehicleDescriptor/3}). -dialyzer({nowarn_function,v_msg_VehicleDescriptor/3}). v_msg_VehicleDescriptor(#{} = M, Path, TrUserData) -> @@ -4991,6 +5047,10 @@ v_msg_VehicleDescriptor(#{} = M, Path, TrUserData) -> v_msg_VehicleDescriptor(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'VehicleDescriptor'}, M, Path); v_msg_VehicleDescriptor(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'VehicleDescriptor'}, X, Path). +-compile({nowarn_unused_function,v_submsg_EntitySelector/3}). +-dialyzer({nowarn_function,v_submsg_EntitySelector/3}). +v_submsg_EntitySelector(Msg, Path, TrUserData) -> v_msg_EntitySelector(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_EntitySelector/3}). -dialyzer({nowarn_function,v_msg_EntitySelector/3}). v_msg_EntitySelector(#{} = M, Path, TrUserData) -> @@ -5007,7 +5067,7 @@ v_msg_EntitySelector(#{} = M, Path, TrUserData) -> _ -> ok end, case M of - #{trip := F4} -> v_msg_TripDescriptor(F4, [trip | Path], TrUserData); + #{trip := F4} -> v_submsg_TripDescriptor(F4, [trip | Path], TrUserData); _ -> ok end, case M of @@ -5031,6 +5091,10 @@ v_msg_EntitySelector(#{} = M, Path, TrUserData) -> v_msg_EntitySelector(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'EntitySelector'}, M, Path); v_msg_EntitySelector(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'EntitySelector'}, X, Path). +-compile({nowarn_unused_function,'v_submsg_TranslatedString.Translation'/3}). +-dialyzer({nowarn_function,'v_submsg_TranslatedString.Translation'/3}). +'v_submsg_TranslatedString.Translation'(Msg, Path, TrUserData) -> 'v_msg_TranslatedString.Translation'(Msg, Path, TrUserData). + -compile({nowarn_unused_function,'v_msg_TranslatedString.Translation'/3}). -dialyzer({nowarn_function,'v_msg_TranslatedString.Translation'/3}). 'v_msg_TranslatedString.Translation'(#{text := F1} = M, Path, TrUserData) -> @@ -5048,13 +5112,17 @@ v_msg_EntitySelector(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'Enti 'v_msg_TranslatedString.Translation'(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [text] -- maps:keys(M), 'TranslatedString.Translation'}, M, Path); 'v_msg_TranslatedString.Translation'(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TranslatedString.Translation'}, X, Path). +-compile({nowarn_unused_function,v_submsg_TranslatedString/3}). +-dialyzer({nowarn_function,v_submsg_TranslatedString/3}). +v_submsg_TranslatedString(Msg, Path, TrUserData) -> v_msg_TranslatedString(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_TranslatedString/3}). -dialyzer({nowarn_function,v_msg_TranslatedString/3}). v_msg_TranslatedString(#{} = M, Path, TrUserData) -> case M of #{translation := F1} -> if is_list(F1) -> - _ = ['v_msg_TranslatedString.Translation'(Elem, [translation | Path], TrUserData) || Elem <- F1], + _ = ['v_submsg_TranslatedString.Translation'(Elem, [translation | Path], TrUserData) || Elem <- F1], ok; true -> mk_type_error({invalid_list_of, {msg, 'TranslatedString.Translation'}}, F1, [translation | Path]) end; @@ -5068,6 +5136,10 @@ v_msg_TranslatedString(#{} = M, Path, TrUserData) -> v_msg_TranslatedString(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'TranslatedString'}, M, Path); v_msg_TranslatedString(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TranslatedString'}, X, Path). +-compile({nowarn_unused_function,'v_submsg_TranslatedImage.LocalizedImage'/3}). +-dialyzer({nowarn_function,'v_submsg_TranslatedImage.LocalizedImage'/3}). +'v_submsg_TranslatedImage.LocalizedImage'(Msg, Path, TrUserData) -> 'v_msg_TranslatedImage.LocalizedImage'(Msg, Path, TrUserData). + -compile({nowarn_unused_function,'v_msg_TranslatedImage.LocalizedImage'/3}). -dialyzer({nowarn_function,'v_msg_TranslatedImage.LocalizedImage'/3}). 'v_msg_TranslatedImage.LocalizedImage'(#{url := F1, media_type := F2} = M, Path, TrUserData) -> @@ -5087,13 +5159,17 @@ v_msg_TranslatedString(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'Tr 'v_msg_TranslatedImage.LocalizedImage'(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [url, media_type] -- maps:keys(M), 'TranslatedImage.LocalizedImage'}, M, Path); 'v_msg_TranslatedImage.LocalizedImage'(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TranslatedImage.LocalizedImage'}, X, Path). +-compile({nowarn_unused_function,v_submsg_TranslatedImage/3}). +-dialyzer({nowarn_function,v_submsg_TranslatedImage/3}). +v_submsg_TranslatedImage(Msg, Path, TrUserData) -> v_msg_TranslatedImage(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_TranslatedImage/3}). -dialyzer({nowarn_function,v_msg_TranslatedImage/3}). v_msg_TranslatedImage(#{} = M, Path, TrUserData) -> case M of #{localized_image := F1} -> if is_list(F1) -> - _ = ['v_msg_TranslatedImage.LocalizedImage'(Elem, [localized_image | Path], TrUserData) || Elem <- F1], + _ = ['v_submsg_TranslatedImage.LocalizedImage'(Elem, [localized_image | Path], TrUserData) || Elem <- F1], ok; true -> mk_type_error({invalid_list_of, {msg, 'TranslatedImage.LocalizedImage'}}, F1, [localized_image | Path]) end; @@ -5107,6 +5183,10 @@ v_msg_TranslatedImage(#{} = M, Path, TrUserData) -> v_msg_TranslatedImage(M, Path, _TrUserData) when is_map(M) -> mk_type_error({missing_fields, [] -- maps:keys(M), 'TranslatedImage'}, M, Path); v_msg_TranslatedImage(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'TranslatedImage'}, X, Path). +-compile({nowarn_unused_function,v_submsg_Shape/3}). +-dialyzer({nowarn_function,v_submsg_Shape/3}). +v_submsg_Shape(Msg, Path, TrUserData) -> v_msg_Shape(Msg, Path, TrUserData). + -compile({nowarn_unused_function,v_msg_Shape/3}). -dialyzer({nowarn_function,v_msg_Shape/3}). v_msg_Shape(#{} = M, Path, TrUserData) -> @@ -5240,25 +5320,25 @@ v_msg_Shape(X, Path, _TrUserData) -> mk_type_error({expected_msg, 'Shape'}, X, P -compile({nowarn_unused_function,v_type_int32/3}). -dialyzer({nowarn_function,v_type_int32/3}). -v_type_int32(N, _Path, _TrUserData) when -2147483648 =< N, N =< 2147483647 -> ok; +v_type_int32(N, _Path, _TrUserData) when is_integer(N), -2147483648 =< N, N =< 2147483647 -> ok; v_type_int32(N, Path, _TrUserData) when is_integer(N) -> mk_type_error({value_out_of_range, int32, signed, 32}, N, Path); v_type_int32(X, Path, _TrUserData) -> mk_type_error({bad_integer, int32, signed, 32}, X, Path). -compile({nowarn_unused_function,v_type_int64/3}). -dialyzer({nowarn_function,v_type_int64/3}). -v_type_int64(N, _Path, _TrUserData) when -9223372036854775808 =< N, N =< 9223372036854775807 -> ok; +v_type_int64(N, _Path, _TrUserData) when is_integer(N), -9223372036854775808 =< N, N =< 9223372036854775807 -> ok; v_type_int64(N, Path, _TrUserData) when is_integer(N) -> mk_type_error({value_out_of_range, int64, signed, 64}, N, Path); v_type_int64(X, Path, _TrUserData) -> mk_type_error({bad_integer, int64, signed, 64}, X, Path). -compile({nowarn_unused_function,v_type_uint32/3}). -dialyzer({nowarn_function,v_type_uint32/3}). -v_type_uint32(N, _Path, _TrUserData) when 0 =< N, N =< 4294967295 -> ok; +v_type_uint32(N, _Path, _TrUserData) when is_integer(N), 0 =< N, N =< 4294967295 -> ok; v_type_uint32(N, Path, _TrUserData) when is_integer(N) -> mk_type_error({value_out_of_range, uint32, unsigned, 32}, N, Path); v_type_uint32(X, Path, _TrUserData) -> mk_type_error({bad_integer, uint32, unsigned, 32}, X, Path). -compile({nowarn_unused_function,v_type_uint64/3}). -dialyzer({nowarn_function,v_type_uint64/3}). -v_type_uint64(N, _Path, _TrUserData) when 0 =< N, N =< 18446744073709551615 -> ok; +v_type_uint64(N, _Path, _TrUserData) when is_integer(N), 0 =< N, N =< 18446744073709551615 -> ok; v_type_uint64(N, Path, _TrUserData) when is_integer(N) -> mk_type_error({value_out_of_range, uint64, unsigned, 64}, N, Path); v_type_uint64(X, Path, _TrUserData) -> mk_type_error({bad_integer, uint64, unsigned, 64}, X, Path). @@ -6076,10 +6156,10 @@ get_protos_by_pkg_name_as_fqbin(E) -> error({gpb_error, {badpkg, E}}). gpb_version_as_string() -> - "4.19.7". + "4.20.0". gpb_version_as_list() -> - [4,19,7]. + [4,20,0]. gpb_version_source() -> "file".