diff --git a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java index b3e4a51e4142..f25877ca93af 100644 --- a/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java +++ b/java-orgpolicy/google-cloud-orgpolicy/src/main/java/com/google/cloud/orgpolicy/v2/OrgPolicyClient.java @@ -381,7 +381,7 @@ public final ListConstraintsPagedResponse listConstraints(ListConstraintsRequest * .build(); * while (true) { * ListConstraintsResponse response = orgPolicyClient.listConstraintsCallable().call(request); - * for (Constraint element : response.getResponsesList()) { + * for (Constraint element : response.getConstraintsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -616,7 +616,7 @@ public final ListPoliciesPagedResponse listPolicies(ListPoliciesRequest request) * .build(); * while (true) { * ListPoliciesResponse response = orgPolicyClient.listPoliciesCallable().call(request); - * for (Policy element : response.getResponsesList()) { + * for (Policy element : response.getPoliciesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken();