I'm using:
<dependency>
<groupId>com.google.cloud</groupId>
<artifactId>gcloud-java</artifactId>
<version>0.2.8</version>
</dependency>
which transitively depends on com.google.apis:google-api-services-storage:v1-rev62-1.21.0 and I have the following code:
Storage storage = ...
storage.objects().list(bucket).setMaxResults((long) Integer.MAX_VALUE).execute().getItems();
However the number of items are still 1000 (which is the default value) regardless of the value I pass to setMaxResults:
System.out.println(storage.objects().list(bucket).setMaxResults((long) Integer.MAX_VALUE).execute().size());
This yields 1000 as result.
I'm using:
which transitively depends on
com.google.apis:google-api-services-storage:v1-rev62-1.21.0and I have the following code:However the number of items are still 1000 (which is the default value) regardless of the value I pass to
setMaxResults:This yields 1000 as result.