The whole document doesn't give me clear example how to use the API to commit/list offsets
Here is the code I tried to run
CursorServiceClient csc =
CursorServiceClient.create(
CursorServiceSettings.newBuilder().setEndpoint(CursorServiceSettings.getDefaultEndpoint()).build()
);
CursorClient cc = new CursorClientImpl(CloudRegion.of("us-west1"), csc);
ApiFuture<Map<Partition, Offset>> af = cc.listPartitionCursors(SubscriptionPath.newBuilder()
.setName(SubscriptionName.of("TestSubsciption"))
.setLocation(CloudRegion.of("us-west1"))
.setProject(ProjectNumber.of(1111111111l)).build());
af.get();
It returns an error page Error 404 (Not Found)!!1
The requested URL /google.cloud.pubsublite.v1.CursorService/ListPartitionCursors
was not found on this server. That’s all we know.