GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — Raw paginated method samples always assume that paginated field is called `responses` · Issue #880 · googleapis/sdk-platform-java

This repository was archived by the owner on Oct 29, 2026. It is now read-only.
This repository was archived by the owner on Oct 29, 2026. It is now read-only.

Raw paginated method samples always assume that paginated field is called responses #880

Copy link
Copy link
Closed
#1001
Closed
Raw paginated method samples always assume that paginated field is called responses#880
#1001
Copy link
Assignees
alicejli
Labels
priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Description

@vam-google
vam-google
opened on Dec 15, 2021
Issue body actions

For each paginated method GAPIC clients also provide a raw version of it, without GAPIC pagination machinery enabled. The inline code samples for such methods always assume that there is a repeated field named "responses`, while the repeated field may be given any field (paginated response must have only one repeated field by convention, but that repeated field may have any name).

For example in vision/v1/ProductSearchClient.java#L675:

Instad of:

for (ProductSet element : response.getResponsesList()) {

It should be:

for (ProductSet element : response.getProductSetsList()) {

Because the corresponding paginated field in the proto definition is called product_sets

Currently the samples assume response.getResponsesList() for all gapics regardless of how the field is actually called in each specific API.

The same stuff but in gapic-generator-java goldens:
EchoClient.golden#L526
echo.proto#L237

Notice, in gapic-generator-java tests the paginated field is actually called responses, coincidentally leading to a correct result (hard-coded value matches actual value).

Activity

  1. vam-google
    added
    type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.
    priority: p2Moderately-important priority. Fix may not be included in next release.
    on Dec 15, 2021
  2. product-auto-label
    added
    samplesIssues that are directly related to samples.
    on Dec 15, 2021
  3. yoshi-automation
    added
    🚨This issue needs some love.
    and removed
    🚨This issue needs some love.
    on Mar 15, 2022
  4. vam-google
    assigned
    blakeli0
    on May 5, 2022
  5. blakeli0
    assigned
    alicejli
    and unassigned
    blakeli0
    on May 26, 2022
  6. alicejli
    closed this as completedin #1001on Jun 9, 2022
  7. suztomo
    added 3 commits that reference this issue on Mar 21, 2023

    chore(main): release 3.0.5 (#880)

    cb88582

    docs: update javadocs for ReadChannel#limit to be more clear (#880)

    942e8cc

    chore(main): release 2.8.4 (#881)

    84f13d1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

  • @alicejli
    alicejli

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples.type: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

    You are visitor 01402775 — GeezerVison does not store the pages you look up.
    Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.