GeezerVison is showing github.com — Rename maxResults to pageSize by mziccard · Pull Request #745 · googleapis/google-cloud-java
Conversation
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Looks good. Feel free to merge.
A follow up question though. I ran grep on all .java files that we have in the library. We are still using MAX_RESULTS enum in our Rpc.Option classes. While this is an constant for "maxResults" selector, would it be better to rename this one as well, i.e., to have PAGE_SIZE("maxResults")? If we do this, constructs such as
return new BucketListOption(StorageRpc.Option.MAX_RESULTS, pageSize);
will become
return new BucketListOption(StorageRpc.Option.PAGE_SIZE, pageSize);
I do not have a clear opinion, however, the latter seems a nicer to me. The name switch from "page size" and to "max results" has to happen somewhere and I would probably try to push it as close to the call itself as possible.
/cc @ajkannan @aozarov
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
The name MAX_RESULTS remained the StorageRpc.Option enum because of the actual name of the parameter that is expected by the JSON API. StorageRpc.Option is not exposed to the user so I think we should stick to this naming as it's a better remainder of the actual param name.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
mderka
added a commit
that referenced
this pull request
Mar 14, 2016
Rename maxResults to pageSize
suztomo
pushed a commit
that referenced
this pull request
Feb 1, 2023
* chore: update github actions
* chore: update
Source-Link: googleapis/synthtool@1622741
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:e3746f84955528d0fe24bf2e4df89875d6ce5a036af01b9c326d61a38838523a
chingor13
pushed a commit
that referenced
this pull request
Jan 22, 2026
- [x] Make sure to open an issue as a [bug/issue](https://github.com/googleapis/java-datastore/issues/new/choose) before writing your code! That way we can discuss the change, evaluate designs, and agree on the general idea. **Issue already existed**
- [x] Ensure the tests and linter pass **N/A**
- [x] Code coverage does not decrease (if any source code was changed) **N/A**
- [x] Appropriate docs were updated (if necessary) **Strictly a docs addition**
Fixes #745 ☕️
Note: I can confirm that the existing pom.xml works correctly.
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Labels
cla: yes
This human has signed the Contributor License Agreement.
type: cleanup
An internal cleanup or hygiene concern.
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
|