GeezerVisonThe World Wide Web, restored to 800 pixels of glory. |
| Home|About|Gaming cabinet|Archives|How it works|Starter sites |
GeezerVison is showing github.com — Request initialization logic is missing in in-code samples for *Callable() paginated methods · Issue #680 · 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.
Request initialization logic is missing in in-code samples for *Callable() paginated methods #680Copy link Copy link Closed Labels priority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples. DescriptionThis seems to be happening only in a very limited scope of the paginated The incode-samples for paginated methods seem missing request creation logic. This is how they look now // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to * learn more. * * <p>Sample code: * * <pre>{@code * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * while (true) { * ListDeidentifyTemplatesResponse response = * dlpServiceClient.listDeidentifyTemplatesCallable().call(request); * for (DeidentifyTemplate element : response.getResponsesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); * if (!Strings.isNullOrEmpty(nextPageToken)) { * request = request.toBuilder().setPageToken(nextPageToken).build(); * } else { * break; * } * } * } * }</pre> */ public final UnaryCallable<ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse> listDeidentifyTemplatesCallable() { return stub.listDeidentifyTemplatesCallable(); } Notice that the This is how they used to be: // AUTO-GENERATED DOCUMENTATION AND METHOD /** * Lists DeidentifyTemplates. See https://cloud.google.com/dlp/docs/creating-templates-deid to * learn more. * * <p>Sample code: * * <pre><code> * try (DlpServiceClient dlpServiceClient = DlpServiceClient.create()) { * OrganizationLocationName parent = OrganizationLocationName.of("[ORGANIZATION]", "[LOCATION]"); * ListDeidentifyTemplatesRequest request = ListDeidentifyTemplatesRequest.newBuilder() * .setParent(parent.toString()) * .build(); * while (true) { * ListDeidentifyTemplatesResponse response = dlpServiceClient.listDeidentifyTemplatesCallable().call(request); * for (DeidentifyTemplate element : response.getDeidentifyTemplatesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); * if (!Strings.isNullOrEmpty(nextPageToken)) { * request = request.toBuilder().setPageToken(nextPageToken).build(); * } else { * break; * } * } * } * </code></pre> */ public final UnaryCallable<ListDeidentifyTemplatesRequest, ListDeidentifyTemplatesResponse> listDeidentifyTemplatesCallable() { return stub.listDeidentifyTemplatesCallable(); } The Activity
MetadataMetadataAssigneesLabelspriority: p2Moderately-important priority. Fix may not be included in next release.samplesIssues that are directly related to samples. TypeProjectsMilestoneRelationshipsDevelopmentIssue 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. |