diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java index ef19f98860bb..edd9f2a2dbd1 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudBillingClient.java @@ -365,7 +365,7 @@ public final ListBillingAccountsPagedResponse listBillingAccounts( * while (true) { * ListBillingAccountsResponse response = * cloudBillingClient.listBillingAccountsCallable().call(request); - * for (BillingAccount element : response.getResponsesList()) { + * for (BillingAccount element : response.getBillingAccountsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -750,7 +750,7 @@ public final ListProjectBillingInfoPagedResponse listProjectBillingInfo( * while (true) { * ListProjectBillingInfoResponse response = * cloudBillingClient.listProjectBillingInfoCallable().call(request); - * for (ProjectBillingInfo element : response.getResponsesList()) { + * for (ProjectBillingInfo element : response.getProjectBillingInfoList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java index d9f489f78fcb..76d36bfa7703 100644 --- a/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java +++ b/java-billing/google-cloud-billing/src/main/java/com/google/cloud/billing/v1/CloudCatalogClient.java @@ -247,7 +247,7 @@ public final ListServicesPagedResponse listServices(ListServicesRequest request) * .build(); * while (true) { * ListServicesResponse response = cloudCatalogClient.listServicesCallable().call(request); - * for (Service element : response.getResponsesList()) { + * for (Service element : response.getServicesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -399,7 +399,7 @@ public final UnaryCallable listSkusPaged * .build(); * while (true) { * ListSkusResponse response = cloudCatalogClient.listSkusCallable().call(request); - * for (Sku element : response.getResponsesList()) { + * for (Sku element : response.getSkusList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken();