@@ -1174,6 +1174,83 @@ func TestProtobuf_Pagination(t *testing.T) {
11741174 Behavior : []api.FieldBehavior {api .FIELD_BEHAVIOR_OPTIONAL },
11751175 },
11761176 },
1177+ {
1178+ Name : "ListFooWithMaxResultsUInt32Value" ,
1179+ ID : ".test.TestService.ListFooWithMaxResultsUInt32Value" ,
1180+ SourceServiceID : ".test.TestService" ,
1181+ InputTypeID : ".test.ListFooMaxResultsUInt32ValueRequest" ,
1182+ OutputTypeID : ".test.ListFooResponse" ,
1183+ PathInfo : & api.PathInfo {
1184+ Bindings : []* api.PathBinding {
1185+ {
1186+ Verb : "GET" ,
1187+ PathTemplate : api .NewPathTemplate ().
1188+ WithLiteral ("v1" ).
1189+ WithVariable (api .NewPathVariable ("parent" ).
1190+ WithLiteral ("projects" ).
1191+ WithMatch ()).
1192+ WithLiteral ("foos" ),
1193+ QueryParameters : map [string ]bool {"max_results" : true , "page_token" : true },
1194+ },
1195+ },
1196+ },
1197+ Pagination : & api.Field {
1198+ Name : "page_token" ,
1199+ ID : ".test.ListFooMaxResultsUInt32ValueRequest.page_token" ,
1200+ Typez : 9 ,
1201+ JSONName : "pageToken" ,
1202+ Behavior : []api.FieldBehavior {api .FIELD_BEHAVIOR_OPTIONAL },
1203+ },
1204+ },
1205+ {
1206+ Name : "ListFooWithMaxResultsInt32Value" ,
1207+ ID : ".test.TestService.ListFooWithMaxResultsInt32Value" ,
1208+ SourceServiceID : ".test.TestService" ,
1209+ InputTypeID : ".test.ListFooMaxResultsInt32ValueRequest" ,
1210+ OutputTypeID : ".test.ListFooResponse" ,
1211+ PathInfo : & api.PathInfo {
1212+ Bindings : []* api.PathBinding {
1213+ {
1214+ Verb : "GET" ,
1215+ PathTemplate : api .NewPathTemplate ().
1216+ WithLiteral ("v1" ).
1217+ WithVariable (api .NewPathVariable ("parent" ).
1218+ WithLiteral ("projects" ).
1219+ WithMatch ()).
1220+ WithLiteral ("foos" ),
1221+ QueryParameters : map [string ]bool {"max_results" : true , "page_token" : true },
1222+ },
1223+ },
1224+ },
1225+ Pagination : & api.Field {
1226+ Name : "page_token" ,
1227+ ID : ".test.ListFooMaxResultsInt32ValueRequest.page_token" ,
1228+ Typez : 9 ,
1229+ JSONName : "pageToken" ,
1230+ Behavior : []api.FieldBehavior {api .FIELD_BEHAVIOR_OPTIONAL },
1231+ },
1232+ },
1233+ {
1234+ Name : "ListFooWithMaxResultsIncorrectMessageType" ,
1235+ ID : ".test.TestService.ListFooWithMaxResultsIncorrectMessageType" ,
1236+ SourceServiceID : ".test.TestService" ,
1237+ InputTypeID : ".test.ListFooMaxResultIncorrectMessageTypeRequest" ,
1238+ OutputTypeID : ".test.ListFooResponse" ,
1239+ PathInfo : & api.PathInfo {
1240+ Bindings : []* api.PathBinding {
1241+ {
1242+ Verb : "GET" ,
1243+ PathTemplate : api .NewPathTemplate ().
1244+ WithLiteral ("v1" ).
1245+ WithVariable (api .NewPathVariable ("parent" ).
1246+ WithLiteral ("projects" ).
1247+ WithMatch ()).
1248+ WithLiteral ("foos" ),
1249+ QueryParameters : map [string ]bool {"max_results" : true , "page_token" : true },
1250+ },
1251+ },
1252+ },
1253+ },
11771254 {
11781255 Name : "ListFooMissingNextPageToken" ,
11791256 ID : ".test.TestService.ListFooMissingNextPageToken" ,
0 commit comments