diff --git a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java index 67a9da67dce2..957316301285 100644 --- a/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java +++ b/java-errorreporting/google-cloud-errorreporting/src/main/java/com/google/devtools/clouderrorreporting/v1beta1/ErrorStatsServiceClient.java @@ -339,7 +339,7 @@ public final ListGroupStatsPagedResponse listGroupStats(ListGroupStatsRequest re * while (true) { * ListGroupStatsResponse response = * errorStatsServiceClient.listGroupStatsCallable().call(request); - * for (ErrorGroupStats element : response.getResponsesList()) { + * for (ErrorGroupStats element : response.getErrorGroupStatsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -509,7 +509,7 @@ public final UnaryCallable listEvent * .build(); * while (true) { * ListEventsResponse response = errorStatsServiceClient.listEventsCallable().call(request); - * for (ErrorEvent element : response.getResponsesList()) { + * for (ErrorEvent element : response.getErrorEventsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken();