@@ -65,21 +65,38 @@ abstract static class Route {
6565
6666 abstract ImmutableMap <String , FilterConfig > filterConfigOverrides ();
6767
68+ @ Nullable
69+ abstract ImmutableMap <String , com .google .protobuf .Struct > filterMetadata ();
70+
6871 static Route forAction (RouteMatch routeMatch , RouteAction routeAction ,
6972 Map <String , FilterConfig > filterConfigOverrides ) {
70- return create (routeMatch , routeAction , filterConfigOverrides );
73+ return create (routeMatch , routeAction , filterConfigOverrides , null );
74+ }
75+
76+ static Route forAction (RouteMatch routeMatch , RouteAction routeAction ,
77+ Map <String , FilterConfig > filterConfigOverrides ,
78+ @ Nullable Map <String , com .google .protobuf .Struct > filterMetadata ) {
79+ return create (routeMatch , routeAction , filterConfigOverrides , filterMetadata );
7180 }
7281
7382 static Route forNonForwardingAction (RouteMatch routeMatch ,
7483 Map <String , FilterConfig > filterConfigOverrides ) {
75- return create (routeMatch , null , filterConfigOverrides );
84+ return create (routeMatch , null , filterConfigOverrides , null );
85+ }
86+
87+ static Route forNonForwardingAction (RouteMatch routeMatch ,
88+ Map <String , FilterConfig > filterConfigOverrides ,
89+ @ Nullable Map <String , com .google .protobuf .Struct > filterMetadata ) {
90+ return create (routeMatch , null , filterConfigOverrides , filterMetadata );
7691 }
7792
7893 private static Route create (
7994 RouteMatch routeMatch , @ Nullable RouteAction routeAction ,
80- Map <String , FilterConfig > filterConfigOverrides ) {
95+ Map <String , FilterConfig > filterConfigOverrides ,
96+ @ Nullable Map <String , com .google .protobuf .Struct > filterMetadata ) {
8197 return new AutoValue_VirtualHost_Route (
82- routeMatch , routeAction , ImmutableMap .copyOf (filterConfigOverrides ));
98+ routeMatch , routeAction , ImmutableMap .copyOf (filterConfigOverrides ),
99+ filterMetadata == null ? null : ImmutableMap .copyOf (filterMetadata ));
83100 }
84101
85102 @ AutoValue
0 commit comments