Skip to content

Commit

Permalink
chore: Integrate new gapic-generator-java and rules_gapic (#533)
Browse files Browse the repository at this point in the history
- [ ] Regenerate this pull request now.

PiperOrigin-RevId: 454027580

Source-Link: googleapis/googleapis@1b22277

Source-Link: https://github.com/googleapis/googleapis-gen/commit/e04cea20d0d12eb5c3bdb360a9e72b654edcb638
Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiZTA0Y2VhMjBkMGQxMmViNWMzYmRiMzYwYTllNzJiNjU0ZWRjYjYzOCJ9
  • Loading branch information
gcf-owl-bot[bot] authored Jun 13, 2022
1 parent 0723e45 commit 243271f
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -529,7 +529,7 @@ public final ListCatalogItemsPagedResponse listCatalogItems(ListCatalogItemsRequ
* while (true) {
* ListCatalogItemsResponse response =
* catalogServiceClient.listCatalogItemsCallable().call(request);
* for (CatalogItem element : response.getResponsesList()) {
* for (CatalogItem element : response.getCatalogItemsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -459,7 +459,8 @@ public final ListPredictionApiKeyRegistrationsPagedResponse listPredictionApiKey
* predictionApiKeyRegistryClient
* .listPredictionApiKeyRegistrationsCallable()
* .call(request);
* for (PredictionApiKeyRegistration element : response.getResponsesList()) {
* for (PredictionApiKeyRegistration element :
* response.getPredictionApiKeyRegistrationsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ public final UnaryCallable<PredictRequest, PredictPagedResponse> predictPagedCal
* .build();
* while (true) {
* PredictResponse response = predictionServiceClient.predictCallable().call(request);
* for (Map.Entry<String, Value> element : response.getResponsesList()) {
* for (Map.Entry<String, Value> element : response.getMetadataList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -633,7 +633,7 @@ public final ListUserEventsPagedResponse listUserEvents(ListUserEventsRequest re
* while (true) {
* ListUserEventsResponse response =
* userEventServiceClient.listUserEventsCallable().call(request);
* for (UserEvent element : response.getResponsesList()) {
* for (UserEvent element : response.getUserEventsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ public void tearDown() throws Exception {

@Test
public void predictTest() throws Exception {
Value responsesElement = Value.newBuilder().build();
Value responsesElement = Value.newBuilder().setBoolValue(true).build();
PredictResponse expectedResponse =
PredictResponse.newBuilder()
.setNextPageToken("")
Expand Down Expand Up @@ -133,7 +133,7 @@ public void predictExceptionTest() throws Exception {

@Test
public void predictTest2() throws Exception {
Value responsesElement = Value.newBuilder().build();
Value responsesElement = Value.newBuilder().setBoolValue(true).build();
PredictResponse expectedResponse =
PredictResponse.newBuilder()
.setNextPageToken("")
Expand Down

0 comments on commit 243271f

Please sign in to comment.