Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(320)

Unified Diff: generated/googleapis/lib/kgsearch/v1.dart

Issue 3003493002: Api-Roll 53: 2017-08-21 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « generated/googleapis/lib/iam/v1.dart ('k') | generated/googleapis/lib/logging/v2.dart » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: generated/googleapis/lib/kgsearch/v1.dart
diff --git a/generated/googleapis/lib/kgsearch/v1.dart b/generated/googleapis/lib/kgsearch/v1.dart
index 80ae2c2c3abd7f18104d7e9d49b694cebdb7baf9..d01da4cf99ea127ab6571e901efe00d9e973dab5 100644
--- a/generated/googleapis/lib/kgsearch/v1.dart
+++ b/generated/googleapis/lib/kgsearch/v1.dart
@@ -39,6 +39,8 @@ class EntitiesResourceApi {
*
* Request parameters:
*
+ * [limit] - Limits the number of entities to be returned.
+ *
* [prefix] - Enables prefix match against names and aliases of entities
*
* [query] - The literal query string for search.
@@ -58,8 +60,6 @@ class EntitiesResourceApi {
* To specify multiple ids in the HTTP request, repeat the parameter in the
* URL as in ...?ids=A&ids=B
*
- * [limit] - Limits the number of entities to be returned.
- *
* Completes with a [SearchResponse].
*
* Completes with a [commons.ApiRequestError] if the API endpoint returned an
@@ -68,7 +68,7 @@ class EntitiesResourceApi {
* If the used [http.Client] completes with an error when making a REST call,
* this method will complete with the same error.
*/
- async.Future<SearchResponse> search({core.bool prefix, core.String query, core.List<core.String> types, core.bool indent, core.List<core.String> languages, core.List<core.String> ids, core.int limit}) {
+ async.Future<SearchResponse> search({core.int limit, core.bool prefix, core.String query, core.List<core.String> types, core.bool indent, core.List<core.String> languages, core.List<core.String> ids}) {
var _url = null;
var _queryParams = new core.Map();
var _uploadMedia = null;
@@ -76,6 +76,9 @@ class EntitiesResourceApi {
var _downloadOptions = commons.DownloadOptions.Metadata;
var _body = null;
+ if (limit != null) {
+ _queryParams["limit"] = ["${limit}"];
+ }
if (prefix != null) {
_queryParams["prefix"] = ["${prefix}"];
}
@@ -94,9 +97,6 @@ class EntitiesResourceApi {
if (ids != null) {
_queryParams["ids"] = ids;
}
- if (limit != null) {
- _queryParams["limit"] = ["${limit}"];
- }
_url = 'v1/entities:search';
« no previous file with comments | « generated/googleapis/lib/iam/v1.dart ('k') | generated/googleapis/lib/logging/v2.dart » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698