Skip to content

Commit

Permalink
chore: Integrate new gapic-generator-java and rules_gapic (googleapis…
Browse files Browse the repository at this point in the history
…#790)

- [ ] 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 4f6a4fa commit bec35e7
Show file tree
Hide file tree
Showing 10 changed files with 77 additions and 77 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -423,7 +423,7 @@ public final ListFoldersPagedResponse listFolders(ListFoldersRequest request) {
* .build();
* while (true) {
* ListFoldersResponse response = foldersClient.listFoldersCallable().call(request);
* for (Folder element : response.getResponsesList()) {
* for (Folder element : response.getFoldersList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -580,7 +580,7 @@ public final SearchFoldersPagedResponse searchFolders(SearchFoldersRequest reque
* .build();
* while (true) {
* SearchFoldersResponse response = foldersClient.searchFoldersCallable().call(request);
* for (Folder element : response.getResponsesList()) {
* for (Folder element : response.getFoldersList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -394,7 +394,7 @@ public final SearchOrganizationsPagedResponse searchOrganizations(
* while (true) {
* SearchOrganizationsResponse response =
* organizationsClient.searchOrganizationsCallable().call(request);
* for (Organization element : response.getResponsesList()) {
* for (Organization element : response.getOrganizationsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -427,7 +427,7 @@ public final SearchOrganizationsPagedResponse searchOrganizations(
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = OrganizationName.of("[ORGANIZATION]");
* Policy response = organizationsClient.getIamPolicy(resource);
* }
* }</pre>
Expand Down Expand Up @@ -490,7 +490,7 @@ public final Policy getIamPolicy(String resource) {
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = organizationsClient.getIamPolicy(request);
Expand Down Expand Up @@ -521,7 +521,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future = organizationsClient.getIamPolicyCallable().futureCall(request);
Expand All @@ -548,7 +548,7 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = OrganizationName.of("[ORGANIZATION]");
* Policy response = organizationsClient.setIamPolicy(resource);
* }
* }</pre>
Expand Down Expand Up @@ -609,7 +609,7 @@ public final Policy setIamPolicy(String resource) {
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand Down Expand Up @@ -640,7 +640,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand All @@ -667,7 +667,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = OrganizationName.of("[ORGANIZATION]");
* List<String> permissions = new ArrayList<>();
* TestIamPermissionsResponse response =
* organizationsClient.testIamPermissions(resource, permissions);
Expand Down Expand Up @@ -743,7 +743,7 @@ public final TestIamPermissionsResponse testIamPermissions(
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = organizationsClient.testIamPermissions(request);
Expand Down Expand Up @@ -772,7 +772,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (OrganizationsClient organizationsClient = OrganizationsClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(OrganizationName.of("[ORGANIZATION]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -428,7 +428,7 @@ public final ListProjectsPagedResponse listProjects(ListProjectsRequest request)
* .build();
* while (true) {
* ListProjectsResponse response = projectsClient.listProjectsCallable().call(request);
* for (Project element : response.getResponsesList()) {
* for (Project element : response.getProjectsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -600,7 +600,7 @@ public final SearchProjectsPagedResponse searchProjects(SearchProjectsRequest re
* .build();
* while (true) {
* SearchProjectsResponse response = projectsClient.searchProjectsCallable().call(request);
* for (Project element : response.getResponsesList()) {
* for (Project element : response.getProjectsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down Expand Up @@ -866,7 +866,7 @@ public final UnaryCallable<UpdateProjectRequest, Operation> updateProjectCallabl
* // It may require modifications to work in your environment.
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* ProjectName name = ProjectName.of("[PROJECT]");
* ResourceName destinationParent = FolderName.of("[FOLDER]");
* ResourceName destinationParent = ProjectName.of("[PROJECT]");
* Project response = projectsClient.moveProjectAsync(name, destinationParent).get();
* }
* }</pre>
Expand Down Expand Up @@ -938,7 +938,7 @@ public final OperationFuture<Project, MoveProjectMetadata> moveProjectAsync(
* // It may require modifications to work in your environment.
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* String name = ProjectName.of("[PROJECT]").toString();
* ResourceName destinationParent = FolderName.of("[FOLDER]");
* ResourceName destinationParent = ProjectName.of("[PROJECT]");
* Project response = projectsClient.moveProjectAsync(name, destinationParent).get();
* }
* }</pre>
Expand Down Expand Up @@ -1012,7 +1012,7 @@ public final OperationFuture<Project, MoveProjectMetadata> moveProjectAsync(
* MoveProjectRequest request =
* MoveProjectRequest.newBuilder()
* .setName(ProjectName.of("[PROJECT]").toString())
* .setDestinationParent(FolderName.of("[FOLDER]").toString())
* .setDestinationParent(ProjectName.of("[PROJECT]").toString())
* .build();
* Project response = projectsClient.moveProjectAsync(request).get();
* }
Expand Down Expand Up @@ -1045,7 +1045,7 @@ public final OperationFuture<Project, MoveProjectMetadata> moveProjectAsync(
* MoveProjectRequest request =
* MoveProjectRequest.newBuilder()
* .setName(ProjectName.of("[PROJECT]").toString())
* .setDestinationParent(FolderName.of("[FOLDER]").toString())
* .setDestinationParent(ProjectName.of("[PROJECT]").toString())
* .build();
* OperationFuture<Project, MoveProjectMetadata> future =
* projectsClient.moveProjectOperationCallable().futureCall(request);
Expand Down Expand Up @@ -1078,7 +1078,7 @@ public final OperationFuture<Project, MoveProjectMetadata> moveProjectAsync(
* MoveProjectRequest request =
* MoveProjectRequest.newBuilder()
* .setName(ProjectName.of("[PROJECT]").toString())
* .setDestinationParent(FolderName.of("[FOLDER]").toString())
* .setDestinationParent(ProjectName.of("[PROJECT]").toString())
* .build();
* ApiFuture<Operation> future = projectsClient.moveProjectCallable().futureCall(request);
* // Do something.
Expand Down Expand Up @@ -1490,7 +1490,7 @@ public final UnaryCallable<UndeleteProjectRequest, Operation> undeleteProjectCal
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = ProjectName.of("[PROJECT]");
* Policy response = projectsClient.getIamPolicy(resource);
* }
* }</pre>
Expand Down Expand Up @@ -1545,7 +1545,7 @@ public final Policy getIamPolicy(String resource) {
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* Policy response = projectsClient.getIamPolicy(request);
Expand All @@ -1572,7 +1572,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* GetIamPolicyRequest request =
* GetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setOptions(GetPolicyOptions.newBuilder().build())
* .build();
* ApiFuture<Policy> future = projectsClient.getIamPolicyCallable().futureCall(request);
Expand Down Expand Up @@ -1633,7 +1633,7 @@ public final UnaryCallable<GetIamPolicyRequest, Policy> getIamPolicyCallable() {
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = ProjectName.of("[PROJECT]");
* Policy policy = Policy.newBuilder().build();
* Policy response = projectsClient.setIamPolicy(resource, policy);
* }
Expand Down Expand Up @@ -1772,7 +1772,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand Down Expand Up @@ -1837,7 +1837,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* SetIamPolicyRequest request =
* SetIamPolicyRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(ProjectName.of("[PROJECT]").toString())
* .setPolicy(Policy.newBuilder().build())
* .setUpdateMask(FieldMask.newBuilder().build())
* .build();
Expand All @@ -1861,7 +1861,7 @@ public final UnaryCallable<SetIamPolicyRequest, Policy> setIamPolicyCallable() {
* // This snippet has been automatically generated for illustrative purposes only.
* // It may require modifications to work in your environment.
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* ResourceName resource = FolderName.of("[FOLDER]");
* ResourceName resource = ProjectName.of("[PROJECT]");
* List<String> permissions = new ArrayList<>();
* TestIamPermissionsResponse response =
* projectsClient.testIamPermissions(resource, permissions);
Expand Down Expand Up @@ -1931,7 +1931,7 @@ public final TestIamPermissionsResponse testIamPermissions(
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(ProjectName.of("[PROJECT]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* TestIamPermissionsResponse response = projectsClient.testIamPermissions(request);
Expand All @@ -1957,7 +1957,7 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
* try (ProjectsClient projectsClient = ProjectsClient.create()) {
* TestIamPermissionsRequest request =
* TestIamPermissionsRequest.newBuilder()
* .setResource(FolderName.of("[FOLDER]").toString())
* .setResource(ProjectName.of("[PROJECT]").toString())
* .addAllPermissions(new ArrayList<String>())
* .build();
* ApiFuture<TestIamPermissionsResponse> future =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ public final ListTagBindingsPagedResponse listTagBindings(ListTagBindingsRequest
* while (true) {
* ListTagBindingsResponse response =
* tagBindingsClient.listTagBindingsCallable().call(request);
* for (TagBinding element : response.getResponsesList()) {
* for (TagBinding element : response.getTagBindingsList()) {
* // doThingsWith(element);
* }
* String nextPageToken = response.getNextPageToken();
Expand Down
Loading

0 comments on commit bec35e7

Please sign in to comment.