diff --git a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java index 38a64ef233..ae1ad2bbb7 100644 --- a/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java +++ b/src/main/java/com/google/api/generator/gapic/composer/samplecode/ServiceClientCallableMethodSampleComposer.java @@ -186,7 +186,11 @@ private static Sample composePagedCallableSample( MethodInvocationExpr getResponseListMethodInvocationExpr = MethodInvocationExpr.builder() .setExprReferenceExpr(responseVarExpr) - .setMethodName("getResponsesList") + .setMethodName( + "get" + + JavaStyle.toUpperCamelCase( + String.format("%s", repeatedPagedResultsField.name())) + + "List") .build(); ForStatement responseForStatements = ForStatement.builder() diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden index cdf81bbdc5..f1e7e39b70 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/IdentityClient.golden @@ -625,7 +625,7 @@ public class IdentityClient implements BackgroundResource { * .build(); * while (true) { * ListUsersResponse response = identityClient.listUsersCallable().call(request); - * for (User element : response.getResponsesList()) { + * for (User element : response.getUsersList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden index 15d6d67681..0672860f63 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/MessagingClient.golden @@ -494,7 +494,7 @@ public class MessagingClient implements BackgroundResource { * .build(); * while (true) { * ListRoomsResponse response = messagingClient.listRoomsCallable().call(request); - * for (Room element : response.getResponsesList()) { + * for (Room element : response.getRoomsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1079,7 +1079,7 @@ public class MessagingClient implements BackgroundResource { * .build(); * while (true) { * ListBlurbsResponse response = messagingClient.listBlurbsCallable().call(request); - * for (Blurb element : response.getResponsesList()) { + * for (Blurb element : response.getBlurbsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden index d8df8db606..da47c352f8 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/identityclient/AsyncListUsersPaged.golden @@ -40,7 +40,7 @@ public class AsyncListUsersPaged { .build(); while (true) { ListUsersResponse response = identityClient.listUsersCallable().call(request); - for (User element : response.getResponsesList()) { + for (User element : response.getUsersList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden index 38fe2e545c..7be9a33f88 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListBlurbsPaged.golden @@ -42,7 +42,7 @@ public class AsyncListBlurbsPaged { .build(); while (true) { ListBlurbsResponse response = messagingClient.listBlurbsCallable().call(request); - for (Blurb element : response.getResponsesList()) { + for (Blurb element : response.getBlurbsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden index 2efb16fd45..58fd2e1496 100644 --- a/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden +++ b/src/test/java/com/google/api/generator/gapic/composer/grpc/goldens/samples/messagingclient/AsyncListRoomsPaged.golden @@ -40,7 +40,7 @@ public class AsyncListRoomsPaged { .build(); while (true) { ListRoomsResponse response = messagingClient.listRoomsCallable().call(request); - for (Room element : response.getResponsesList()) { + for (Room element : response.getRoomsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java index 664d86826a..5f4fef0b04 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/listassets/AsyncListAssetsPaged.java @@ -48,7 +48,7 @@ public static void asyncListAssetsPaged() throws Exception { .build(); while (true) { ListAssetsResponse response = assetServiceClient.listAssetsCallable().call(request); - for (Asset element : response.getResponsesList()) { + for (Asset element : response.getAssetsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java index 117fc663cd..eee7d0b8ed 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchalliampolicies/AsyncSearchAllIamPoliciesPaged.java @@ -46,7 +46,7 @@ public static void asyncSearchAllIamPoliciesPaged() throws Exception { while (true) { SearchAllIamPoliciesResponse response = assetServiceClient.searchAllIamPoliciesCallable().call(request); - for (IamPolicySearchResult element : response.getResponsesList()) { + for (IamPolicySearchResult element : response.getResultsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java index b3758e5abb..ad668a9dad 100644 --- a/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java +++ b/test/integration/goldens/asset/samples/snippets/generated/main/java/com/google/cloud/asset/v1/assetserviceclient/searchallresources/AsyncSearchAllResourcesPaged.java @@ -48,7 +48,7 @@ public static void asyncSearchAllResourcesPaged() throws Exception { while (true) { SearchAllResourcesResponse response = assetServiceClient.searchAllResourcesCallable().call(request); - for (ResourceSearchResult element : response.getResponsesList()) { + for (ResourceSearchResult element : response.getResultsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java index 4654d5d26a..b62cab9a91 100644 --- a/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java +++ b/test/integration/goldens/asset/src/com/google/cloud/asset/v1/AssetServiceClient.java @@ -445,7 +445,7 @@ public final UnaryCallable listAsset * .build(); * while (true) { * ListAssetsResponse response = assetServiceClient.listAssetsCallable().call(request); - * for (Asset element : response.getResponsesList()) { + * for (Asset element : response.getAssetsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1150,7 +1150,7 @@ public final SearchAllResourcesPagedResponse searchAllResources( * while (true) { * SearchAllResourcesResponse response = * assetServiceClient.searchAllResourcesCallable().call(request); - * for (ResourceSearchResult element : response.getResponsesList()) { + * for (ResourceSearchResult element : response.getResultsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1341,7 +1341,7 @@ public final SearchAllIamPoliciesPagedResponse searchAllIamPolicies( * while (true) { * SearchAllIamPoliciesResponse response = * assetServiceClient.searchAllIamPoliciesCallable().call(request); - * for (IamPolicySearchResult element : response.getResponsesList()) { + * for (IamPolicySearchResult element : response.getResultsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AsyncAggregatedListPaged.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AsyncAggregatedListPaged.java index c681cef09d..1ef6bd317b 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AsyncAggregatedListPaged.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressesclient/aggregatedlist/AsyncAggregatedListPaged.java @@ -45,7 +45,7 @@ public static void asyncAggregatedListPaged() throws Exception { .build(); while (true) { AddressAggregatedList response = addressesClient.aggregatedListCallable().call(request); - for (Map.Entry element : response.getResponsesList()) { + for (Map.Entry element : response.getItemsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressesclient/list/AsyncListPaged.java b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressesclient/list/AsyncListPaged.java index 8f0864a41b..b96d914598 100644 --- a/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressesclient/list/AsyncListPaged.java +++ b/test/integration/goldens/compute/samples/snippets/generated/main/java/com/google/cloud/compute/v1small/addressesclient/list/AsyncListPaged.java @@ -44,7 +44,7 @@ public static void asyncListPaged() throws Exception { .build(); while (true) { AddressList response = addressesClient.listCallable().call(request); - for (Address element : response.getResponsesList()) { + for (Address element : response.getItemsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java index 564bd1b461..658dcddd42 100644 --- a/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java +++ b/test/integration/goldens/compute/src/com/google/cloud/compute/v1small/AddressesClient.java @@ -269,7 +269,7 @@ public final AggregatedListPagedResponse aggregatedList(AggregatedListAddressesR * .build(); * while (true) { * AddressAggregatedList response = addressesClient.aggregatedListCallable().call(request); - * for (Map.Entry element : response.getResponsesList()) { + * for (Map.Entry element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -649,7 +649,7 @@ public final UnaryCallable listPagedCal * .build(); * while (true) { * AddressList response = addressesClient.listCallable().call(request); - * for (Address element : response.getResponsesList()) { + * for (Address element : response.getItemsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/AsyncListCryptoKeysPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/AsyncListCryptoKeysPaged.java index dfd0c4752b..ee2c563f91 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/AsyncListCryptoKeysPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeys/AsyncListCryptoKeysPaged.java @@ -46,7 +46,7 @@ public static void asyncListCryptoKeysPaged() throws Exception { while (true) { ListCryptoKeysResponse response = keyManagementServiceClient.listCryptoKeysCallable().call(request); - for (CryptoKey element : response.getResponsesList()) { + for (CryptoKey element : response.getCryptoKeysList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java index a115308ece..d86109d1a7 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listcryptokeyversions/AsyncListCryptoKeyVersionsPaged.java @@ -48,7 +48,7 @@ public static void asyncListCryptoKeyVersionsPaged() throws Exception { while (true) { ListCryptoKeyVersionsResponse response = keyManagementServiceClient.listCryptoKeyVersionsCallable().call(request); - for (CryptoKeyVersion element : response.getResponsesList()) { + for (CryptoKeyVersion element : response.getCryptoKeyVersionsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/AsyncListImportJobsPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/AsyncListImportJobsPaged.java index 7d24e9d1b4..e11d4f37c7 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/AsyncListImportJobsPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listimportjobs/AsyncListImportJobsPaged.java @@ -46,7 +46,7 @@ public static void asyncListImportJobsPaged() throws Exception { while (true) { ListImportJobsResponse response = keyManagementServiceClient.listImportJobsCallable().call(request); - for (ImportJob element : response.getResponsesList()) { + for (ImportJob element : response.getImportJobsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/AsyncListKeyRingsPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/AsyncListKeyRingsPaged.java index e25f43d528..5699e393fb 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/AsyncListKeyRingsPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listkeyrings/AsyncListKeyRingsPaged.java @@ -46,7 +46,7 @@ public static void asyncListKeyRingsPaged() throws Exception { while (true) { ListKeyRingsResponse response = keyManagementServiceClient.listKeyRingsCallable().call(request); - for (KeyRing element : response.getResponsesList()) { + for (KeyRing element : response.getKeyRingsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/AsyncListLocationsPaged.java b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/AsyncListLocationsPaged.java index 589208db57..c8567f4b0a 100644 --- a/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/AsyncListLocationsPaged.java +++ b/test/integration/goldens/kms/samples/snippets/generated/main/java/com/google/cloud/kms/v1/keymanagementserviceclient/listlocations/AsyncListLocationsPaged.java @@ -44,7 +44,7 @@ public static void asyncListLocationsPaged() throws Exception { while (true) { ListLocationsResponse response = keyManagementServiceClient.listLocationsCallable().call(request); - for (Location element : response.getResponsesList()) { + for (Location element : response.getLocationsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java index 71b5a3e61a..fe657b441d 100644 --- a/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java +++ b/test/integration/goldens/kms/src/com/google/cloud/kms/v1/KeyManagementServiceClient.java @@ -320,7 +320,7 @@ public final ListKeyRingsPagedResponse listKeyRings(ListKeyRingsRequest request) * while (true) { * ListKeyRingsResponse response = * keyManagementServiceClient.listKeyRingsCallable().call(request); - * for (KeyRing element : response.getResponsesList()) { + * for (KeyRing element : response.getKeyRingsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -481,7 +481,7 @@ public final ListCryptoKeysPagedResponse listCryptoKeys(ListCryptoKeysRequest re * while (true) { * ListCryptoKeysResponse response = * keyManagementServiceClient.listCryptoKeysCallable().call(request); - * for (CryptoKey element : response.getResponsesList()) { + * for (CryptoKey element : response.getCryptoKeysList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -656,7 +656,7 @@ public final ListCryptoKeyVersionsPagedResponse listCryptoKeyVersions( * while (true) { * ListCryptoKeyVersionsResponse response = * keyManagementServiceClient.listCryptoKeyVersionsCallable().call(request); - * for (CryptoKeyVersion element : response.getResponsesList()) { + * for (CryptoKeyVersion element : response.getCryptoKeyVersionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -818,7 +818,7 @@ public final ListImportJobsPagedResponse listImportJobs(ListImportJobsRequest re * while (true) { * ListImportJobsResponse response = * keyManagementServiceClient.listImportJobsCallable().call(request); - * for (ImportJob element : response.getResponsesList()) { + * for (ImportJob element : response.getImportJobsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3476,7 +3476,7 @@ public final ListLocationsPagedResponse listLocations(ListLocationsRequest reque * while (true) { * ListLocationsResponse response = * keyManagementServiceClient.listLocationsCallable().call(request); - * for (Location element : response.getResponsesList()) { + * for (Location element : response.getLocationsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/AsyncListBooksPaged.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/AsyncListBooksPaged.java index 9335eee8fa..44bd46af83 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/AsyncListBooksPaged.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryserviceclient/listbooks/AsyncListBooksPaged.java @@ -42,7 +42,7 @@ public static void asyncListBooksPaged() throws Exception { .build(); while (true) { ListBooksResponse response = libraryServiceClient.listBooksCallable().call(request); - for (Book element : response.getResponsesList()) { + for (Book element : response.getBooksList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/AsyncListShelvesPaged.java b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/AsyncListShelvesPaged.java index c37d79ce0f..7ecac2d45a 100644 --- a/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/AsyncListShelvesPaged.java +++ b/test/integration/goldens/library/samples/snippets/generated/main/java/com/google/cloud/example/library/v1/libraryserviceclient/listshelves/AsyncListShelvesPaged.java @@ -40,7 +40,7 @@ public static void asyncListShelvesPaged() throws Exception { .build(); while (true) { ListShelvesResponse response = libraryServiceClient.listShelvesCallable().call(request); - for (Shelf element : response.getResponsesList()) { + for (Shelf element : response.getShelvesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java index a426e4ebbf..99bd7acbe9 100644 --- a/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java +++ b/test/integration/goldens/library/src/com/google/cloud/example/library/v1/LibraryServiceClient.java @@ -410,7 +410,7 @@ public final ListShelvesPagedResponse listShelves(ListShelvesRequest request) { * .build(); * while (true) { * ListShelvesResponse response = libraryServiceClient.listShelvesCallable().call(request); - * for (Shelf element : response.getResponsesList()) { + * for (Shelf element : response.getShelvesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1047,7 +1047,7 @@ public final UnaryCallable listBooksPa * .build(); * while (true) { * ListBooksResponse response = libraryServiceClient.listBooksCallable().call(request); - * for (Book element : response.getResponsesList()) { + * for (Book element : response.getBooksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listbuckets/AsyncListBucketsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listbuckets/AsyncListBucketsPaged.java index 1f6faace46..7762e983ea 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listbuckets/AsyncListBucketsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listbuckets/AsyncListBucketsPaged.java @@ -42,7 +42,7 @@ public static void asyncListBucketsPaged() throws Exception { .build(); while (true) { ListBucketsResponse response = configClient.listBucketsCallable().call(request); - for (LogBucket element : response.getResponsesList()) { + for (LogBucket element : response.getBucketsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listexclusions/AsyncListExclusionsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listexclusions/AsyncListExclusionsPaged.java index cf1286a405..996fe113a7 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listexclusions/AsyncListExclusionsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listexclusions/AsyncListExclusionsPaged.java @@ -42,7 +42,7 @@ public static void asyncListExclusionsPaged() throws Exception { .build(); while (true) { ListExclusionsResponse response = configClient.listExclusionsCallable().call(request); - for (LogExclusion element : response.getResponsesList()) { + for (LogExclusion element : response.getExclusionsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listsinks/AsyncListSinksPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listsinks/AsyncListSinksPaged.java index 47e3a3d2b1..d40d662d13 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listsinks/AsyncListSinksPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listsinks/AsyncListSinksPaged.java @@ -42,7 +42,7 @@ public static void asyncListSinksPaged() throws Exception { .build(); while (true) { ListSinksResponse response = configClient.listSinksCallable().call(request); - for (LogSink element : response.getResponsesList()) { + for (LogSink element : response.getSinksList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listviews/AsyncListViewsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listviews/AsyncListViewsPaged.java index 4025b9b986..c1d7b718a5 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listviews/AsyncListViewsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/configclient/listviews/AsyncListViewsPaged.java @@ -41,7 +41,7 @@ public static void asyncListViewsPaged() throws Exception { .build(); while (true) { ListViewsResponse response = configClient.listViewsCallable().call(request); - for (LogView element : response.getResponsesList()) { + for (LogView element : response.getViewsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listlogentries/AsyncListLogEntriesPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listlogentries/AsyncListLogEntriesPaged.java index 075fb38d62..8e67d0bfc7 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listlogentries/AsyncListLogEntriesPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listlogentries/AsyncListLogEntriesPaged.java @@ -44,7 +44,7 @@ public static void asyncListLogEntriesPaged() throws Exception { .build(); while (true) { ListLogEntriesResponse response = loggingClient.listLogEntriesCallable().call(request); - for (LogEntry element : response.getResponsesList()) { + for (LogEntry element : response.getEntriesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listlogs/AsyncListLogsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listlogs/AsyncListLogsPaged.java index 4c9eb7c00a..ea537fce41 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listlogs/AsyncListLogsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listlogs/AsyncListLogsPaged.java @@ -43,7 +43,7 @@ public static void asyncListLogsPaged() throws Exception { .build(); while (true) { ListLogsResponse response = loggingClient.listLogsCallable().call(request); - for (String element : response.getResponsesList()) { + for (String element : response.getLogNamesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java index 810d07aadd..90013b36c8 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/loggingclient/listmonitoredresourcedescriptors/AsyncListMonitoredResourceDescriptorsPaged.java @@ -41,7 +41,7 @@ public static void asyncListMonitoredResourceDescriptorsPaged() throws Exception while (true) { ListMonitoredResourceDescriptorsResponse response = loggingClient.listMonitoredResourceDescriptorsCallable().call(request); - for (MonitoredResourceDescriptor element : response.getResponsesList()) { + for (MonitoredResourceDescriptor element : response.getResourceDescriptorsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsclient/listlogmetrics/AsyncListLogMetricsPaged.java b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsclient/listlogmetrics/AsyncListLogMetricsPaged.java index 4dc679fbfe..90f0a07ffc 100644 --- a/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsclient/listlogmetrics/AsyncListLogMetricsPaged.java +++ b/test/integration/goldens/logging/samples/snippets/generated/main/java/com/google/cloud/logging/v2/metricsclient/listlogmetrics/AsyncListLogMetricsPaged.java @@ -42,7 +42,7 @@ public static void asyncListLogMetricsPaged() throws Exception { .build(); while (true) { ListLogMetricsResponse response = metricsClient.listLogMetricsCallable().call(request); - for (LogMetric element : response.getResponsesList()) { + for (LogMetric element : response.getMetricsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java index 9a84edeb33..5e9cf3b66d 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/ConfigClient.java @@ -438,7 +438,7 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) { * .build(); * while (true) { * ListBucketsResponse response = configClient.listBucketsCallable().call(request); - * for (LogBucket element : response.getResponsesList()) { + * for (LogBucket element : response.getBucketsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -849,7 +849,7 @@ public final UnaryCallable listViewsPa * .build(); * while (true) { * ListViewsResponse response = configClient.listViewsCallable().call(request); - * for (LogView element : response.getResponsesList()) { + * for (LogView element : response.getViewsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1298,7 +1298,7 @@ public final UnaryCallable listSinksPa * .build(); * while (true) { * ListSinksResponse response = configClient.listSinksCallable().call(request); - * for (LogSink element : response.getResponsesList()) { + * for (LogSink element : response.getSinksList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2239,7 +2239,7 @@ public final ListExclusionsPagedResponse listExclusions(ListExclusionsRequest re * .build(); * while (true) { * ListExclusionsResponse response = configClient.listExclusionsCallable().call(request); - * for (LogExclusion element : response.getResponsesList()) { + * for (LogExclusion element : response.getExclusionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java index ab6544d82c..da677501ae 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/LoggingClient.java @@ -648,7 +648,7 @@ public final ListLogEntriesPagedResponse listLogEntries(ListLogEntriesRequest re * .build(); * while (true) { * ListLogEntriesResponse response = loggingClient.listLogEntriesCallable().call(request); - * for (LogEntry element : response.getResponsesList()) { + * for (LogEntry element : response.getEntriesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -744,7 +744,7 @@ public final ListMonitoredResourceDescriptorsPagedResponse listMonitoredResource * while (true) { * ListMonitoredResourceDescriptorsResponse response = * loggingClient.listMonitoredResourceDescriptorsCallable().call(request); - * for (MonitoredResourceDescriptor element : response.getResponsesList()) { + * for (MonitoredResourceDescriptor element : response.getResourceDescriptorsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -988,7 +988,7 @@ public final UnaryCallable listLogsPaged * .build(); * while (true) { * ListLogsResponse response = loggingClient.listLogsCallable().call(request); - * for (String element : response.getResponsesList()) { + * for (String element : response.getLogNamesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java index 386b7d36a7..3f1565fc55 100644 --- a/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java +++ b/test/integration/goldens/logging/src/com/google/cloud/logging/v2/MetricsClient.java @@ -286,7 +286,7 @@ public final ListLogMetricsPagedResponse listLogMetrics(ListLogMetricsRequest re * .build(); * while (true) { * ListLogMetricsResponse response = metricsClient.listLogMetricsCallable().call(request); - * for (LogMetric element : response.getResponsesList()) { + * for (LogMetric element : response.getMetricsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/AsyncListSchemasPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/AsyncListSchemasPaged.java index fb41f2362a..1cacec7a56 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/AsyncListSchemasPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/schemaserviceclient/listschemas/AsyncListSchemasPaged.java @@ -44,7 +44,7 @@ public static void asyncListSchemasPaged() throws Exception { .build(); while (true) { ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request); - for (Schema element : response.getResponsesList()) { + for (Schema element : response.getSchemasList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/AsyncListSnapshotsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/AsyncListSnapshotsPaged.java index 7654455bf1..f9aa941256 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/AsyncListSnapshotsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminclient/listsnapshots/AsyncListSnapshotsPaged.java @@ -43,7 +43,7 @@ public static void asyncListSnapshotsPaged() throws Exception { while (true) { ListSnapshotsResponse response = subscriptionAdminClient.listSnapshotsCallable().call(request); - for (Snapshot element : response.getResponsesList()) { + for (Snapshot element : response.getSnapshotsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/AsyncListSubscriptionsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/AsyncListSubscriptionsPaged.java index beb20080bc..6125a07a2e 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/AsyncListSubscriptionsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/subscriptionadminclient/listsubscriptions/AsyncListSubscriptionsPaged.java @@ -43,7 +43,7 @@ public static void asyncListSubscriptionsPaged() throws Exception { while (true) { ListSubscriptionsResponse response = subscriptionAdminClient.listSubscriptionsCallable().call(request); - for (Subscription element : response.getResponsesList()) { + for (Subscription element : response.getSubscriptionsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopics/AsyncListTopicsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopics/AsyncListTopicsPaged.java index 5280c62391..7c532432b8 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopics/AsyncListTopicsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopics/AsyncListTopicsPaged.java @@ -42,7 +42,7 @@ public static void asyncListTopicsPaged() throws Exception { .build(); while (true) { ListTopicsResponse response = topicAdminClient.listTopicsCallable().call(request); - for (Topic element : response.getResponsesList()) { + for (Topic element : response.getTopicsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/AsyncListTopicSnapshotsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/AsyncListTopicSnapshotsPaged.java index d6bdec8b39..69eae0a39b 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/AsyncListTopicSnapshotsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopicsnapshots/AsyncListTopicSnapshotsPaged.java @@ -42,7 +42,7 @@ public static void asyncListTopicSnapshotsPaged() throws Exception { while (true) { ListTopicSnapshotsResponse response = topicAdminClient.listTopicSnapshotsCallable().call(request); - for (String element : response.getResponsesList()) { + for (String element : response.getSnapshotsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java index c824051379..4e16f0d207 100644 --- a/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java +++ b/test/integration/goldens/pubsub/samples/snippets/generated/main/java/com/google/cloud/pubsub/v1/topicadminclient/listtopicsubscriptions/AsyncListTopicSubscriptionsPaged.java @@ -42,7 +42,7 @@ public static void asyncListTopicSubscriptionsPaged() throws Exception { while (true) { ListTopicSubscriptionsResponse response = topicAdminClient.listTopicSubscriptionsCallable().call(request); - for (String element : response.getResponsesList()) { + for (String element : response.getSubscriptionsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java index ae3d67a80a..9dfe164408 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SchemaServiceClient.java @@ -531,7 +531,7 @@ public final ListSchemasPagedResponse listSchemas(ListSchemasRequest request) { * .build(); * while (true) { * ListSchemasResponse response = schemaServiceClient.listSchemasCallable().call(request); - * for (Schema element : response.getResponsesList()) { + * for (Schema element : response.getSchemasList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java index f0695dcd08..976502380b 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/SubscriptionAdminClient.java @@ -849,7 +849,7 @@ public final ListSubscriptionsPagedResponse listSubscriptions(ListSubscriptionsR * while (true) { * ListSubscriptionsResponse response = * subscriptionAdminClient.listSubscriptionsCallable().call(request); - * for (Subscription element : response.getResponsesList()) { + * for (Subscription element : response.getSubscriptionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1891,7 +1891,7 @@ public final ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest reque * while (true) { * ListSnapshotsResponse response = * subscriptionAdminClient.listSnapshotsCallable().call(request); - * for (Snapshot element : response.getResponsesList()) { + * for (Snapshot element : response.getSnapshotsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java index d50e696f2d..48eea93952 100644 --- a/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java +++ b/test/integration/goldens/pubsub/src/com/google/cloud/pubsub/v1/TopicAdminClient.java @@ -676,7 +676,7 @@ public final UnaryCallable listTopic * .build(); * while (true) { * ListTopicsResponse response = topicAdminClient.listTopicsCallable().call(request); - * for (Topic element : response.getResponsesList()) { + * for (Topic element : response.getTopicsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -828,7 +828,7 @@ public final ListTopicSubscriptionsPagedResponse listTopicSubscriptions( * while (true) { * ListTopicSubscriptionsResponse response = * topicAdminClient.listTopicSubscriptionsCallable().call(request); - * for (String element : response.getResponsesList()) { + * for (String element : response.getSubscriptionsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -996,7 +996,7 @@ public final ListTopicSnapshotsPagedResponse listTopicSnapshots( * while (true) { * ListTopicSnapshotsResponse response = * topicAdminClient.listTopicSnapshotsCallable().call(request); - * for (String element : response.getResponsesList()) { + * for (String element : response.getSnapshotsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java index c7db15f532..4fda4467d4 100644 --- a/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java +++ b/test/integration/goldens/redis/samples/snippets/generated/main/java/com/google/cloud/redis/v1beta1/cloudredisclient/listinstances/AsyncListInstancesPaged.java @@ -42,7 +42,7 @@ public static void asyncListInstancesPaged() throws Exception { .build(); while (true) { ListInstancesResponse response = cloudRedisClient.listInstancesCallable().call(request); - for (Instance element : response.getResponsesList()) { + for (Instance element : response.getInstancesList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java index 8479bbf51f..eef7573298 100644 --- a/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java +++ b/test/integration/goldens/redis/src/com/google/cloud/redis/v1beta1/CloudRedisClient.java @@ -368,7 +368,7 @@ public final ListInstancesPagedResponse listInstances(ListInstancesRequest reque * .build(); * while (true) { * ListInstancesResponse response = cloudRedisClient.listInstancesCallable().call(request); - * for (Instance element : response.getResponsesList()) { + * for (Instance element : response.getInstancesList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listbuckets/AsyncListBucketsPaged.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listbuckets/AsyncListBucketsPaged.java index cfbea5f06d..563db4d318 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listbuckets/AsyncListBucketsPaged.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listbuckets/AsyncListBucketsPaged.java @@ -47,7 +47,7 @@ public static void asyncListBucketsPaged() throws Exception { .build(); while (true) { ListBucketsResponse response = storageClient.listBucketsCallable().call(request); - for (Bucket element : response.getResponsesList()) { + for (Bucket element : response.getBucketsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listhmackeys/AsyncListHmacKeysPaged.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listhmackeys/AsyncListHmacKeysPaged.java index 18979b0fb2..6280205a6a 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listhmackeys/AsyncListHmacKeysPaged.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listhmackeys/AsyncListHmacKeysPaged.java @@ -46,7 +46,7 @@ public static void asyncListHmacKeysPaged() throws Exception { .build(); while (true) { ListHmacKeysResponse response = storageClient.listHmacKeysCallable().call(request); - for (HmacKeyMetadata element : response.getResponsesList()) { + for (HmacKeyMetadata element : response.getHmacKeysList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listnotifications/AsyncListNotificationsPaged.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listnotifications/AsyncListNotificationsPaged.java index ac26b85ab2..5eddceb423 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listnotifications/AsyncListNotificationsPaged.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listnotifications/AsyncListNotificationsPaged.java @@ -43,7 +43,7 @@ public static void asyncListNotificationsPaged() throws Exception { while (true) { ListNotificationsResponse response = storageClient.listNotificationsCallable().call(request); - for (Notification element : response.getResponsesList()) { + for (Notification element : response.getNotificationsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listobjects/AsyncListObjectsPaged.java b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listobjects/AsyncListObjectsPaged.java index 02fdd06d3f..2c819e7cba 100644 --- a/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listobjects/AsyncListObjectsPaged.java +++ b/test/integration/goldens/storage/samples/snippets/generated/main/java/com/google/storage/v2/storageclient/listobjects/AsyncListObjectsPaged.java @@ -52,7 +52,7 @@ public static void asyncListObjectsPaged() throws Exception { .build(); while (true) { ListObjectsResponse response = storageClient.listObjectsCallable().call(request); - for (Object element : response.getResponsesList()) { + for (Object element : response.getObjectsList()) { // doThingsWith(element); } String nextPageToken = response.getNextPageToken(); diff --git a/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java b/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java index c7a9a4d737..edb791a84c 100644 --- a/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java +++ b/test/integration/goldens/storage/src/com/google/storage/v2/StorageClient.java @@ -640,7 +640,7 @@ public final ListBucketsPagedResponse listBuckets(ListBucketsRequest request) { * .build(); * while (true) { * ListBucketsResponse response = storageClient.listBucketsCallable().call(request); - * for (Bucket element : response.getResponsesList()) { + * for (Bucket element : response.getBucketsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -1654,7 +1654,7 @@ public final ListNotificationsPagedResponse listNotifications(ListNotificationsR * while (true) { * ListNotificationsResponse response = * storageClient.listNotificationsCallable().call(request); - * for (Notification element : response.getResponsesList()) { + * for (Notification element : response.getNotificationsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -2349,7 +2349,7 @@ public final ListObjectsPagedResponse listObjects(ListObjectsRequest request) { * .build(); * while (true) { * ListObjectsResponse response = storageClient.listObjectsCallable().call(request); - * for (Object element : response.getResponsesList()) { + * for (Object element : response.getObjectsList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken(); @@ -3200,7 +3200,7 @@ public final ListHmacKeysPagedResponse listHmacKeys(ListHmacKeysRequest request) * .build(); * while (true) { * ListHmacKeysResponse response = storageClient.listHmacKeysCallable().call(request); - * for (HmacKeyMetadata element : response.getResponsesList()) { + * for (HmacKeyMetadata element : response.getHmacKeysList()) { * // doThingsWith(element); * } * String nextPageToken = response.getNextPageToken();