From 65eb335537eacf8e1d1de5c7102d52efbe9b173f Mon Sep 17 00:00:00 2001 From: Owl Bot Date: Thu, 15 Sep 2022 23:17:33 +0000 Subject: [PATCH] =?UTF-8?q?=F0=9F=A6=89=20Updates=20from=20OwlBot=20post-p?= =?UTF-8?q?rocessor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit See https://github.com/googleapis/repo-automation-bots/blob/main/packages/owl-bot/README.md --- java-iam-admin/README.md | 6 +- .../google/cloud/iam/admin/v1/IAMClient.java | 982 +++- .../cloud/iam/admin/v1/IAMSettings.java | 38 +- .../cloud/iam/admin/v1/gapic_metadata.json | 6 + .../cloud/iam/admin/v1/package-info.java | 23 +- .../cloud/iam/admin/v1/stub/GrpcIAMStub.java | 68 + .../cloud/iam/admin/v1/stub/IAMStub.java | 10 + .../iam/admin/v1/stub/IAMStubSettings.java | 66 +- .../cloud/iam/admin/v1/IAMClientTest.java | 147 + .../cloud/iam/admin/v1/MockIAMImpl.java | 44 + .../java/com/google/iam/admin/v1/IAMGrpc.java | 407 +- .../iam/admin/v1/CreateRoleRequest.java | 143 +- .../admin/v1/CreateRoleRequestOrBuilder.java | 38 +- .../v1/CreateServiceAccountKeyRequest.java | 10 +- .../admin/v1/CreateServiceAccountRequest.java | 10 +- .../iam/admin/v1/DeleteRoleRequest.java | 143 +- .../admin/v1/DeleteRoleRequestOrBuilder.java | 38 +- .../v1/DeleteServiceAccountKeyRequest.java | 10 +- .../admin/v1/DeleteServiceAccountRequest.java | 10 +- .../v1/DisableServiceAccountKeyRequest.java | 345 +- ...ableServiceAccountKeyRequestOrBuilder.java | 35 +- .../v1/DisableServiceAccountRequest.java | 10 +- .../v1/EnableServiceAccountKeyRequest.java | 345 +- ...ableServiceAccountKeyRequestOrBuilder.java | 35 +- .../admin/v1/EnableServiceAccountRequest.java | 10 +- .../google/iam/admin/v1/GetRoleRequest.java | 206 +- .../iam/admin/v1/GetRoleRequestOrBuilder.java | 56 +- .../admin/v1/GetServiceAccountKeyRequest.java | 66 +- .../GetServiceAccountKeyRequestOrBuilder.java | 16 +- .../admin/v1/GetServiceAccountRequest.java | 10 +- .../java/com/google/iam/admin/v1/Iam.java | 934 ++++ .../iam/admin/v1/LintPolicyRequest.java | 10 +- .../iam/admin/v1/LintPolicyResponse.java | 10 +- .../com/google/iam/admin/v1/LintResult.java | 17 +- .../google/iam/admin/v1/ListRolesRequest.java | 199 +- .../admin/v1/ListRolesRequestOrBuilder.java | 54 +- .../iam/admin/v1/ListRolesResponse.java | 10 +- .../v1/ListServiceAccountKeysRequest.java | 10 +- .../v1/ListServiceAccountKeysResponse.java | 10 +- .../admin/v1/ListServiceAccountsRequest.java | 10 +- .../admin/v1/ListServiceAccountsResponse.java | 10 +- .../admin/v1/PatchServiceAccountRequest.java | 16 +- .../com/google/iam/admin/v1/Permission.java | 25 +- .../iam/admin/v1/PermissionOrBuilder.java | 2 +- .../v1/QueryAuditableServicesRequest.java | 10 +- .../v1/QueryAuditableServicesResponse.java | 20 +- .../admin/v1/QueryGrantableRolesRequest.java | 10 +- .../admin/v1/QueryGrantableRolesResponse.java | 10 +- .../v1/QueryTestablePermissionsRequest.java | 10 +- .../v1/QueryTestablePermissionsResponse.java | 10 +- .../java/com/google/iam/admin/v1/Role.java | 20 +- .../com/google/iam/admin/v1/RoleView.java | 2 +- .../google/iam/admin/v1/ServiceAccount.java | 18 +- .../iam/admin/v1/ServiceAccountKey.java | 100 +- .../admin/v1/ServiceAccountKeyAlgorithm.java | 2 +- .../admin/v1/ServiceAccountKeyOrBuilder.java | 13 + .../iam/admin/v1/ServiceAccountKeyOrigin.java | 2 +- .../iam/admin/v1/ServiceAccountOrBuilder.java | 2 +- .../v1/ServiceAccountPrivateKeyType.java | 2 +- .../admin/v1/ServiceAccountPublicKeyType.java | 6 +- .../google/iam/admin/v1/SignBlobRequest.java | 32 +- .../admin/v1/SignBlobRequestOrBuilder.java | 6 +- .../google/iam/admin/v1/SignBlobResponse.java | 32 +- .../admin/v1/SignBlobResponseOrBuilder.java | 6 +- .../google/iam/admin/v1/SignJwtRequest.java | 66 +- .../iam/admin/v1/SignJwtRequestOrBuilder.java | 16 +- .../google/iam/admin/v1/SignJwtResponse.java | 38 +- .../admin/v1/SignJwtResponseOrBuilder.java | 8 +- .../iam/admin/v1/UndeleteRoleRequest.java | 143 +- .../v1/UndeleteRoleRequestOrBuilder.java | 38 +- .../v1/UndeleteServiceAccountRequest.java | 10 +- .../v1/UndeleteServiceAccountResponse.java | 10 +- .../iam/admin/v1/UpdateRoleRequest.java | 143 +- .../admin/v1/UpdateRoleRequestOrBuilder.java | 38 +- .../v1/UploadServiceAccountKeyRequest.java | 42 +- ...loadServiceAccountKeyRequestOrBuilder.java | 8 +- .../google/iam/admin/v1/audit_data.proto | 2 +- .../main/proto/google/iam/admin/v1/iam.proto | 399 +- .../google/cloud/iam/admin/v1/IAMClient.java | 4006 ----------------- .../cloud/iam/admin/v1/IAMSettings.java | 605 --- .../cloud/iam/admin/v1/gapic_metadata.json | 111 - .../cloud/iam/admin/v1/package-info.java | 72 - .../admin/v1/stub/GrpcIAMCallableFactory.java | 113 - .../cloud/iam/admin/v1/stub/GrpcIAMStub.java | 1181 ----- .../cloud/iam/admin/v1/stub/IAMStub.java | 241 - .../iam/admin/v1/stub/IAMStubSettings.java | 1382 ------ .../cloud/iam/admin/v1/IAMClientTest.java | 2230 --------- .../google/cloud/iam/admin/v1/MockIAM.java | 59 - .../cloud/iam/admin/v1/MockIAMImpl.java | 755 ---- .../java/com/google/iam/admin/v1/IAMGrpc.java | 3409 -------------- .../com/google/iam/admin/v1/AuditData.java | 1672 ------- .../iam/admin/v1/AuditDataOrBuilder.java | 36 - .../google/iam/admin/v1/AuditDataProto.java | 66 - .../iam/admin/v1/CreateRoleRequest.java | 1151 ----- .../admin/v1/CreateRoleRequestOrBuilder.java | 120 - .../v1/CreateServiceAccountKeyRequest.java | 899 ---- ...eateServiceAccountKeyRequestOrBuilder.java | 83 - .../admin/v1/CreateServiceAccountRequest.java | 1049 ----- .../CreateServiceAccountRequestOrBuilder.java | 90 - .../iam/admin/v1/DeleteRoleRequest.java | 812 ---- .../admin/v1/DeleteRoleRequestOrBuilder.java | 77 - .../v1/DeleteServiceAccountKeyRequest.java | 623 --- ...leteServiceAccountKeyRequestOrBuilder.java | 37 - .../admin/v1/DeleteServiceAccountRequest.java | 623 --- .../DeleteServiceAccountRequestOrBuilder.java | 37 - .../v1/DisableServiceAccountRequest.java | 623 --- ...DisableServiceAccountRequestOrBuilder.java | 37 - .../admin/v1/EnableServiceAccountRequest.java | 623 --- .../EnableServiceAccountRequestOrBuilder.java | 37 - .../google/iam/admin/v1/GetRoleRequest.java | 777 ---- .../iam/admin/v1/GetRoleRequestOrBuilder.java | 81 - .../admin/v1/GetServiceAccountKeyRequest.java | 754 ---- .../GetServiceAccountKeyRequestOrBuilder.java | 58 - .../admin/v1/GetServiceAccountRequest.java | 623 --- .../v1/GetServiceAccountRequestOrBuilder.java | 37 - .../java/com/google/iam/admin/v1/Iam.java | 847 ---- .../java/com/google/iam/admin/v1/KeyName.java | 223 - .../iam/admin/v1/LintPolicyRequest.java | 969 ---- .../admin/v1/LintPolicyRequestOrBuilder.java | 70 - .../iam/admin/v1/LintPolicyResponse.java | 874 ---- .../admin/v1/LintPolicyResponseOrBuilder.java | 53 - .../com/google/iam/admin/v1/LintResult.java | 1660 ------- .../iam/admin/v1/LintResultOrBuilder.java | 131 - .../google/iam/admin/v1/ListRolesRequest.java | 1246 ----- .../admin/v1/ListRolesRequestOrBuilder.java | 145 - .../iam/admin/v1/ListRolesResponse.java | 1045 ----- .../admin/v1/ListRolesResponseOrBuilder.java | 75 - .../v1/ListServiceAccountKeysRequest.java | 1143 ----- ...istServiceAccountKeysRequestOrBuilder.java | 96 - .../v1/ListServiceAccountKeysResponse.java | 872 ---- ...stServiceAccountKeysResponseOrBuilder.java | 53 - .../admin/v1/ListServiceAccountsRequest.java | 871 ---- .../ListServiceAccountsRequestOrBuilder.java | 67 - .../admin/v1/ListServiceAccountsResponse.java | 1052 ----- .../ListServiceAccountsResponseOrBuilder.java | 77 - .../admin/v1/PatchServiceAccountRequest.java | 813 ---- .../PatchServiceAccountRequestOrBuilder.java | 39 - .../com/google/iam/admin/v1/Permission.java | 1816 -------- .../iam/admin/v1/PermissionOrBuilder.java | 149 - .../com/google/iam/admin/v1/ProjectName.java | 168 - .../v1/QueryAuditableServicesRequest.java | 623 --- ...ueryAuditableServicesRequestOrBuilder.java | 37 - .../v1/QueryAuditableServicesResponse.java | 1495 ------ ...eryAuditableServicesResponseOrBuilder.java | 53 - .../admin/v1/QueryGrantableRolesRequest.java | 969 ---- .../QueryGrantableRolesRequestOrBuilder.java | 79 - .../admin/v1/QueryGrantableRolesResponse.java | 1045 ----- .../QueryGrantableRolesResponseOrBuilder.java | 75 - .../v1/QueryTestablePermissionsRequest.java | 880 ---- ...ryTestablePermissionsRequestOrBuilder.java | 70 - .../v1/QueryTestablePermissionsResponse.java | 1045 ----- ...yTestablePermissionsResponseOrBuilder.java | 75 - .../java/com/google/iam/admin/v1/Role.java | 1718 ------- .../google/iam/admin/v1/RoleOrBuilder.java | 164 - .../com/google/iam/admin/v1/RoleView.java | 135 - .../google/iam/admin/v1/ServiceAccount.java | 1913 -------- .../iam/admin/v1/ServiceAccountKey.java | 1943 -------- .../admin/v1/ServiceAccountKeyAlgorithm.java | 150 - .../admin/v1/ServiceAccountKeyOrBuilder.java | 214 - .../iam/admin/v1/ServiceAccountKeyOrigin.java | 150 - .../iam/admin/v1/ServiceAccountName.java | 193 - .../iam/admin/v1/ServiceAccountOrBuilder.java | 209 - .../v1/ServiceAccountPrivateKeyType.java | 154 - .../admin/v1/ServiceAccountPublicKeyType.java | 150 - .../google/iam/admin/v1/SignBlobRequest.java | 755 ---- .../admin/v1/SignBlobRequestOrBuilder.java | 59 - .../google/iam/admin/v1/SignBlobResponse.java | 727 --- .../admin/v1/SignBlobResponseOrBuilder.java | 51 - .../google/iam/admin/v1/SignJwtRequest.java | 898 ---- .../iam/admin/v1/SignJwtRequestOrBuilder.java | 87 - .../google/iam/admin/v1/SignJwtResponse.java | 821 ---- .../admin/v1/SignJwtResponseOrBuilder.java | 65 - .../iam/admin/v1/UndeleteRoleRequest.java | 812 ---- .../v1/UndeleteRoleRequestOrBuilder.java | 77 - .../v1/UndeleteServiceAccountRequest.java | 616 --- ...ndeleteServiceAccountRequestOrBuilder.java | 35 - .../v1/UndeleteServiceAccountResponse.java | 657 --- ...deleteServiceAccountResponseOrBuilder.java | 36 - .../iam/admin/v1/UpdateRoleRequest.java | 1200 ----- .../admin/v1/UpdateRoleRequestOrBuilder.java | 121 - .../v1/UploadServiceAccountKeyRequest.java | 719 --- ...loadServiceAccountKeyRequestOrBuilder.java | 50 - .../google/iam/admin/v1/audit_data.proto | 42 - .../main/proto/google/iam/admin/v1/iam.proto | 1623 ------- 184 files changed, 4305 insertions(+), 64352 deletions(-) rename {owl-bot-staging/java-iam-admin/v1 => java-iam-admin}/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequest.java (67%) rename {owl-bot-staging/java-iam-admin/v1 => java-iam-admin}/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequestOrBuilder.java (53%) rename {owl-bot-staging/java-iam-admin/v1 => java-iam-admin}/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequest.java (67%) rename {owl-bot-staging/java-iam-admin/v1 => java-iam-admin}/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequestOrBuilder.java (53%) create mode 100644 java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Iam.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/gapic_metadata.json delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/package-info.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMCallableFactory.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMStub.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStub.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/IAMClientTest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAM.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAMImpl.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditData.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditDataOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditDataProto.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Iam.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/KeyName.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResult.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResultOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Permission.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PermissionOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ProjectName.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Role.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleView.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccount.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKey.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyAlgorithm.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrigin.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountName.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPrivateKeyType.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPublicKeyType.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponse.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponseOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequest.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequestOrBuilder.java delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/audit_data.proto delete mode 100644 owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/iam.proto diff --git a/java-iam-admin/README.md b/java-iam-admin/README.md index 4ffb99531990..96c0c2541db2 100644 --- a/java-iam-admin/README.md +++ b/java-iam-admin/README.md @@ -19,20 +19,20 @@ If you are using Maven, add this to your pom.xml file: com.google.cloud google-iam-admin - 1.2.3 + 1.2.5 ``` If you are using Gradle without BOM, add this to your dependencies: ```Groovy -implementation 'com.google.cloud:google-iam-admin:1.2.3' +implementation 'com.google.cloud:google-iam-admin:1.2.5' ``` If you are using SBT, add this to your dependencies: ```Scala -libraryDependencies += "com.google.cloud" % "google-iam-admin" % "1.2.3" +libraryDependencies += "com.google.cloud" % "google-iam-admin" % "1.2.5" ``` ## Authentication diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java index dad8e1a3b0b9..2fabff666d33 100644 --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java @@ -34,7 +34,9 @@ import com.google.iam.admin.v1.DeleteRoleRequest; import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest; import com.google.iam.admin.v1.DeleteServiceAccountRequest; +import com.google.iam.admin.v1.DisableServiceAccountKeyRequest; import com.google.iam.admin.v1.DisableServiceAccountRequest; +import com.google.iam.admin.v1.EnableServiceAccountKeyRequest; import com.google.iam.admin.v1.EnableServiceAccountRequest; import com.google.iam.admin.v1.GetRoleRequest; import com.google.iam.admin.v1.GetServiceAccountKeyRequest; @@ -97,9 +99,9 @@ *
  • **Service account keys**, which service accounts use to authenticate with * Google APIs *
  • **IAM policies for service accounts**, which specify the roles that a - * member has for the service account + * principal has for the service account *
  • **IAM custom roles**, which help you limit the number of permissions that - * you grant to members + * you grant to principals * * *

    In addition, you can use this service to complete the following tasks, among others: @@ -110,12 +112,23 @@ *

  • Lint, or validate, condition expressions in an IAM policy * * + *

    When you read data from the IAM API, each read is eventually consistent. In other words, if + * you write data with the IAM API, then immediately read that data, the read operation might return + * an older version of the data. To deal with this behavior, your application can retry the request + * with truncated exponential backoff. + * + *

    In contrast, writing data to the IAM API is sequentially consistent. In other words, write + * operations are always processed in the order in which they were received. + * *

    This class provides the ability to make remote calls to the backing service through method * calls that map to API methods. Sample code to get started: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * try (IAMClient iAMClient = IAMClient.create()) {
      *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
      *   ServiceAccount response = iAMClient.getServiceAccount(name);
    @@ -151,8 +164,11 @@
      * 

    To customize credentials: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * IAMSettings iAMSettings =
      *     IAMSettings.newBuilder()
      *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    @@ -163,8 +179,11 @@
      * 

    To customize the endpoint: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * IAMSettings iAMSettings = IAMSettings.newBuilder().setEndpoint(myEndpoint).build();
      * IAMClient iAMClient = IAMClient.create(iAMSettings);
      * }
    @@ -227,8 +246,11 @@ public IAMStub getStub() { *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ProjectName name = ProjectName.of("[PROJECT]");
        *   for (ServiceAccount element : iAMClient.listServiceAccounts(name).iterateAll()) {
    @@ -257,8 +279,11 @@ public final ListServiceAccountsPagedResponse listServiceAccounts(ProjectName na
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = ProjectName.of("[PROJECT]").toString();
        *   for (ServiceAccount element : iAMClient.listServiceAccounts(name).iterateAll()) {
    @@ -285,8 +310,11 @@ public final ListServiceAccountsPagedResponse listServiceAccounts(String name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ListServiceAccountsRequest request =
        *       ListServiceAccountsRequest.newBuilder()
    @@ -316,8 +344,11 @@ public final ListServiceAccountsPagedResponse listServiceAccounts(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ListServiceAccountsRequest request =
        *       ListServiceAccountsRequest.newBuilder()
    @@ -347,8 +378,11 @@ public final ListServiceAccountsPagedResponse listServiceAccounts(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ListServiceAccountsRequest request =
        *       ListServiceAccountsRequest.newBuilder()
    @@ -384,8 +418,11 @@ public final ListServiceAccountsPagedResponse listServiceAccounts(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   ServiceAccount response = iAMClient.getServiceAccount(name);
    @@ -413,8 +450,11 @@ public final ServiceAccount getServiceAccount(ServiceAccountName name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
        *   ServiceAccount response = iAMClient.getServiceAccount(name);
    @@ -439,8 +479,11 @@ public final ServiceAccount getServiceAccount(String name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   GetServiceAccountRequest request =
        *       GetServiceAccountRequest.newBuilder()
    @@ -464,8 +507,11 @@ public final ServiceAccount getServiceAccount(GetServiceAccountRequest request)
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   GetServiceAccountRequest request =
        *       GetServiceAccountRequest.newBuilder()
    @@ -488,8 +534,11 @@ public final UnaryCallable getServiceA
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ProjectName name = ProjectName.of("[PROJECT]");
        *   String accountId = "accountId-1827029976";
    @@ -527,8 +576,11 @@ public final ServiceAccount createServiceAccount(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = ProjectName.of("[PROJECT]").toString();
        *   String accountId = "accountId-1827029976";
    @@ -566,8 +618,11 @@ public final ServiceAccount createServiceAccount(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   CreateServiceAccountRequest request =
        *       CreateServiceAccountRequest.newBuilder()
    @@ -593,8 +648,11 @@ public final ServiceAccount createServiceAccount(CreateServiceAccountRequest req
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   CreateServiceAccountRequest request =
        *       CreateServiceAccountRequest.newBuilder()
    @@ -621,13 +679,16 @@ public final ServiceAccount createServiceAccount(CreateServiceAccountRequest req
        *
        * 

    Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. * - *

    You can update only the `display_name` and `description` fields. + *

    You can update only the `display_name` field. * *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ServiceAccount request =
        *       ServiceAccount.newBuilder()
    @@ -659,13 +720,16 @@ public final ServiceAccount updateServiceAccount(ServiceAccount request) {
        *
        * 

    Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. * - *

    You can update only the `display_name` and `description` fields. + *

    You can update only the `display_name` field. * *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ServiceAccount request =
        *       ServiceAccount.newBuilder()
    @@ -697,8 +761,11 @@ public final UnaryCallable updateServiceAccountC
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   PatchServiceAccountRequest request =
        *       PatchServiceAccountRequest.newBuilder()
    @@ -723,8 +790,11 @@ public final ServiceAccount patchServiceAccount(PatchServiceAccountRequest reque
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   PatchServiceAccountRequest request =
        *       PatchServiceAccountRequest.newBuilder()
    @@ -763,8 +833,11 @@ public final ServiceAccount patchServiceAccount(PatchServiceAccountRequest reque
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   iAMClient.deleteServiceAccount(name);
    @@ -805,8 +878,11 @@ public final void deleteServiceAccount(ServiceAccountName name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
        *   iAMClient.deleteServiceAccount(name);
    @@ -845,8 +921,11 @@ public final void deleteServiceAccount(String name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   DeleteServiceAccountRequest request =
        *       DeleteServiceAccountRequest.newBuilder()
    @@ -883,8 +962,11 @@ public final void deleteServiceAccount(DeleteServiceAccountRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   DeleteServiceAccountRequest request =
        *       DeleteServiceAccountRequest.newBuilder()
    @@ -913,8 +995,11 @@ public final UnaryCallable deleteServiceAcco
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   UndeleteServiceAccountRequest request =
        *       UndeleteServiceAccountRequest.newBuilder().setName("name3373707").build();
    @@ -943,8 +1028,11 @@ public final UndeleteServiceAccountResponse undeleteServiceAccount(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   UndeleteServiceAccountRequest request =
        *       UndeleteServiceAccountRequest.newBuilder().setName("name3373707").build();
    @@ -974,8 +1062,11 @@ public final UndeleteServiceAccountResponse undeleteServiceAccount(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   EnableServiceAccountRequest request =
        *       EnableServiceAccountRequest.newBuilder().setName("name3373707").build();
    @@ -1004,8 +1095,11 @@ public final void enableServiceAccount(EnableServiceAccountRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   EnableServiceAccountRequest request =
        *       EnableServiceAccountRequest.newBuilder().setName("name3373707").build();
    @@ -1040,8 +1134,11 @@ public final UnaryCallable enableServiceAcco
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   DisableServiceAccountRequest request =
        *       DisableServiceAccountRequest.newBuilder().setName("name3373707").build();
    @@ -1077,8 +1174,11 @@ public final void disableServiceAccount(DisableServiceAccountRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   DisableServiceAccountRequest request =
        *       DisableServiceAccountRequest.newBuilder().setName("name3373707").build();
    @@ -1099,8 +1199,11 @@ public final UnaryCallable disableServiceAc
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   List keyTypes = new ArrayList<>();
    @@ -1133,8 +1236,11 @@ public final ListServiceAccountKeysResponse listServiceAccountKeys(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
        *   List keyTypes = new ArrayList<>();
    @@ -1164,8 +1270,11 @@ public final ListServiceAccountKeysResponse listServiceAccountKeys(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ListServiceAccountKeysRequest request =
        *       ListServiceAccountKeysRequest.newBuilder()
    @@ -1191,8 +1300,11 @@ public final ListServiceAccountKeysResponse listServiceAccountKeys(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ListServiceAccountKeysRequest request =
        *       ListServiceAccountKeysRequest.newBuilder()
    @@ -1218,8 +1330,11 @@ public final ListServiceAccountKeysResponse listServiceAccountKeys(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
        *   ServiceAccountPublicKeyType publicKeyType = ServiceAccountPublicKeyType.forNumber(0);
    @@ -1231,8 +1346,8 @@ public final ListServiceAccountKeysResponse listServiceAccountKeys(
        *     `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
        *     

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param publicKeyType The output format of the public key requested. X509_PEM is the default - * output format. + * @param publicKeyType Optional. The output format of the public key. The default is `TYPE_NONE`, + * which means that the public key is not returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceAccountKey getServiceAccountKey( @@ -1252,8 +1367,11 @@ public final ServiceAccountKey getServiceAccountKey( *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString();
        *   ServiceAccountPublicKeyType publicKeyType = ServiceAccountPublicKeyType.forNumber(0);
    @@ -1265,8 +1383,8 @@ public final ServiceAccountKey getServiceAccountKey(
        *     `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
        *     

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param publicKeyType The output format of the public key requested. X509_PEM is the default - * output format. + * @param publicKeyType Optional. The output format of the public key. The default is `TYPE_NONE`, + * which means that the public key is not returned. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ public final ServiceAccountKey getServiceAccountKey( @@ -1286,8 +1404,11 @@ public final ServiceAccountKey getServiceAccountKey( *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   GetServiceAccountKeyRequest request =
        *       GetServiceAccountKeyRequest.newBuilder()
    @@ -1312,8 +1433,11 @@ public final ServiceAccountKey getServiceAccountKey(GetServiceAccountKeyRequest
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   GetServiceAccountKeyRequest request =
        *       GetServiceAccountKeyRequest.newBuilder()
    @@ -1339,8 +1463,11 @@ public final ServiceAccountKey getServiceAccountKey(GetServiceAccountKeyRequest
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   ServiceAccountPrivateKeyType privateKeyType = ServiceAccountPrivateKeyType.forNumber(0);
    @@ -1380,8 +1507,11 @@ public final ServiceAccountKey createServiceAccountKey(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
        *   ServiceAccountPrivateKeyType privateKeyType = ServiceAccountPrivateKeyType.forNumber(0);
    @@ -1421,8 +1551,11 @@ public final ServiceAccountKey createServiceAccountKey(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   CreateServiceAccountKeyRequest request =
        *       CreateServiceAccountKeyRequest.newBuilder()
    @@ -1448,8 +1581,11 @@ public final ServiceAccountKey createServiceAccountKey(CreateServiceAccountKeyRe
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   CreateServiceAccountKeyRequest request =
        *       CreateServiceAccountKeyRequest.newBuilder()
    @@ -1471,14 +1607,20 @@ public final ServiceAccountKey createServiceAccountKey(CreateServiceAccountKeyRe
     
       // AUTO-GENERATED DOCUMENTATION AND METHOD.
       /**
    -   * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey], using a public key that
    -   * you provide.
    +   * Uploads the public key portion of a key pair that you manage, and associates the public key
    +   * with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    +   *
    +   * 

    After you upload the public key, you can use the private key from the key pair as a service + * account key. * *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   UploadServiceAccountKeyRequest request =
        *       UploadServiceAccountKeyRequest.newBuilder()
    @@ -1498,14 +1640,20 @@ public final ServiceAccountKey uploadServiceAccountKey(UploadServiceAccountKeyRe
     
       // AUTO-GENERATED DOCUMENTATION AND METHOD.
       /**
    -   * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey], using a public key that
    -   * you provide.
    +   * Uploads the public key portion of a key pair that you manage, and associates the public key
    +   * with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    +   *
    +   * 

    After you upload the public key, you can use the private key from the key pair as a service + * account key. * *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   UploadServiceAccountKeyRequest request =
        *       UploadServiceAccountKeyRequest.newBuilder()
    @@ -1533,8 +1681,11 @@ public final ServiceAccountKey uploadServiceAccountKey(UploadServiceAccountKeyRe
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
        *   iAMClient.deleteServiceAccountKey(name);
    @@ -1564,8 +1715,11 @@ public final void deleteServiceAccountKey(KeyName name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString();
        *   iAMClient.deleteServiceAccountKey(name);
    @@ -1593,8 +1747,11 @@ public final void deleteServiceAccountKey(String name) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   DeleteServiceAccountKeyRequest request =
        *       DeleteServiceAccountKeyRequest.newBuilder()
    @@ -1620,8 +1777,11 @@ public final void deleteServiceAccountKey(DeleteServiceAccountKeyRequest request
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   DeleteServiceAccountKeyRequest request =
        *       DeleteServiceAccountKeyRequest.newBuilder()
    @@ -1638,6 +1798,250 @@ public final void deleteServiceAccountKey(DeleteServiceAccountKeyRequest request
         return stub.deleteServiceAccountKeyCallable();
       }
     
    +  // AUTO-GENERATED DOCUMENTATION AND METHOD.
    +  /**
    +   * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service
    +   * account key can be re-enabled with
    +   * [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    +   *
    +   * 

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (IAMClient iAMClient = IAMClient.create()) {
    +   *   KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    +   *   iAMClient.disableServiceAccountKey(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name of the service account key in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void disableServiceAccountKey(KeyName name) { + DisableServiceAccountKeyRequest request = + DisableServiceAccountKeyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + disableServiceAccountKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service + * account key can be re-enabled with + * [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (IAMClient iAMClient = IAMClient.create()) {
    +   *   String name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString();
    +   *   iAMClient.disableServiceAccountKey(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name of the service account key in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void disableServiceAccountKey(String name) { + DisableServiceAccountKeyRequest request = + DisableServiceAccountKeyRequest.newBuilder().setName(name).build(); + disableServiceAccountKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service + * account key can be re-enabled with + * [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (IAMClient iAMClient = IAMClient.create()) {
    +   *   DisableServiceAccountKeyRequest request =
    +   *       DisableServiceAccountKeyRequest.newBuilder()
    +   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    +   *           .build();
    +   *   iAMClient.disableServiceAccountKey(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void disableServiceAccountKey(DisableServiceAccountKeyRequest request) { + disableServiceAccountKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service + * account key can be re-enabled with + * [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (IAMClient iAMClient = IAMClient.create()) {
    +   *   DisableServiceAccountKeyRequest request =
    +   *       DisableServiceAccountKeyRequest.newBuilder()
    +   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    +   *           .build();
    +   *   ApiFuture future = iAMClient.disableServiceAccountKeyCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + disableServiceAccountKeyCallable() { + return stub.disableServiceAccountKeyCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (IAMClient iAMClient = IAMClient.create()) {
    +   *   KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    +   *   iAMClient.enableServiceAccountKey(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name of the service account key in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void enableServiceAccountKey(KeyName name) { + EnableServiceAccountKeyRequest request = + EnableServiceAccountKeyRequest.newBuilder() + .setName(name == null ? null : name.toString()) + .build(); + enableServiceAccountKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (IAMClient iAMClient = IAMClient.create()) {
    +   *   String name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString();
    +   *   iAMClient.enableServiceAccountKey(name);
    +   * }
    +   * }
    + * + * @param name Required. The resource name of the service account key in the following format: + * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. + * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void enableServiceAccountKey(String name) { + EnableServiceAccountKeyRequest request = + EnableServiceAccountKeyRequest.newBuilder().setName(name).build(); + enableServiceAccountKey(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (IAMClient iAMClient = IAMClient.create()) {
    +   *   EnableServiceAccountKeyRequest request =
    +   *       EnableServiceAccountKeyRequest.newBuilder()
    +   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    +   *           .build();
    +   *   iAMClient.enableServiceAccountKey(request);
    +   * }
    +   * }
    + * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final void enableServiceAccountKey(EnableServiceAccountKeyRequest request) { + enableServiceAccountKeyCallable().call(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. + * + *

    Sample code: + * + *

    {@code
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    +   * try (IAMClient iAMClient = IAMClient.create()) {
    +   *   EnableServiceAccountKeyRequest request =
    +   *       EnableServiceAccountKeyRequest.newBuilder()
    +   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    +   *           .build();
    +   *   ApiFuture future = iAMClient.enableServiceAccountKeyCallable().futureCall(request);
    +   *   // Do something.
    +   *   future.get();
    +   * }
    +   * }
    + */ + public final UnaryCallable + enableServiceAccountKeyCallable() { + return stub.enableServiceAccountKeyCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * **Note:** This method is deprecated. Use the @@ -1652,8 +2056,11 @@ public final void deleteServiceAccountKey(DeleteServiceAccountKeyRequest request *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   ByteString bytesToSign = ByteString.EMPTY;
    @@ -1697,8 +2104,11 @@ public final SignBlobResponse signBlob(ServiceAccountName name, ByteString bytes
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
        *   ByteString bytesToSign = ByteString.EMPTY;
    @@ -1739,8 +2149,11 @@ public final SignBlobResponse signBlob(String name, ByteString bytesToSign) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   SignBlobRequest request =
        *       SignBlobRequest.newBuilder()
    @@ -1774,8 +2187,11 @@ public final SignBlobResponse signBlob(SignBlobRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   SignBlobRequest request =
        *       SignBlobRequest.newBuilder()
    @@ -1809,8 +2225,11 @@ public final UnaryCallable signBlobCallable()
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   String payload = "payload-786701938";
    @@ -1829,7 +2248,7 @@ public final UnaryCallable signBlobCallable()
        *     

    The JWT payload to sign. Must be a serialized JSON object that contains a JWT Claims * Set. For example: `{"sub": "user{@literal @}example.com", "iat": 313435}` *

    If the JWT Claims Set contains an expiration time (`exp`) claim, it must be an integer - * timestamp that is not in the past and no more than 1 hour in the future. + * timestamp that is not in the past and no more than 12 hours in the future. *

    If the JWT Claims Set does not contain an expiration time (`exp`) claim, this claim is * added automatically, with a timestamp that is 1 hour in the future. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1859,8 +2278,11 @@ public final SignJwtResponse signJwt(ServiceAccountName name, String payload) { *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
        *   String payload = "payload-786701938";
    @@ -1879,7 +2301,7 @@ public final SignJwtResponse signJwt(ServiceAccountName name, String payload) {
        *     

    The JWT payload to sign. Must be a serialized JSON object that contains a JWT Claims * Set. For example: `{"sub": "user{@literal @}example.com", "iat": 313435}` *

    If the JWT Claims Set contains an expiration time (`exp`) claim, it must be an integer - * timestamp that is not in the past and no more than 1 hour in the future. + * timestamp that is not in the past and no more than 12 hours in the future. *

    If the JWT Claims Set does not contain an expiration time (`exp`) claim, this claim is * added automatically, with a timestamp that is 1 hour in the future. * @throws com.google.api.gax.rpc.ApiException if the remote call fails @@ -1905,8 +2327,11 @@ public final SignJwtResponse signJwt(String name, String payload) { *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   SignJwtRequest request =
        *       SignJwtRequest.newBuilder()
    @@ -1940,8 +2365,11 @@ public final SignJwtResponse signJwt(SignJwtRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   SignJwtRequest request =
        *       SignJwtRequest.newBuilder()
    @@ -1964,7 +2392,7 @@ public final UnaryCallable signJwtCallable() {
       // AUTO-GENERATED DOCUMENTATION AND METHOD.
       /**
        * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -   * This IAM policy specifies which members have access to the service account.
    +   * This IAM policy specifies which principals have access to the service account.
        *
        * 

    This method does not tell you whether the service account has been granted any roles on * other resources. To check whether a service account has role grants on a resource, use the @@ -1976,8 +2404,11 @@ public final UnaryCallable signJwtCallable() { *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   Policy response = iAMClient.getIamPolicy(resource);
    @@ -1999,7 +2430,7 @@ public final Policy getIamPolicy(ResourceName resource) {
       // AUTO-GENERATED DOCUMENTATION AND METHOD.
       /**
        * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -   * This IAM policy specifies which members have access to the service account.
    +   * This IAM policy specifies which principals have access to the service account.
        *
        * 

    This method does not tell you whether the service account has been granted any roles on * other resources. To check whether a service account has role grants on a resource, use the @@ -2011,8 +2442,11 @@ public final Policy getIamPolicy(ResourceName resource) { *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String resource = ProjectName.of("[PROJECT]").toString();
        *   Policy response = iAMClient.getIamPolicy(resource);
    @@ -2031,7 +2465,7 @@ public final Policy getIamPolicy(String resource) {
       // AUTO-GENERATED DOCUMENTATION AND METHOD.
       /**
        * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -   * This IAM policy specifies which members have access to the service account.
    +   * This IAM policy specifies which principals have access to the service account.
        *
        * 

    This method does not tell you whether the service account has been granted any roles on * other resources. To check whether a service account has role grants on a resource, use the @@ -2043,8 +2477,11 @@ public final Policy getIamPolicy(String resource) { *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -2065,7 +2502,7 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) {
       // AUTO-GENERATED DOCUMENTATION AND METHOD.
       /**
        * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -   * This IAM policy specifies which members have access to the service account.
    +   * This IAM policy specifies which principals have access to the service account.
        *
        * 

    This method does not tell you whether the service account has been granted any roles on * other resources. To check whether a service account has role grants on a resource, use the @@ -2077,8 +2514,11 @@ public final Policy getIamPolicy(GetIamPolicyRequest request) { *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   GetIamPolicyRequest request =
        *       GetIamPolicyRequest.newBuilder()
    @@ -2100,7 +2540,7 @@ public final UnaryCallable getIamPolicyCallable() {
        * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
        *
        * 

    Use this method to grant or revoke access to the service account. For example, you could - * grant a member the ability to impersonate the service account. + * grant a principal the ability to impersonate the service account. * *

    This method does not enable the service account to access other resources. To grant roles to * a service account on a resource, follow these steps: @@ -2109,14 +2549,19 @@ public final UnaryCallable getIamPolicyCallable() { * policy so that it binds the service account to an IAM role for the resource. 3. Call the * resource's `setIamPolicy` method to update its IAM policy. * - *

    For detailed instructions, see [Granting roles to a service account for specific - * resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts). + *

    For detailed instructions, see [Manage access to project, folders, and + * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) + * or [Manage access to other + * resources](https://cloud.google.com/iam/help/access/manage-other-resources). * *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   Policy policy = Policy.newBuilder().build();
    @@ -2145,7 +2590,7 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) {
        * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
        *
        * 

    Use this method to grant or revoke access to the service account. For example, you could - * grant a member the ability to impersonate the service account. + * grant a principal the ability to impersonate the service account. * *

    This method does not enable the service account to access other resources. To grant roles to * a service account on a resource, follow these steps: @@ -2154,14 +2599,19 @@ public final Policy setIamPolicy(ResourceName resource, Policy policy) { * policy so that it binds the service account to an IAM role for the resource. 3. Call the * resource's `setIamPolicy` method to update its IAM policy. * - *

    For detailed instructions, see [Granting roles to a service account for specific - * resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts). + *

    For detailed instructions, see [Manage access to project, folders, and + * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) + * or [Manage access to other + * resources](https://cloud.google.com/iam/help/access/manage-other-resources). * *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String resource = ProjectName.of("[PROJECT]").toString();
        *   Policy policy = Policy.newBuilder().build();
    @@ -2187,7 +2637,7 @@ public final Policy setIamPolicy(String resource, Policy policy) {
        * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
        *
        * 

    Use this method to grant or revoke access to the service account. For example, you could - * grant a member the ability to impersonate the service account. + * grant a principal the ability to impersonate the service account. * *

    This method does not enable the service account to access other resources. To grant roles to * a service account on a resource, follow these steps: @@ -2196,14 +2646,19 @@ public final Policy setIamPolicy(String resource, Policy policy) { * policy so that it binds the service account to an IAM role for the resource. 3. Call the * resource's `setIamPolicy` method to update its IAM policy. * - *

    For detailed instructions, see [Granting roles to a service account for specific - * resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts). + *

    For detailed instructions, see [Manage access to project, folders, and + * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) + * or [Manage access to other + * resources](https://cloud.google.com/iam/help/access/manage-other-resources). * *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -2227,7 +2682,7 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) {
        * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
        *
        * 

    Use this method to grant or revoke access to the service account. For example, you could - * grant a member the ability to impersonate the service account. + * grant a principal the ability to impersonate the service account. * *

    This method does not enable the service account to access other resources. To grant roles to * a service account on a resource, follow these steps: @@ -2236,14 +2691,19 @@ public final Policy setIamPolicy(SetIamPolicyRequest request) { * policy so that it binds the service account to an IAM role for the resource. 3. Call the * resource's `setIamPolicy` method to update its IAM policy. * - *

    For detailed instructions, see [Granting roles to a service account for specific - * resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts). + *

    For detailed instructions, see [Manage access to project, folders, and + * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) + * or [Manage access to other + * resources](https://cloud.google.com/iam/help/access/manage-other-resources). * *

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   SetIamPolicyRequest request =
        *       SetIamPolicyRequest.newBuilder()
    @@ -2269,8 +2729,11 @@ public final UnaryCallable setIamPolicyCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
        *   List permissions = new ArrayList<>();
    @@ -2303,8 +2766,11 @@ public final TestIamPermissionsResponse testIamPermissions(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String resource = ProjectName.of("[PROJECT]").toString();
        *   List permissions = new ArrayList<>();
    @@ -2337,8 +2803,11 @@ public final TestIamPermissionsResponse testIamPermissions(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    @@ -2364,8 +2833,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   TestIamPermissionsRequest request =
        *       TestIamPermissionsRequest.newBuilder()
    @@ -2392,8 +2864,11 @@ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsReq
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   String fullResourceName = "fullResourceName-853732376";
        *   for (Role element : iAMClient.queryGrantableRoles(fullResourceName).iterateAll()) {
    @@ -2423,8 +2898,11 @@ public final QueryGrantableRolesPagedResponse queryGrantableRoles(String fullRes
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   QueryGrantableRolesRequest request =
        *       QueryGrantableRolesRequest.newBuilder()
    @@ -2455,8 +2933,11 @@ public final QueryGrantableRolesPagedResponse queryGrantableRoles(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   QueryGrantableRolesRequest request =
        *       QueryGrantableRolesRequest.newBuilder()
    @@ -2486,8 +2967,11 @@ public final QueryGrantableRolesPagedResponse queryGrantableRoles(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   QueryGrantableRolesRequest request =
        *       QueryGrantableRolesRequest.newBuilder()
    @@ -2525,8 +3009,11 @@ public final QueryGrantableRolesPagedResponse queryGrantableRoles(
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ListRolesRequest request =
        *       ListRolesRequest.newBuilder()
    @@ -2557,8 +3044,11 @@ public final ListRolesPagedResponse listRoles(ListRolesRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ListRolesRequest request =
        *       ListRolesRequest.newBuilder()
    @@ -2588,8 +3078,11 @@ public final UnaryCallable listRolesPa
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   ListRolesRequest request =
        *       ListRolesRequest.newBuilder()
    @@ -2625,8 +3118,11 @@ public final UnaryCallable listRolesCallabl
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   GetRoleRequest request =
        *       GetRoleRequest.newBuilder().setName("GetRoleRequest84528163".toString()).build();
    @@ -2648,8 +3144,11 @@ public final Role getRole(GetRoleRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   GetRoleRequest request =
        *       GetRoleRequest.newBuilder().setName("GetRoleRequest84528163".toString()).build();
    @@ -2670,8 +3169,11 @@ public final UnaryCallable getRoleCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   CreateRoleRequest request =
        *       CreateRoleRequest.newBuilder()
    @@ -2697,8 +3199,11 @@ public final Role createRole(CreateRoleRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   CreateRoleRequest request =
        *       CreateRoleRequest.newBuilder()
    @@ -2723,8 +3228,11 @@ public final UnaryCallable createRoleCallable() {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   UpdateRoleRequest request =
        *       UpdateRoleRequest.newBuilder()
    @@ -2750,8 +3258,11 @@ public final Role updateRole(UpdateRoleRequest request) {
        * 

    Sample code: * *

    {@code
    -   * // This snippet has been automatically generated for illustrative purposes only.
    -   * // It may require modifications to work in your environment.
    +   * // This snippet has been automatically generated and should be regarded as a code template only.
    +   * // It will require modifications to work:
    +   * // - It may require correct/in-range values for request initialization.
    +   * // - It may require specifying regional endpoints when creating the service client as shown in
    +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
        * try (IAMClient iAMClient = IAMClient.create()) {
        *   UpdateRoleRequest request =
        *       UpdateRoleRequest.newBuilder()
    @@ -2776,7 +3287,7 @@ public final UnaryCallable updateRoleCallable() {
        * 

    When you delete a custom role, the following changes occur immediately: * *

      - *
    • You cannot bind a member to the custom role in an IAM [Policy][google.iam.v1.Policy]. + *
    • You cannot bind a principal to the custom role in an IAM [Policy][google.iam.v1.Policy]. *
    • Existing bindings to the custom role are not changed, but they have no effect. *
    • By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not * include the custom role. @@ -2793,8 +3304,11 @@ public final UnaryCallable updateRoleCallable() { *

      Sample code: * *

      {@code
      -   * // This snippet has been automatically generated for illustrative purposes only.
      -   * // It may require modifications to work in your environment.
      +   * // This snippet has been automatically generated and should be regarded as a code template only.
      +   * // It will require modifications to work:
      +   * // - It may require correct/in-range values for request initialization.
      +   * // - It may require specifying regional endpoints when creating the service client as shown in
      +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          * try (IAMClient iAMClient = IAMClient.create()) {
          *   DeleteRoleRequest request =
          *       DeleteRoleRequest.newBuilder()
      @@ -2819,7 +3333,7 @@ public final Role deleteRole(DeleteRoleRequest request) {
          * 

      When you delete a custom role, the following changes occur immediately: * *

        - *
      • You cannot bind a member to the custom role in an IAM [Policy][google.iam.v1.Policy]. + *
      • You cannot bind a principal to the custom role in an IAM [Policy][google.iam.v1.Policy]. *
      • Existing bindings to the custom role are not changed, but they have no effect. *
      • By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not * include the custom role. @@ -2836,8 +3350,11 @@ public final Role deleteRole(DeleteRoleRequest request) { *

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   DeleteRoleRequest request =
            *       DeleteRoleRequest.newBuilder()
        @@ -2861,8 +3378,11 @@ public final UnaryCallable deleteRoleCallable() {
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   UndeleteRoleRequest request =
            *       UndeleteRoleRequest.newBuilder()
        @@ -2887,8 +3407,11 @@ public final Role undeleteRole(UndeleteRoleRequest request) {
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   UndeleteRoleRequest request =
            *       UndeleteRoleRequest.newBuilder()
        @@ -2908,13 +3431,16 @@ public final UnaryCallable undeleteRoleCallable() {
           // AUTO-GENERATED DOCUMENTATION AND METHOD.
           /**
            * Lists every permission that you can test on a resource. A permission is testable if you can
        -   * check whether a member has that permission on the resource.
        +   * check whether a principal has that permission on the resource.
            *
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   QueryTestablePermissionsRequest request =
            *       QueryTestablePermissionsRequest.newBuilder()
        @@ -2939,13 +3465,16 @@ public final QueryTestablePermissionsPagedResponse queryTestablePermissions(
           // AUTO-GENERATED DOCUMENTATION AND METHOD.
           /**
            * Lists every permission that you can test on a resource. A permission is testable if you can
        -   * check whether a member has that permission on the resource.
        +   * check whether a principal has that permission on the resource.
            *
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   QueryTestablePermissionsRequest request =
            *       QueryTestablePermissionsRequest.newBuilder()
        @@ -2970,13 +3499,16 @@ public final QueryTestablePermissionsPagedResponse queryTestablePermissions(
           // AUTO-GENERATED DOCUMENTATION AND METHOD.
           /**
            * Lists every permission that you can test on a resource. A permission is testable if you can
        -   * check whether a member has that permission on the resource.
        +   * check whether a principal has that permission on the resource.
            *
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   QueryTestablePermissionsRequest request =
            *       QueryTestablePermissionsRequest.newBuilder()
        @@ -3016,8 +3548,11 @@ public final QueryTestablePermissionsPagedResponse queryTestablePermissions(
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   QueryAuditableServicesRequest request =
            *       QueryAuditableServicesRequest.newBuilder()
        @@ -3046,8 +3581,11 @@ public final QueryAuditableServicesResponse queryAuditableServices(
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   QueryAuditableServicesRequest request =
            *       QueryAuditableServicesRequest.newBuilder()
        @@ -3077,8 +3615,11 @@ public final QueryAuditableServicesResponse queryAuditableServices(
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   LintPolicyRequest request =
            *       LintPolicyRequest.newBuilder().setFullResourceName("fullResourceName-853732376").build();
        @@ -3105,8 +3646,11 @@ public final LintPolicyResponse lintPolicy(LintPolicyRequest request) {
            * 

        Sample code: * *

        {@code
        -   * // This snippet has been automatically generated for illustrative purposes only.
        -   * // It may require modifications to work in your environment.
        +   * // This snippet has been automatically generated and should be regarded as a code template only.
        +   * // It will require modifications to work:
        +   * // - It may require correct/in-range values for request initialization.
        +   * // - It may require specifying regional endpoints when creating the service client as shown in
        +   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
            * try (IAMClient iAMClient = IAMClient.create()) {
            *   LintPolicyRequest request =
            *       LintPolicyRequest.newBuilder().setFullResourceName("fullResourceName-853732376").build();
        diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java
        index dce36f8841d7..9023882ad6aa 100644
        --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java
        +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java
        @@ -39,7 +39,9 @@
         import com.google.iam.admin.v1.DeleteRoleRequest;
         import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest;
         import com.google.iam.admin.v1.DeleteServiceAccountRequest;
        +import com.google.iam.admin.v1.DisableServiceAccountKeyRequest;
         import com.google.iam.admin.v1.DisableServiceAccountRequest;
        +import com.google.iam.admin.v1.EnableServiceAccountKeyRequest;
         import com.google.iam.admin.v1.EnableServiceAccountRequest;
         import com.google.iam.admin.v1.GetRoleRequest;
         import com.google.iam.admin.v1.GetServiceAccountKeyRequest;
        @@ -99,16 +101,16 @@
          * 

        For example, to set the total timeout of getServiceAccount to 30 seconds: * *

        {@code
        - * // This snippet has been automatically generated for illustrative purposes only.
        - * // It may require modifications to work in your environment.
        + * // This snippet has been automatically generated and should be regarded as a code template only.
        + * // It will require modifications to work:
        + * // - It may require correct/in-range values for request initialization.
        + * // - It may require specifying regional endpoints when creating the service client as shown in
        + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
          * IAMSettings.Builder iAMSettingsBuilder = IAMSettings.newBuilder();
          * iAMSettingsBuilder
          *     .getServiceAccountSettings()
          *     .setRetrySettings(
        - *         iAMSettingsBuilder
        - *             .getServiceAccountSettings()
        - *             .getRetrySettings()
        - *             .toBuilder()
        + *         iAMSettingsBuilder.getServiceAccountSettings().getRetrySettings().toBuilder()
          *             .setTotalTimeout(Duration.ofSeconds(30))
          *             .build());
          * IAMSettings iAMSettings = iAMSettingsBuilder.build();
        @@ -197,6 +199,18 @@ public UnaryCallSettings disableServiceAcco
             return ((IAMStubSettings) getStubSettings()).deleteServiceAccountKeySettings();
           }
         
        +  /** Returns the object with the settings used for calls to disableServiceAccountKey. */
        +  public UnaryCallSettings
        +      disableServiceAccountKeySettings() {
        +    return ((IAMStubSettings) getStubSettings()).disableServiceAccountKeySettings();
        +  }
        +
        +  /** Returns the object with the settings used for calls to enableServiceAccountKey. */
        +  public UnaryCallSettings
        +      enableServiceAccountKeySettings() {
        +    return ((IAMStubSettings) getStubSettings()).enableServiceAccountKeySettings();
        +  }
        +
           /**
            * Returns the object with the settings used for calls to signBlob.
            *
        @@ -474,6 +488,18 @@ public Builder applyToAllUnaryMethods(
               return getStubSettingsBuilder().deleteServiceAccountKeySettings();
             }
         
        +    /** Returns the builder for the settings used for calls to disableServiceAccountKey. */
        +    public UnaryCallSettings.Builder
        +        disableServiceAccountKeySettings() {
        +      return getStubSettingsBuilder().disableServiceAccountKeySettings();
        +    }
        +
        +    /** Returns the builder for the settings used for calls to enableServiceAccountKey. */
        +    public UnaryCallSettings.Builder
        +        enableServiceAccountKeySettings() {
        +      return getStubSettingsBuilder().enableServiceAccountKeySettings();
        +    }
        +
             /**
              * Returns the builder for the settings used for calls to signBlob.
              *
        diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/gapic_metadata.json b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/gapic_metadata.json
        index 83fe9cbfbd8c..b721693a4a72 100644
        --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/gapic_metadata.json
        +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/gapic_metadata.json
        @@ -31,9 +31,15 @@
                     "DisableServiceAccount": {
                       "methods": ["disableServiceAccount", "disableServiceAccountCallable"]
                     },
        +            "DisableServiceAccountKey": {
        +              "methods": ["disableServiceAccountKey", "disableServiceAccountKey", "disableServiceAccountKey", "disableServiceAccountKeyCallable"]
        +            },
                     "EnableServiceAccount": {
                       "methods": ["enableServiceAccount", "enableServiceAccountCallable"]
                     },
        +            "EnableServiceAccountKey": {
        +              "methods": ["enableServiceAccountKey", "enableServiceAccountKey", "enableServiceAccountKey", "enableServiceAccountKeyCallable"]
        +            },
                     "GetIamPolicy": {
                       "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"]
                     },
        diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/package-info.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/package-info.java
        index 338e04eb2ec3..579be0c0ed17 100644
        --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/package-info.java
        +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/package-info.java
        @@ -15,7 +15,9 @@
          */
         
         /**
        - * The interfaces provided are listed below, along with usage samples.
        + * A client to Identity and Access Management (IAM) API
        + *
        + * 

        The interfaces provided are listed below, along with usage samples. * *

        ======================= IAMClient ======================= * @@ -29,9 +31,9 @@ *

      • **Service account keys**, which service accounts use to authenticate with * Google APIs *
      • **IAM policies for service accounts**, which specify the roles that a - * member has for the service account + * principal has for the service account *
      • **IAM custom roles**, which help you limit the number of permissions that - * you grant to members + * you grant to principals *
      * *

      In addition, you can use this service to complete the following tasks, among others: @@ -42,11 +44,22 @@ *

    • Lint, or validate, condition expressions in an IAM policy *
    * + *

    When you read data from the IAM API, each read is eventually consistent. In other words, if + * you write data with the IAM API, then immediately read that data, the read operation might return + * an older version of the data. To deal with this behavior, your application can retry the request + * with truncated exponential backoff. + * + *

    In contrast, writing data to the IAM API is sequentially consistent. In other words, write + * operations are always processed in the order in which they were received. + * *

    Sample for IAMClient: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * try (IAMClient iAMClient = IAMClient.create()) {
      *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
      *   ServiceAccount response = iAMClient.getServiceAccount(name);
    diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMStub.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMStub.java
    index 8d4ca5eca3f3..bb92cc3149d0 100644
    --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMStub.java
    +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMStub.java
    @@ -34,7 +34,9 @@
     import com.google.iam.admin.v1.DeleteRoleRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountRequest;
    +import com.google.iam.admin.v1.DisableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DisableServiceAccountRequest;
    +import com.google.iam.admin.v1.EnableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.EnableServiceAccountRequest;
     import com.google.iam.admin.v1.GetRoleRequest;
     import com.google.iam.admin.v1.GetServiceAccountKeyRequest;
    @@ -233,6 +235,26 @@ public class GrpcIAMStub extends IAMStub {
                   .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
                   .build();
     
    +  private static final MethodDescriptor
    +      disableServiceAccountKeyMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.iam.admin.v1.IAM/DisableServiceAccountKey")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(DisableServiceAccountKeyRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
    +              .build();
    +
    +  private static final MethodDescriptor
    +      enableServiceAccountKeyMethodDescriptor =
    +          MethodDescriptor.newBuilder()
    +              .setType(MethodDescriptor.MethodType.UNARY)
    +              .setFullMethodName("google.iam.admin.v1.IAM/EnableServiceAccountKey")
    +              .setRequestMarshaller(
    +                  ProtoUtils.marshaller(EnableServiceAccountKeyRequest.getDefaultInstance()))
    +              .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance()))
    +              .build();
    +
       private static final MethodDescriptor
           signBlobMethodDescriptor =
               MethodDescriptor.newBuilder()
    @@ -397,6 +419,10 @@ public class GrpcIAMStub extends IAMStub {
           uploadServiceAccountKeyCallable;
       private final UnaryCallable
           deleteServiceAccountKeyCallable;
    +  private final UnaryCallable
    +      disableServiceAccountKeyCallable;
    +  private final UnaryCallable
    +      enableServiceAccountKeyCallable;
       private final UnaryCallable signBlobCallable;
       private final UnaryCallable signJwtCallable;
       private final UnaryCallable getIamPolicyCallable;
    @@ -613,6 +639,28 @@ protected GrpcIAMStub(
                           return params.build();
                         })
                     .build();
    +    GrpcCallSettings
    +        disableServiceAccountKeyTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(disableServiceAccountKeyMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      ImmutableMap.Builder params = ImmutableMap.builder();
    +                      params.put("name", String.valueOf(request.getName()));
    +                      return params.build();
    +                    })
    +                .build();
    +    GrpcCallSettings
    +        enableServiceAccountKeyTransportSettings =
    +            GrpcCallSettings.newBuilder()
    +                .setMethodDescriptor(enableServiceAccountKeyMethodDescriptor)
    +                .setParamsExtractor(
    +                    request -> {
    +                      ImmutableMap.Builder params = ImmutableMap.builder();
    +                      params.put("name", String.valueOf(request.getName()));
    +                      return params.build();
    +                    })
    +                .build();
         GrpcCallSettings signBlobTransportSettings =
             GrpcCallSettings.newBuilder()
                 .setMethodDescriptor(signBlobMethodDescriptor)
    @@ -821,6 +869,16 @@ protected GrpcIAMStub(
                 deleteServiceAccountKeyTransportSettings,
                 settings.deleteServiceAccountKeySettings(),
                 clientContext);
    +    this.disableServiceAccountKeyCallable =
    +        callableFactory.createUnaryCallable(
    +            disableServiceAccountKeyTransportSettings,
    +            settings.disableServiceAccountKeySettings(),
    +            clientContext);
    +    this.enableServiceAccountKeyCallable =
    +        callableFactory.createUnaryCallable(
    +            enableServiceAccountKeyTransportSettings,
    +            settings.enableServiceAccountKeySettings(),
    +            clientContext);
         this.signBlobCallable =
             callableFactory.createUnaryCallable(
                 signBlobTransportSettings, settings.signBlobSettings(), clientContext);
    @@ -978,6 +1036,16 @@ public UnaryCallable deleteServiceAccount
         return deleteServiceAccountKeyCallable;
       }
     
    +  @Override
    +  public UnaryCallable disableServiceAccountKeyCallable() {
    +    return disableServiceAccountKeyCallable;
    +  }
    +
    +  @Override
    +  public UnaryCallable enableServiceAccountKeyCallable() {
    +    return enableServiceAccountKeyCallable;
    +  }
    +
       @Override
       public UnaryCallable signBlobCallable() {
         return signBlobCallable;
    diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStub.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStub.java
    index d010ff76855d..32e94da43e72 100644
    --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStub.java
    +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStub.java
    @@ -29,7 +29,9 @@
     import com.google.iam.admin.v1.DeleteRoleRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountRequest;
    +import com.google.iam.admin.v1.DisableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DisableServiceAccountRequest;
    +import com.google.iam.admin.v1.EnableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.EnableServiceAccountRequest;
     import com.google.iam.admin.v1.GetRoleRequest;
     import com.google.iam.admin.v1.GetServiceAccountKeyRequest;
    @@ -145,6 +147,14 @@ public UnaryCallable deleteServiceAccount
         throw new UnsupportedOperationException("Not implemented: deleteServiceAccountKeyCallable()");
       }
     
    +  public UnaryCallable disableServiceAccountKeyCallable() {
    +    throw new UnsupportedOperationException("Not implemented: disableServiceAccountKeyCallable()");
    +  }
    +
    +  public UnaryCallable enableServiceAccountKeyCallable() {
    +    throw new UnsupportedOperationException("Not implemented: enableServiceAccountKeyCallable()");
    +  }
    +
       @Deprecated
       public UnaryCallable signBlobCallable() {
         throw new UnsupportedOperationException("Not implemented: signBlobCallable()");
    diff --git a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java
    index 786c03120fff..bfb79c3cbcb1 100644
    --- a/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java
    +++ b/java-iam-admin/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java
    @@ -53,7 +53,9 @@
     import com.google.iam.admin.v1.DeleteRoleRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountRequest;
    +import com.google.iam.admin.v1.DisableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DisableServiceAccountRequest;
    +import com.google.iam.admin.v1.EnableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.EnableServiceAccountRequest;
     import com.google.iam.admin.v1.GetRoleRequest;
     import com.google.iam.admin.v1.GetServiceAccountKeyRequest;
    @@ -115,16 +117,16 @@
      * 

    For example, to set the total timeout of getServiceAccount to 30 seconds: * *

    {@code
    - * // This snippet has been automatically generated for illustrative purposes only.
    - * // It may require modifications to work in your environment.
    + * // This snippet has been automatically generated and should be regarded as a code template only.
    + * // It will require modifications to work:
    + * // - It may require correct/in-range values for request initialization.
    + * // - It may require specifying regional endpoints when creating the service client as shown in
    + * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
      * IAMStubSettings.Builder iAMSettingsBuilder = IAMStubSettings.newBuilder();
      * iAMSettingsBuilder
      *     .getServiceAccountSettings()
      *     .setRetrySettings(
    - *         iAMSettingsBuilder
    - *             .getServiceAccountSettings()
    - *             .getRetrySettings()
    - *             .toBuilder()
    + *         iAMSettingsBuilder.getServiceAccountSettings().getRetrySettings().toBuilder()
      *             .setTotalTimeout(Duration.ofSeconds(30))
      *             .build());
      * IAMStubSettings iAMSettings = iAMSettingsBuilder.build();
    @@ -162,6 +164,10 @@ public class IAMStubSettings extends StubSettings {
           uploadServiceAccountKeySettings;
       private final UnaryCallSettings
           deleteServiceAccountKeySettings;
    +  private final UnaryCallSettings
    +      disableServiceAccountKeySettings;
    +  private final UnaryCallSettings
    +      enableServiceAccountKeySettings;
       private final UnaryCallSettings signBlobSettings;
       private final UnaryCallSettings signJwtSettings;
       private final UnaryCallSettings getIamPolicySettings;
    @@ -510,6 +516,18 @@ public UnaryCallSettings disableServiceAcco
         return deleteServiceAccountKeySettings;
       }
     
    +  /** Returns the object with the settings used for calls to disableServiceAccountKey. */
    +  public UnaryCallSettings
    +      disableServiceAccountKeySettings() {
    +    return disableServiceAccountKeySettings;
    +  }
    +
    +  /** Returns the object with the settings used for calls to enableServiceAccountKey. */
    +  public UnaryCallSettings
    +      enableServiceAccountKeySettings() {
    +    return enableServiceAccountKeySettings;
    +  }
    +
       /**
        * Returns the object with the settings used for calls to signBlob.
        *
    @@ -692,6 +710,8 @@ protected IAMStubSettings(Builder settingsBuilder) throws IOException {
         createServiceAccountKeySettings = settingsBuilder.createServiceAccountKeySettings().build();
         uploadServiceAccountKeySettings = settingsBuilder.uploadServiceAccountKeySettings().build();
         deleteServiceAccountKeySettings = settingsBuilder.deleteServiceAccountKeySettings().build();
    +    disableServiceAccountKeySettings = settingsBuilder.disableServiceAccountKeySettings().build();
    +    enableServiceAccountKeySettings = settingsBuilder.enableServiceAccountKeySettings().build();
         signBlobSettings = settingsBuilder.signBlobSettings().build();
         signJwtSettings = settingsBuilder.signJwtSettings().build();
         getIamPolicySettings = settingsBuilder.getIamPolicySettings().build();
    @@ -745,6 +765,10 @@ public static class Builder extends StubSettings.Builder
             deleteServiceAccountKeySettings;
    +    private final UnaryCallSettings.Builder
    +        disableServiceAccountKeySettings;
    +    private final UnaryCallSettings.Builder
    +        enableServiceAccountKeySettings;
         private final UnaryCallSettings.Builder signBlobSettings;
         private final UnaryCallSettings.Builder signJwtSettings;
         private final UnaryCallSettings.Builder getIamPolicySettings;
    @@ -842,6 +866,8 @@ protected Builder(ClientContext clientContext) {
           createServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           uploadServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           deleteServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      disableServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    +      enableServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           signBlobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           signJwtSettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
           getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder();
    @@ -876,6 +902,8 @@ protected Builder(ClientContext clientContext) {
                   createServiceAccountKeySettings,
                   uploadServiceAccountKeySettings,
                   deleteServiceAccountKeySettings,
    +              disableServiceAccountKeySettings,
    +              enableServiceAccountKeySettings,
                   signBlobSettings,
                   signJwtSettings,
                   getIamPolicySettings,
    @@ -911,6 +939,8 @@ protected Builder(IAMStubSettings settings) {
           createServiceAccountKeySettings = settings.createServiceAccountKeySettings.toBuilder();
           uploadServiceAccountKeySettings = settings.uploadServiceAccountKeySettings.toBuilder();
           deleteServiceAccountKeySettings = settings.deleteServiceAccountKeySettings.toBuilder();
    +      disableServiceAccountKeySettings = settings.disableServiceAccountKeySettings.toBuilder();
    +      enableServiceAccountKeySettings = settings.enableServiceAccountKeySettings.toBuilder();
           signBlobSettings = settings.signBlobSettings.toBuilder();
           signJwtSettings = settings.signJwtSettings.toBuilder();
           getIamPolicySettings = settings.getIamPolicySettings.toBuilder();
    @@ -943,6 +973,8 @@ protected Builder(IAMStubSettings settings) {
                   createServiceAccountKeySettings,
                   uploadServiceAccountKeySettings,
                   deleteServiceAccountKeySettings,
    +              disableServiceAccountKeySettings,
    +              enableServiceAccountKeySettings,
                   signBlobSettings,
                   signJwtSettings,
                   getIamPolicySettings,
    @@ -1044,6 +1076,16 @@ private static Builder initDefaults(Builder builder) {
               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes"))
               .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params"));
     
    +      builder
    +          .disableServiceAccountKeySettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
    +
    +      builder
    +          .enableServiceAccountKeySettings()
    +          .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes"))
    +          .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params"));
    +
           builder
               .signBlobSettings()
               .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes"))
    @@ -1224,6 +1266,18 @@ public Builder applyToAllUnaryMethods(
           return deleteServiceAccountKeySettings;
         }
     
    +    /** Returns the builder for the settings used for calls to disableServiceAccountKey. */
    +    public UnaryCallSettings.Builder
    +        disableServiceAccountKeySettings() {
    +      return disableServiceAccountKeySettings;
    +    }
    +
    +    /** Returns the builder for the settings used for calls to enableServiceAccountKey. */
    +    public UnaryCallSettings.Builder
    +        enableServiceAccountKeySettings() {
    +      return enableServiceAccountKeySettings;
    +    }
    +
         /**
          * Returns the builder for the settings used for calls to signBlob.
          *
    diff --git a/java-iam-admin/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/IAMClientTest.java b/java-iam-admin/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/IAMClientTest.java
    index 5e2ef9c869fd..b7f5f0d4f58f 100644
    --- a/java-iam-admin/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/IAMClientTest.java
    +++ b/java-iam-admin/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/IAMClientTest.java
    @@ -36,7 +36,9 @@
     import com.google.iam.admin.v1.DeleteRoleRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountRequest;
    +import com.google.iam.admin.v1.DisableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DisableServiceAccountRequest;
    +import com.google.iam.admin.v1.EnableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.EnableServiceAccountRequest;
     import com.google.iam.admin.v1.GetRoleRequest;
     import com.google.iam.admin.v1.GetServiceAccountKeyRequest;
    @@ -840,6 +842,7 @@ public void getServiceAccountKeyTest() throws Exception {
                 .setValidAfterTime(Timestamp.newBuilder().build())
                 .setValidBeforeTime(Timestamp.newBuilder().build())
                 .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0))
    +            .setDisabled(true)
                 .build();
         mockIAM.addResponse(expectedResponse);
     
    @@ -889,6 +892,7 @@ public void getServiceAccountKeyTest2() throws Exception {
                 .setValidAfterTime(Timestamp.newBuilder().build())
                 .setValidBeforeTime(Timestamp.newBuilder().build())
                 .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0))
    +            .setDisabled(true)
                 .build();
         mockIAM.addResponse(expectedResponse);
     
    @@ -938,6 +942,7 @@ public void createServiceAccountKeyTest() throws Exception {
                 .setValidAfterTime(Timestamp.newBuilder().build())
                 .setValidBeforeTime(Timestamp.newBuilder().build())
                 .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0))
    +            .setDisabled(true)
                 .build();
         mockIAM.addResponse(expectedResponse);
     
    @@ -991,6 +996,7 @@ public void createServiceAccountKeyTest2() throws Exception {
                 .setValidAfterTime(Timestamp.newBuilder().build())
                 .setValidBeforeTime(Timestamp.newBuilder().build())
                 .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0))
    +            .setDisabled(true)
                 .build();
         mockIAM.addResponse(expectedResponse);
     
    @@ -1044,6 +1050,7 @@ public void uploadServiceAccountKeyTest() throws Exception {
                 .setValidAfterTime(Timestamp.newBuilder().build())
                 .setValidBeforeTime(Timestamp.newBuilder().build())
                 .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0))
    +            .setDisabled(true)
                 .build();
         mockIAM.addResponse(expectedResponse);
     
    @@ -1157,6 +1164,146 @@ public void deleteServiceAccountKeyExceptionTest2() throws Exception {
         }
       }
     
    +  @Test
    +  public void disableServiceAccountKeyTest() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    mockIAM.addResponse(expectedResponse);
    +
    +    KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    +
    +    client.disableServiceAccountKey(name);
    +
    +    List actualRequests = mockIAM.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DisableServiceAccountKeyRequest actualRequest =
    +        ((DisableServiceAccountKeyRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void disableServiceAccountKeyExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockIAM.addException(exception);
    +
    +    try {
    +      KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    +      client.disableServiceAccountKey(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void disableServiceAccountKeyTest2() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    mockIAM.addResponse(expectedResponse);
    +
    +    String name = "name3373707";
    +
    +    client.disableServiceAccountKey(name);
    +
    +    List actualRequests = mockIAM.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    DisableServiceAccountKeyRequest actualRequest =
    +        ((DisableServiceAccountKeyRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void disableServiceAccountKeyExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockIAM.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.disableServiceAccountKey(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void enableServiceAccountKeyTest() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    mockIAM.addResponse(expectedResponse);
    +
    +    KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    +
    +    client.enableServiceAccountKey(name);
    +
    +    List actualRequests = mockIAM.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    EnableServiceAccountKeyRequest actualRequest =
    +        ((EnableServiceAccountKeyRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name.toString(), actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void enableServiceAccountKeyExceptionTest() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockIAM.addException(exception);
    +
    +    try {
    +      KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    +      client.enableServiceAccountKey(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
    +  @Test
    +  public void enableServiceAccountKeyTest2() throws Exception {
    +    Empty expectedResponse = Empty.newBuilder().build();
    +    mockIAM.addResponse(expectedResponse);
    +
    +    String name = "name3373707";
    +
    +    client.enableServiceAccountKey(name);
    +
    +    List actualRequests = mockIAM.getRequests();
    +    Assert.assertEquals(1, actualRequests.size());
    +    EnableServiceAccountKeyRequest actualRequest =
    +        ((EnableServiceAccountKeyRequest) actualRequests.get(0));
    +
    +    Assert.assertEquals(name, actualRequest.getName());
    +    Assert.assertTrue(
    +        channelProvider.isHeaderSent(
    +            ApiClientHeaderProvider.getDefaultApiClientHeaderKey(),
    +            GaxGrpcProperties.getDefaultApiClientHeaderPattern()));
    +  }
    +
    +  @Test
    +  public void enableServiceAccountKeyExceptionTest2() throws Exception {
    +    StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT);
    +    mockIAM.addException(exception);
    +
    +    try {
    +      String name = "name3373707";
    +      client.enableServiceAccountKey(name);
    +      Assert.fail("No exception raised");
    +    } catch (InvalidArgumentException e) {
    +      // Expected exception.
    +    }
    +  }
    +
       @Test
       public void signBlobTest() throws Exception {
         SignBlobResponse expectedResponse =
    diff --git a/java-iam-admin/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAMImpl.java b/java-iam-admin/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAMImpl.java
    index 41377d1408b3..5cf0bc5ee6e9 100644
    --- a/java-iam-admin/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAMImpl.java
    +++ b/java-iam-admin/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAMImpl.java
    @@ -23,7 +23,9 @@
     import com.google.iam.admin.v1.DeleteRoleRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DeleteServiceAccountRequest;
    +import com.google.iam.admin.v1.DisableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.DisableServiceAccountRequest;
    +import com.google.iam.admin.v1.EnableServiceAccountKeyRequest;
     import com.google.iam.admin.v1.EnableServiceAccountRequest;
     import com.google.iam.admin.v1.GetRoleRequest;
     import com.google.iam.admin.v1.GetServiceAccountKeyRequest;
    @@ -399,6 +401,48 @@ public void deleteServiceAccountKey(
         }
       }
     
    +  @Override
    +  public void disableServiceAccountKey(
    +      DisableServiceAccountKeyRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof Empty) {
    +      requests.add(request);
    +      responseObserver.onNext(((Empty) response));
    +      responseObserver.onCompleted();
    +    } else if (response instanceof Exception) {
    +      responseObserver.onError(((Exception) response));
    +    } else {
    +      responseObserver.onError(
    +          new IllegalArgumentException(
    +              String.format(
    +                  "Unrecognized response type %s for method DisableServiceAccountKey, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Empty.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
    +  @Override
    +  public void enableServiceAccountKey(
    +      EnableServiceAccountKeyRequest request, StreamObserver responseObserver) {
    +    Object response = responses.poll();
    +    if (response instanceof Empty) {
    +      requests.add(request);
    +      responseObserver.onNext(((Empty) response));
    +      responseObserver.onCompleted();
    +    } else if (response instanceof Exception) {
    +      responseObserver.onError(((Exception) response));
    +    } else {
    +      responseObserver.onError(
    +          new IllegalArgumentException(
    +              String.format(
    +                  "Unrecognized response type %s for method EnableServiceAccountKey, expected %s or %s",
    +                  response == null ? "null" : response.getClass().getName(),
    +                  Empty.class.getName(),
    +                  Exception.class.getName())));
    +    }
    +  }
    +
       @Override
       public void signBlob(SignBlobRequest request, StreamObserver responseObserver) {
         Object response = responses.poll();
    diff --git a/java-iam-admin/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java b/java-iam-admin/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java
    index 8a34ea11a0da..61f5d423f1a3 100644
    --- a/java-iam-admin/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java
    +++ b/java-iam-admin/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java
    @@ -28,14 +28,22 @@
      * * **Service account keys**, which service accounts use to authenticate with
      *   Google APIs
      * * **IAM policies for service accounts**, which specify the roles that a
    - *   member has for the service account
    + *   principal has for the service account
      * * **IAM custom roles**, which help you limit the number of permissions that
    - *   you grant to members
    + *   you grant to principals
      * In addition, you can use this service to complete the following tasks, among
      * others:
      * * Test whether a service account can use specific permissions
      * * Check which roles you can grant for a specific resource
      * * Lint, or validate, condition expressions in an IAM policy
    + * When you read data from the IAM API, each read is eventually consistent. In
    + * other words, if you write data with the IAM API, then immediately read that
    + * data, the read operation might return an older version of the data. To deal
    + * with this behavior, your application can retry the request with truncated
    + * exponential backoff.
    + * In contrast, writing data to the IAM API is sequentially consistent. In other
    + * words, write operations are always processed in the order in which they were
    + * received.
      * 
    */ @javax.annotation.Generated( @@ -682,6 +690,95 @@ private IAMGrpc() {} return getDeleteServiceAccountKeyMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.iam.admin.v1.DisableServiceAccountKeyRequest, com.google.protobuf.Empty> + getDisableServiceAccountKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "DisableServiceAccountKey", + requestType = com.google.iam.admin.v1.DisableServiceAccountKeyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.admin.v1.DisableServiceAccountKeyRequest, com.google.protobuf.Empty> + getDisableServiceAccountKeyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.admin.v1.DisableServiceAccountKeyRequest, com.google.protobuf.Empty> + getDisableServiceAccountKeyMethod; + if ((getDisableServiceAccountKeyMethod = IAMGrpc.getDisableServiceAccountKeyMethod) == null) { + synchronized (IAMGrpc.class) { + if ((getDisableServiceAccountKeyMethod = IAMGrpc.getDisableServiceAccountKeyMethod) + == null) { + IAMGrpc.getDisableServiceAccountKeyMethod = + getDisableServiceAccountKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "DisableServiceAccountKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.admin.v1.DisableServiceAccountKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new IAMMethodDescriptorSupplier("DisableServiceAccountKey")) + .build(); + } + } + } + return getDisableServiceAccountKeyMethod; + } + + private static volatile io.grpc.MethodDescriptor< + com.google.iam.admin.v1.EnableServiceAccountKeyRequest, com.google.protobuf.Empty> + getEnableServiceAccountKeyMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "EnableServiceAccountKey", + requestType = com.google.iam.admin.v1.EnableServiceAccountKeyRequest.class, + responseType = com.google.protobuf.Empty.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.iam.admin.v1.EnableServiceAccountKeyRequest, com.google.protobuf.Empty> + getEnableServiceAccountKeyMethod() { + io.grpc.MethodDescriptor< + com.google.iam.admin.v1.EnableServiceAccountKeyRequest, com.google.protobuf.Empty> + getEnableServiceAccountKeyMethod; + if ((getEnableServiceAccountKeyMethod = IAMGrpc.getEnableServiceAccountKeyMethod) == null) { + synchronized (IAMGrpc.class) { + if ((getEnableServiceAccountKeyMethod = IAMGrpc.getEnableServiceAccountKeyMethod) == null) { + IAMGrpc.getEnableServiceAccountKeyMethod = + getEnableServiceAccountKeyMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName( + generateFullMethodName(SERVICE_NAME, "EnableServiceAccountKey")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.iam.admin.v1.EnableServiceAccountKeyRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.protobuf.Empty.getDefaultInstance())) + .setSchemaDescriptor( + new IAMMethodDescriptorSupplier("EnableServiceAccountKey")) + .build(); + } + } + } + return getEnableServiceAccountKeyMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.iam.admin.v1.SignBlobRequest, com.google.iam.admin.v1.SignBlobResponse> getSignBlobMethod; @@ -1356,14 +1453,22 @@ public IAMFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOp * * **Service account keys**, which service accounts use to authenticate with * Google APIs * * **IAM policies for service accounts**, which specify the roles that a - * member has for the service account + * principal has for the service account * * **IAM custom roles**, which help you limit the number of permissions that - * you grant to members + * you grant to principals * In addition, you can use this service to complete the following tasks, among * others: * * Test whether a service account can use specific permissions * * Check which roles you can grant for a specific resource * * Lint, or validate, condition expressions in an IAM policy + * When you read data from the IAM API, each read is eventually consistent. In + * other words, if you write data with the IAM API, then immediately read that + * data, the read operation might return an older version of the data. To deal + * with this behavior, your application can retry the request with truncated + * exponential backoff. + * In contrast, writing data to the IAM API is sequentially consistent. In other + * words, write operations are always processed in the order in which they were + * received. *
    */ public abstract static class IAMImplBase implements io.grpc.BindableService { @@ -1418,7 +1523,7 @@ public void createServiceAccount( * **Note:** We are in the process of deprecating this method. Use * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead. * Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * You can update only the `display_name` and `description` fields. + * You can update only the `display_name` field. *
    */ public void updateServiceAccount( @@ -1579,7 +1684,10 @@ public void createServiceAccountKey( * * *
    -     * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey], using a public key that you provide.
    +     * Uploads the public key portion of a key pair that you manage, and
    +     * associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    +     * After you upload the public key, you can use the private key from the key
    +     * pair as a service account key.
          * 
    */ public void uploadServiceAccountKey( @@ -1605,6 +1713,35 @@ public void deleteServiceAccountKey( getDeleteServiceAccountKeyMethod(), responseObserver); } + /** + * + * + *
    +     * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be
    +     * re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    +     * 
    + */ + public void disableServiceAccountKey( + com.google.iam.admin.v1.DisableServiceAccountKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getDisableServiceAccountKeyMethod(), responseObserver); + } + + /** + * + * + *
    +     * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    +     * 
    + */ + public void enableServiceAccountKey( + com.google.iam.admin.v1.EnableServiceAccountKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getEnableServiceAccountKeyMethod(), responseObserver); + } + /** * * @@ -1651,7 +1788,7 @@ public void signJwt( * *
          * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM
    -     * policy specifies which members have access to the service account.
    +     * policy specifies which principals have access to the service account.
          * This method does not tell you whether the service account has been granted
          * any roles on other resources. To check whether a service account has role
          * grants on a resource, use the `getIamPolicy` method for that resource. For
    @@ -1674,7 +1811,7 @@ public void getIamPolicy(
          * 
          * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
          * Use this method to grant or revoke access to the service account. For
    -     * example, you could grant a member the ability to impersonate the service
    +     * example, you could grant a principal the ability to impersonate the service
          * account.
          * This method does not enable the service account to access other resources.
          * To grant roles to a service account on a resource, follow these steps:
    @@ -1683,8 +1820,10 @@ public void getIamPolicy(
          * the resource.
          * 3. Call the resource's `setIamPolicy` method to update its IAM policy.
          * For detailed instructions, see
    -     * [Granting roles to a service account for specific
    -     * resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts).
    +     * [Manage access to project, folders, and
    +     * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts)
    +     * or [Manage access to other
    +     * resources](https://cloud.google.com/iam/help/access/manage-other-resources).
          * 
    */ public void setIamPolicy( @@ -1786,7 +1925,7 @@ public void updateRole( *
          * Deletes a custom [Role][google.iam.admin.v1.Role].
          * When you delete a custom role, the following changes occur immediately:
    -     * * You cannot bind a member to the custom role in an IAM
    +     * * You cannot bind a principal to the custom role in an IAM
          * [Policy][google.iam.v1.Policy].
          * * Existing bindings to the custom role are not changed, but they have no
          * effect.
    @@ -1824,7 +1963,7 @@ public void undeleteRole(
          *
          * 
          * Lists every permission that you can test on a resource. A permission is
    -     * testable if you can check whether a member has that permission on the
    +     * testable if you can check whether a principal has that permission on the
          * resource.
          * 
    */ @@ -1967,6 +2106,18 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.iam.admin.v1.DeleteServiceAccountKeyRequest, com.google.protobuf.Empty>(this, METHODID_DELETE_SERVICE_ACCOUNT_KEY))) + .addMethod( + getDisableServiceAccountKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.admin.v1.DisableServiceAccountKeyRequest, + com.google.protobuf.Empty>(this, METHODID_DISABLE_SERVICE_ACCOUNT_KEY))) + .addMethod( + getEnableServiceAccountKeyMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.iam.admin.v1.EnableServiceAccountKeyRequest, + com.google.protobuf.Empty>(this, METHODID_ENABLE_SERVICE_ACCOUNT_KEY))) .addMethod( getSignBlobMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -2076,14 +2227,22 @@ public final io.grpc.ServerServiceDefinition bindService() { * * **Service account keys**, which service accounts use to authenticate with * Google APIs * * **IAM policies for service accounts**, which specify the roles that a - * member has for the service account + * principal has for the service account * * **IAM custom roles**, which help you limit the number of permissions that - * you grant to members + * you grant to principals * In addition, you can use this service to complete the following tasks, among * others: * * Test whether a service account can use specific permissions * * Check which roles you can grant for a specific resource * * Lint, or validate, condition expressions in an IAM policy + * When you read data from the IAM API, each read is eventually consistent. In + * other words, if you write data with the IAM API, then immediately read that + * data, the read operation might return an older version of the data. To deal + * with this behavior, your application can retry the request with truncated + * exponential backoff. + * In contrast, writing data to the IAM API is sequentially consistent. In other + * words, write operations are always processed in the order in which they were + * received. *
    */ public static final class IAMStub extends io.grpc.stub.AbstractAsyncStub { @@ -2152,7 +2311,7 @@ public void createServiceAccount( * **Note:** We are in the process of deprecating this method. Use * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead. * Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * You can update only the `display_name` and `description` fields. + * You can update only the `display_name` field. *
    */ public void updateServiceAccount( @@ -2331,7 +2490,10 @@ public void createServiceAccountKey( * * *
    -     * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey], using a public key that you provide.
    +     * Uploads the public key portion of a key pair that you manage, and
    +     * associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    +     * After you upload the public key, you can use the private key from the key
    +     * pair as a service account key.
          * 
    */ public void uploadServiceAccountKey( @@ -2361,6 +2523,39 @@ public void deleteServiceAccountKey( responseObserver); } + /** + * + * + *
    +     * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be
    +     * re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    +     * 
    + */ + public void disableServiceAccountKey( + com.google.iam.admin.v1.DisableServiceAccountKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getDisableServiceAccountKeyMethod(), getCallOptions()), + request, + responseObserver); + } + + /** + * + * + *
    +     * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    +     * 
    + */ + public void enableServiceAccountKey( + com.google.iam.admin.v1.EnableServiceAccountKeyRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getEnableServiceAccountKeyMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2409,7 +2604,7 @@ public void signJwt( * *
          * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM
    -     * policy specifies which members have access to the service account.
    +     * policy specifies which principals have access to the service account.
          * This method does not tell you whether the service account has been granted
          * any roles on other resources. To check whether a service account has role
          * grants on a resource, use the `getIamPolicy` method for that resource. For
    @@ -2434,7 +2629,7 @@ public void getIamPolicy(
          * 
          * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
          * Use this method to grant or revoke access to the service account. For
    -     * example, you could grant a member the ability to impersonate the service
    +     * example, you could grant a principal the ability to impersonate the service
          * account.
          * This method does not enable the service account to access other resources.
          * To grant roles to a service account on a resource, follow these steps:
    @@ -2443,8 +2638,10 @@ public void getIamPolicy(
          * the resource.
          * 3. Call the resource's `setIamPolicy` method to update its IAM policy.
          * For detailed instructions, see
    -     * [Granting roles to a service account for specific
    -     * resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts).
    +     * [Manage access to project, folders, and
    +     * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts)
    +     * or [Manage access to other
    +     * resources](https://cloud.google.com/iam/help/access/manage-other-resources).
          * 
    */ public void setIamPolicy( @@ -2556,7 +2753,7 @@ public void updateRole( *
          * Deletes a custom [Role][google.iam.admin.v1.Role].
          * When you delete a custom role, the following changes occur immediately:
    -     * * You cannot bind a member to the custom role in an IAM
    +     * * You cannot bind a principal to the custom role in an IAM
          * [Policy][google.iam.v1.Policy].
          * * Existing bindings to the custom role are not changed, but they have no
          * effect.
    @@ -2597,7 +2794,7 @@ public void undeleteRole(
          *
          * 
          * Lists every permission that you can test on a resource. A permission is
    -     * testable if you can check whether a member has that permission on the
    +     * testable if you can check whether a principal has that permission on the
          * resource.
          * 
    */ @@ -2661,14 +2858,22 @@ public void lintPolicy( * * **Service account keys**, which service accounts use to authenticate with * Google APIs * * **IAM policies for service accounts**, which specify the roles that a - * member has for the service account + * principal has for the service account * * **IAM custom roles**, which help you limit the number of permissions that - * you grant to members + * you grant to principals * In addition, you can use this service to complete the following tasks, among * others: * * Test whether a service account can use specific permissions * * Check which roles you can grant for a specific resource * * Lint, or validate, condition expressions in an IAM policy + * When you read data from the IAM API, each read is eventually consistent. In + * other words, if you write data with the IAM API, then immediately read that + * data, the read operation might return an older version of the data. To deal + * with this behavior, your application can retry the request with truncated + * exponential backoff. + * In contrast, writing data to the IAM API is sequentially consistent. In other + * words, write operations are always processed in the order in which they were + * received. *
    */ public static final class IAMBlockingStub @@ -2728,7 +2933,7 @@ public com.google.iam.admin.v1.ServiceAccount createServiceAccount( * **Note:** We are in the process of deprecating this method. Use * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead. * Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * You can update only the `display_name` and `description` fields. + * You can update only the `display_name` field. *
    */ public com.google.iam.admin.v1.ServiceAccount updateServiceAccount( @@ -2878,7 +3083,10 @@ public com.google.iam.admin.v1.ServiceAccountKey createServiceAccountKey( * * *
    -     * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey], using a public key that you provide.
    +     * Uploads the public key portion of a key pair that you manage, and
    +     * associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    +     * After you upload the public key, you can use the private key from the key
    +     * pair as a service account key.
          * 
    */ public com.google.iam.admin.v1.ServiceAccountKey uploadServiceAccountKey( @@ -2902,6 +3110,33 @@ public com.google.protobuf.Empty deleteServiceAccountKey( getChannel(), getDeleteServiceAccountKeyMethod(), getCallOptions(), request); } + /** + * + * + *
    +     * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be
    +     * re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    +     * 
    + */ + public com.google.protobuf.Empty disableServiceAccountKey( + com.google.iam.admin.v1.DisableServiceAccountKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getDisableServiceAccountKeyMethod(), getCallOptions(), request); + } + + /** + * + * + *
    +     * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    +     * 
    + */ + public com.google.protobuf.Empty enableServiceAccountKey( + com.google.iam.admin.v1.EnableServiceAccountKeyRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getEnableServiceAccountKeyMethod(), getCallOptions(), request); + } + /** * * @@ -2948,7 +3183,7 @@ public com.google.iam.admin.v1.SignJwtResponse signJwt( * *
          * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM
    -     * policy specifies which members have access to the service account.
    +     * policy specifies which principals have access to the service account.
          * This method does not tell you whether the service account has been granted
          * any roles on other resources. To check whether a service account has role
          * grants on a resource, use the `getIamPolicy` method for that resource. For
    @@ -2969,7 +3204,7 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
          * 
          * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
          * Use this method to grant or revoke access to the service account. For
    -     * example, you could grant a member the ability to impersonate the service
    +     * example, you could grant a principal the ability to impersonate the service
          * account.
          * This method does not enable the service account to access other resources.
          * To grant roles to a service account on a resource, follow these steps:
    @@ -2978,8 +3213,10 @@ public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyReque
          * the resource.
          * 3. Call the resource's `setIamPolicy` method to update its IAM policy.
          * For detailed instructions, see
    -     * [Granting roles to a service account for specific
    -     * resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts).
    +     * [Manage access to project, folders, and
    +     * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts)
    +     * or [Manage access to other
    +     * resources](https://cloud.google.com/iam/help/access/manage-other-resources).
          * 
    */ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { @@ -3074,7 +3311,7 @@ public com.google.iam.admin.v1.Role updateRole( *
          * Deletes a custom [Role][google.iam.admin.v1.Role].
          * When you delete a custom role, the following changes occur immediately:
    -     * * You cannot bind a member to the custom role in an IAM
    +     * * You cannot bind a principal to the custom role in an IAM
          * [Policy][google.iam.v1.Policy].
          * * Existing bindings to the custom role are not changed, but they have no
          * effect.
    @@ -3111,7 +3348,7 @@ public com.google.iam.admin.v1.Role undeleteRole(
          *
          * 
          * Lists every permission that you can test on a resource. A permission is
    -     * testable if you can check whether a member has that permission on the
    +     * testable if you can check whether a principal has that permission on the
          * resource.
          * 
    */ @@ -3166,14 +3403,22 @@ public com.google.iam.admin.v1.LintPolicyResponse lintPolicy( * * **Service account keys**, which service accounts use to authenticate with * Google APIs * * **IAM policies for service accounts**, which specify the roles that a - * member has for the service account + * principal has for the service account * * **IAM custom roles**, which help you limit the number of permissions that - * you grant to members + * you grant to principals * In addition, you can use this service to complete the following tasks, among * others: * * Test whether a service account can use specific permissions * * Check which roles you can grant for a specific resource * * Lint, or validate, condition expressions in an IAM policy + * When you read data from the IAM API, each read is eventually consistent. In + * other words, if you write data with the IAM API, then immediately read that + * data, the read operation might return an older version of the data. To deal + * with this behavior, your application can retry the request with truncated + * exponential backoff. + * In contrast, writing data to the IAM API is sequentially consistent. In other + * words, write operations are always processed in the order in which they were + * received. *
    */ public static final class IAMFutureStub extends io.grpc.stub.AbstractFutureStub { @@ -3235,7 +3480,7 @@ protected IAMFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO * **Note:** We are in the process of deprecating this method. Use * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead. * Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * You can update only the `display_name` and `description` fields. + * You can update only the `display_name` field. *
    */ public com.google.common.util.concurrent.ListenableFuture< @@ -3391,7 +3636,10 @@ protected IAMFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO * * *
    -     * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey], using a public key that you provide.
    +     * Uploads the public key portion of a key pair that you manage, and
    +     * associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    +     * After you upload the public key, you can use the private key from the key
    +     * pair as a service account key.
          * 
    */ public com.google.common.util.concurrent.ListenableFuture< @@ -3416,6 +3664,33 @@ protected IAMFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO getChannel().newCall(getDeleteServiceAccountKeyMethod(), getCallOptions()), request); } + /** + * + * + *
    +     * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be
    +     * re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + disableServiceAccountKey(com.google.iam.admin.v1.DisableServiceAccountKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getDisableServiceAccountKeyMethod(), getCallOptions()), request); + } + + /** + * + * + *
    +     * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    +     * 
    + */ + public com.google.common.util.concurrent.ListenableFuture + enableServiceAccountKey(com.google.iam.admin.v1.EnableServiceAccountKeyRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getEnableServiceAccountKeyMethod(), getCallOptions()), request); + } + /** * * @@ -3464,7 +3739,7 @@ protected IAMFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO * *
          * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM
    -     * policy specifies which members have access to the service account.
    +     * policy specifies which principals have access to the service account.
          * This method does not tell you whether the service account has been granted
          * any roles on other resources. To check whether a service account has role
          * grants on a resource, use the `getIamPolicy` method for that resource. For
    @@ -3486,7 +3761,7 @@ protected IAMFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO
          * 
          * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
          * Use this method to grant or revoke access to the service account. For
    -     * example, you could grant a member the ability to impersonate the service
    +     * example, you could grant a principal the ability to impersonate the service
          * account.
          * This method does not enable the service account to access other resources.
          * To grant roles to a service account on a resource, follow these steps:
    @@ -3495,8 +3770,10 @@ protected IAMFutureStub build(io.grpc.Channel channel, io.grpc.CallOptions callO
          * the resource.
          * 3. Call the resource's `setIamPolicy` method to update its IAM policy.
          * For detailed instructions, see
    -     * [Granting roles to a service account for specific
    -     * resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts).
    +     * [Manage access to project, folders, and
    +     * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts)
    +     * or [Manage access to other
    +     * resources](https://cloud.google.com/iam/help/access/manage-other-resources).
          * 
    */ public com.google.common.util.concurrent.ListenableFuture @@ -3596,7 +3873,7 @@ public com.google.common.util.concurrent.ListenableFuture * Deletes a custom [Role][google.iam.admin.v1.Role]. * When you delete a custom role, the following changes occur immediately: - * * You cannot bind a member to the custom role in an IAM + * * You cannot bind a principal to the custom role in an IAM * [Policy][google.iam.v1.Policy]. * * Existing bindings to the custom role are not changed, but they have no * effect. @@ -3633,7 +3910,7 @@ public com.google.common.util.concurrent.ListenableFuture * Lists every permission that you can test on a resource. A permission is - * testable if you can check whether a member has that permission on the + * testable if you can check whether a principal has that permission on the * resource. *
    */ @@ -3694,21 +3971,23 @@ public com.google.common.util.concurrent.ListenableFuture implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -3807,6 +4086,16 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.iam.admin.v1.DeleteServiceAccountKeyRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_DISABLE_SERVICE_ACCOUNT_KEY: + serviceImpl.disableServiceAccountKey( + (com.google.iam.admin.v1.DisableServiceAccountKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; + case METHODID_ENABLE_SERVICE_ACCOUNT_KEY: + serviceImpl.enableServiceAccountKey( + (com.google.iam.admin.v1.EnableServiceAccountKeyRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_SIGN_BLOB: serviceImpl.signBlob( (com.google.iam.admin.v1.SignBlobRequest) request, @@ -3914,7 +4203,7 @@ private abstract static class IAMBaseDescriptorSupplier @java.lang.Override public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.iam.admin.v1.IamProto.getDescriptor(); + return com.google.iam.admin.v1.Iam.getDescriptor(); } @java.lang.Override @@ -3967,6 +4256,8 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getCreateServiceAccountKeyMethod()) .addMethod(getUploadServiceAccountKeyMethod()) .addMethod(getDeleteServiceAccountKeyMethod()) + .addMethod(getDisableServiceAccountKeyMethod()) + .addMethod(getEnableServiceAccountKeyMethod()) .addMethod(getSignBlobMethod()) .addMethod(getSignJwtMethod()) .addMethod(getGetIamPolicyMethod()) diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequest.java index f6a737e0d366..1d0a81349656 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequest.java @@ -121,14 +121,14 @@ private CreateRoleRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_CreateRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.CreateRoleRequest.class, @@ -143,18 +143,21 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
        * The `parent` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `parent` value format is described below:
    -   * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `parent` value format is described below:
    +   * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
        *   `projects/{PROJECT_ID}`. This method creates project-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles).
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +   * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
        *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -   *   URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +   *   Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
        * ID or organization ID.
    @@ -182,18 +185,21 @@ public java.lang.String getParent() {
        * 
        * The `parent` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `parent` value format is described below:
    -   * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `parent` value format is described below:
    +   * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
        *   `projects/{PROJECT_ID}`. This method creates project-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles).
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +   * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
        *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -   *   URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +   *   Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
        * ID or organization ID.
    @@ -513,14 +519,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.CreateRoleRequest)
           com.google.iam.admin.v1.CreateRoleRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateRoleRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.CreateRoleRequest.class,
    @@ -559,7 +565,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor;
         }
     
    @@ -684,18 +690,21 @@ public Builder mergeFrom(
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
          *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
          *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -     *   URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +     *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
          * ID or organization ID.
    @@ -722,18 +731,21 @@ public java.lang.String getParent() {
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
          *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
          *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -     *   URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +     *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
          * ID or organization ID.
    @@ -760,18 +772,21 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
          *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
          *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -     *   URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +     *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
          * ID or organization ID.
    @@ -797,18 +812,21 @@ public Builder setParent(java.lang.String value) {
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
          *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
          *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -     *   URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +     *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
          * ID or organization ID.
    @@ -830,18 +848,21 @@ public Builder clearParent() {
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
          *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
          *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -     *   URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +     *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
          * ID or organization ID.
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequestOrBuilder.java
    index f2dc74ae0b9c..1674f71581f3 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequestOrBuilder.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequestOrBuilder.java
    @@ -29,18 +29,21 @@ public interface CreateRoleRequestOrBuilder
        * 
        * The `parent` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `parent` value format is described below:
    -   * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `parent` value format is described below:
    +   * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
        *   `projects/{PROJECT_ID}`. This method creates project-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles).
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +   * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
        *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -   *   URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +   *   Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
        * ID or organization ID.
    @@ -57,18 +60,21 @@ public interface CreateRoleRequestOrBuilder
        * 
        * The `parent` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `parent` value format is described below:
    -   * * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `parent` value format is described below:
    +   * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
        *   `projects/{PROJECT_ID}`. This method creates project-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles).
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create):
    +   * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
        *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles). Example request
    -   *   URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    +   *   Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
        * ID or organization ID.
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequest.java
    index 2309a6bcd115..b80a958d9e75 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequest.java
    @@ -116,14 +116,14 @@ private CreateServiceAccountKeyRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.CreateServiceAccountKeyRequest.class,
    @@ -471,14 +471,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.CreateServiceAccountKeyRequest)
           com.google.iam.admin.v1.CreateServiceAccountKeyRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.CreateServiceAccountKeyRequest.class,
    @@ -513,7 +513,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequest.java
    index 9f412e904bdf..45ac175b2c11 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequest.java
    @@ -123,14 +123,14 @@ private CreateServiceAccountRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_CreateServiceAccountRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.CreateServiceAccountRequest.class,
    @@ -497,14 +497,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.CreateServiceAccountRequest)
           com.google.iam.admin.v1.CreateServiceAccountRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateServiceAccountRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.CreateServiceAccountRequest.class,
    @@ -543,7 +543,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequest.java
    index 0fba35a9a971..6c34b467ae08 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequest.java
    @@ -105,14 +105,14 @@ private DeleteRoleRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_DeleteRoleRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.DeleteRoleRequest.class,
    @@ -127,17 +127,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +   * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   deletes only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -166,17 +169,20 @@ public java.lang.String getName() {
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +   * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   deletes only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -400,14 +406,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DeleteRoleRequest)
           com.google.iam.admin.v1.DeleteRoleRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteRoleRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.DeleteRoleRequest.class,
    @@ -440,7 +446,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor;
         }
     
    @@ -556,17 +562,20 @@ public Builder mergeFrom(
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   deletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -594,17 +603,20 @@ public java.lang.String getName() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   deletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -632,17 +644,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   deletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -669,17 +684,20 @@ public Builder setName(java.lang.String value) {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   deletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -702,17 +720,20 @@ public Builder clearName() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   deletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequestOrBuilder.java
    index 4f755bfd42ce..232f648e6f42 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequestOrBuilder.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequestOrBuilder.java
    @@ -29,17 +29,20 @@ public interface DeleteRoleRequestOrBuilder
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +   * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   deletes only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -57,17 +60,20 @@ public interface DeleteRoleRequestOrBuilder
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete):
    +   * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   deletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   deletes only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequest.java
    index ae370baa62cc..1a8dd8d7051b 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequest.java
    @@ -100,14 +100,14 @@ private DeleteServiceAccountKeyRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.class,
    @@ -349,14 +349,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DeleteServiceAccountKeyRequest)
           com.google.iam.admin.v1.DeleteServiceAccountKeyRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.class,
    @@ -387,7 +387,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequest.java
    index 5953b612be03..2952df0288c6 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequest.java
    @@ -99,14 +99,14 @@ private DeleteServiceAccountRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.DeleteServiceAccountRequest.class,
    @@ -347,14 +347,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DeleteServiceAccountRequest)
           com.google.iam.admin.v1.DeleteServiceAccountRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.DeleteServiceAccountRequest.class,
    @@ -385,7 +385,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor;
         }
     
    diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequest.java
    similarity index 67%
    rename from owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequest.java
    rename to java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequest.java
    index 068c46cbfd59..47f1791f16f5 100644
    --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequest.java
    @@ -1,40 +1,58 @@
    +/*
    + * Copyright 2020 Google LLC
    + *
    + * Licensed under the Apache License, Version 2.0 (the "License");
    + * you may not use this file except in compliance with the License.
    + * You may obtain a copy of the License at
    + *
    + *     https://www.apache.org/licenses/LICENSE-2.0
    + *
    + * Unless required by applicable law or agreed to in writing, software
    + * distributed under the License is distributed on an "AS IS" BASIS,
    + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    + * See the License for the specific language governing permissions and
    + * limitations under the License.
    + */
     // Generated by the protocol buffer compiler.  DO NOT EDIT!
     // source: google/iam/admin/v1/iam.proto
     
     package com.google.iam.admin.v1;
     
     /**
    + *
    + *
      * 
      * The service account key disable request.
      * 
    * * Protobuf type {@code google.iam.admin.v1.DisableServiceAccountKeyRequest} */ -public final class DisableServiceAccountKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class DisableServiceAccountKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.admin.v1.DisableServiceAccountKeyRequest) DisableServiceAccountKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use DisableServiceAccountKeyRequest.newBuilder() to construct. - private DisableServiceAccountKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private DisableServiceAccountKeyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private DisableServiceAccountKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new DisableServiceAccountKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private DisableServiceAccountKeyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private DisableServiceAccountKeyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +92,33 @@ private DisableServiceAccountKeyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_fieldAccessorTable + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DisableServiceAccountKeyRequest.class, com.google.iam.admin.v1.DisableServiceAccountKeyRequest.Builder.class); + com.google.iam.admin.v1.DisableServiceAccountKeyRequest.class, + com.google.iam.admin.v1.DisableServiceAccountKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * Required. The resource name of the service account key in the following format:
        * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -104,7 +127,10 @@ private DisableServiceAccountKeyRequest(
        * `unique_id` of the service account.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -113,14 +139,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The resource name of the service account key in the following format:
        * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -129,17 +156,18 @@ public java.lang.String getName() {
        * `unique_id` of the service account.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -148,6 +176,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,15 +212,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.admin.v1.DisableServiceAccountKeyRequest)) { return super.equals(obj); } - com.google.iam.admin.v1.DisableServiceAccountKeyRequest other = (com.google.iam.admin.v1.DisableServiceAccountKeyRequest) obj; + com.google.iam.admin.v1.DisableServiceAccountKeyRequest other = + (com.google.iam.admin.v1.DisableServiceAccountKeyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -212,117 +240,127 @@ public int hashCode() { } public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.admin.v1.DisableServiceAccountKeyRequest prototype) { + + public static Builder newBuilder( + com.google.iam.admin.v1.DisableServiceAccountKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The service account key disable request.
        * 
    * * Protobuf type {@code google.iam.admin.v1.DisableServiceAccountKeyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DisableServiceAccountKeyRequest) com.google.iam.admin.v1.DisableServiceAccountKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_fieldAccessorTable + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DisableServiceAccountKeyRequest.class, com.google.iam.admin.v1.DisableServiceAccountKeyRequest.Builder.class); + com.google.iam.admin.v1.DisableServiceAccountKeyRequest.class, + com.google.iam.admin.v1.DisableServiceAccountKeyRequest.Builder.class); } // Construct using com.google.iam.admin.v1.DisableServiceAccountKeyRequest.newBuilder() @@ -330,16 +368,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor; } @java.lang.Override @@ -370,7 +407,8 @@ public com.google.iam.admin.v1.DisableServiceAccountKeyRequest build() { @java.lang.Override public com.google.iam.admin.v1.DisableServiceAccountKeyRequest buildPartial() { - com.google.iam.admin.v1.DisableServiceAccountKeyRequest result = new com.google.iam.admin.v1.DisableServiceAccountKeyRequest(this); + com.google.iam.admin.v1.DisableServiceAccountKeyRequest result = + new com.google.iam.admin.v1.DisableServiceAccountKeyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -380,38 +418,39 @@ public com.google.iam.admin.v1.DisableServiceAccountKeyRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.admin.v1.DisableServiceAccountKeyRequest) { - return mergeFrom((com.google.iam.admin.v1.DisableServiceAccountKeyRequest)other); + return mergeFrom((com.google.iam.admin.v1.DisableServiceAccountKeyRequest) other); } else { super.mergeFrom(other); return this; @@ -419,7 +458,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.iam.admin.v1.DisableServiceAccountKeyRequest other) { - if (other == com.google.iam.admin.v1.DisableServiceAccountKeyRequest.getDefaultInstance()) return this; + if (other == com.google.iam.admin.v1.DisableServiceAccountKeyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -443,7 +483,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.DisableServiceAccountKeyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.iam.admin.v1.DisableServiceAccountKeyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -455,6 +496,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -463,14 +506,16 @@ public Builder mergeFrom(
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,6 +524,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -487,16 +534,17 @@ public java.lang.String getName() {
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -504,6 +552,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -512,21 +562,25 @@ public java.lang.String getName() {
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -535,16 +589,21 @@ public Builder setName(
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -553,24 +612,26 @@ public Builder clearName() {
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -580,12 +641,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.DisableServiceAccountKeyRequest) } // @@protoc_insertion_point(class_scope:google.iam.admin.v1.DisableServiceAccountKeyRequest) private static final com.google.iam.admin.v1.DisableServiceAccountKeyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.admin.v1.DisableServiceAccountKeyRequest(); } @@ -594,16 +655,16 @@ public static com.google.iam.admin.v1.DisableServiceAccountKeyRequest getDefault return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisableServiceAccountKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisableServiceAccountKeyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public DisableServiceAccountKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new DisableServiceAccountKeyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -618,6 +679,4 @@ public com.google.protobuf.Parser getParserForT public com.google.iam.admin.v1.DisableServiceAccountKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequestOrBuilder.java rename to java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequestOrBuilder.java index cb2b9d366b51..29d21895f82c 100644 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequestOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountKeyRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/admin/v1/iam.proto package com.google.iam.admin.v1; -public interface DisableServiceAccountKeyRequestOrBuilder extends +public interface DisableServiceAccountKeyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.DisableServiceAccountKeyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The resource name of the service account key in the following format:
        * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -16,11 +34,16 @@ public interface DisableServiceAccountKeyRequestOrBuilder extends
        * `unique_id` of the service account.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * Required. The resource name of the service account key in the following format:
        * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -29,9 +52,11 @@ public interface DisableServiceAccountKeyRequestOrBuilder extends
        * `unique_id` of the service account.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequest.java index 51d753f7d2d4..5e49be02dbd9 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequest.java @@ -99,14 +99,14 @@ private DisableServiceAccountRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_DisableServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.DisableServiceAccountRequest.class, @@ -343,14 +343,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DisableServiceAccountRequest) com.google.iam.admin.v1.DisableServiceAccountRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_DisableServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.DisableServiceAccountRequest.class, @@ -381,7 +381,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor; } diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequest.java similarity index 67% rename from owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequest.java rename to java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequest.java index 357afcd97421..fc0f9aef505a 100644 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequest.java @@ -1,40 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/admin/v1/iam.proto package com.google.iam.admin.v1; /** + * + * *
      * The service account key enable request.
      * 
    * * Protobuf type {@code google.iam.admin.v1.EnableServiceAccountKeyRequest} */ -public final class EnableServiceAccountKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements +public final class EnableServiceAccountKeyRequest extends com.google.protobuf.GeneratedMessageV3 + implements // @@protoc_insertion_point(message_implements:google.iam.admin.v1.EnableServiceAccountKeyRequest) EnableServiceAccountKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; + private static final long serialVersionUID = 0L; // Use EnableServiceAccountKeyRequest.newBuilder() to construct. - private EnableServiceAccountKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + private EnableServiceAccountKeyRequest( + com.google.protobuf.GeneratedMessageV3.Builder builder) { super(builder); } + private EnableServiceAccountKeyRequest() { name_ = ""; } @java.lang.Override @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { return new EnableServiceAccountKeyRequest(); } @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { return this.unknownFields; } + private EnableServiceAccountKeyRequest( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) @@ -53,19 +71,20 @@ private EnableServiceAccountKeyRequest( case 0: done = true; break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; } - break; - } } } } catch (com.google.protobuf.InvalidProtocolBufferException e) { @@ -73,29 +92,33 @@ private EnableServiceAccountKeyRequest( } catch (com.google.protobuf.UninitializedMessageException e) { throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); } finally { this.unknownFields = unknownFields.build(); makeExtensionsImmutable(); } } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor; + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_fieldAccessorTable + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.EnableServiceAccountKeyRequest.class, com.google.iam.admin.v1.EnableServiceAccountKeyRequest.Builder.class); + com.google.iam.admin.v1.EnableServiceAccountKeyRequest.class, + com.google.iam.admin.v1.EnableServiceAccountKeyRequest.Builder.class); } public static final int NAME_FIELD_NUMBER = 1; private volatile java.lang.Object name_; /** + * + * *
        * Required. The resource name of the service account key in the following format:
        * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -104,7 +127,10 @@ private EnableServiceAccountKeyRequest(
        * `unique_id` of the service account.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ @java.lang.Override @@ -113,14 +139,15 @@ public java.lang.String getName() { if (ref instanceof java.lang.String) { return (java.lang.String) ref; } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; } } /** + * + * *
        * Required. The resource name of the service account key in the following format:
        * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -129,17 +156,18 @@ public java.lang.String getName() {
        * `unique_id` of the service account.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -148,6 +176,7 @@ public java.lang.String getName() { } private byte memoizedIsInitialized = -1; + @java.lang.Override public final boolean isInitialized() { byte isInitialized = memoizedIsInitialized; @@ -159,8 +188,7 @@ public final boolean isInitialized() { } @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); } @@ -184,15 +212,15 @@ public int getSerializedSize() { @java.lang.Override public boolean equals(final java.lang.Object obj) { if (obj == this) { - return true; + return true; } if (!(obj instanceof com.google.iam.admin.v1.EnableServiceAccountKeyRequest)) { return super.equals(obj); } - com.google.iam.admin.v1.EnableServiceAccountKeyRequest other = (com.google.iam.admin.v1.EnableServiceAccountKeyRequest) obj; + com.google.iam.admin.v1.EnableServiceAccountKeyRequest other = + (com.google.iam.admin.v1.EnableServiceAccountKeyRequest) obj; - if (!getName() - .equals(other.getName())) return false; + if (!getName().equals(other.getName())) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -212,117 +240,127 @@ public int hashCode() { } public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException { return PARSER.parseFrom(data, extensionRegistry); } - public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } - public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); + + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); } + public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest parseFrom( com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); } @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } + public Builder newBuilderForType() { + return newBuilder(); + } + public static Builder newBuilder() { return DEFAULT_INSTANCE.toBuilder(); } - public static Builder newBuilder(com.google.iam.admin.v1.EnableServiceAccountKeyRequest prototype) { + + public static Builder newBuilder( + com.google.iam.admin.v1.EnableServiceAccountKeyRequest prototype) { return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); } + @java.lang.Override public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); } @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { Builder builder = new Builder(parent); return builder; } /** + * + * *
        * The service account key enable request.
        * 
    * * Protobuf type {@code google.iam.admin.v1.EnableServiceAccountKeyRequest} */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.EnableServiceAccountKeyRequest) com.google.iam.admin.v1.EnableServiceAccountKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor; + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_fieldAccessorTable + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.EnableServiceAccountKeyRequest.class, com.google.iam.admin.v1.EnableServiceAccountKeyRequest.Builder.class); + com.google.iam.admin.v1.EnableServiceAccountKeyRequest.class, + com.google.iam.admin.v1.EnableServiceAccountKeyRequest.Builder.class); } // Construct using com.google.iam.admin.v1.EnableServiceAccountKeyRequest.newBuilder() @@ -330,16 +368,15 @@ private Builder() { maybeForceBuilderInitialization(); } - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { super(parent); maybeForceBuilderInitialization(); } + private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} } + @java.lang.Override public Builder clear() { super.clear(); @@ -349,9 +386,9 @@ public Builder clear() { } @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor; + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.iam.admin.v1.Iam + .internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor; } @java.lang.Override @@ -370,7 +407,8 @@ public com.google.iam.admin.v1.EnableServiceAccountKeyRequest build() { @java.lang.Override public com.google.iam.admin.v1.EnableServiceAccountKeyRequest buildPartial() { - com.google.iam.admin.v1.EnableServiceAccountKeyRequest result = new com.google.iam.admin.v1.EnableServiceAccountKeyRequest(this); + com.google.iam.admin.v1.EnableServiceAccountKeyRequest result = + new com.google.iam.admin.v1.EnableServiceAccountKeyRequest(this); result.name_ = name_; onBuilt(); return result; @@ -380,38 +418,39 @@ public com.google.iam.admin.v1.EnableServiceAccountKeyRequest buildPartial() { public Builder clone() { return super.clone(); } + @java.lang.Override public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.setField(field, value); } + @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { return super.clearField(field); } + @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { return super.clearOneof(oneof); } + @java.lang.Override public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { return super.setRepeatedField(field, index, value); } + @java.lang.Override public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { return super.addRepeatedField(field, value); } + @java.lang.Override public Builder mergeFrom(com.google.protobuf.Message other) { if (other instanceof com.google.iam.admin.v1.EnableServiceAccountKeyRequest) { - return mergeFrom((com.google.iam.admin.v1.EnableServiceAccountKeyRequest)other); + return mergeFrom((com.google.iam.admin.v1.EnableServiceAccountKeyRequest) other); } else { super.mergeFrom(other); return this; @@ -419,7 +458,8 @@ public Builder mergeFrom(com.google.protobuf.Message other) { } public Builder mergeFrom(com.google.iam.admin.v1.EnableServiceAccountKeyRequest other) { - if (other == com.google.iam.admin.v1.EnableServiceAccountKeyRequest.getDefaultInstance()) return this; + if (other == com.google.iam.admin.v1.EnableServiceAccountKeyRequest.getDefaultInstance()) + return this; if (!other.getName().isEmpty()) { name_ = other.name_; onChanged(); @@ -443,7 +483,8 @@ public Builder mergeFrom( try { parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.EnableServiceAccountKeyRequest) e.getUnfinishedMessage(); + parsedMessage = + (com.google.iam.admin.v1.EnableServiceAccountKeyRequest) e.getUnfinishedMessage(); throw e.unwrapIOException(); } finally { if (parsedMessage != null) { @@ -455,6 +496,8 @@ public Builder mergeFrom( private java.lang.Object name_ = ""; /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -463,14 +506,16 @@ public Builder mergeFrom(
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ public java.lang.String getName() { java.lang.Object ref = name_; if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; java.lang.String s = bs.toStringUtf8(); name_ = s; return s; @@ -479,6 +524,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -487,16 +534,17 @@ public java.lang.String getName() {
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - public com.google.protobuf.ByteString - getNameBytes() { + public com.google.protobuf.ByteString getNameBytes() { java.lang.Object ref = name_; if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); name_ = b; return b; } else { @@ -504,6 +552,8 @@ public java.lang.String getName() { } } /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -512,21 +562,25 @@ public java.lang.String getName() {
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The name to set. * @return This builder for chaining. */ - public Builder setName( - java.lang.String value) { + public Builder setName(java.lang.String value) { if (value == null) { - throw new NullPointerException(); - } - + throw new NullPointerException(); + } + name_ = value; onChanged(); return this; } /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -535,16 +589,21 @@ public Builder setName(
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return This builder for chaining. */ public Builder clearName() { - + name_ = getDefaultInstance().getName(); onChanged(); return this; } /** + * + * *
          * Required. The resource name of the service account key in the following format:
          * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -553,24 +612,26 @@ public Builder clearName() {
          * `unique_id` of the service account.
          * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @param value The bytes for name to set. * @return This builder for chaining. */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { + public Builder setNameBytes(com.google.protobuf.ByteString value) { if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + name_ = value; onChanged(); return this; } + @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); } @@ -580,12 +641,12 @@ public final Builder mergeUnknownFields( return super.mergeUnknownFields(unknownFields); } - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.EnableServiceAccountKeyRequest) } // @@protoc_insertion_point(class_scope:google.iam.admin.v1.EnableServiceAccountKeyRequest) private static final com.google.iam.admin.v1.EnableServiceAccountKeyRequest DEFAULT_INSTANCE; + static { DEFAULT_INSTANCE = new com.google.iam.admin.v1.EnableServiceAccountKeyRequest(); } @@ -594,16 +655,16 @@ public static com.google.iam.admin.v1.EnableServiceAccountKeyRequest getDefaultI return DEFAULT_INSTANCE; } - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableServiceAccountKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnableServiceAccountKeyRequest(input, extensionRegistry); - } - }; + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public EnableServiceAccountKeyRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new EnableServiceAccountKeyRequest(input, extensionRegistry); + } + }; public static com.google.protobuf.Parser parser() { return PARSER; @@ -618,6 +679,4 @@ public com.google.protobuf.Parser getParserForTy public com.google.iam.admin.v1.EnableServiceAccountKeyRequest getDefaultInstanceForType() { return DEFAULT_INSTANCE; } - } - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequestOrBuilder.java similarity index 53% rename from owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequestOrBuilder.java rename to java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequestOrBuilder.java index 5b5d0d95004d..04a0c513733f 100644 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequestOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountKeyRequestOrBuilder.java @@ -1,13 +1,31 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ // Generated by the protocol buffer compiler. DO NOT EDIT! // source: google/iam/admin/v1/iam.proto package com.google.iam.admin.v1; -public interface EnableServiceAccountKeyRequestOrBuilder extends +public interface EnableServiceAccountKeyRequestOrBuilder + extends // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.EnableServiceAccountKeyRequest) com.google.protobuf.MessageOrBuilder { /** + * + * *
        * Required. The resource name of the service account key in the following format:
        * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -16,11 +34,16 @@ public interface EnableServiceAccountKeyRequestOrBuilder extends
        * `unique_id` of the service account.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The name. */ java.lang.String getName(); /** + * + * *
        * Required. The resource name of the service account key in the following format:
        * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    @@ -29,9 +52,11 @@ public interface EnableServiceAccountKeyRequestOrBuilder extends
        * `unique_id` of the service account.
        * 
    * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * * @return The bytes for name. */ - com.google.protobuf.ByteString - getNameBytes(); + com.google.protobuf.ByteString getNameBytes(); } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequest.java index c88b74d06efc..6addbc7f948b 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequest.java @@ -99,14 +99,14 @@ private EnableServiceAccountRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_EnableServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.EnableServiceAccountRequest.class, @@ -343,14 +343,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.EnableServiceAccountRequest) com.google.iam.admin.v1.EnableServiceAccountRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_EnableServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.EnableServiceAccountRequest.class, @@ -381,7 +381,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequest.java index 578867583699..a58c7c0d2a50 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequest.java @@ -99,14 +99,14 @@ private GetRoleRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetRoleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.GetRoleRequest.class, @@ -121,23 +121,27 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`roles`](/iam/reference/rest/v1/roles),
    -   * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
        *   This method returns results from all
    -   *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -   *   Cloud IAM. Example request URL:
    +   *   [predefined
    +   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +   *   in Cloud IAM. Example request URL:
        *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -   * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +   * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +   * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   returns only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -166,23 +170,27 @@ public java.lang.String getName() {
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`roles`](/iam/reference/rest/v1/roles),
    -   * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
        *   This method returns results from all
    -   *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -   *   Cloud IAM. Example request URL:
    +   *   [predefined
    +   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +   *   in Cloud IAM. Example request URL:
        *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -   * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +   * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +   * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   returns only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -378,14 +386,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.GetRoleRequest)
           com.google.iam.admin.v1.GetRoleRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_GetRoleRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_GetRoleRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.GetRoleRequest.class,
    @@ -416,7 +424,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_GetRoleRequest_descriptor;
         }
     
    @@ -528,23 +536,27 @@ public Builder mergeFrom(
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
          *   This method returns results from all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL:
          *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   returns only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -572,23 +584,27 @@ public java.lang.String getName() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
          *   This method returns results from all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL:
          *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   returns only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -616,23 +632,27 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
          *   This method returns results from all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL:
          *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   returns only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -659,23 +679,27 @@ public Builder setName(java.lang.String value) {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
          *   This method returns results from all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL:
          *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   returns only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -698,23 +722,27 @@ public Builder clearName() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
          *   This method returns results from all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL:
          *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   returns only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequestOrBuilder.java
    index 65e4fa3757b8..9ba2b9e809ee 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequestOrBuilder.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequestOrBuilder.java
    @@ -29,23 +29,27 @@ public interface GetRoleRequestOrBuilder
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`roles`](/iam/reference/rest/v1/roles),
    -   * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
        *   This method returns results from all
    -   *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -   *   Cloud IAM. Example request URL:
    +   *   [predefined
    +   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +   *   in Cloud IAM. Example request URL:
        *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -   * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +   * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +   * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   returns only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -63,23 +67,27 @@ public interface GetRoleRequestOrBuilder
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`roles`](/iam/reference/rest/v1/roles),
    -   * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    +   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
        *   This method returns results from all
    -   *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -   *   Cloud IAM. Example request URL:
    +   *   [predefined
    +   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +   *   in Cloud IAM. Example request URL:
        *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -   * * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get):
    +   * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get):
    +   * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   returns only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   returns only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequest.java
    index 863b59f613e0..2a434bd81e7f 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequest.java
    @@ -107,14 +107,14 @@ private GetServiceAccountKeyRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.GetServiceAccountKeyRequest.class,
    @@ -188,11 +188,13 @@ public com.google.protobuf.ByteString getNameBytes() {
        *
        *
        * 
    -   * The output format of the public key requested.
    -   * X509_PEM is the default output format.
    +   * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +   * means that the public key is not returned.
        * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for publicKeyType. */ @@ -204,11 +206,13 @@ public int getPublicKeyTypeValue() { * * *
    -   * The output format of the public key requested.
    -   * X509_PEM is the default output format.
    +   * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +   * means that the public key is not returned.
        * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The publicKeyType. */ @@ -406,14 +410,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.GetServiceAccountKeyRequest) com.google.iam.admin.v1.GetServiceAccountKeyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.GetServiceAccountKeyRequest.class, @@ -446,7 +450,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor; } @@ -698,11 +702,13 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * The output format of the public key requested.
    -     * X509_PEM is the default output format.
    +     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +     * means that the public key is not returned.
          * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for publicKeyType. */ @@ -714,11 +720,13 @@ public int getPublicKeyTypeValue() { * * *
    -     * The output format of the public key requested.
    -     * X509_PEM is the default output format.
    +     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +     * means that the public key is not returned.
          * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The enum numeric value on the wire for publicKeyType to set. * @return This builder for chaining. @@ -733,11 +741,13 @@ public Builder setPublicKeyTypeValue(int value) { * * *
    -     * The output format of the public key requested.
    -     * X509_PEM is the default output format.
    +     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +     * means that the public key is not returned.
          * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The publicKeyType. */ @@ -754,11 +764,13 @@ public com.google.iam.admin.v1.ServiceAccountPublicKeyType getPublicKeyType() { * * *
    -     * The output format of the public key requested.
    -     * X509_PEM is the default output format.
    +     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +     * means that the public key is not returned.
          * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @param value The publicKeyType to set. * @return This builder for chaining. @@ -776,11 +788,13 @@ public Builder setPublicKeyType(com.google.iam.admin.v1.ServiceAccountPublicKeyT * * *
    -     * The output format of the public key requested.
    -     * X509_PEM is the default output format.
    +     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +     * means that the public key is not returned.
          * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return This builder for chaining. */ diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequestOrBuilder.java index 4ae4f7166b8f..eaa7d14fc0e8 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequestOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequestOrBuilder.java @@ -64,11 +64,13 @@ public interface GetServiceAccountKeyRequestOrBuilder * * *
    -   * The output format of the public key requested.
    -   * X509_PEM is the default output format.
    +   * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +   * means that the public key is not returned.
        * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The enum numeric value on the wire for publicKeyType. */ @@ -77,11 +79,13 @@ public interface GetServiceAccountKeyRequestOrBuilder * * *
    -   * The output format of the public key requested.
    -   * X509_PEM is the default output format.
    +   * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    +   * means that the public key is not returned.
        * 
    * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2; + * + * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; + * * * @return The publicKeyType. */ diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequest.java index e561414799b4..c95de9f3c537 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequest.java @@ -99,14 +99,14 @@ private GetServiceAccountRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.GetServiceAccountRequest.class, @@ -347,14 +347,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.GetServiceAccountRequest) com.google.iam.admin.v1.GetServiceAccountRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetServiceAccountRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.GetServiceAccountRequest.class, @@ -385,7 +385,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Iam.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Iam.java new file mode 100644 index 000000000000..d350c467cf8f --- /dev/null +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Iam.java @@ -0,0 +1,934 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/iam/admin/v1/iam.proto + +package com.google.iam.admin.v1; + +public final class Iam { + private Iam() {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistryLite registry) {} + + public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry registry) { + registerAllExtensions((com.google.protobuf.ExtensionRegistryLite) registry); + } + + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_ServiceAccount_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_ServiceAccount_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_CreateServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_ListServiceAccountsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_ListServiceAccountsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_GetServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_PatchServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_EnableServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_DisableServiceAccountRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_ServiceAccountKey_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_SignBlobRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_SignBlobRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_SignBlobResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_SignBlobResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_SignJwtRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_SignJwtRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_SignJwtResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_SignJwtResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_Role_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_Role_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_ListRolesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_ListRolesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_ListRolesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_ListRolesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_GetRoleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_GetRoleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_CreateRoleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_UpdateRoleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_DeleteRoleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_UndeleteRoleRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_Permission_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_Permission_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_LintPolicyRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_LintResult_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_LintResult_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_iam_admin_v1_LintPolicyResponse_fieldAccessorTable; + + public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + return descriptor; + } + + private static com.google.protobuf.Descriptors.FileDescriptor descriptor; + + static { + java.lang.String[] descriptorData = { + "\n\035google/iam/admin/v1/iam.proto\022\023google." + + "iam.admin.v1\032\034google/api/annotations.pro" + + "to\032\027google/api/client.proto\032\037google/api/" + + "field_behavior.proto\032\031google/api/resourc" + + "e.proto\032\036google/iam/v1/iam_policy.proto\032" + + "\032google/iam/v1/policy.proto\032\033google/prot" + + "obuf/empty.proto\032 google/protobuf/field_" + + "mask.proto\032\037google/protobuf/timestamp.pr" + + "oto\032\026google/type/expr.proto\"\276\002\n\016ServiceA" + + "ccount\022\014\n\004name\030\001 \001(\t\022\027\n\nproject_id\030\002 \001(\t" + + "B\003\340A\003\022\026\n\tunique_id\030\004 \001(\tB\003\340A\003\022\022\n\005email\030\005" + + " \001(\tB\003\340A\003\022\031\n\014display_name\030\006 \001(\tB\003\340A\001\022\020\n\004" + + "etag\030\007 \001(\014B\002\030\001\022\030\n\013description\030\010 \001(\tB\003\340A\001" + + "\022\035\n\020oauth2_client_id\030\t \001(\tB\003\340A\003\022\025\n\010disab" + + "led\030\013 \001(\010B\003\340A\003:\\\352AY\n!iam.googleapis.com/" + + "ServiceAccount\0224projects/{project}/servi" + + "ceAccounts/{service_account}\"\267\001\n\033CreateS" + + "erviceAccountRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372" + + "A-\n+cloudresourcemanager.googleapis.com/" + + "Project\022\027\n\naccount_id\030\002 \001(\tB\003\340A\002\022<\n\017serv" + + "ice_account\030\003 \001(\0132#.google.iam.admin.v1." + + "ServiceAccount\"\206\001\n\032ListServiceAccountsRe" + + "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + + "cemanager.googleapis.com/Project\022\021\n\tpage" + + "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"m\n\033ListS" + + "erviceAccountsResponse\0225\n\010accounts\030\001 \003(\013" + + "2#.google.iam.admin.v1.ServiceAccount\022\027\n" + + "\017next_page_token\030\002 \001(\t\"S\n\030GetServiceAcco" + + "untRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!iam.go" + + "ogleapis.com/ServiceAccount\"V\n\033DeleteSer" + + "viceAccountRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" + + "\n!iam.googleapis.com/ServiceAccount\"\213\001\n\032" + + "PatchServiceAccountRequest\022<\n\017service_ac" + + "count\030\001 \001(\0132#.google.iam.admin.v1.Servic" + + "eAccount\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + + "rotobuf.FieldMask\"-\n\035UndeleteServiceAcco" + + "untRequest\022\014\n\004name\030\001 \001(\t\"_\n\036UndeleteServ" + + "iceAccountResponse\022=\n\020restored_account\030\001" + + " \001(\0132#.google.iam.admin.v1.ServiceAccoun" + + "t\"+\n\033EnableServiceAccountRequest\022\014\n\004name" + + "\030\001 \001(\t\",\n\034DisableServiceAccountRequest\022\014" + + "\n\004name\030\001 \001(\t\"\362\001\n\035ListServiceAccountKeysR" + + "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!iam.google" + + "apis.com/ServiceAccount\022M\n\tkey_types\030\002 \003" + + "(\0162:.google.iam.admin.v1.ListServiceAcco" + + "untKeysRequest.KeyType\"I\n\007KeyType\022\030\n\024KEY" + + "_TYPE_UNSPECIFIED\020\000\022\020\n\014USER_MANAGED\020\001\022\022\n" + + "\016SYSTEM_MANAGED\020\002\"V\n\036ListServiceAccountK" + + "eysResponse\0224\n\004keys\030\001 \003(\0132&.google.iam.a" + + "dmin.v1.ServiceAccountKey\"\233\001\n\033GetService" + + "AccountKeyRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + + "\026iam.googleapis.com/Key\022N\n\017public_key_ty" + + "pe\030\002 \001(\01620.google.iam.admin.v1.ServiceAc" + + "countPublicKeyTypeB\003\340A\001\"\326\004\n\021ServiceAccou" + + "ntKey\022\014\n\004name\030\001 \001(\t\022K\n\020private_key_type\030" + + "\002 \001(\01621.google.iam.admin.v1.ServiceAccou" + + "ntPrivateKeyType\022F\n\rkey_algorithm\030\010 \001(\0162" + + "/.google.iam.admin.v1.ServiceAccountKeyA" + + "lgorithm\022\030\n\020private_key_data\030\003 \001(\014\022\027\n\017pu" + + "blic_key_data\030\007 \001(\014\0224\n\020valid_after_time\030" + + "\004 \001(\0132\032.google.protobuf.Timestamp\0225\n\021val" + + "id_before_time\030\005 \001(\0132\032.google.protobuf.T" + + "imestamp\022@\n\nkey_origin\030\t \001(\0162,.google.ia" + + "m.admin.v1.ServiceAccountKeyOrigin\022L\n\010ke" + + "y_type\030\n \001(\0162:.google.iam.admin.v1.ListS" + + "erviceAccountKeysRequest.KeyType\022\020\n\010disa" + + "bled\030\013 \001(\010:\\\352AY\n\026iam.googleapis.com/Key\022" + + "?projects/{project}/serviceAccounts/{ser" + + "vice_account}/keys/{key}\"\356\001\n\036CreateServi" + + "ceAccountKeyRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + + "#\n!iam.googleapis.com/ServiceAccount\022K\n\020" + + "private_key_type\030\002 \001(\01621.google.iam.admi" + + "n.v1.ServiceAccountPrivateKeyType\022F\n\rkey" + + "_algorithm\030\003 \001(\0162/.google.iam.admin.v1.S" + + "erviceAccountKeyAlgorithm\"G\n\036UploadServi" + + "ceAccountKeyRequest\022\014\n\004name\030\001 \001(\t\022\027\n\017pub" + + "lic_key_data\030\002 \001(\014\"N\n\036DeleteServiceAccou" + + "ntKeyRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026iam." + + "googleapis.com/Key\"O\n\037DisableServiceAcco" + + "untKeyRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026iam" + + ".googleapis.com/Key\"N\n\036EnableServiceAcco" + + "untKeyRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026iam" + + ".googleapis.com/Key\"j\n\017SignBlobRequest\0229" + + "\n\004name\030\001 \001(\tB+\030\001\340A\002\372A#\n!iam.googleapis.c" + + "om/ServiceAccount\022\034\n\rbytes_to_sign\030\002 \001(\014" + + "B\005\030\001\340A\002\"=\n\020SignBlobResponse\022\022\n\006key_id\030\001 " + + "\001(\tB\002\030\001\022\025\n\tsignature\030\002 \001(\014B\002\030\001\"c\n\016SignJw" + + "tRequest\0229\n\004name\030\001 \001(\tB+\030\001\340A\002\372A#\n!iam.go" + + "ogleapis.com/ServiceAccount\022\026\n\007payload\030\002" + + " \001(\tB\005\030\001\340A\002\"=\n\017SignJwtResponse\022\022\n\006key_id" + + "\030\001 \001(\tB\002\030\001\022\026\n\nsigned_jwt\030\002 \001(\tB\002\030\001\"\206\002\n\004R" + + "ole\022\014\n\004name\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\023\n\013desc" + + "ription\030\003 \001(\t\022\034\n\024included_permissions\030\007 " + + "\003(\t\0228\n\005stage\030\010 \001(\0162).google.iam.admin.v1" + + ".Role.RoleLaunchStage\022\014\n\004etag\030\t \001(\014\022\017\n\007d" + + "eleted\030\013 \001(\010\"U\n\017RoleLaunchStage\022\t\n\005ALPHA" + + "\020\000\022\010\n\004BETA\020\001\022\006\n\002GA\020\002\022\016\n\nDEPRECATED\020\004\022\014\n\010" + + "DISABLED\020\005\022\007\n\003EAP\020\006\"\221\001\n\032QueryGrantableRo" + + "lesRequest\022\037\n\022full_resource_name\030\001 \001(\tB\003" + + "\340A\002\022+\n\004view\030\002 \001(\0162\035.google.iam.admin.v1." + + "RoleView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_toke" + + "n\030\004 \001(\t\"`\n\033QueryGrantableRolesResponse\022(" + + "\n\005roles\030\001 \003(\0132\031.google.iam.admin.v1.Role" + + "\022\027\n\017next_page_token\030\002 \001(\t\"\224\001\n\020ListRolesR" + + "equest\022\026\n\006parent\030\001 \001(\tB\006\372A\003\n\001*\022\021\n\tpage_s" + + "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022+\n\004view\030\004 " + + "\001(\0162\035.google.iam.admin.v1.RoleView\022\024\n\014sh" + + "ow_deleted\030\006 \001(\010\"V\n\021ListRolesResponse\022(\n" + + "\005roles\030\001 \003(\0132\031.google.iam.admin.v1.Role\022" + + "\027\n\017next_page_token\030\002 \001(\t\"&\n\016GetRoleReque" + + "st\022\024\n\004name\030\001 \001(\tB\006\372A\003\n\001*\"e\n\021CreateRoleRe" + + "quest\022\026\n\006parent\030\001 \001(\tB\006\372A\003\n\001*\022\017\n\007role_id" + + "\030\002 \001(\t\022\'\n\004role\030\003 \001(\0132\031.google.iam.admin." + + "v1.Role\"\203\001\n\021UpdateRoleRequest\022\024\n\004name\030\001 " + + "\001(\tB\006\372A\003\n\001*\022\'\n\004role\030\002 \001(\0132\031.google.iam.a" + + "dmin.v1.Role\022/\n\013update_mask\030\003 \001(\0132\032.goog" + + "le.protobuf.FieldMask\"7\n\021DeleteRoleReque" + + "st\022\024\n\004name\030\001 \001(\tB\006\372A\003\n\001*\022\014\n\004etag\030\002 \001(\014\"9" + + "\n\023UndeleteRoleRequest\022\024\n\004name\030\001 \001(\tB\006\372A\003" + + "\n\001*\022\014\n\004etag\030\002 \001(\014\"\311\003\n\nPermission\022\014\n\004name" + + "\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001" + + "(\t\022$\n\030only_in_predefined_roles\030\004 \001(\010B\002\030\001" + + "\022D\n\005stage\030\005 \001(\01625.google.iam.admin.v1.Pe" + + "rmission.PermissionLaunchStage\022[\n\032custom" + + "_roles_support_level\030\006 \001(\01627.google.iam." + + "admin.v1.Permission.CustomRolesSupportLe" + + "vel\022\024\n\014api_disabled\030\007 \001(\010\022\032\n\022primary_per" + + "mission\030\010 \001(\t\"D\n\025PermissionLaunchStage\022\t" + + "\n\005ALPHA\020\000\022\010\n\004BETA\020\001\022\006\n\002GA\020\002\022\016\n\nDEPRECATE" + + "D\020\003\"H\n\027CustomRolesSupportLevel\022\r\n\tSUPPOR" + + "TED\020\000\022\013\n\007TESTING\020\001\022\021\n\rNOT_SUPPORTED\020\002\"d\n" + + "\037QueryTestablePermissionsRequest\022\032\n\022full" + + "_resource_name\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022" + + "\022\n\npage_token\030\003 \001(\t\"q\n QueryTestablePerm" + + "issionsResponse\0224\n\013permissions\030\001 \003(\0132\037.g" + + "oogle.iam.admin.v1.Permission\022\027\n\017next_pa" + + "ge_token\030\002 \001(\t\";\n\035QueryAuditableServices" + + "Request\022\032\n\022full_resource_name\030\001 \001(\t\"\232\001\n\036" + + "QueryAuditableServicesResponse\022V\n\010servic" + + "es\030\001 \003(\0132D.google.iam.admin.v1.QueryAudi" + + "tableServicesResponse.AuditableService\032 " + + "\n\020AuditableService\022\014\n\004name\030\001 \001(\t\"f\n\021Lint" + + "PolicyRequest\022\032\n\022full_resource_name\030\001 \001(" + + "\t\022&\n\tcondition\030\005 \001(\0132\021.google.type.ExprH" + + "\000B\r\n\013lint_object\"\363\002\n\nLintResult\0224\n\005level" + + "\030\001 \001(\0162%.google.iam.admin.v1.LintResult." + + "Level\022\034\n\024validation_unit_name\030\002 \001(\t\022:\n\010s" + + "everity\030\003 \001(\0162(.google.iam.admin.v1.Lint" + + "Result.Severity\022\022\n\nfield_name\030\005 \001(\t\022\027\n\017l" + + "ocation_offset\030\006 \001(\005\022\025\n\rdebug_message\030\007 " + + "\001(\t\"-\n\005Level\022\025\n\021LEVEL_UNSPECIFIED\020\000\022\r\n\tC" + + "ONDITION\020\003\"b\n\010Severity\022\030\n\024SEVERITY_UNSPE" + + "CIFIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\n\n\006NOTI" + + "CE\020\003\022\010\n\004INFO\020\004\022\016\n\nDEPRECATED\020\005\"K\n\022LintPo" + + "licyResponse\0225\n\014lint_results\030\001 \003(\0132\037.goo" + + "gle.iam.admin.v1.LintResult*a\n\032ServiceAc" + + "countKeyAlgorithm\022\027\n\023KEY_ALG_UNSPECIFIED" + + "\020\000\022\024\n\020KEY_ALG_RSA_1024\020\001\022\024\n\020KEY_ALG_RSA_" + + "2048\020\002*l\n\034ServiceAccountPrivateKeyType\022\024" + + "\n\020TYPE_UNSPECIFIED\020\000\022\024\n\020TYPE_PKCS12_FILE" + + "\020\001\022 \n\034TYPE_GOOGLE_CREDENTIALS_FILE\020\002*]\n\033" + + "ServiceAccountPublicKeyType\022\r\n\tTYPE_NONE" + + "\020\000\022\026\n\022TYPE_X509_PEM_FILE\020\001\022\027\n\023TYPE_RAW_P" + + "UBLIC_KEY\020\002*Y\n\027ServiceAccountKeyOrigin\022\026" + + "\n\022ORIGIN_UNSPECIFIED\020\000\022\021\n\rUSER_PROVIDED\020" + + "\001\022\023\n\017GOOGLE_PROVIDED\020\002*\037\n\010RoleView\022\t\n\005BA" + + "SIC\020\000\022\010\n\004FULL\020\0012\232+\n\003IAM\022\256\001\n\023ListServiceA" + + "ccounts\022/.google.iam.admin.v1.ListServic" + + "eAccountsRequest\0320.google.iam.admin.v1.L" + + "istServiceAccountsResponse\"4\202\323\344\223\002\'\022%/v1/" + + "{name=projects/*}/serviceAccounts\332A\004name" + + "\022\237\001\n\021GetServiceAccount\022-.google.iam.admi" + + "n.v1.GetServiceAccountRequest\032#.google.i" + + "am.admin.v1.ServiceAccount\"6\202\323\344\223\002)\022\'/v1/" + + "{name=projects/*/serviceAccounts/*}\332A\004na" + + "me\022\301\001\n\024CreateServiceAccount\0220.google.iam" + + ".admin.v1.CreateServiceAccountRequest\032#." + + "google.iam.admin.v1.ServiceAccount\"R\202\323\344\223" + + "\002*\"%/v1/{name=projects/*}/serviceAccount" + + "s:\001*\332A\037name,account_id,service_account\022\224" + + "\001\n\024UpdateServiceAccount\022#.google.iam.adm" + + "in.v1.ServiceAccount\032#.google.iam.admin." + + "v1.ServiceAccount\"2\202\323\344\223\002,\032\'/v1/{name=pro" + + "jects/*/serviceAccounts/*}:\001*\022\257\001\n\023PatchS" + + "erviceAccount\022/.google.iam.admin.v1.Patc" + + "hServiceAccountRequest\032#.google.iam.admi" + + "n.v1.ServiceAccount\"B\202\323\344\223\002<27/v1/{servic" + + "e_account.name=projects/*/serviceAccount" + + "s/*}:\001*\022\230\001\n\024DeleteServiceAccount\0220.googl" + + "e.iam.admin.v1.DeleteServiceAccountReque" + + "st\032\026.google.protobuf.Empty\"6\202\323\344\223\002)*\'/v1/" + + "{name=projects/*/serviceAccounts/*}\332A\004na" + + "me\022\276\001\n\026UndeleteServiceAccount\0222.google.i" + + "am.admin.v1.UndeleteServiceAccountReques" + + "t\0323.google.iam.admin.v1.UndeleteServiceA" + + "ccountResponse\";\202\323\344\223\0025\"0/v1/{name=projec" + + "ts/*/serviceAccounts/*}:undelete:\001*\022\233\001\n\024" + + "EnableServiceAccount\0220.google.iam.admin." + + "v1.EnableServiceAccountRequest\032\026.google." + + "protobuf.Empty\"9\202\323\344\223\0023\"./v1/{name=projec" + + "ts/*/serviceAccounts/*}:enable:\001*\022\236\001\n\025Di" + + "sableServiceAccount\0221.google.iam.admin.v" + + "1.DisableServiceAccountRequest\032\026.google." + + "protobuf.Empty\":\202\323\344\223\0024\"//v1/{name=projec" + + "ts/*/serviceAccounts/*}:disable:\001*\022\310\001\n\026L" + + "istServiceAccountKeys\0222.google.iam.admin" + + ".v1.ListServiceAccountKeysRequest\0323.goog" + + "le.iam.admin.v1.ListServiceAccountKeysRe" + + "sponse\"E\202\323\344\223\002.\022,/v1/{name=projects/*/ser" + + "viceAccounts/*}/keys\332A\016name,key_types\022\277\001" + + "\n\024GetServiceAccountKey\0220.google.iam.admi" + + "n.v1.GetServiceAccountKeyRequest\032&.googl" + + "e.iam.admin.v1.ServiceAccountKey\"M\202\323\344\223\0020" + + "\022./v1/{name=projects/*/serviceAccounts/*" + + "/keys/*}\332A\024name,public_key_type\022\325\001\n\027Crea" + + "teServiceAccountKey\0223.google.iam.admin.v" + + "1.CreateServiceAccountKeyRequest\032&.googl" + + "e.iam.admin.v1.ServiceAccountKey\"]\202\323\344\223\0021" + + "\",/v1/{name=projects/*/serviceAccounts/*" + + "}/keys:\001*\332A#name,private_key_type,key_al" + + "gorithm\022\266\001\n\027UploadServiceAccountKey\0223.go" + + "ogle.iam.admin.v1.UploadServiceAccountKe" + + "yRequest\032&.google.iam.admin.v1.ServiceAc" + + "countKey\">\202\323\344\223\0028\"3/v1/{name=projects/*/s" + + "erviceAccounts/*}/keys:upload:\001*\022\245\001\n\027Del" + + "eteServiceAccountKey\0223.google.iam.admin." + + "v1.DeleteServiceAccountKeyRequest\032\026.goog" + + "le.protobuf.Empty\"=\202\323\344\223\0020*./v1/{name=pro" + + "jects/*/serviceAccounts/*/keys/*}\332A\004name" + + "\022\262\001\n\030DisableServiceAccountKey\0224.google.i" + + "am.admin.v1.DisableServiceAccountKeyRequ" + + "est\032\026.google.protobuf.Empty\"H\202\323\344\223\002;\"6/v1" + + "/{name=projects/*/serviceAccounts/*/keys" + + "/*}:disable:\001*\332A\004name\022\257\001\n\027EnableServiceA" + + "ccountKey\0223.google.iam.admin.v1.EnableSe" + + "rviceAccountKeyRequest\032\026.google.protobuf" + + ".Empty\"G\202\323\344\223\002:\"5/v1/{name=projects/*/ser" + + "viceAccounts/*/keys/*}:enable:\001*\332A\004name\022" + + "\254\001\n\010SignBlob\022$.google.iam.admin.v1.SignB" + + "lobRequest\032%.google.iam.admin.v1.SignBlo" + + "bResponse\"S\210\002\001\202\323\344\223\0025\"0/v1/{name=projects" + + "/*/serviceAccounts/*}:signBlob:\001*\332A\022name" + + ",bytes_to_sign\022\242\001\n\007SignJwt\022#.google.iam." + + "admin.v1.SignJwtRequest\032$.google.iam.adm" + + "in.v1.SignJwtResponse\"L\210\002\001\202\323\344\223\0024\"//v1/{n" + + "ame=projects/*/serviceAccounts/*}:signJw" + + "t:\001*\332A\014name,payload\022\226\001\n\014GetIamPolicy\022\".g" + + "oogle.iam.v1.GetIamPolicyRequest\032\025.googl" + + "e.iam.v1.Policy\"K\202\323\344\223\002:\"8/v1/{resource=p" + + "rojects/*/serviceAccounts/*}:getIamPolic" + + "y\332A\010resource\022\240\001\n\014SetIamPolicy\022\".google.i" + + "am.v1.SetIamPolicyRequest\032\025.google.iam.v" + + "1.Policy\"U\202\323\344\223\002=\"8/v1/{resource=projects" + + "/*/serviceAccounts/*}:setIamPolicy:\001*\332A\017" + + "resource,policy\022\313\001\n\022TestIamPermissions\022(" + + ".google.iam.v1.TestIamPermissionsRequest" + + "\032).google.iam.v1.TestIamPermissionsRespo" + + "nse\"`\202\323\344\223\002C\">/v1/{resource=projects/*/se" + + "rviceAccounts/*}:testIamPermissions:\001*\332A" + + "\024resource,permissions\022\267\001\n\023QueryGrantable" + + "Roles\022/.google.iam.admin.v1.QueryGrantab" + + "leRolesRequest\0320.google.iam.admin.v1.Que" + + "ryGrantableRolesResponse\"=\202\323\344\223\002\"\"\035/v1/ro" + + "les:queryGrantableRoles:\001*\332A\022full_resour" + + "ce_name\022\264\001\n\tListRoles\022%.google.iam.admin" + + ".v1.ListRolesRequest\032&.google.iam.admin." + + "v1.ListRolesResponse\"X\202\323\344\223\002R\022\t/v1/rolesZ" + + "$\022\"/v1/{parent=organizations/*}/rolesZ\037\022" + + "\035/v1/{parent=projects/*}/roles\022\254\001\n\007GetRo" + + "le\022#.google.iam.admin.v1.GetRoleRequest\032" + + "\031.google.iam.admin.v1.Role\"a\202\323\344\223\002[\022\022/v1/" + + "{name=roles/*}Z$\022\"/v1/{name=organization" + + "s/*/roles/*}Z\037\022\035/v1/{name=projects/*/rol" + + "es/*}\022\242\001\n\nCreateRole\022&.google.iam.admin." + + "v1.CreateRoleRequest\032\031.google.iam.admin." + + "v1.Role\"Q\202\323\344\223\002K\"\"/v1/{parent=organizatio" + + "ns/*}/roles:\001*Z\"\"\035/v1/{parent=projects/*" + + "}/roles:\001*\022\250\001\n\nUpdateRole\022&.google.iam.a" + + "dmin.v1.UpdateRoleRequest\032\031.google.iam.a" + + "dmin.v1.Role\"W\202\323\344\223\002Q2\"/v1/{name=organiza" + + "tions/*/roles/*}:\004roleZ%2\035/v1/{name=proj" + + "ects/*/roles/*}:\004role\022\234\001\n\nDeleteRole\022&.g" + + "oogle.iam.admin.v1.DeleteRoleRequest\032\031.g" + + "oogle.iam.admin.v1.Role\"K\202\323\344\223\002E*\"/v1/{na" + + "me=organizations/*/roles/*}Z\037*\035/v1/{name" + + "=projects/*/roles/*}\022\270\001\n\014UndeleteRole\022(." + + "google.iam.admin.v1.UndeleteRoleRequest\032" + + "\031.google.iam.admin.v1.Role\"c\202\323\344\223\002]\"+/v1/" + + "{name=organizations/*/roles/*}:undelete:" + + "\001*Z+\"&/v1/{name=projects/*/roles/*}:unde" + + "lete:\001*\022\274\001\n\030QueryTestablePermissions\0224.g" + + "oogle.iam.admin.v1.QueryTestablePermissi" + + "onsRequest\0325.google.iam.admin.v1.QueryTe" + + "stablePermissionsResponse\"3\202\323\344\223\002-\"(/v1/p" + + "ermissions:queryTestablePermissions:\001*\022\264" + + "\001\n\026QueryAuditableServices\0222.google.iam.a" + + "dmin.v1.QueryAuditableServicesRequest\0323." + + "google.iam.admin.v1.QueryAuditableServic" + + "esResponse\"1\202\323\344\223\002+\"&/v1/iamPolicies:quer" + + "yAuditableServices:\001*\022\204\001\n\nLintPolicy\022&.g" + + "oogle.iam.admin.v1.LintPolicyRequest\032\'.g" + + "oogle.iam.admin.v1.LintPolicyResponse\"%\202" + + "\323\344\223\002\037\"\032/v1/iamPolicies:lintPolicy:\001*\032F\312A" + + "\022iam.googleapis.com\322A.https://www.google" + + "apis.com/auth/cloud-platformB\220\001\n\027com.goo" + + "gle.iam.admin.v1P\001Z8google.golang.org/ge" + + "nproto/googleapis/iam/admin/v1;admin\370\001\001\252" + + "\002\031Google.Cloud.Iam.Admin.V1\312\002\031Google\\Clo" + + "ud\\Iam\\Admin\\V1b\006proto3" + }; + descriptor = + com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( + descriptorData, + new com.google.protobuf.Descriptors.FileDescriptor[] { + com.google.api.AnnotationsProto.getDescriptor(), + com.google.api.ClientProto.getDescriptor(), + com.google.api.FieldBehaviorProto.getDescriptor(), + com.google.api.ResourceProto.getDescriptor(), + com.google.iam.v1.IamPolicyProto.getDescriptor(), + com.google.iam.v1.PolicyProto.getDescriptor(), + com.google.protobuf.EmptyProto.getDescriptor(), + com.google.protobuf.FieldMaskProto.getDescriptor(), + com.google.protobuf.TimestampProto.getDescriptor(), + com.google.type.ExprProto.getDescriptor(), + }); + internal_static_google_iam_admin_v1_ServiceAccount_descriptor = + getDescriptor().getMessageTypes().get(0); + internal_static_google_iam_admin_v1_ServiceAccount_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_ServiceAccount_descriptor, + new java.lang.String[] { + "Name", + "ProjectId", + "UniqueId", + "Email", + "DisplayName", + "Etag", + "Description", + "Oauth2ClientId", + "Disabled", + }); + internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(1); + internal_static_google_iam_admin_v1_CreateServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor, + new java.lang.String[] { + "Name", "AccountId", "ServiceAccount", + }); + internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor = + getDescriptor().getMessageTypes().get(2); + internal_static_google_iam_admin_v1_ListServiceAccountsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor, + new java.lang.String[] { + "Name", "PageSize", "PageToken", + }); + internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor = + getDescriptor().getMessageTypes().get(3); + internal_static_google_iam_admin_v1_ListServiceAccountsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor, + new java.lang.String[] { + "Accounts", "NextPageToken", + }); + internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(4); + internal_static_google_iam_admin_v1_GetServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(5); + internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(6); + internal_static_google_iam_admin_v1_PatchServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor, + new java.lang.String[] { + "ServiceAccount", "UpdateMask", + }); + internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(7); + internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor = + getDescriptor().getMessageTypes().get(8); + internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor, + new java.lang.String[] { + "RestoredAccount", + }); + internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(9); + internal_static_google_iam_admin_v1_EnableServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor = + getDescriptor().getMessageTypes().get(10); + internal_static_google_iam_admin_v1_DisableServiceAccountRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor, + new java.lang.String[] { + "Name", "KeyTypes", + }); + internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor = + getDescriptor().getMessageTypes().get(12); + internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor, + new java.lang.String[] { + "Keys", + }); + internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(13); + internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor, + new java.lang.String[] { + "Name", "PublicKeyType", + }); + internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor = + getDescriptor().getMessageTypes().get(14); + internal_static_google_iam_admin_v1_ServiceAccountKey_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor, + new java.lang.String[] { + "Name", + "PrivateKeyType", + "KeyAlgorithm", + "PrivateKeyData", + "PublicKeyData", + "ValidAfterTime", + "ValidBeforeTime", + "KeyOrigin", + "KeyType", + "Disabled", + }); + internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(15); + internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor, + new java.lang.String[] { + "Name", "PrivateKeyType", "KeyAlgorithm", + }); + internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(16); + internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor, + new java.lang.String[] { + "Name", "PublicKeyData", + }); + internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(17); + internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(18); + internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor = + getDescriptor().getMessageTypes().get(19); + internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_SignBlobRequest_descriptor = + getDescriptor().getMessageTypes().get(20); + internal_static_google_iam_admin_v1_SignBlobRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_SignBlobRequest_descriptor, + new java.lang.String[] { + "Name", "BytesToSign", + }); + internal_static_google_iam_admin_v1_SignBlobResponse_descriptor = + getDescriptor().getMessageTypes().get(21); + internal_static_google_iam_admin_v1_SignBlobResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_SignBlobResponse_descriptor, + new java.lang.String[] { + "KeyId", "Signature", + }); + internal_static_google_iam_admin_v1_SignJwtRequest_descriptor = + getDescriptor().getMessageTypes().get(22); + internal_static_google_iam_admin_v1_SignJwtRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_SignJwtRequest_descriptor, + new java.lang.String[] { + "Name", "Payload", + }); + internal_static_google_iam_admin_v1_SignJwtResponse_descriptor = + getDescriptor().getMessageTypes().get(23); + internal_static_google_iam_admin_v1_SignJwtResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_SignJwtResponse_descriptor, + new java.lang.String[] { + "KeyId", "SignedJwt", + }); + internal_static_google_iam_admin_v1_Role_descriptor = getDescriptor().getMessageTypes().get(24); + internal_static_google_iam_admin_v1_Role_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_Role_descriptor, + new java.lang.String[] { + "Name", "Title", "Description", "IncludedPermissions", "Stage", "Etag", "Deleted", + }); + internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor = + getDescriptor().getMessageTypes().get(25); + internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor, + new java.lang.String[] { + "FullResourceName", "View", "PageSize", "PageToken", + }); + internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor = + getDescriptor().getMessageTypes().get(26); + internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor, + new java.lang.String[] { + "Roles", "NextPageToken", + }); + internal_static_google_iam_admin_v1_ListRolesRequest_descriptor = + getDescriptor().getMessageTypes().get(27); + internal_static_google_iam_admin_v1_ListRolesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_ListRolesRequest_descriptor, + new java.lang.String[] { + "Parent", "PageSize", "PageToken", "View", "ShowDeleted", + }); + internal_static_google_iam_admin_v1_ListRolesResponse_descriptor = + getDescriptor().getMessageTypes().get(28); + internal_static_google_iam_admin_v1_ListRolesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_ListRolesResponse_descriptor, + new java.lang.String[] { + "Roles", "NextPageToken", + }); + internal_static_google_iam_admin_v1_GetRoleRequest_descriptor = + getDescriptor().getMessageTypes().get(29); + internal_static_google_iam_admin_v1_GetRoleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_GetRoleRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor = + getDescriptor().getMessageTypes().get(30); + internal_static_google_iam_admin_v1_CreateRoleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor, + new java.lang.String[] { + "Parent", "RoleId", "Role", + }); + internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor = + getDescriptor().getMessageTypes().get(31); + internal_static_google_iam_admin_v1_UpdateRoleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor, + new java.lang.String[] { + "Name", "Role", "UpdateMask", + }); + internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor = + getDescriptor().getMessageTypes().get(32); + internal_static_google_iam_admin_v1_DeleteRoleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_iam_admin_v1_UndeleteRoleRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor, + new java.lang.String[] { + "Name", "Etag", + }); + internal_static_google_iam_admin_v1_Permission_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_iam_admin_v1_Permission_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_Permission_descriptor, + new java.lang.String[] { + "Name", + "Title", + "Description", + "OnlyInPredefinedRoles", + "Stage", + "CustomRolesSupportLevel", + "ApiDisabled", + "PrimaryPermission", + }); + internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor = + getDescriptor().getMessageTypes().get(35); + internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor, + new java.lang.String[] { + "FullResourceName", "PageSize", "PageToken", + }); + internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor = + getDescriptor().getMessageTypes().get(36); + internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor, + new java.lang.String[] { + "Permissions", "NextPageToken", + }); + internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor = + getDescriptor().getMessageTypes().get(37); + internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor, + new java.lang.String[] { + "FullResourceName", + }); + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor = + getDescriptor().getMessageTypes().get(38); + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor, + new java.lang.String[] { + "Services", + }); + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor = + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor + .getNestedTypes() + .get(0); + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor = + getDescriptor().getMessageTypes().get(39); + internal_static_google_iam_admin_v1_LintPolicyRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor, + new java.lang.String[] { + "FullResourceName", "Condition", "LintObject", + }); + internal_static_google_iam_admin_v1_LintResult_descriptor = + getDescriptor().getMessageTypes().get(40); + internal_static_google_iam_admin_v1_LintResult_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_LintResult_descriptor, + new java.lang.String[] { + "Level", + "ValidationUnitName", + "Severity", + "FieldName", + "LocationOffset", + "DebugMessage", + }); + internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor = + getDescriptor().getMessageTypes().get(41); + internal_static_google_iam_admin_v1_LintPolicyResponse_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor, + new java.lang.String[] { + "LintResults", + }); + com.google.protobuf.ExtensionRegistry registry = + com.google.protobuf.ExtensionRegistry.newInstance(); + registry.add(com.google.api.ClientProto.defaultHost); + registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); + registry.add(com.google.api.AnnotationsProto.http); + registry.add(com.google.api.ClientProto.methodSignature); + registry.add(com.google.api.ClientProto.oauthScopes); + registry.add(com.google.api.ResourceProto.resource); + registry.add(com.google.api.ResourceProto.resourceReference); + com.google.protobuf.Descriptors.FileDescriptor.internalUpdateFileDescriptor( + descriptor, registry); + com.google.api.AnnotationsProto.getDescriptor(); + com.google.api.ClientProto.getDescriptor(); + com.google.api.FieldBehaviorProto.getDescriptor(); + com.google.api.ResourceProto.getDescriptor(); + com.google.iam.v1.IamPolicyProto.getDescriptor(); + com.google.iam.v1.PolicyProto.getDescriptor(); + com.google.protobuf.EmptyProto.getDescriptor(); + com.google.protobuf.FieldMaskProto.getDescriptor(); + com.google.protobuf.TimestampProto.getDescriptor(); + com.google.type.ExprProto.getDescriptor(); + } + + // @@protoc_insertion_point(outer_class_scope) +} diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequest.java index 97946240bed1..18ece066e8dd 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequest.java @@ -113,14 +113,14 @@ private LintPolicyRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.LintPolicyRequest.class, @@ -480,14 +480,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.LintPolicyRequest) com.google.iam.admin.v1.LintPolicyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.LintPolicyRequest.class, @@ -520,7 +520,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponse.java index 6d44137fe668..6aeec54c2ac4 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponse.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponse.java @@ -108,14 +108,14 @@ private LintPolicyResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.LintPolicyResponse.class, @@ -367,14 +367,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.LintPolicyResponse) com.google.iam.admin.v1.LintPolicyResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.LintPolicyResponse.class, @@ -411,7 +411,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResult.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResult.java index 8373ec18fc71..dd53eed9e6f3 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResult.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResult.java @@ -136,14 +136,13 @@ private LintResult( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto - .internal_static_google_iam_admin_v1_LintResult_descriptor; + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.LintResult.class, @@ -330,7 +329,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * won't behave as expected during policy evaluation in `checkPolicy`. * This includes the following common scenarios: * - Unsatisfiable condition: Expired timestamp in date/time condition. - * - Ineffective condition: Condition on a <member, role> pair which is + * - Ineffective condition: Condition on a <principal, role> pair which is * granted unconditionally in another binding of the same policy. *
    * @@ -407,7 +406,7 @@ public enum Severity implements com.google.protobuf.ProtocolMessageEnum { * won't behave as expected during policy evaluation in `checkPolicy`. * This includes the following common scenarios: * - Unsatisfiable condition: Expired timestamp in date/time condition. - * - Ineffective condition: Condition on a <member, role> pair which is + * - Ineffective condition: Condition on a <principal, role> pair which is * granted unconditionally in another binding of the same policy. *
    * @@ -1006,14 +1005,13 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.LintResult) com.google.iam.admin.v1.LintResultOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto - .internal_static_google_iam_admin_v1_LintResult_descriptor; + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintResult_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_LintResult_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.LintResult.class, @@ -1054,8 +1052,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto - .internal_static_google_iam_admin_v1_LintResult_descriptor; + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintResult_descriptor; } @java.lang.Override diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequest.java index dab7f15475cc..3d9b34541125 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequest.java @@ -125,14 +125,14 @@ private ListRolesRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ListRolesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ListRolesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.ListRolesRequest.class, @@ -147,23 +147,26 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
        * The `parent` parameter's value depends on the target resource for the
        * request, namely
    -   * [`roles`](/iam/reference/rest/v1/roles),
    -   * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `parent` value format is described below:
    -   * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `parent` value format is described below:
    +   * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
        *   This method doesn't require a resource; it simply returns all
    -   *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -   *   Cloud IAM. Example request URL:
    -   *   `https://iam.googleapis.com/v1/roles`
    -   * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +   *   [predefined
    +   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +   *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +   * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
        *   `projects/{PROJECT_ID}`. This method lists all project-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles).
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +   * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
        *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -   *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +   *   organization-level [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -192,23 +195,26 @@ public java.lang.String getParent() {
        * 
        * The `parent` parameter's value depends on the target resource for the
        * request, namely
    -   * [`roles`](/iam/reference/rest/v1/roles),
    -   * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `parent` value format is described below:
    -   * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `parent` value format is described below:
    +   * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
        *   This method doesn't require a resource; it simply returns all
    -   *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -   *   Cloud IAM. Example request URL:
    -   *   `https://iam.googleapis.com/v1/roles`
    -   * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +   *   [predefined
    +   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +   *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +   * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
        *   `projects/{PROJECT_ID}`. This method lists all project-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles).
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +   * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
        *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -   *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +   *   organization-level [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -567,14 +573,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListRolesRequest)
           com.google.iam.admin.v1.ListRolesRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListRolesRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListRolesRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.ListRolesRequest.class,
    @@ -613,7 +619,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListRolesRequest_descriptor;
         }
     
    @@ -742,23 +748,26 @@ public Builder mergeFrom(
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
          *   This method doesn't require a resource; it simply returns all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
          *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
          *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +     *   organization-level [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -786,23 +795,26 @@ public java.lang.String getParent() {
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
          *   This method doesn't require a resource; it simply returns all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
          *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
          *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +     *   organization-level [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -830,23 +842,26 @@ public com.google.protobuf.ByteString getParentBytes() {
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
          *   This method doesn't require a resource; it simply returns all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
          *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
          *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +     *   organization-level [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -873,23 +888,26 @@ public Builder setParent(java.lang.String value) {
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
          *   This method doesn't require a resource; it simply returns all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
          *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
          *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +     *   organization-level [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -912,23 +930,26 @@ public Builder clearParent() {
          * 
          * The `parent` parameter's value depends on the target resource for the
          * request, namely
    -     * [`roles`](/iam/reference/rest/v1/roles),
    -     * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `parent` value format is described below:
    -     * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `parent` value format is described below:
    +     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
          *   This method doesn't require a resource; it simply returns all
    -     *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -     *   Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +     *   [predefined
    +     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
          *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom roles](/iam/docs/understanding-custom-roles).
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
          *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +     *   organization-level [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
          *   Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequestOrBuilder.java
    index bd5ec88c1848..f78ba115ce67 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequestOrBuilder.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequestOrBuilder.java
    @@ -29,23 +29,26 @@ public interface ListRolesRequestOrBuilder
        * 
        * The `parent` parameter's value depends on the target resource for the
        * request, namely
    -   * [`roles`](/iam/reference/rest/v1/roles),
    -   * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `parent` value format is described below:
    -   * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `parent` value format is described below:
    +   * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
        *   This method doesn't require a resource; it simply returns all
    -   *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -   *   Cloud IAM. Example request URL:
    -   *   `https://iam.googleapis.com/v1/roles`
    -   * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +   *   [predefined
    +   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +   *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +   * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
        *   `projects/{PROJECT_ID}`. This method lists all project-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles).
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +   * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
        *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -   *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +   *   organization-level [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -63,23 +66,26 @@ public interface ListRolesRequestOrBuilder
        * 
        * The `parent` parameter's value depends on the target resource for the
        * request, namely
    -   * [`roles`](/iam/reference/rest/v1/roles),
    -   * [`projects`](/iam/reference/rest/v1/projects.roles), or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `parent` value format is described below:
    -   * * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string.
    +   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `parent` value format is described below:
    +   * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
        *   This method doesn't require a resource; it simply returns all
    -   *   [predefined roles](/iam/docs/understanding-roles#predefined_roles) in
    -   *   Cloud IAM. Example request URL:
    -   *   `https://iam.googleapis.com/v1/roles`
    -   * * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list):
    +   *   [predefined
    +   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    +   *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    +   * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
        *   `projects/{PROJECT_ID}`. This method lists all project-level
    -   *   [custom roles](/iam/docs/understanding-custom-roles).
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list):
    +   * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
        *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -   *   organization-level [custom roles](/iam/docs/understanding-custom-roles).
    +   *   organization-level [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
        *   Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponse.java
    index 6c0dd2001ce6..5b8c0a5b1b45 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponse.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponse.java
    @@ -114,14 +114,14 @@ private ListRolesResponse(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListRolesResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListRolesResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.ListRolesResponse.class,
    @@ -431,14 +431,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListRolesResponse)
           com.google.iam.admin.v1.ListRolesResponseOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListRolesResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListRolesResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.ListRolesResponse.class,
    @@ -477,7 +477,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListRolesResponse_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequest.java
    index 4a65bfd9270f..73fff3e0a05f 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequest.java
    @@ -129,14 +129,14 @@ private ListServiceAccountKeysRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.ListServiceAccountKeysRequest.class,
    @@ -675,14 +675,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListServiceAccountKeysRequest)
           com.google.iam.admin.v1.ListServiceAccountKeysRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.ListServiceAccountKeysRequest.class,
    @@ -715,7 +715,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponse.java
    index 6cae76c3698d..77b4095172c8 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponse.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponse.java
    @@ -108,14 +108,14 @@ private ListServiceAccountKeysResponse(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.ListServiceAccountKeysResponse.class,
    @@ -367,14 +367,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListServiceAccountKeysResponse)
           com.google.iam.admin.v1.ListServiceAccountKeysResponseOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.ListServiceAccountKeysResponse.class,
    @@ -411,7 +411,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequest.java
    index e00cfccea10d..949073f6b452 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequest.java
    @@ -112,14 +112,14 @@ private ListServiceAccountsRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListServiceAccountsRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.ListServiceAccountsRequest.class,
    @@ -445,14 +445,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListServiceAccountsRequest)
           com.google.iam.admin.v1.ListServiceAccountsRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountsRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.ListServiceAccountsRequest.class,
    @@ -487,7 +487,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponse.java
    index 0ed2f5b0be6e..ed125e2dd6f3 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponse.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponse.java
    @@ -115,14 +115,14 @@ private ListServiceAccountsResponse(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_ListServiceAccountsResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.ListServiceAccountsResponse.class,
    @@ -435,14 +435,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListServiceAccountsResponse)
           com.google.iam.admin.v1.ListServiceAccountsResponseOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountsResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.ListServiceAccountsResponse.class,
    @@ -481,7 +481,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequest.java
    index 6d4cdd9a706d..cca7e76d3aa5 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequest.java
    @@ -22,8 +22,7 @@
      *
      *
      * 
    - * The request for
    - * [PatchServiceAccount][google.iam.admin.v1.PatchServiceAccount].
    + * The service account patch request.
      * You can patch only the `display_name` and `description` fields. You must use
      * the `update_mask` field to specify which of these fields you want to patch.
      * Only the fields specified in the request are guaranteed to be returned in
    @@ -126,14 +125,14 @@ private PatchServiceAccountRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_PatchServiceAccountRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.PatchServiceAccountRequest.class,
    @@ -376,8 +375,7 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
        *
        *
        * 
    -   * The request for
    -   * [PatchServiceAccount][google.iam.admin.v1.PatchServiceAccount].
    +   * The service account patch request.
        * You can patch only the `display_name` and `description` fields. You must use
        * the `update_mask` field to specify which of these fields you want to patch.
        * Only the fields specified in the request are guaranteed to be returned in
    @@ -391,14 +389,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.PatchServiceAccountRequest)
           com.google.iam.admin.v1.PatchServiceAccountRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_PatchServiceAccountRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.PatchServiceAccountRequest.class,
    @@ -439,7 +437,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Permission.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Permission.java
    index c658c0f53b71..5e378f165f64 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Permission.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Permission.java
    @@ -149,14 +149,13 @@ private Permission(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    -        .internal_static_google_iam_admin_v1_Permission_descriptor;
    +    return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Permission_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_Permission_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.Permission.class,
    @@ -359,7 +358,7 @@ public enum CustomRolesSupportLevel implements com.google.protobuf.ProtocolMessa
          *
          *
          * 
    -     * Permission is fully supported for custom role use.
    +     * Default state. Permission is fully supported for custom role use.
          * 
    * * SUPPORTED = 0; @@ -392,7 +391,7 @@ public enum CustomRolesSupportLevel implements com.google.protobuf.ProtocolMessa * * *
    -     * Permission is fully supported for custom role use.
    +     * Default state. Permission is fully supported for custom role use.
          * 
    * * SUPPORTED = 0; @@ -660,7 +659,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * bool only_in_predefined_roles = 4 [deprecated = true]; * * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See - * google/iam/admin/v1/iam.proto;l=1341 + * google/iam/admin/v1/iam.proto;l=1450 * @return The onlyInPredefinedRoles. */ @java.lang.Override @@ -1053,14 +1052,13 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.Permission) com.google.iam.admin.v1.PermissionOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto - .internal_static_google_iam_admin_v1_Permission_descriptor; + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Permission_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_Permission_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.Permission.class, @@ -1105,8 +1103,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto - .internal_static_google_iam_admin_v1_Permission_descriptor; + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Permission_descriptor; } @java.lang.Override @@ -1568,7 +1565,7 @@ public Builder setDescriptionBytes(com.google.protobuf.ByteString value) { * bool only_in_predefined_roles = 4 [deprecated = true]; * * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See - * google/iam/admin/v1/iam.proto;l=1341 + * google/iam/admin/v1/iam.proto;l=1450 * @return The onlyInPredefinedRoles. */ @java.lang.Override @@ -1580,7 +1577,7 @@ public boolean getOnlyInPredefinedRoles() { * bool only_in_predefined_roles = 4 [deprecated = true]; * * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See - * google/iam/admin/v1/iam.proto;l=1341 + * google/iam/admin/v1/iam.proto;l=1450 * @param value The onlyInPredefinedRoles to set. * @return This builder for chaining. */ @@ -1595,7 +1592,7 @@ public Builder setOnlyInPredefinedRoles(boolean value) { * bool only_in_predefined_roles = 4 [deprecated = true]; * * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See - * google/iam/admin/v1/iam.proto;l=1341 + * google/iam/admin/v1/iam.proto;l=1450 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PermissionOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PermissionOrBuilder.java index 7575bc9f42ea..0192a61435af 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PermissionOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PermissionOrBuilder.java @@ -104,7 +104,7 @@ public interface PermissionOrBuilder * bool only_in_predefined_roles = 4 [deprecated = true]; * * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. See - * google/iam/admin/v1/iam.proto;l=1341 + * google/iam/admin/v1/iam.proto;l=1450 * @return The onlyInPredefinedRoles. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequest.java index 6613246d2f47..35ffc41b122f 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequest.java @@ -99,14 +99,14 @@ private QueryAuditableServicesRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryAuditableServicesRequest.class, @@ -344,14 +344,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryAuditableServicesRequest) com.google.iam.admin.v1.QueryAuditableServicesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryAuditableServicesRequest.class, @@ -382,7 +382,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponse.java index 060b6d5d3d6c..30938c983594 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponse.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponse.java @@ -112,14 +112,14 @@ private QueryAuditableServicesResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryAuditableServicesResponse.class, @@ -239,14 +239,14 @@ private AuditableService( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.class, @@ -483,14 +483,14 @@ public static final class Builder // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableServiceOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.class, @@ -523,7 +523,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor; } @@ -1070,14 +1070,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryAuditableServicesResponse) com.google.iam.admin.v1.QueryAuditableServicesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryAuditableServicesResponse.class, @@ -1114,7 +1114,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequest.java index a08f530a494f..917dcae60848 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequest.java @@ -120,14 +120,14 @@ private QueryGrantableRolesRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryGrantableRolesRequest.class, @@ -482,14 +482,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryGrantableRolesRequest) com.google.iam.admin.v1.QueryGrantableRolesRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryGrantableRolesRequest.class, @@ -526,7 +526,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponse.java index 6512f7fd239d..333fed179950 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponse.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponse.java @@ -114,14 +114,14 @@ private QueryGrantableRolesResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryGrantableRolesResponse.class, @@ -431,14 +431,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryGrantableRolesResponse) com.google.iam.admin.v1.QueryGrantableRolesResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryGrantableRolesResponse.class, @@ -477,7 +477,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequest.java index f221da57fc67..bcba7b3163c5 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequest.java @@ -113,14 +113,14 @@ private QueryTestablePermissionsRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryTestablePermissionsRequest.class, @@ -446,14 +446,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryTestablePermissionsRequest) com.google.iam.admin.v1.QueryTestablePermissionsRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryTestablePermissionsRequest.class, @@ -488,7 +488,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponse.java index af8a948a187a..08a894d35f90 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponse.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponse.java @@ -116,14 +116,14 @@ private QueryTestablePermissionsResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryTestablePermissionsResponse.class, @@ -435,14 +435,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryTestablePermissionsResponse) com.google.iam.admin.v1.QueryTestablePermissionsResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.QueryTestablePermissionsResponse.class, @@ -481,7 +481,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor; } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Role.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Role.java index 087eb828dc18..fc9edf7438fb 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Role.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Role.java @@ -149,14 +149,13 @@ private Role( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto.internal_static_google_iam_admin_v1_Role_descriptor; + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto - .internal_static_google_iam_admin_v1_Role_fieldAccessorTable + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.Role.class, com.google.iam.admin.v1.Role.Builder.class); } @@ -217,8 +216,8 @@ public enum RoleLaunchStage implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * This role is disabled and will not contribute permissions to any members
    -     * it is granted to in policies.
    +     * This role is disabled and will not contribute permissions to any
    +     * principals it is granted to in policies.
          * 
    * * DISABLED = 5; @@ -283,8 +282,8 @@ public enum RoleLaunchStage implements com.google.protobuf.ProtocolMessageEnum { * * *
    -     * This role is disabled and will not contribute permissions to any members
    -     * it is granted to in policies.
    +     * This role is disabled and will not contribute permissions to any
    +     * principals it is granted to in policies.
          * 
    * * DISABLED = 5; @@ -919,14 +918,13 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.Role) com.google.iam.admin.v1.RoleOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto.internal_static_google_iam_admin_v1_Role_descriptor; + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto - .internal_static_google_iam_admin_v1_Role_fieldAccessorTable + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.Role.class, com.google.iam.admin.v1.Role.Builder.class); } @@ -967,7 +965,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto.internal_static_google_iam_admin_v1_Role_descriptor; + return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_descriptor; } @java.lang.Override diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleView.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleView.java index 53888c2fffb7..9eb68d83a606 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleView.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleView.java @@ -131,7 +131,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto.getDescriptor().getEnumTypes().get(4); + return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(4); } private static final RoleView[] VALUES = values(); diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccount.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccount.java index d6bd48a146bb..ea0ac6bbf919 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccount.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccount.java @@ -166,14 +166,14 @@ private ServiceAccount( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.ServiceAccount.class, @@ -473,7 +473,7 @@ public com.google.protobuf.ByteString getDisplayNameBytes() { * bytes etag = 7 [deprecated = true]; * * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. See - * google/iam/admin/v1/iam.proto;l=504 + * google/iam/admin/v1/iam.proto;l=538 * @return The etag. */ @java.lang.Override @@ -852,14 +852,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ServiceAccount) com.google.iam.admin.v1.ServiceAccountOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccount_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccount_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.ServiceAccount.class, @@ -906,7 +906,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccount_descriptor; } @@ -1680,7 +1680,7 @@ public Builder setDisplayNameBytes(com.google.protobuf.ByteString value) { * bytes etag = 7 [deprecated = true]; * * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. See - * google/iam/admin/v1/iam.proto;l=504 + * google/iam/admin/v1/iam.proto;l=538 * @return The etag. */ @java.lang.Override @@ -1698,7 +1698,7 @@ public com.google.protobuf.ByteString getEtag() { * bytes etag = 7 [deprecated = true]; * * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. See - * google/iam/admin/v1/iam.proto;l=504 + * google/iam/admin/v1/iam.proto;l=538 * @param value The etag to set. * @return This builder for chaining. */ @@ -1722,7 +1722,7 @@ public Builder setEtag(com.google.protobuf.ByteString value) { * bytes etag = 7 [deprecated = true]; * * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. See - * google/iam/admin/v1/iam.proto;l=504 + * google/iam/admin/v1/iam.proto;l=538 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKey.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKey.java index 2b33aeca72c4..a4d28fc26904 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKey.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKey.java @@ -169,6 +169,11 @@ private ServiceAccountKey( keyType_ = rawValue; break; } + case 88: + { + disabled_ = input.readBool(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -191,14 +196,14 @@ private ServiceAccountKey( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccountKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.ServiceAccountKey.class, @@ -561,6 +566,24 @@ public com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType getKeyType( : result; } + public static final int DISABLED_FIELD_NUMBER = 11; + private boolean disabled_; + /** + * + * + *
    +   * The key status.
    +   * 
    + * + * bool disabled = 11; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -607,6 +630,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io .getNumber()) { output.writeEnum(10, keyType_); } + if (disabled_ != false) { + output.writeBool(11, disabled_); + } unknownFields.writeTo(output); } @@ -648,6 +674,9 @@ public int getSerializedSize() { .getNumber()) { size += com.google.protobuf.CodedOutputStream.computeEnumSize(10, keyType_); } + if (disabled_ != false) { + size += com.google.protobuf.CodedOutputStream.computeBoolSize(11, disabled_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -679,6 +708,7 @@ public boolean equals(final java.lang.Object obj) { } if (keyOrigin_ != other.keyOrigin_) return false; if (keyType_ != other.keyType_) return false; + if (getDisabled() != other.getDisabled()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -712,6 +742,8 @@ public int hashCode() { hash = (53 * hash) + keyOrigin_; hash = (37 * hash) + KEY_TYPE_FIELD_NUMBER; hash = (53 * hash) + keyType_; + hash = (37 * hash) + DISABLED_FIELD_NUMBER; + hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean(getDisabled()); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -844,14 +876,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ServiceAccountKey) com.google.iam.admin.v1.ServiceAccountKeyOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccountKey_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.ServiceAccountKey.class, @@ -901,12 +933,14 @@ public Builder clear() { keyType_ = 0; + disabled_ = false; + return this; } @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor; } @@ -945,6 +979,7 @@ public com.google.iam.admin.v1.ServiceAccountKey buildPartial() { } result.keyOrigin_ = keyOrigin_; result.keyType_ = keyType_; + result.disabled_ = disabled_; onBuilt(); return result; } @@ -1022,6 +1057,9 @@ public Builder mergeFrom(com.google.iam.admin.v1.ServiceAccountKey other) { if (other.keyType_ != 0) { setKeyTypeValue(other.getKeyTypeValue()); } + if (other.getDisabled() != false) { + setDisabled(other.getDisabled()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -2077,6 +2115,58 @@ public Builder clearKeyType() { return this; } + private boolean disabled_; + /** + * + * + *
    +     * The key status.
    +     * 
    + * + * bool disabled = 11; + * + * @return The disabled. + */ + @java.lang.Override + public boolean getDisabled() { + return disabled_; + } + /** + * + * + *
    +     * The key status.
    +     * 
    + * + * bool disabled = 11; + * + * @param value The disabled to set. + * @return This builder for chaining. + */ + public Builder setDisabled(boolean value) { + + disabled_ = value; + onChanged(); + return this; + } + /** + * + * + *
    +     * The key status.
    +     * 
    + * + * bool disabled = 11; + * + * @return This builder for chaining. + */ + public Builder clearDisabled() { + + disabled_ = false; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyAlgorithm.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyAlgorithm.java index 97118c487e2c..448e215c5752 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyAlgorithm.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyAlgorithm.java @@ -153,7 +153,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto.getDescriptor().getEnumTypes().get(0); + return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(0); } private static final ServiceAccountKeyAlgorithm[] VALUES = values(); diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrBuilder.java index 53dd2add8d93..76084efe9218 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrBuilder.java @@ -268,4 +268,17 @@ public interface ServiceAccountKeyOrBuilder * @return The keyType. */ com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType getKeyType(); + + /** + * + * + *
    +   * The key status.
    +   * 
    + * + * bool disabled = 11; + * + * @return The disabled. + */ + boolean getDisabled(); } diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrigin.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrigin.java index c0f0b1239fb4..cd1ea17deda0 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrigin.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrigin.java @@ -153,7 +153,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto.getDescriptor().getEnumTypes().get(3); + return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(3); } private static final ServiceAccountKeyOrigin[] VALUES = values(); diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountOrBuilder.java index 06761bfa1a20..3b4f12035b00 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountOrBuilder.java @@ -194,7 +194,7 @@ public interface ServiceAccountOrBuilder * bytes etag = 7 [deprecated = true]; * * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. See - * google/iam/admin/v1/iam.proto;l=504 + * google/iam/admin/v1/iam.proto;l=538 * @return The etag. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPrivateKeyType.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPrivateKeyType.java index cd764455a1c5..fa6a877f88d6 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPrivateKeyType.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPrivateKeyType.java @@ -157,7 +157,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto.getDescriptor().getEnumTypes().get(1); + return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(1); } private static final ServiceAccountPrivateKeyType[] VALUES = values(); diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPublicKeyType.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPublicKeyType.java index 97912df3230a..be2e4c9b4813 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPublicKeyType.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPublicKeyType.java @@ -32,7 +32,7 @@ public enum ServiceAccountPublicKeyType implements com.google.protobuf.ProtocolM * * *
    -   * Unspecified. Returns nothing here.
    +   * Do not return the public key.
        * 
    * * TYPE_NONE = 0; @@ -65,7 +65,7 @@ public enum ServiceAccountPublicKeyType implements com.google.protobuf.ProtocolM * * *
    -   * Unspecified. Returns nothing here.
    +   * Do not return the public key.
        * 
    * * TYPE_NONE = 0; @@ -153,7 +153,7 @@ public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType } public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto.getDescriptor().getEnumTypes().get(2); + return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(2); } private static final ServiceAccountPublicKeyType[] VALUES = values(); diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequest.java index dfbb638effd8..6b2b04cb588d 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequest.java @@ -107,14 +107,14 @@ private SignBlobRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.SignBlobRequest.class, @@ -141,7 +141,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @return The name. */ @java.lang.Override @@ -175,7 +175,7 @@ public java.lang.String getName() { * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @return The bytes for name. */ @java.lang.Override @@ -207,7 +207,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. See - * google/iam/admin/v1/iam.proto;l=868 + * google/iam/admin/v1/iam.proto;l=986 * @return The bytesToSign. */ @java.lang.Override @@ -399,14 +399,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.SignBlobRequest) com.google.iam.admin.v1.SignBlobRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.SignBlobRequest.class, @@ -439,7 +439,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobRequest_descriptor; } @@ -567,7 +567,7 @@ public Builder mergeFrom( * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @return The name. */ @java.lang.Deprecated @@ -600,7 +600,7 @@ public java.lang.String getName() { * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @return The bytes for name. */ @java.lang.Deprecated @@ -633,7 +633,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @param value The name to set. * @return This builder for chaining. */ @@ -665,7 +665,7 @@ public Builder setName(java.lang.String value) { * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @return This builder for chaining. */ @java.lang.Deprecated @@ -693,7 +693,7 @@ public Builder clearName() { * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @param value The bytes for name to set. * @return This builder for chaining. */ @@ -723,7 +723,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. See - * google/iam/admin/v1/iam.proto;l=868 + * google/iam/admin/v1/iam.proto;l=986 * @return The bytesToSign. */ @java.lang.Override @@ -744,7 +744,7 @@ public com.google.protobuf.ByteString getBytesToSign() { * * * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. See - * google/iam/admin/v1/iam.proto;l=868 + * google/iam/admin/v1/iam.proto;l=986 * @param value The bytesToSign to set. * @return This builder for chaining. */ @@ -771,7 +771,7 @@ public Builder setBytesToSign(com.google.protobuf.ByteString value) { * * * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. See - * google/iam/admin/v1/iam.proto;l=868 + * google/iam/admin/v1/iam.proto;l=986 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequestOrBuilder.java index 0e2941945f21..942b77f9dad4 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequestOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequestOrBuilder.java @@ -41,7 +41,7 @@ public interface SignBlobRequestOrBuilder * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @return The name. */ @java.lang.Deprecated @@ -64,7 +64,7 @@ public interface SignBlobRequestOrBuilder * * * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=856 + * google/iam/admin/v1/iam.proto;l=974 * @return The bytes for name. */ @java.lang.Deprecated @@ -83,7 +83,7 @@ public interface SignBlobRequestOrBuilder * * * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. See - * google/iam/admin/v1/iam.proto;l=868 + * google/iam/admin/v1/iam.proto;l=986 * @return The bytesToSign. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponse.java index bb865ad533b4..6ac6e0502092 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponse.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponse.java @@ -107,14 +107,14 @@ private SignBlobResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.SignBlobResponse.class, @@ -135,7 +135,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @return The keyId. */ @java.lang.Override @@ -163,7 +163,7 @@ public java.lang.String getKeyId() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @return The bytes for keyId. */ @java.lang.Override @@ -194,7 +194,7 @@ public com.google.protobuf.ByteString getKeyIdBytes() { * bytes signature = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. See - * google/iam/admin/v1/iam.proto;l=889 + * google/iam/admin/v1/iam.proto;l=1007 * @return The signature. */ @java.lang.Override @@ -386,14 +386,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.SignBlobResponse) com.google.iam.admin.v1.SignBlobResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.SignBlobResponse.class, @@ -426,7 +426,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignBlobResponse_descriptor; } @@ -548,7 +548,7 @@ public Builder mergeFrom( * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @return The keyId. */ @java.lang.Deprecated @@ -575,7 +575,7 @@ public java.lang.String getKeyId() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @return The bytes for keyId. */ @java.lang.Deprecated @@ -602,7 +602,7 @@ public com.google.protobuf.ByteString getKeyIdBytes() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @param value The keyId to set. * @return This builder for chaining. */ @@ -628,7 +628,7 @@ public Builder setKeyId(java.lang.String value) { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @return This builder for chaining. */ @java.lang.Deprecated @@ -650,7 +650,7 @@ public Builder clearKeyId() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @param value The bytes for keyId to set. * @return This builder for chaining. */ @@ -679,7 +679,7 @@ public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { * bytes signature = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. See - * google/iam/admin/v1/iam.proto;l=889 + * google/iam/admin/v1/iam.proto;l=1007 * @return The signature. */ @java.lang.Override @@ -699,7 +699,7 @@ public com.google.protobuf.ByteString getSignature() { * bytes signature = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. See - * google/iam/admin/v1/iam.proto;l=889 + * google/iam/admin/v1/iam.proto;l=1007 * @param value The signature to set. * @return This builder for chaining. */ @@ -725,7 +725,7 @@ public Builder setSignature(com.google.protobuf.ByteString value) { * bytes signature = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. See - * google/iam/admin/v1/iam.proto;l=889 + * google/iam/admin/v1/iam.proto;l=1007 * @return This builder for chaining. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponseOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponseOrBuilder.java index 2f5cbf2ff116..f9ca11b0a487 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponseOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponseOrBuilder.java @@ -35,7 +35,7 @@ public interface SignBlobResponseOrBuilder * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @return The keyId. */ @java.lang.Deprecated @@ -52,7 +52,7 @@ public interface SignBlobResponseOrBuilder * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=883 + * google/iam/admin/v1/iam.proto;l=1001 * @return The bytes for keyId. */ @java.lang.Deprecated @@ -70,7 +70,7 @@ public interface SignBlobResponseOrBuilder * bytes signature = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. See - * google/iam/admin/v1/iam.proto;l=889 + * google/iam/admin/v1/iam.proto;l=1007 * @return The signature. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequest.java index 2f8b5557cf91..402149e5ca32 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequest.java @@ -109,14 +109,14 @@ private SignJwtRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.SignJwtRequest.class, @@ -143,7 +143,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @return The name. */ @java.lang.Override @@ -177,7 +177,7 @@ public java.lang.String getName() { * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @return The bytes for name. */ @java.lang.Override @@ -205,8 +205,8 @@ public com.google.protobuf.ByteString getNameBytes() { * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -215,7 +215,7 @@ public com.google.protobuf.ByteString getNameBytes() { * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @return The payload. */ @java.lang.Override @@ -240,8 +240,8 @@ public java.lang.String getPayload() { * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -250,7 +250,7 @@ public java.lang.String getPayload() { * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @return The bytes for payload. */ @java.lang.Override @@ -450,14 +450,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.SignJwtRequest) com.google.iam.admin.v1.SignJwtRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.SignJwtRequest.class, @@ -490,7 +490,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtRequest_descriptor; } @@ -619,7 +619,7 @@ public Builder mergeFrom( * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @return The name. */ @java.lang.Deprecated @@ -652,7 +652,7 @@ public java.lang.String getName() { * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @return The bytes for name. */ @java.lang.Deprecated @@ -685,7 +685,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @param value The name to set. * @return This builder for chaining. */ @@ -717,7 +717,7 @@ public Builder setName(java.lang.String value) { * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @return This builder for chaining. */ @java.lang.Deprecated @@ -745,7 +745,7 @@ public Builder clearName() { * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @param value The bytes for name to set. * @return This builder for chaining. */ @@ -771,8 +771,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -781,7 +781,7 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @return The payload. */ @java.lang.Deprecated @@ -805,8 +805,8 @@ public java.lang.String getPayload() { * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -815,7 +815,7 @@ public java.lang.String getPayload() { * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @return The bytes for payload. */ @java.lang.Deprecated @@ -839,8 +839,8 @@ public com.google.protobuf.ByteString getPayloadBytes() { * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -849,7 +849,7 @@ public com.google.protobuf.ByteString getPayloadBytes() { * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @param value The payload to set. * @return This builder for chaining. */ @@ -872,8 +872,8 @@ public Builder setPayload(java.lang.String value) { * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -882,7 +882,7 @@ public Builder setPayload(java.lang.String value) { * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @return This builder for chaining. */ @java.lang.Deprecated @@ -901,8 +901,8 @@ public Builder clearPayload() { * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -911,7 +911,7 @@ public Builder clearPayload() { * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @param value The bytes for payload to set. * @return This builder for chaining. */ diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequestOrBuilder.java index 8e0ac15e7369..fccb35d9f874 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequestOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequestOrBuilder.java @@ -41,7 +41,7 @@ public interface SignJwtRequestOrBuilder * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @return The name. */ @java.lang.Deprecated @@ -64,7 +64,7 @@ public interface SignJwtRequestOrBuilder * * * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. See - * google/iam/admin/v1/iam.proto;l=955 + * google/iam/admin/v1/iam.proto;l=1023 * @return The bytes for name. */ @java.lang.Deprecated @@ -79,8 +79,8 @@ public interface SignJwtRequestOrBuilder * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -89,7 +89,7 @@ public interface SignJwtRequestOrBuilder * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @return The payload. */ @java.lang.Deprecated @@ -103,8 +103,8 @@ public interface SignJwtRequestOrBuilder * The JWT payload to sign. Must be a serialized JSON object that contains a * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - * an integer timestamp that is not in the past and no more than 1 hour in the - * future. + * an integer timestamp that is not in the past and no more than 12 hours in + * the future. * If the JWT Claims Set does not contain an expiration time (`exp`) claim, * this claim is added automatically, with a timestamp that is 1 hour in the * future. @@ -113,7 +113,7 @@ public interface SignJwtRequestOrBuilder * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; * * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. See - * google/iam/admin/v1/iam.proto;l=976 + * google/iam/admin/v1/iam.proto;l=1044 * @return The bytes for payload. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponse.java index 1e32128371b2..92bc3151be6a 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponse.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponse.java @@ -109,14 +109,14 @@ private SignJwtResponse( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.SignJwtResponse.class, @@ -137,7 +137,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @return The keyId. */ @java.lang.Override @@ -165,7 +165,7 @@ public java.lang.String getKeyId() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @return The bytes for keyId. */ @java.lang.Override @@ -196,7 +196,7 @@ public com.google.protobuf.ByteString getKeyIdBytes() { * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @return The signedJwt. */ @java.lang.Override @@ -224,7 +224,7 @@ public java.lang.String getSignedJwt() { * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @return The bytes for signedJwt. */ @java.lang.Override @@ -424,14 +424,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.SignJwtResponse) com.google.iam.admin.v1.SignJwtResponseOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtResponse_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtResponse_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.SignJwtResponse.class, @@ -464,7 +464,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_SignJwtResponse_descriptor; } @@ -587,7 +587,7 @@ public Builder mergeFrom( * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @return The keyId. */ @java.lang.Deprecated @@ -614,7 +614,7 @@ public java.lang.String getKeyId() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @return The bytes for keyId. */ @java.lang.Deprecated @@ -641,7 +641,7 @@ public com.google.protobuf.ByteString getKeyIdBytes() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @param value The keyId to set. * @return This builder for chaining. */ @@ -667,7 +667,7 @@ public Builder setKeyId(java.lang.String value) { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @return This builder for chaining. */ @java.lang.Deprecated @@ -689,7 +689,7 @@ public Builder clearKeyId() { * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @param value The bytes for keyId to set. * @return This builder for chaining. */ @@ -718,7 +718,7 @@ public Builder setKeyIdBytes(com.google.protobuf.ByteString value) { * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @return The signedJwt. */ @java.lang.Deprecated @@ -745,7 +745,7 @@ public java.lang.String getSignedJwt() { * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @return The bytes for signedJwt. */ @java.lang.Deprecated @@ -772,7 +772,7 @@ public com.google.protobuf.ByteString getSignedJwtBytes() { * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @param value The signedJwt to set. * @return This builder for chaining. */ @@ -798,7 +798,7 @@ public Builder setSignedJwt(java.lang.String value) { * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @return This builder for chaining. */ @java.lang.Deprecated @@ -820,7 +820,7 @@ public Builder clearSignedJwt() { * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @param value The bytes for signedJwt to set. * @return This builder for chaining. */ diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponseOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponseOrBuilder.java index 4ea7a0579bd6..7e98ec1348a4 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponseOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponseOrBuilder.java @@ -35,7 +35,7 @@ public interface SignJwtResponseOrBuilder * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @return The keyId. */ @java.lang.Deprecated @@ -52,7 +52,7 @@ public interface SignJwtResponseOrBuilder * string key_id = 1 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. See - * google/iam/admin/v1/iam.proto;l=991 + * google/iam/admin/v1/iam.proto;l=1059 * @return The bytes for keyId. */ @java.lang.Deprecated @@ -70,7 +70,7 @@ public interface SignJwtResponseOrBuilder * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @return The signedJwt. */ @java.lang.Deprecated @@ -87,7 +87,7 @@ public interface SignJwtResponseOrBuilder * string signed_jwt = 2 [deprecated = true]; * * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. See - * google/iam/admin/v1/iam.proto;l=997 + * google/iam/admin/v1/iam.proto;l=1065 * @return The bytes for signedJwt. */ @java.lang.Deprecated diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequest.java index 67f4d3d3fc3c..443d67489d4f 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequest.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequest.java @@ -105,14 +105,14 @@ private UndeleteRoleRequest( } public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_UndeleteRoleRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.UndeleteRoleRequest.class, @@ -127,17 +127,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { *
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -   *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +   * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   undeletes only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -166,17 +169,20 @@ public java.lang.String getName() {
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -   *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +   * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   undeletes only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -400,14 +406,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UndeleteRoleRequest)
           com.google.iam.admin.v1.UndeleteRoleRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteRoleRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.UndeleteRoleRequest.class,
    @@ -440,7 +446,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor;
         }
     
    @@ -556,17 +562,20 @@ public Builder mergeFrom(
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   undeletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -594,17 +603,20 @@ public java.lang.String getName() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   undeletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -632,17 +644,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   undeletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -669,17 +684,20 @@ public Builder setName(java.lang.String value) {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   undeletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -702,17 +720,20 @@ public Builder clearName() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   undeletes only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequestOrBuilder.java
    index 97bd4dd56641..197f771cd4b6 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequestOrBuilder.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequestOrBuilder.java
    @@ -29,17 +29,20 @@ public interface UndeleteRoleRequestOrBuilder
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -   *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +   * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   undeletes only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -57,17 +60,20 @@ public interface UndeleteRoleRequestOrBuilder
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -   *   only [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete):
    +   * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   undeletes only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   undeletes only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequest.java
    index 6abd4b5847c5..c848846be145 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequest.java
    @@ -99,14 +99,14 @@ private UndeleteServiceAccountRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.UndeleteServiceAccountRequest.class,
    @@ -342,14 +342,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UndeleteServiceAccountRequest)
           com.google.iam.admin.v1.UndeleteServiceAccountRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.UndeleteServiceAccountRequest.class,
    @@ -380,7 +380,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponse.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponse.java
    index f6aab0119441..d84dfb227fcb 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponse.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponse.java
    @@ -99,14 +99,14 @@ private UndeleteServiceAccountResponse(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.UndeleteServiceAccountResponse.class,
    @@ -332,14 +332,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UndeleteServiceAccountResponse)
           com.google.iam.admin.v1.UndeleteServiceAccountResponseOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.UndeleteServiceAccountResponse.class,
    @@ -374,7 +374,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor;
         }
     
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequest.java
    index 0ca0f2a341a0..82d2923a1523 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequest.java
    @@ -128,14 +128,14 @@ private UpdateRoleRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_UpdateRoleRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.UpdateRoleRequest.class,
    @@ -150,17 +150,20 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +   * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   updates only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -189,17 +192,20 @@ public java.lang.String getName() {
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +   * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   updates only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -516,14 +522,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3
           // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UpdateRoleRequest)
           com.google.iam.admin.v1.UpdateRoleRequestOrBuilder {
         public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor;
         }
     
         @java.lang.Override
         protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
             internalGetFieldAccessorTable() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UpdateRoleRequest_fieldAccessorTable
               .ensureFieldAccessorsInitialized(
                   com.google.iam.admin.v1.UpdateRoleRequest.class,
    @@ -566,7 +572,7 @@ public Builder clear() {
     
         @java.lang.Override
         public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() {
    -      return com.google.iam.admin.v1.IamProto
    +      return com.google.iam.admin.v1.Iam
               .internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor;
         }
     
    @@ -694,17 +700,20 @@ public Builder mergeFrom(
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   updates only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -732,17 +741,20 @@ public java.lang.String getName() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   updates only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -770,17 +782,20 @@ public com.google.protobuf.ByteString getNameBytes() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   updates only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -807,17 +822,20 @@ public Builder setName(java.lang.String value) {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   updates only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -840,17 +858,20 @@ public Builder clearName() {
          * 
          * The `name` parameter's value depends on the target resource for the
          * request, namely
    -     * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -     * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -     * resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +     * or
    +     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +     * Each resource type's `name` value format is described below:
    +     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
          *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -     *   created at the project level. Example request URL:
    +     *   [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +     *   have been created at the project level. Example request URL:
          *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
          *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +     *   updates only [custom
    +     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
          *   have been created at the organization level. Example request URL:
          *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
          * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequestOrBuilder.java
    index 7083006651e3..003a8209bd78 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequestOrBuilder.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequestOrBuilder.java
    @@ -29,17 +29,20 @@ public interface UpdateRoleRequestOrBuilder
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +   * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   updates only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    @@ -57,17 +60,20 @@ public interface UpdateRoleRequestOrBuilder
        * 
        * The `name` parameter's value depends on the target resource for the
        * request, namely
    -   * [`projects`](/iam/reference/rest/v1/projects.roles) or
    -   * [`organizations`](/iam/reference/rest/v1/organizations.roles). Each
    -   * resource type's `name` value format is described below:
    -   * * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch):
    +   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    +   * or
    +   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    +   * Each resource type's `name` value format is described below:
    +   * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
        *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -   *   [custom roles](/iam/docs/understanding-custom-roles) that have been
    -   *   created at the project level. Example request URL:
    +   *   [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    +   *   have been created at the project level. Example request URL:
        *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch):
    +   * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
        *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   updates only [custom roles](/iam/docs/understanding-custom-roles) that
    +   *   updates only [custom
    +   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
        *   have been created at the organization level. Example request URL:
        *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
        * Note: Wildcard (*) values are invalid; you must specify a complete project
    diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequest.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequest.java
    index 54c18246a93f..317b527067e2 100644
    --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequest.java
    +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequest.java
    @@ -106,14 +106,14 @@ private UploadServiceAccountKeyRequest(
       }
     
       public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor;
       }
     
       @java.lang.Override
       protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
           internalGetFieldAccessorTable() {
    -    return com.google.iam.admin.v1.IamProto
    +    return com.google.iam.admin.v1.Iam
             .internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_fieldAccessorTable
             .ensureFieldAccessorsInitialized(
                 com.google.iam.admin.v1.UploadServiceAccountKeyRequest.class,
    @@ -183,10 +183,10 @@ public com.google.protobuf.ByteString getNameBytes() {
        *
        *
        * 
    -   * A field that allows clients to upload their own public key. If set,
    -   * use this public key data to create a service account key for given
    -   * service account.
    -   * Please note, the expected format for this field is X509_PEM.
    +   * The public key to associate with the service account. Must be an RSA public
    +   * key that is wrapped in an X.509 v3 certificate. Include the first line,
    +   * `-----BEGIN CERTIFICATE-----`, and the last line,
    +   * `-----END CERTIFICATE-----`.
        * 
    * * bytes public_key_data = 2; @@ -381,14 +381,14 @@ public static final class Builder extends com.google.protobuf.GeneratedMessageV3 // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UploadServiceAccountKeyRequest) com.google.iam.admin.v1.UploadServiceAccountKeyRequestOrBuilder { public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor; } @java.lang.Override protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_fieldAccessorTable .ensureFieldAccessorsInitialized( com.google.iam.admin.v1.UploadServiceAccountKeyRequest.class, @@ -421,7 +421,7 @@ public Builder clear() { @java.lang.Override public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { - return com.google.iam.admin.v1.IamProto + return com.google.iam.admin.v1.Iam .internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor; } @@ -663,10 +663,10 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
    -     * A field that allows clients to upload their own public key. If set,
    -     * use this public key data to create a service account key for given
    -     * service account.
    -     * Please note, the expected format for this field is X509_PEM.
    +     * The public key to associate with the service account. Must be an RSA public
    +     * key that is wrapped in an X.509 v3 certificate. Include the first line,
    +     * `-----BEGIN CERTIFICATE-----`, and the last line,
    +     * `-----END CERTIFICATE-----`.
          * 
    * * bytes public_key_data = 2; @@ -681,10 +681,10 @@ public com.google.protobuf.ByteString getPublicKeyData() { * * *
    -     * A field that allows clients to upload their own public key. If set,
    -     * use this public key data to create a service account key for given
    -     * service account.
    -     * Please note, the expected format for this field is X509_PEM.
    +     * The public key to associate with the service account. Must be an RSA public
    +     * key that is wrapped in an X.509 v3 certificate. Include the first line,
    +     * `-----BEGIN CERTIFICATE-----`, and the last line,
    +     * `-----END CERTIFICATE-----`.
          * 
    * * bytes public_key_data = 2; @@ -705,10 +705,10 @@ public Builder setPublicKeyData(com.google.protobuf.ByteString value) { * * *
    -     * A field that allows clients to upload their own public key. If set,
    -     * use this public key data to create a service account key for given
    -     * service account.
    -     * Please note, the expected format for this field is X509_PEM.
    +     * The public key to associate with the service account. Must be an RSA public
    +     * key that is wrapped in an X.509 v3 certificate. Include the first line,
    +     * `-----BEGIN CERTIFICATE-----`, and the last line,
    +     * `-----END CERTIFICATE-----`.
          * 
    * * bytes public_key_data = 2; diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequestOrBuilder.java b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequestOrBuilder.java index 5c1636b669b0..0f4b51eaa747 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequestOrBuilder.java +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequestOrBuilder.java @@ -60,10 +60,10 @@ public interface UploadServiceAccountKeyRequestOrBuilder * * *
    -   * A field that allows clients to upload their own public key. If set,
    -   * use this public key data to create a service account key for given
    -   * service account.
    -   * Please note, the expected format for this field is X509_PEM.
    +   * The public key to associate with the service account. Must be an RSA public
    +   * key that is wrapped in an X.509 v3 certificate. Include the first line,
    +   * `-----BEGIN CERTIFICATE-----`, and the last line,
    +   * `-----END CERTIFICATE-----`.
        * 
    * * bytes public_key_data = 2; diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/audit_data.proto b/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/audit_data.proto index 090ef6b3a24a..b5b6eec0c0c7 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/audit_data.proto +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/audit_data.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. diff --git a/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/iam.proto b/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/iam.proto index 9af085007fcd..a93382362aea 100644 --- a/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/iam.proto +++ b/java-iam-admin/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/iam.proto @@ -1,4 +1,4 @@ -// Copyright 2021 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -16,6 +16,7 @@ syntax = "proto3"; package google.iam.admin.v1; +import "google/api/annotations.proto"; import "google/api/client.proto"; import "google/api/field_behavior.proto"; import "google/api/resource.proto"; @@ -25,13 +26,11 @@ import "google/protobuf/empty.proto"; import "google/protobuf/field_mask.proto"; import "google/protobuf/timestamp.proto"; import "google/type/expr.proto"; -import "google/api/annotations.proto"; option cc_enable_arenas = true; option csharp_namespace = "Google.Cloud.Iam.Admin.V1"; option go_package = "google.golang.org/genproto/googleapis/iam/admin/v1;admin"; option java_multiple_files = true; -option java_outer_classname = "IamProto"; option java_package = "com.google.iam.admin.v1"; option php_namespace = "Google\\Cloud\\Iam\\Admin\\V1"; @@ -44,9 +43,9 @@ option php_namespace = "Google\\Cloud\\Iam\\Admin\\V1"; // * **Service account keys**, which service accounts use to authenticate with // Google APIs // * **IAM policies for service accounts**, which specify the roles that a -// member has for the service account +// principal has for the service account // * **IAM custom roles**, which help you limit the number of permissions that -// you grant to members +// you grant to principals // // In addition, you can use this service to complete the following tasks, among // others: @@ -54,6 +53,16 @@ option php_namespace = "Google\\Cloud\\Iam\\Admin\\V1"; // * Test whether a service account can use specific permissions // * Check which roles you can grant for a specific resource // * Lint, or validate, condition expressions in an IAM policy +// +// When you read data from the IAM API, each read is eventually consistent. In +// other words, if you write data with the IAM API, then immediately read that +// data, the read operation might return an older version of the data. To deal +// with this behavior, your application can retry the request with truncated +// exponential backoff. +// +// In contrast, writing data to the IAM API is sequentially consistent. In other +// words, write operations are always processed in the order in which they were +// received. service IAM { option (google.api.default_host) = "iam.googleapis.com"; option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; @@ -88,7 +97,7 @@ service IAM { // // Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. // - // You can update only the `display_name` and `description` fields. + // You can update only the `display_name` field. rpc UpdateServiceAccount(ServiceAccount) returns (ServiceAccount) { option (google.api.http) = { put: "/v1/{name=projects/*/serviceAccounts/*}" @@ -204,7 +213,11 @@ service IAM { option (google.api.method_signature) = "name,private_key_type,key_algorithm"; } - // Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey], using a public key that you provide. + // Uploads the public key portion of a key pair that you manage, and + // associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. + // + // After you upload the public key, you can use the private key from the key + // pair as a service account key. rpc UploadServiceAccountKey(UploadServiceAccountKeyRequest) returns (ServiceAccountKey) { option (google.api.http) = { post: "/v1/{name=projects/*/serviceAccounts/*}/keys:upload" @@ -222,6 +235,25 @@ service IAM { option (google.api.method_signature) = "name"; } + // Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be + // re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. + rpc DisableServiceAccountKey(DisableServiceAccountKeyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/serviceAccounts/*/keys/*}:disable" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + + // Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. + rpc EnableServiceAccountKey(EnableServiceAccountKeyRequest) returns (google.protobuf.Empty) { + option (google.api.http) = { + post: "/v1/{name=projects/*/serviceAccounts/*/keys/*}:enable" + body: "*" + }; + option (google.api.method_signature) = "name"; + } + // **Note:** This method is deprecated. Use the // [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) // method in the IAM Service Account Credentials API instead. If you currently @@ -258,7 +290,7 @@ service IAM { } // Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM - // policy specifies which members have access to the service account. + // policy specifies which principals have access to the service account. // // This method does not tell you whether the service account has been granted // any roles on other resources. To check whether a service account has role @@ -277,7 +309,7 @@ service IAM { // Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. // // Use this method to grant or revoke access to the service account. For - // example, you could grant a member the ability to impersonate the service + // example, you could grant a principal the ability to impersonate the service // account. // // This method does not enable the service account to access other resources. @@ -289,8 +321,10 @@ service IAM { // 3. Call the resource's `setIamPolicy` method to update its IAM policy. // // For detailed instructions, see - // [Granting roles to a service account for specific - // resources](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts). + // [Manage access to project, folders, and + // organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) + // or [Manage access to other + // resources](https://cloud.google.com/iam/help/access/manage-other-resources). rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v1/{resource=projects/*/serviceAccounts/*}:setIamPolicy" @@ -375,7 +409,7 @@ service IAM { // // When you delete a custom role, the following changes occur immediately: // - // * You cannot bind a member to the custom role in an IAM + // * You cannot bind a principal to the custom role in an IAM // [Policy][google.iam.v1.Policy]. // * Existing bindings to the custom role are not changed, but they have no // effect. @@ -410,7 +444,7 @@ service IAM { } // Lists every permission that you can test on a resource. A permission is - // testable if you can check whether a member has that permission on the + // testable if you can check whether a principal has that permission on the // resource. rpc QueryTestablePermissions(QueryTestablePermissionsRequest) returns (QueryTestablePermissionsResponse) { option (google.api.http) = { @@ -603,8 +637,7 @@ message DeleteServiceAccountRequest { ]; } -// The request for -// [PatchServiceAccount][google.iam.admin.v1.PatchServiceAccount]. +// The service account patch request. // // You can patch only the `display_name` and `description` fields. You must use // the `update_mask` field to specify which of these fields you want to patch. @@ -707,9 +740,59 @@ message GetServiceAccountKeyRequest { } ]; - // The output format of the public key requested. - // X509_PEM is the default output format. - ServiceAccountPublicKeyType public_key_type = 2; + // Optional. The output format of the public key. The default is `TYPE_NONE`, which + // means that the public key is not returned. + ServiceAccountPublicKeyType public_key_type = 2 [(google.api.field_behavior) = OPTIONAL]; +} + +// Supported key algorithms. +enum ServiceAccountKeyAlgorithm { + // An unspecified key algorithm. + KEY_ALG_UNSPECIFIED = 0; + + // 1k RSA Key. + KEY_ALG_RSA_1024 = 1; + + // 2k RSA Key. + KEY_ALG_RSA_2048 = 2; +} + +// Supported private key output formats. +enum ServiceAccountPrivateKeyType { + // Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. + TYPE_UNSPECIFIED = 0; + + // PKCS12 format. + // The password for the PKCS12 file is `notasecret`. + // For more information, see https://tools.ietf.org/html/rfc7292. + TYPE_PKCS12_FILE = 1; + + // Google Credentials File format. + TYPE_GOOGLE_CREDENTIALS_FILE = 2; +} + +// Supported public key output formats. +enum ServiceAccountPublicKeyType { + // Do not return the public key. + TYPE_NONE = 0; + + // X509 PEM format. + TYPE_X509_PEM_FILE = 1; + + // Raw public key. + TYPE_RAW_PUBLIC_KEY = 2; +} + +// Service Account Key Origin. +enum ServiceAccountKeyOrigin { + // Unspecified key origin. + ORIGIN_UNSPECIFIED = 0; + + // Key is provided by user. + USER_PROVIDED = 1; + + // Key is provided by Google. + GOOGLE_PROVIDED = 2; } // Represents a service account key. @@ -783,6 +866,9 @@ message ServiceAccountKey { // The key type. ListServiceAccountKeysRequest.KeyType key_type = 10; + + // The key status. + bool disabled = 11; } // The service account key create request. @@ -819,10 +905,10 @@ message UploadServiceAccountKeyRequest { // `unique_id` of the service account. string name = 1; - // A field that allows clients to upload their own public key. If set, - // use this public key data to create a service account key for given - // service account. - // Please note, the expected format for this field is X509_PEM. + // The public key to associate with the service account. Must be an RSA public + // key that is wrapped in an X.509 v3 certificate. Include the first line, + // `-----BEGIN CERTIFICATE-----`, and the last line, + // `-----END CERTIFICATE-----`. bytes public_key_data = 2; } @@ -841,6 +927,38 @@ message DeleteServiceAccountKeyRequest { ]; } +// The service account key disable request. +message DisableServiceAccountKeyRequest { + // Required. The resource name of the service account key in the following format: + // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + // + // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + // the account. The `ACCOUNT` value can be the `email` address or the + // `unique_id` of the service account. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/Key" + } + ]; +} + +// The service account key enable request. +message EnableServiceAccountKeyRequest { + // Required. The resource name of the service account key in the following format: + // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. + // + // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from + // the account. The `ACCOUNT` value can be the `email` address or the + // `unique_id` of the service account. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "iam.googleapis.com/Key" + } + ]; +} + // Deprecated. [Migrate to Service Account Credentials // API](https://cloud.google.com/iam/help/credentials/migrate-api). // @@ -890,56 +1008,6 @@ message SignBlobResponse { bytes signature = 2 [deprecated = true]; } -// Supported key algorithms. -enum ServiceAccountKeyAlgorithm { - // An unspecified key algorithm. - KEY_ALG_UNSPECIFIED = 0; - - // 1k RSA Key. - KEY_ALG_RSA_1024 = 1; - - // 2k RSA Key. - KEY_ALG_RSA_2048 = 2; -} - -// Supported private key output formats. -enum ServiceAccountPrivateKeyType { - // Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. - TYPE_UNSPECIFIED = 0; - - // PKCS12 format. - // The password for the PKCS12 file is `notasecret`. - // For more information, see https://tools.ietf.org/html/rfc7292. - TYPE_PKCS12_FILE = 1; - - // Google Credentials File format. - TYPE_GOOGLE_CREDENTIALS_FILE = 2; -} - -// Supported public key output formats. -enum ServiceAccountPublicKeyType { - // Unspecified. Returns nothing here. - TYPE_NONE = 0; - - // X509 PEM format. - TYPE_X509_PEM_FILE = 1; - - // Raw public key. - TYPE_RAW_PUBLIC_KEY = 2; -} - -// Service Account Key Origin. -enum ServiceAccountKeyOrigin { - // Unspecified key origin. - ORIGIN_UNSPECIFIED = 0; - - // Key is provided by user. - USER_PROVIDED = 1; - - // Key is provided by Google. - GOOGLE_PROVIDED = 2; -} - // Deprecated. [Migrate to Service Account Credentials // API](https://cloud.google.com/iam/help/credentials/migrate-api). // @@ -968,8 +1036,8 @@ message SignJwtRequest { // JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` // // If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - // an integer timestamp that is not in the past and no more than 1 hour in the - // future. + // an integer timestamp that is not in the past and no more than 12 hours in + // the future. // // If the JWT Claims Set does not contain an expiration time (`exp`) claim, // this claim is added automatically, with a timestamp that is 1 hour in the @@ -1016,8 +1084,8 @@ message Role { // The user has indicated this role is being deprecated. DEPRECATED = 4; - // This role is disabled and will not contribute permissions to any members - // it is granted to in policies. + // This role is disabled and will not contribute permissions to any + // principals it is granted to in policies. DISABLED = 5; // The user has indicated this role is currently in an EAP phase. @@ -1087,36 +1155,51 @@ message QueryGrantableRolesResponse { string next_page_token = 2; } +// A view for Role objects. +enum RoleView { + // Omits the `included_permissions` field. + // This is the default value. + BASIC = 0; + + // Returns all fields. + FULL = 1; +} + // The request to get all roles defined under a resource. message ListRolesRequest { // The `parent` parameter's value depends on the target resource for the // request, namely - // [`roles`](/iam/reference/rest/v1/roles), - // [`projects`](/iam/reference/rest/v1/projects.roles), or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `parent` value format is described below: + // [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `parent` value format is described below: // - // * [`roles.list()`](/iam/reference/rest/v1/roles/list): An empty string. + // * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string. // This method doesn't require a resource; it simply returns all - // [predefined roles](/iam/docs/understanding-roles#predefined_roles) in - // Cloud IAM. Example request URL: - // `https://iam.googleapis.com/v1/roles` + // [predefined + // roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + // in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles` // - // * [`projects.roles.list()`](/iam/reference/rest/v1/projects.roles/list): + // * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list): // `projects/{PROJECT_ID}`. This method lists all project-level - // [custom roles](/iam/docs/understanding-custom-roles). + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). // Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` // - // * [`organizations.roles.list()`](/iam/reference/rest/v1/organizations.roles/list): + // * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list): // `organizations/{ORGANIZATION_ID}`. This method lists all - // organization-level [custom roles](/iam/docs/understanding-custom-roles). + // organization-level [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). // Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string parent = 1 [(google.api.resource_reference).type = "*"]; + string parent = 1 [(google.api.resource_reference) = { + type: "*" + }]; // Optional limit on the number of roles to include in the response. // @@ -1150,57 +1233,68 @@ message ListRolesResponse { message GetRoleRequest { // The `name` parameter's value depends on the target resource for the // request, namely - // [`roles`](/iam/reference/rest/v1/roles), - // [`projects`](/iam/reference/rest/v1/projects.roles), or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `name` value format is described below: + // [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `name` value format is described below: // - // * [`roles.get()`](/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. + // * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. // This method returns results from all - // [predefined roles](/iam/docs/understanding-roles#predefined_roles) in - // Cloud IAM. Example request URL: + // [predefined + // roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) + // in Cloud IAM. Example request URL: // `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` // - // * [`projects.roles.get()`](/iam/reference/rest/v1/projects.roles/get): + // * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get): // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only - // [custom roles](/iam/docs/understanding-custom-roles) that have been - // created at the project level. Example request URL: + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + // have been created at the project level. Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` // - // * [`organizations.roles.get()`](/iam/reference/rest/v1/organizations.roles/get): + // * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get): // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // returns only [custom roles](/iam/docs/understanding-custom-roles) that + // returns only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that // have been created at the organization level. Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string name = 1 [(google.api.resource_reference).type = "*"]; + string name = 1 [(google.api.resource_reference) = { + type: "*" + }]; } // The request to create a new role. message CreateRoleRequest { // The `parent` parameter's value depends on the target resource for the // request, namely - // [`projects`](/iam/reference/rest/v1/projects.roles) or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `parent` value format is described below: + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `parent` value format is described below: // - // * [`projects.roles.create()`](/iam/reference/rest/v1/projects.roles/create): + // * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create): // `projects/{PROJECT_ID}`. This method creates project-level - // [custom roles](/iam/docs/understanding-custom-roles). + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). // Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` // - // * [`organizations.roles.create()`](/iam/reference/rest/v1/organizations.roles/create): + // * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create): // `organizations/{ORGANIZATION_ID}`. This method creates organization-level - // [custom roles](/iam/docs/understanding-custom-roles). Example request - // URL: + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). + // Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string parent = 1 [(google.api.resource_reference).type = "*"]; + string parent = 1 [(google.api.resource_reference) = { + type: "*" + }]; // The role ID to use for this role. // @@ -1217,25 +1311,30 @@ message CreateRoleRequest { message UpdateRoleRequest { // The `name` parameter's value depends on the target resource for the // request, namely - // [`projects`](/iam/reference/rest/v1/projects.roles) or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `name` value format is described below: + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `name` value format is described below: // - // * [`projects.roles.patch()`](/iam/reference/rest/v1/projects.roles/patch): + // * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch): // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only - // [custom roles](/iam/docs/understanding-custom-roles) that have been - // created at the project level. Example request URL: + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + // have been created at the project level. Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` // - // * [`organizations.roles.patch()`](/iam/reference/rest/v1/organizations.roles/patch): + // * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch): // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // updates only [custom roles](/iam/docs/understanding-custom-roles) that + // updates only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that // have been created at the organization level. Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string name = 1 [(google.api.resource_reference).type = "*"]; + string name = 1 [(google.api.resource_reference) = { + type: "*" + }]; // The updated role. Role role = 2; @@ -1248,25 +1347,30 @@ message UpdateRoleRequest { message DeleteRoleRequest { // The `name` parameter's value depends on the target resource for the // request, namely - // [`projects`](/iam/reference/rest/v1/projects.roles) or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `name` value format is described below: + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `name` value format is described below: // - // * [`projects.roles.delete()`](/iam/reference/rest/v1/projects.roles/delete): + // * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete): // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only - // [custom roles](/iam/docs/understanding-custom-roles) that have been - // created at the project level. Example request URL: + // [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + // have been created at the project level. Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` // - // * [`organizations.roles.delete()`](/iam/reference/rest/v1/organizations.roles/delete): + // * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete): // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // deletes only [custom roles](/iam/docs/understanding-custom-roles) that + // deletes only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that // have been created at the organization level. Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string name = 1 [(google.api.resource_reference).type = "*"]; + string name = 1 [(google.api.resource_reference) = { + type: "*" + }]; // Used to perform a consistent read-modify-write. bytes etag = 2; @@ -1276,25 +1380,30 @@ message DeleteRoleRequest { message UndeleteRoleRequest { // The `name` parameter's value depends on the target resource for the // request, namely - // [`projects`](/iam/reference/rest/v1/projects.roles) or - // [`organizations`](/iam/reference/rest/v1/organizations.roles). Each - // resource type's `name` value format is described below: + // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) + // or + // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). + // Each resource type's `name` value format is described below: // - // * [`projects.roles.undelete()`](/iam/reference/rest/v1/projects.roles/undelete): + // * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete): // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes - // only [custom roles](/iam/docs/understanding-custom-roles) that have been - // created at the project level. Example request URL: + // only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that + // have been created at the project level. Example request URL: // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` // - // * [`organizations.roles.undelete()`](/iam/reference/rest/v1/organizations.roles/undelete): + // * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete): // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // undeletes only [custom roles](/iam/docs/understanding-custom-roles) that + // undeletes only [custom + // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that // have been created at the organization level. Example request URL: // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` // // Note: Wildcard (*) values are invalid; you must specify a complete project // ID or organization ID. - string name = 1 [(google.api.resource_reference).type = "*"]; + string name = 1 [(google.api.resource_reference) = { + type: "*" + }]; // Used to perform a consistent read-modify-write. bytes etag = 2; @@ -1319,7 +1428,7 @@ message Permission { // The state of the permission with regards to custom roles. enum CustomRolesSupportLevel { - // Permission is fully supported for custom role use. + // Default state. Permission is fully supported for custom role use. SUPPORTED = 0; // Permission is being tested to check custom role compatibility. @@ -1459,7 +1568,7 @@ message LintResult { // This includes the following common scenarios: // // - Unsatisfiable condition: Expired timestamp in date/time condition. - // - Ineffective condition: Condition on a pair which is + // - Ineffective condition: Condition on a pair which is // granted unconditionally in another binding of the same policy. WARNING = 2; @@ -1512,13 +1621,3 @@ message LintPolicyResponse { // List of lint results sorted by `severity` in descending order. repeated LintResult lint_results = 1; } - -// A view for Role objects. -enum RoleView { - // Omits the `included_permissions` field. - // This is the default value. - BASIC = 0; - - // Returns all fields. - FULL = 1; -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java deleted file mode 100644 index 2fabff666d33..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMClient.java +++ /dev/null @@ -1,4006 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1; - -import com.google.api.core.ApiFuture; -import com.google.api.core.ApiFutures; -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.paging.AbstractFixedSizeCollection; -import com.google.api.gax.paging.AbstractPage; -import com.google.api.gax.paging.AbstractPagedListResponse; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.api.resourcenames.ResourceName; -import com.google.cloud.iam.admin.v1.stub.IAMStub; -import com.google.cloud.iam.admin.v1.stub.IAMStubSettings; -import com.google.common.util.concurrent.MoreExecutors; -import com.google.iam.admin.v1.CreateRoleRequest; -import com.google.iam.admin.v1.CreateServiceAccountKeyRequest; -import com.google.iam.admin.v1.CreateServiceAccountRequest; -import com.google.iam.admin.v1.DeleteRoleRequest; -import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest; -import com.google.iam.admin.v1.DeleteServiceAccountRequest; -import com.google.iam.admin.v1.DisableServiceAccountKeyRequest; -import com.google.iam.admin.v1.DisableServiceAccountRequest; -import com.google.iam.admin.v1.EnableServiceAccountKeyRequest; -import com.google.iam.admin.v1.EnableServiceAccountRequest; -import com.google.iam.admin.v1.GetRoleRequest; -import com.google.iam.admin.v1.GetServiceAccountKeyRequest; -import com.google.iam.admin.v1.GetServiceAccountRequest; -import com.google.iam.admin.v1.KeyName; -import com.google.iam.admin.v1.LintPolicyRequest; -import com.google.iam.admin.v1.LintPolicyResponse; -import com.google.iam.admin.v1.ListRolesRequest; -import com.google.iam.admin.v1.ListRolesResponse; -import com.google.iam.admin.v1.ListServiceAccountKeysRequest; -import com.google.iam.admin.v1.ListServiceAccountKeysResponse; -import com.google.iam.admin.v1.ListServiceAccountsRequest; -import com.google.iam.admin.v1.ListServiceAccountsResponse; -import com.google.iam.admin.v1.PatchServiceAccountRequest; -import com.google.iam.admin.v1.Permission; -import com.google.iam.admin.v1.ProjectName; -import com.google.iam.admin.v1.QueryAuditableServicesRequest; -import com.google.iam.admin.v1.QueryAuditableServicesResponse; -import com.google.iam.admin.v1.QueryGrantableRolesRequest; -import com.google.iam.admin.v1.QueryGrantableRolesResponse; -import com.google.iam.admin.v1.QueryTestablePermissionsRequest; -import com.google.iam.admin.v1.QueryTestablePermissionsResponse; -import com.google.iam.admin.v1.Role; -import com.google.iam.admin.v1.ServiceAccount; -import com.google.iam.admin.v1.ServiceAccountKey; -import com.google.iam.admin.v1.ServiceAccountKeyAlgorithm; -import com.google.iam.admin.v1.ServiceAccountName; -import com.google.iam.admin.v1.ServiceAccountPrivateKeyType; -import com.google.iam.admin.v1.ServiceAccountPublicKeyType; -import com.google.iam.admin.v1.SignBlobRequest; -import com.google.iam.admin.v1.SignBlobResponse; -import com.google.iam.admin.v1.SignJwtRequest; -import com.google.iam.admin.v1.SignJwtResponse; -import com.google.iam.admin.v1.UndeleteRoleRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountResponse; -import com.google.iam.admin.v1.UpdateRoleRequest; -import com.google.iam.admin.v1.UploadServiceAccountKeyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Service Description: Creates and manages Identity and Access Management (IAM) resources. - * - *

    You can use this service to work with all of the following resources: - * - *

      - *
    • **Service accounts**, which identify an application or a virtual machine - * (VM) instance rather than a person - *
    • **Service account keys**, which service accounts use to authenticate with - * Google APIs - *
    • **IAM policies for service accounts**, which specify the roles that a - * principal has for the service account - *
    • **IAM custom roles**, which help you limit the number of permissions that - * you grant to principals - *
    - * - *

    In addition, you can use this service to complete the following tasks, among others: - * - *

      - *
    • Test whether a service account can use specific permissions - *
    • Check which roles you can grant for a specific resource - *
    • Lint, or validate, condition expressions in an IAM policy - *
    - * - *

    When you read data from the IAM API, each read is eventually consistent. In other words, if - * you write data with the IAM API, then immediately read that data, the read operation might return - * an older version of the data. To deal with this behavior, your application can retry the request - * with truncated exponential backoff. - * - *

    In contrast, writing data to the IAM API is sequentially consistent. In other words, write - * operations are always processed in the order in which they were received. - * - *

    This class provides the ability to make remote calls to the backing service through method - * calls that map to API methods. Sample code to get started: - * - *

    {@code
    - * // This snippet has been automatically generated and should be regarded as a code template only.
    - * // It will require modifications to work:
    - * // - It may require correct/in-range values for request initialization.
    - * // - It may require specifying regional endpoints when creating the service client as shown in
    - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    - * try (IAMClient iAMClient = IAMClient.create()) {
    - *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    - *   ServiceAccount response = iAMClient.getServiceAccount(name);
    - * }
    - * }
    - * - *

    Note: close() needs to be called on the IAMClient object to clean up resources such as - * threads. In the example above, try-with-resources is used, which automatically calls close(). - * - *

    The surface of this class includes several types of Java methods for each of the API's - * methods: - * - *

      - *
    1. A "flattened" method. With this type of method, the fields of the request type have been - * converted into function parameters. It may be the case that not all fields are available as - * parameters, and not every API method will have a flattened method entry point. - *
    2. A "request object" method. This type of method only takes one parameter, a request object, - * which must be constructed before the call. Not every API method will have a request object - * method. - *
    3. A "callable" method. This type of method takes no parameters and returns an immutable API - * callable object, which can be used to initiate calls to the service. - *
    - * - *

    See the individual methods for example code. - * - *

    Many parameters require resource names to be formatted in a particular way. To assist with - * these names, this class includes a format method for each type of name, and additionally a parse - * method to extract the individual identifiers contained within names that are returned. - * - *

    This class can be customized by passing in a custom instance of IAMSettings to create(). For - * example: - * - *

    To customize credentials: - * - *

    {@code
    - * // This snippet has been automatically generated and should be regarded as a code template only.
    - * // It will require modifications to work:
    - * // - It may require correct/in-range values for request initialization.
    - * // - It may require specifying regional endpoints when creating the service client as shown in
    - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    - * IAMSettings iAMSettings =
    - *     IAMSettings.newBuilder()
    - *         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
    - *         .build();
    - * IAMClient iAMClient = IAMClient.create(iAMSettings);
    - * }
    - * - *

    To customize the endpoint: - * - *

    {@code
    - * // This snippet has been automatically generated and should be regarded as a code template only.
    - * // It will require modifications to work:
    - * // - It may require correct/in-range values for request initialization.
    - * // - It may require specifying regional endpoints when creating the service client as shown in
    - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    - * IAMSettings iAMSettings = IAMSettings.newBuilder().setEndpoint(myEndpoint).build();
    - * IAMClient iAMClient = IAMClient.create(iAMSettings);
    - * }
    - * - *

    Please refer to the GitHub repository's samples for more quickstart code snippets. - */ -@Generated("by gapic-generator-java") -public class IAMClient implements BackgroundResource { - private final IAMSettings settings; - private final IAMStub stub; - - /** Constructs an instance of IAMClient with default settings. */ - public static final IAMClient create() throws IOException { - return create(IAMSettings.newBuilder().build()); - } - - /** - * Constructs an instance of IAMClient, using the given settings. The channels are created based - * on the settings passed in, or defaults for any settings that are not set. - */ - public static final IAMClient create(IAMSettings settings) throws IOException { - return new IAMClient(settings); - } - - /** - * Constructs an instance of IAMClient, using the given stub for making calls. This is for - * advanced usage - prefer using create(IAMSettings). - */ - public static final IAMClient create(IAMStub stub) { - return new IAMClient(stub); - } - - /** - * Constructs an instance of IAMClient, using the given settings. This is protected so that it is - * easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected IAMClient(IAMSettings settings) throws IOException { - this.settings = settings; - this.stub = ((IAMStubSettings) settings.getStubSettings()).createStub(); - } - - protected IAMClient(IAMStub stub) { - this.settings = null; - this.stub = stub; - } - - public final IAMSettings getSettings() { - return settings; - } - - public IAMStub getStub() { - return stub; - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific - * project. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ProjectName name = ProjectName.of("[PROJECT]");
    -   *   for (ServiceAccount element : iAMClient.listServiceAccounts(name).iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the project associated with the service accounts, - * such as `projects/my-project-123`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListServiceAccountsPagedResponse listServiceAccounts(ProjectName name) { - ListServiceAccountsRequest request = - ListServiceAccountsRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return listServiceAccounts(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific - * project. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = ProjectName.of("[PROJECT]").toString();
    -   *   for (ServiceAccount element : iAMClient.listServiceAccounts(name).iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the project associated with the service accounts, - * such as `projects/my-project-123`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListServiceAccountsPagedResponse listServiceAccounts(String name) { - ListServiceAccountsRequest request = - ListServiceAccountsRequest.newBuilder().setName(name).build(); - return listServiceAccounts(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific - * project. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ListServiceAccountsRequest request =
    -   *       ListServiceAccountsRequest.newBuilder()
    -   *           .setName(ProjectName.of("[PROJECT]").toString())
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   for (ServiceAccount element : iAMClient.listServiceAccounts(request).iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListServiceAccountsPagedResponse listServiceAccounts( - ListServiceAccountsRequest request) { - return listServiceAccountsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific - * project. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ListServiceAccountsRequest request =
    -   *       ListServiceAccountsRequest.newBuilder()
    -   *           .setName(ProjectName.of("[PROJECT]").toString())
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.listServiceAccountsPagedCallable().futureCall(request);
    -   *   // Do something.
    -   *   for (ServiceAccount element : future.get().iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - */ - public final UnaryCallable - listServiceAccountsPagedCallable() { - return stub.listServiceAccountsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific - * project. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ListServiceAccountsRequest request =
    -   *       ListServiceAccountsRequest.newBuilder()
    -   *           .setName(ProjectName.of("[PROJECT]").toString())
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   while (true) {
    -   *     ListServiceAccountsResponse response =
    -   *         iAMClient.listServiceAccountsCallable().call(request);
    -   *     for (ServiceAccount element : response.getAccountsList()) {
    -   *       // doThingsWith(element);
    -   *     }
    -   *     String nextPageToken = response.getNextPageToken();
    -   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    -   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    -   *     } else {
    -   *       break;
    -   *     }
    -   *   }
    -   * }
    -   * }
    - */ - public final UnaryCallable - listServiceAccountsCallable() { - return stub.listServiceAccountsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   ServiceAccount response = iAMClient.getServiceAccount(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccount getServiceAccount(ServiceAccountName name) { - GetServiceAccountRequest request = - GetServiceAccountRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - return getServiceAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    -   *   ServiceAccount response = iAMClient.getServiceAccount(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccount getServiceAccount(String name) { - GetServiceAccountRequest request = GetServiceAccountRequest.newBuilder().setName(name).build(); - return getServiceAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   GetServiceAccountRequest request =
    -   *       GetServiceAccountRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .build();
    -   *   ServiceAccount response = iAMClient.getServiceAccount(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccount getServiceAccount(GetServiceAccountRequest request) { - return getServiceAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   GetServiceAccountRequest request =
    -   *       GetServiceAccountRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.getServiceAccountCallable().futureCall(request);
    -   *   // Do something.
    -   *   ServiceAccount response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable getServiceAccountCallable() { - return stub.getServiceAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ProjectName name = ProjectName.of("[PROJECT]");
    -   *   String accountId = "accountId-1827029976";
    -   *   ServiceAccount serviceAccount = ServiceAccount.newBuilder().build();
    -   *   ServiceAccount response = iAMClient.createServiceAccount(name, accountId, serviceAccount);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the project associated with the service accounts, - * such as `projects/my-project-123`. - * @param accountId Required. The account id that is used to generate the service account email - * address and a stable unique id. It is unique within a project, must be 6-30 characters - * long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])` to comply with - * RFC1035. - * @param serviceAccount The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to - * create. Currently, only the following values are user assignable: `display_name` and - * `description`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccount createServiceAccount( - ProjectName name, String accountId, ServiceAccount serviceAccount) { - CreateServiceAccountRequest request = - CreateServiceAccountRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setAccountId(accountId) - .setServiceAccount(serviceAccount) - .build(); - return createServiceAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = ProjectName.of("[PROJECT]").toString();
    -   *   String accountId = "accountId-1827029976";
    -   *   ServiceAccount serviceAccount = ServiceAccount.newBuilder().build();
    -   *   ServiceAccount response = iAMClient.createServiceAccount(name, accountId, serviceAccount);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the project associated with the service accounts, - * such as `projects/my-project-123`. - * @param accountId Required. The account id that is used to generate the service account email - * address and a stable unique id. It is unique within a project, must be 6-30 characters - * long, and match the regular expression `[a-z]([-a-z0-9]*[a-z0-9])` to comply with - * RFC1035. - * @param serviceAccount The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to - * create. Currently, only the following values are user assignable: `display_name` and - * `description`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccount createServiceAccount( - String name, String accountId, ServiceAccount serviceAccount) { - CreateServiceAccountRequest request = - CreateServiceAccountRequest.newBuilder() - .setName(name) - .setAccountId(accountId) - .setServiceAccount(serviceAccount) - .build(); - return createServiceAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   CreateServiceAccountRequest request =
    -   *       CreateServiceAccountRequest.newBuilder()
    -   *           .setName(ProjectName.of("[PROJECT]").toString())
    -   *           .setAccountId("accountId-1827029976")
    -   *           .setServiceAccount(ServiceAccount.newBuilder().build())
    -   *           .build();
    -   *   ServiceAccount response = iAMClient.createServiceAccount(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccount createServiceAccount(CreateServiceAccountRequest request) { - return createServiceAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   CreateServiceAccountRequest request =
    -   *       CreateServiceAccountRequest.newBuilder()
    -   *           .setName(ProjectName.of("[PROJECT]").toString())
    -   *           .setAccountId("accountId-1827029976")
    -   *           .setServiceAccount(ServiceAccount.newBuilder().build())
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.createServiceAccountCallable().futureCall(request);
    -   *   // Do something.
    -   *   ServiceAccount response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - createServiceAccountCallable() { - return stub.createServiceAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** We are in the process of deprecating this method. Use - * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead. - * - *

    Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    You can update only the `display_name` field. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ServiceAccount request =
    -   *       ServiceAccount.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setProjectId("projectId-894832108")
    -   *           .setUniqueId("uniqueId-294460212")
    -   *           .setEmail("email96619420")
    -   *           .setDisplayName("displayName1714148973")
    -   *           .setEtag(ByteString.EMPTY)
    -   *           .setDescription("description-1724546052")
    -   *           .setOauth2ClientId("oauth2ClientId-1210797087")
    -   *           .setDisabled(true)
    -   *           .build();
    -   *   ServiceAccount response = iAMClient.updateServiceAccount(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccount updateServiceAccount(ServiceAccount request) { - return updateServiceAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** We are in the process of deprecating this method. Use - * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead. - * - *

    Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    You can update only the `display_name` field. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ServiceAccount request =
    -   *       ServiceAccount.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setProjectId("projectId-894832108")
    -   *           .setUniqueId("uniqueId-294460212")
    -   *           .setEmail("email96619420")
    -   *           .setDisplayName("displayName1714148973")
    -   *           .setEtag(ByteString.EMPTY)
    -   *           .setDescription("description-1724546052")
    -   *           .setOauth2ClientId("oauth2ClientId-1210797087")
    -   *           .setDisabled(true)
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.updateServiceAccountCallable().futureCall(request);
    -   *   // Do something.
    -   *   ServiceAccount response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable updateServiceAccountCallable() { - return stub.updateServiceAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Patches a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   PatchServiceAccountRequest request =
    -   *       PatchServiceAccountRequest.newBuilder()
    -   *           .setServiceAccount(ServiceAccount.newBuilder().build())
    -   *           .setUpdateMask(FieldMask.newBuilder().build())
    -   *           .build();
    -   *   ServiceAccount response = iAMClient.patchServiceAccount(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccount patchServiceAccount(PatchServiceAccountRequest request) { - return patchServiceAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Patches a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   PatchServiceAccountRequest request =
    -   *       PatchServiceAccountRequest.newBuilder()
    -   *           .setServiceAccount(ServiceAccount.newBuilder().build())
    -   *           .setUpdateMask(FieldMask.newBuilder().build())
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.patchServiceAccountCallable().futureCall(request);
    -   *   // Do something.
    -   *   ServiceAccount response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - patchServiceAccountCallable() { - return stub.patchServiceAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    **Warning:** After you delete a service account, you might not be able to - * undelete it. If you know that you need to re-enable the service account in the future, use - * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead. - * - *

    If you delete a service account, IAM permanently removes the service account 30 days later. - * Google Cloud cannot recover the service account after it is permanently removed, even if you - * file a support request. - * - *

    To help avoid unplanned outages, we recommend that you disable the service account before - * you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to - * disable the service account, then wait at least 24 hours and watch for unintended consequences. - * If there are no unintended consequences, you can delete the service account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   iAMClient.deleteServiceAccount(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteServiceAccount(ServiceAccountName name) { - DeleteServiceAccountRequest request = - DeleteServiceAccountRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteServiceAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    **Warning:** After you delete a service account, you might not be able to - * undelete it. If you know that you need to re-enable the service account in the future, use - * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead. - * - *

    If you delete a service account, IAM permanently removes the service account 30 days later. - * Google Cloud cannot recover the service account after it is permanently removed, even if you - * file a support request. - * - *

    To help avoid unplanned outages, we recommend that you disable the service account before - * you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to - * disable the service account, then wait at least 24 hours and watch for unintended consequences. - * If there are no unintended consequences, you can delete the service account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    -   *   iAMClient.deleteServiceAccount(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteServiceAccount(String name) { - DeleteServiceAccountRequest request = - DeleteServiceAccountRequest.newBuilder().setName(name).build(); - deleteServiceAccount(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    **Warning:** After you delete a service account, you might not be able to - * undelete it. If you know that you need to re-enable the service account in the future, use - * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead. - * - *

    If you delete a service account, IAM permanently removes the service account 30 days later. - * Google Cloud cannot recover the service account after it is permanently removed, even if you - * file a support request. - * - *

    To help avoid unplanned outages, we recommend that you disable the service account before - * you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to - * disable the service account, then wait at least 24 hours and watch for unintended consequences. - * If there are no unintended consequences, you can delete the service account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DeleteServiceAccountRequest request =
    -   *       DeleteServiceAccountRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .build();
    -   *   iAMClient.deleteServiceAccount(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteServiceAccount(DeleteServiceAccountRequest request) { - deleteServiceAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    **Warning:** After you delete a service account, you might not be able to - * undelete it. If you know that you need to re-enable the service account in the future, use - * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead. - * - *

    If you delete a service account, IAM permanently removes the service account 30 days later. - * Google Cloud cannot recover the service account after it is permanently removed, even if you - * file a support request. - * - *

    To help avoid unplanned outages, we recommend that you disable the service account before - * you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to - * disable the service account, then wait at least 24 hours and watch for unintended consequences. - * If there are no unintended consequences, you can delete the service account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DeleteServiceAccountRequest request =
    -   *       DeleteServiceAccountRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.deleteServiceAccountCallable().futureCall(request);
    -   *   // Do something.
    -   *   future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable deleteServiceAccountCallable() { - return stub.deleteServiceAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restores a deleted [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    **Important:** It is not always possible to restore a deleted service - * account. Use this method only as a last resort. - * - *

    After you delete a service account, IAM permanently removes the service account 30 days - * later. There is no way to restore a deleted service account that has been permanently removed. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   UndeleteServiceAccountRequest request =
    -   *       UndeleteServiceAccountRequest.newBuilder().setName("name3373707").build();
    -   *   UndeleteServiceAccountResponse response = iAMClient.undeleteServiceAccount(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final UndeleteServiceAccountResponse undeleteServiceAccount( - UndeleteServiceAccountRequest request) { - return undeleteServiceAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Restores a deleted [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    **Important:** It is not always possible to restore a deleted service - * account. Use this method only as a last resort. - * - *

    After you delete a service account, IAM permanently removes the service account 30 days - * later. There is no way to restore a deleted service account that has been permanently removed. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   UndeleteServiceAccountRequest request =
    -   *       UndeleteServiceAccountRequest.newBuilder().setName("name3373707").build();
    -   *   ApiFuture future =
    -   *       iAMClient.undeleteServiceAccountCallable().futureCall(request);
    -   *   // Do something.
    -   *   UndeleteServiceAccountResponse response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - undeleteServiceAccountCallable() { - return stub.undeleteServiceAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] that was disabled by - * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount]. - * - *

    If the service account is already enabled, then this method has no effect. - * - *

    If the service account was disabled by other means—for example, if Google disabled the - * service account because it was compromised—you cannot use this method to enable the service - * account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   EnableServiceAccountRequest request =
    -   *       EnableServiceAccountRequest.newBuilder().setName("name3373707").build();
    -   *   iAMClient.enableServiceAccount(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void enableServiceAccount(EnableServiceAccountRequest request) { - enableServiceAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] that was disabled by - * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount]. - * - *

    If the service account is already enabled, then this method has no effect. - * - *

    If the service account was disabled by other means—for example, if Google disabled the - * service account because it was compromised—you cannot use this method to enable the service - * account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   EnableServiceAccountRequest request =
    -   *       EnableServiceAccountRequest.newBuilder().setName("name3373707").build();
    -   *   ApiFuture future = iAMClient.enableServiceAccountCallable().futureCall(request);
    -   *   // Do something.
    -   *   future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable enableServiceAccountCallable() { - return stub.enableServiceAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Disables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] immediately. - * - *

    If an application uses the service account to authenticate, that application can no longer - * call Google APIs or access Google Cloud resources. Existing access tokens for the service - * account are rejected, and requests for new access tokens will fail. - * - *

    To re-enable the service account, use - * [EnableServiceAccount][google.iam.admin.v1.IAM.EnableServiceAccount]. After you re-enable the - * service account, its existing access tokens will be accepted, and you can request new access - * tokens. - * - *

    To help avoid unplanned outages, we recommend that you disable the service account before - * you delete it. Use this method to disable the service account, then wait at least 24 hours and - * watch for unintended consequences. If there are no unintended consequences, you can delete the - * service account with [DeleteServiceAccount][google.iam.admin.v1.IAM.DeleteServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DisableServiceAccountRequest request =
    -   *       DisableServiceAccountRequest.newBuilder().setName("name3373707").build();
    -   *   iAMClient.disableServiceAccount(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void disableServiceAccount(DisableServiceAccountRequest request) { - disableServiceAccountCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Disables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] immediately. - * - *

    If an application uses the service account to authenticate, that application can no longer - * call Google APIs or access Google Cloud resources. Existing access tokens for the service - * account are rejected, and requests for new access tokens will fail. - * - *

    To re-enable the service account, use - * [EnableServiceAccount][google.iam.admin.v1.IAM.EnableServiceAccount]. After you re-enable the - * service account, its existing access tokens will be accepted, and you can request new access - * tokens. - * - *

    To help avoid unplanned outages, we recommend that you disable the service account before - * you delete it. Use this method to disable the service account, then wait at least 24 hours and - * watch for unintended consequences. If there are no unintended consequences, you can delete the - * service account with [DeleteServiceAccount][google.iam.admin.v1.IAM.DeleteServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DisableServiceAccountRequest request =
    -   *       DisableServiceAccountRequest.newBuilder().setName("name3373707").build();
    -   *   ApiFuture future = iAMClient.disableServiceAccountCallable().futureCall(request);
    -   *   // Do something.
    -   *   future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable disableServiceAccountCallable() { - return stub.disableServiceAccountCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   List keyTypes = new ArrayList<>();
    -   *   ListServiceAccountKeysResponse response = iAMClient.listServiceAccountKeys(name, keyTypes);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - *

    Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from the account. - * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param keyTypes Filters the types of keys the user wants to include in the list response. - * Duplicate key types are not allowed. If no key type is provided, all keys are returned. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListServiceAccountKeysResponse listServiceAccountKeys( - ServiceAccountName name, List keyTypes) { - ListServiceAccountKeysRequest request = - ListServiceAccountKeysRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .addAllKeyTypes(keyTypes) - .build(); - return listServiceAccountKeys(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    -   *   List keyTypes = new ArrayList<>();
    -   *   ListServiceAccountKeysResponse response = iAMClient.listServiceAccountKeys(name, keyTypes);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - *

    Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from the account. - * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param keyTypes Filters the types of keys the user wants to include in the list response. - * Duplicate key types are not allowed. If no key type is provided, all keys are returned. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListServiceAccountKeysResponse listServiceAccountKeys( - String name, List keyTypes) { - ListServiceAccountKeysRequest request = - ListServiceAccountKeysRequest.newBuilder().setName(name).addAllKeyTypes(keyTypes).build(); - return listServiceAccountKeys(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ListServiceAccountKeysRequest request =
    -   *       ListServiceAccountKeysRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .addAllKeyTypes(new ArrayList())
    -   *           .build();
    -   *   ListServiceAccountKeysResponse response = iAMClient.listServiceAccountKeys(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListServiceAccountKeysResponse listServiceAccountKeys( - ListServiceAccountKeysRequest request) { - return listServiceAccountKeysCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ListServiceAccountKeysRequest request =
    -   *       ListServiceAccountKeysRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .addAllKeyTypes(new ArrayList())
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.listServiceAccountKeysCallable().futureCall(request);
    -   *   // Do something.
    -   *   ListServiceAccountKeysResponse response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - listServiceAccountKeysCallable() { - return stub.listServiceAccountKeysCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    -   *   ServiceAccountPublicKeyType publicKeyType = ServiceAccountPublicKeyType.forNumber(0);
    -   *   ServiceAccountKey response = iAMClient.getServiceAccountKey(name, publicKeyType);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account key in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. - * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param publicKeyType Optional. The output format of the public key. The default is `TYPE_NONE`, - * which means that the public key is not returned. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccountKey getServiceAccountKey( - KeyName name, ServiceAccountPublicKeyType publicKeyType) { - GetServiceAccountKeyRequest request = - GetServiceAccountKeyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setPublicKeyType(publicKeyType) - .build(); - return getServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString();
    -   *   ServiceAccountPublicKeyType publicKeyType = ServiceAccountPublicKeyType.forNumber(0);
    -   *   ServiceAccountKey response = iAMClient.getServiceAccountKey(name, publicKeyType);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account key in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. - * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @param publicKeyType Optional. The output format of the public key. The default is `TYPE_NONE`, - * which means that the public key is not returned. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccountKey getServiceAccountKey( - String name, ServiceAccountPublicKeyType publicKeyType) { - GetServiceAccountKeyRequest request = - GetServiceAccountKeyRequest.newBuilder() - .setName(name) - .setPublicKeyType(publicKeyType) - .build(); - return getServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   GetServiceAccountKeyRequest request =
    -   *       GetServiceAccountKeyRequest.newBuilder()
    -   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    -   *           .setPublicKeyType(ServiceAccountPublicKeyType.forNumber(0))
    -   *           .build();
    -   *   ServiceAccountKey response = iAMClient.getServiceAccountKey(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccountKey getServiceAccountKey(GetServiceAccountKeyRequest request) { - return getServiceAccountKeyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   GetServiceAccountKeyRequest request =
    -   *       GetServiceAccountKeyRequest.newBuilder()
    -   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    -   *           .setPublicKeyType(ServiceAccountPublicKeyType.forNumber(0))
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.getServiceAccountKeyCallable().futureCall(request);
    -   *   // Do something.
    -   *   ServiceAccountKey response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - getServiceAccountKeyCallable() { - return stub.getServiceAccountKeyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   ServiceAccountPrivateKeyType privateKeyType = ServiceAccountPrivateKeyType.forNumber(0);
    -   *   ServiceAccountKeyAlgorithm keyAlgorithm = ServiceAccountKeyAlgorithm.forNumber(0);
    -   *   ServiceAccountKey response =
    -   *       iAMClient.createServiceAccountKey(name, privateKeyType, keyAlgorithm);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @param privateKeyType The output format of the private key. The default value is - * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. - * @param keyAlgorithm Which type of key and algorithm to use for the key. The default is - * currently a 2K RSA key. However this may change in the future. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccountKey createServiceAccountKey( - ServiceAccountName name, - ServiceAccountPrivateKeyType privateKeyType, - ServiceAccountKeyAlgorithm keyAlgorithm) { - CreateServiceAccountKeyRequest request = - CreateServiceAccountKeyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setPrivateKeyType(privateKeyType) - .setKeyAlgorithm(keyAlgorithm) - .build(); - return createServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    -   *   ServiceAccountPrivateKeyType privateKeyType = ServiceAccountPrivateKeyType.forNumber(0);
    -   *   ServiceAccountKeyAlgorithm keyAlgorithm = ServiceAccountKeyAlgorithm.forNumber(0);
    -   *   ServiceAccountKey response =
    -   *       iAMClient.createServiceAccountKey(name, privateKeyType, keyAlgorithm);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @param privateKeyType The output format of the private key. The default value is - * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File format. - * @param keyAlgorithm Which type of key and algorithm to use for the key. The default is - * currently a 2K RSA key. However this may change in the future. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccountKey createServiceAccountKey( - String name, - ServiceAccountPrivateKeyType privateKeyType, - ServiceAccountKeyAlgorithm keyAlgorithm) { - CreateServiceAccountKeyRequest request = - CreateServiceAccountKeyRequest.newBuilder() - .setName(name) - .setPrivateKeyType(privateKeyType) - .setKeyAlgorithm(keyAlgorithm) - .build(); - return createServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   CreateServiceAccountKeyRequest request =
    -   *       CreateServiceAccountKeyRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setPrivateKeyType(ServiceAccountPrivateKeyType.forNumber(0))
    -   *           .setKeyAlgorithm(ServiceAccountKeyAlgorithm.forNumber(0))
    -   *           .build();
    -   *   ServiceAccountKey response = iAMClient.createServiceAccountKey(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccountKey createServiceAccountKey(CreateServiceAccountKeyRequest request) { - return createServiceAccountKeyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   CreateServiceAccountKeyRequest request =
    -   *       CreateServiceAccountKeyRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setPrivateKeyType(ServiceAccountPrivateKeyType.forNumber(0))
    -   *           .setKeyAlgorithm(ServiceAccountKeyAlgorithm.forNumber(0))
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.createServiceAccountKeyCallable().futureCall(request);
    -   *   // Do something.
    -   *   ServiceAccountKey response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - createServiceAccountKeyCallable() { - return stub.createServiceAccountKeyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Uploads the public key portion of a key pair that you manage, and associates the public key - * with a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    After you upload the public key, you can use the private key from the key pair as a service - * account key. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   UploadServiceAccountKeyRequest request =
    -   *       UploadServiceAccountKeyRequest.newBuilder()
    -   *           .setName("name3373707")
    -   *           .setPublicKeyData(ByteString.EMPTY)
    -   *           .build();
    -   *   ServiceAccountKey response = iAMClient.uploadServiceAccountKey(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ServiceAccountKey uploadServiceAccountKey(UploadServiceAccountKeyRequest request) { - return uploadServiceAccountKeyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Uploads the public key portion of a key pair that you manage, and associates the public key - * with a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    After you upload the public key, you can use the private key from the key pair as a service - * account key. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   UploadServiceAccountKeyRequest request =
    -   *       UploadServiceAccountKeyRequest.newBuilder()
    -   *           .setName("name3373707")
    -   *           .setPublicKeyData(ByteString.EMPTY)
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.uploadServiceAccountKeyCallable().futureCall(request);
    -   *   // Do something.
    -   *   ServiceAccountKey response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - uploadServiceAccountKeyCallable() { - return stub.uploadServiceAccountKeyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service - * account key does not revoke short-lived credentials that have been issued based on the service - * account key. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    -   *   iAMClient.deleteServiceAccountKey(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account key in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. Using `-` as a wildcard for - * the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteServiceAccountKey(KeyName name) { - DeleteServiceAccountKeyRequest request = - DeleteServiceAccountKeyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - deleteServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service - * account key does not revoke short-lived credentials that have been issued based on the service - * account key. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString();
    -   *   iAMClient.deleteServiceAccountKey(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account key in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. Using `-` as a wildcard for - * the `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteServiceAccountKey(String name) { - DeleteServiceAccountKeyRequest request = - DeleteServiceAccountKeyRequest.newBuilder().setName(name).build(); - deleteServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service - * account key does not revoke short-lived credentials that have been issued based on the service - * account key. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DeleteServiceAccountKeyRequest request =
    -   *       DeleteServiceAccountKeyRequest.newBuilder()
    -   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    -   *           .build();
    -   *   iAMClient.deleteServiceAccountKey(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void deleteServiceAccountKey(DeleteServiceAccountKeyRequest request) { - deleteServiceAccountKeyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service - * account key does not revoke short-lived credentials that have been issued based on the service - * account key. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DeleteServiceAccountKeyRequest request =
    -   *       DeleteServiceAccountKeyRequest.newBuilder()
    -   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.deleteServiceAccountKeyCallable().futureCall(request);
    -   *   // Do something.
    -   *   future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - deleteServiceAccountKeyCallable() { - return stub.deleteServiceAccountKeyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service - * account key can be re-enabled with - * [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    -   *   iAMClient.disableServiceAccountKey(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account key in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. - * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void disableServiceAccountKey(KeyName name) { - DisableServiceAccountKeyRequest request = - DisableServiceAccountKeyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - disableServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service - * account key can be re-enabled with - * [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString();
    -   *   iAMClient.disableServiceAccountKey(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account key in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. - * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void disableServiceAccountKey(String name) { - DisableServiceAccountKeyRequest request = - DisableServiceAccountKeyRequest.newBuilder().setName(name).build(); - disableServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service - * account key can be re-enabled with - * [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DisableServiceAccountKeyRequest request =
    -   *       DisableServiceAccountKeyRequest.newBuilder()
    -   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    -   *           .build();
    -   *   iAMClient.disableServiceAccountKey(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void disableServiceAccountKey(DisableServiceAccountKeyRequest request) { - disableServiceAccountKeyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service - * account key can be re-enabled with - * [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DisableServiceAccountKeyRequest request =
    -   *       DisableServiceAccountKeyRequest.newBuilder()
    -   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.disableServiceAccountKeyCallable().futureCall(request);
    -   *   // Do something.
    -   *   future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - disableServiceAccountKeyCallable() { - return stub.disableServiceAccountKeyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]");
    -   *   iAMClient.enableServiceAccountKey(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account key in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. - * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void enableServiceAccountKey(KeyName name) { - EnableServiceAccountKeyRequest request = - EnableServiceAccountKeyRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .build(); - enableServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString();
    -   *   iAMClient.enableServiceAccountKey(name);
    -   * }
    -   * }
    - * - * @param name Required. The resource name of the service account key in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - *

    Using `-` as a wildcard for the `PROJECT_ID` will infer the project from the account. - * The `ACCOUNT` value can be the `email` address or the `unique_id` of the service account. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void enableServiceAccountKey(String name) { - EnableServiceAccountKeyRequest request = - EnableServiceAccountKeyRequest.newBuilder().setName(name).build(); - enableServiceAccountKey(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   EnableServiceAccountKeyRequest request =
    -   *       EnableServiceAccountKeyRequest.newBuilder()
    -   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    -   *           .build();
    -   *   iAMClient.enableServiceAccountKey(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final void enableServiceAccountKey(EnableServiceAccountKeyRequest request) { - enableServiceAccountKeyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   EnableServiceAccountKeyRequest request =
    -   *       EnableServiceAccountKeyRequest.newBuilder()
    -   *           .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.enableServiceAccountKeyCallable().futureCall(request);
    -   *   // Do something.
    -   *   future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - enableServiceAccountKeyCallable() { - return stub.enableServiceAccountKeyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** This method is deprecated. Use the - * [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) - * method in the IAM Service Account Credentials API instead. If you currently use this method, - * see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - * instructions. - * - *

    Signs a blob using the system-managed private key for a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   ByteString bytesToSign = ByteString.EMPTY;
    -   *   SignBlobResponse response = iAMClient.signBlob(name, bytesToSign);
    -   * }
    -   * }
    - * - * @param name Required. Deprecated. [Migrate to Service Account Credentials - * API](https://cloud.google.com/iam/help/credentials/migrate-api). - *

    The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @param bytesToSign Required. Deprecated. [Migrate to Service Account Credentials - * API](https://cloud.google.com/iam/help/credentials/migrate-api). - *

    The bytes to sign. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final SignBlobResponse signBlob(ServiceAccountName name, ByteString bytesToSign) { - SignBlobRequest request = - SignBlobRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setBytesToSign(bytesToSign) - .build(); - return signBlob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** This method is deprecated. Use the - * [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) - * method in the IAM Service Account Credentials API instead. If you currently use this method, - * see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - * instructions. - * - *

    Signs a blob using the system-managed private key for a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    -   *   ByteString bytesToSign = ByteString.EMPTY;
    -   *   SignBlobResponse response = iAMClient.signBlob(name, bytesToSign);
    -   * }
    -   * }
    - * - * @param name Required. Deprecated. [Migrate to Service Account Credentials - * API](https://cloud.google.com/iam/help/credentials/migrate-api). - *

    The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @param bytesToSign Required. Deprecated. [Migrate to Service Account Credentials - * API](https://cloud.google.com/iam/help/credentials/migrate-api). - *

    The bytes to sign. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final SignBlobResponse signBlob(String name, ByteString bytesToSign) { - SignBlobRequest request = - SignBlobRequest.newBuilder().setName(name).setBytesToSign(bytesToSign).build(); - return signBlob(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** This method is deprecated. Use the - * [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) - * method in the IAM Service Account Credentials API instead. If you currently use this method, - * see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - * instructions. - * - *

    Signs a blob using the system-managed private key for a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   SignBlobRequest request =
    -   *       SignBlobRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setBytesToSign(ByteString.EMPTY)
    -   *           .build();
    -   *   SignBlobResponse response = iAMClient.signBlob(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final SignBlobResponse signBlob(SignBlobRequest request) { - return signBlobCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** This method is deprecated. Use the - * [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) - * method in the IAM Service Account Credentials API instead. If you currently use this method, - * see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - * instructions. - * - *

    Signs a blob using the system-managed private key for a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   SignBlobRequest request =
    -   *       SignBlobRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setBytesToSign(ByteString.EMPTY)
    -   *           .build();
    -   *   ApiFuture future = iAMClient.signBlobCallable().futureCall(request);
    -   *   // Do something.
    -   *   SignBlobResponse response = future.get();
    -   * }
    -   * }
    - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable signBlobCallable() { - return stub.signBlobCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** This method is deprecated. Use the - * [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt) - * method in the IAM Service Account Credentials API instead. If you currently use this method, - * see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - * instructions. - * - *

    Signs a JSON Web Token (JWT) using the system-managed private key for a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   String payload = "payload-786701938";
    -   *   SignJwtResponse response = iAMClient.signJwt(name, payload);
    -   * }
    -   * }
    - * - * @param name Required. Deprecated. [Migrate to Service Account Credentials - * API](https://cloud.google.com/iam/help/credentials/migrate-api). - *

    The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @param payload Required. Deprecated. [Migrate to Service Account Credentials - * API](https://cloud.google.com/iam/help/credentials/migrate-api). - *

    The JWT payload to sign. Must be a serialized JSON object that contains a JWT Claims - * Set. For example: `{"sub": "user{@literal @}example.com", "iat": 313435}` - *

    If the JWT Claims Set contains an expiration time (`exp`) claim, it must be an integer - * timestamp that is not in the past and no more than 12 hours in the future. - *

    If the JWT Claims Set does not contain an expiration time (`exp`) claim, this claim is - * added automatically, with a timestamp that is 1 hour in the future. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final SignJwtResponse signJwt(ServiceAccountName name, String payload) { - SignJwtRequest request = - SignJwtRequest.newBuilder() - .setName(name == null ? null : name.toString()) - .setPayload(payload) - .build(); - return signJwt(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** This method is deprecated. Use the - * [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt) - * method in the IAM Service Account Credentials API instead. If you currently use this method, - * see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - * instructions. - * - *

    Signs a JSON Web Token (JWT) using the system-managed private key for a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString();
    -   *   String payload = "payload-786701938";
    -   *   SignJwtResponse response = iAMClient.signJwt(name, payload);
    -   * }
    -   * }
    - * - * @param name Required. Deprecated. [Migrate to Service Account Credentials - * API](https://cloud.google.com/iam/help/credentials/migrate-api). - *

    The resource name of the service account in the following format: - * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. Using `-` as a wildcard for the - * `PROJECT_ID` will infer the project from the account. The `ACCOUNT` value can be the - * `email` address or the `unique_id` of the service account. - * @param payload Required. Deprecated. [Migrate to Service Account Credentials - * API](https://cloud.google.com/iam/help/credentials/migrate-api). - *

    The JWT payload to sign. Must be a serialized JSON object that contains a JWT Claims - * Set. For example: `{"sub": "user{@literal @}example.com", "iat": 313435}` - *

    If the JWT Claims Set contains an expiration time (`exp`) claim, it must be an integer - * timestamp that is not in the past and no more than 12 hours in the future. - *

    If the JWT Claims Set does not contain an expiration time (`exp`) claim, this claim is - * added automatically, with a timestamp that is 1 hour in the future. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final SignJwtResponse signJwt(String name, String payload) { - SignJwtRequest request = SignJwtRequest.newBuilder().setName(name).setPayload(payload).build(); - return signJwt(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** This method is deprecated. Use the - * [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt) - * method in the IAM Service Account Credentials API instead. If you currently use this method, - * see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - * instructions. - * - *

    Signs a JSON Web Token (JWT) using the system-managed private key for a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   SignJwtRequest request =
    -   *       SignJwtRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setPayload("payload-786701938")
    -   *           .build();
    -   *   SignJwtResponse response = iAMClient.signJwt(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final SignJwtResponse signJwt(SignJwtRequest request) { - return signJwtCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * **Note:** This method is deprecated. Use the - * [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt) - * method in the IAM Service Account Credentials API instead. If you currently use this method, - * see the [migration guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - * instructions. - * - *

    Signs a JSON Web Token (JWT) using the system-managed private key for a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   SignJwtRequest request =
    -   *       SignJwtRequest.newBuilder()
    -   *           .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setPayload("payload-786701938")
    -   *           .build();
    -   *   ApiFuture future = iAMClient.signJwtCallable().futureCall(request);
    -   *   // Do something.
    -   *   SignJwtResponse response = future.get();
    -   * }
    -   * }
    - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public final UnaryCallable signJwtCallable() { - return stub.signJwtCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * This IAM policy specifies which principals have access to the service account. - * - *

    This method does not tell you whether the service account has been granted any roles on - * other resources. To check whether a service account has role grants on a resource, use the - * `getIamPolicy` method for that resource. For example, to view the role grants for a project, - * call the Resource Manager API's - * [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy) - * method. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   Policy response = iAMClient.getIamPolicy(resource);
    -   * }
    -   * }
    - * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(ResourceName resource) { - GetIamPolicyRequest request = - GetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * This IAM policy specifies which principals have access to the service account. - * - *

    This method does not tell you whether the service account has been granted any roles on - * other resources. To check whether a service account has role grants on a resource, use the - * `getIamPolicy` method for that resource. For example, to view the role grants for a project, - * call the Resource Manager API's - * [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy) - * method. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String resource = ProjectName.of("[PROJECT]").toString();
    -   *   Policy response = iAMClient.getIamPolicy(resource);
    -   * }
    -   * }
    - * - * @param resource REQUIRED: The resource for which the policy is being requested. See the - * operation documentation for the appropriate value for this field. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(String resource) { - GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().setResource(resource).build(); - return getIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * This IAM policy specifies which principals have access to the service account. - * - *

    This method does not tell you whether the service account has been granted any roles on - * other resources. To check whether a service account has role grants on a resource, use the - * `getIamPolicy` method for that resource. For example, to view the role grants for a project, - * call the Resource Manager API's - * [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy) - * method. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   GetIamPolicyRequest request =
    -   *       GetIamPolicyRequest.newBuilder()
    -   *           .setResource(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setOptions(GetPolicyOptions.newBuilder().build())
    -   *           .build();
    -   *   Policy response = iAMClient.getIamPolicy(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy getIamPolicy(GetIamPolicyRequest request) { - return getIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * This IAM policy specifies which principals have access to the service account. - * - *

    This method does not tell you whether the service account has been granted any roles on - * other resources. To check whether a service account has role grants on a resource, use the - * `getIamPolicy` method for that resource. For example, to view the role grants for a project, - * call the Resource Manager API's - * [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy) - * method. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   GetIamPolicyRequest request =
    -   *       GetIamPolicyRequest.newBuilder()
    -   *           .setResource(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setOptions(GetPolicyOptions.newBuilder().build())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.getIamPolicyCallable().futureCall(request);
    -   *   // Do something.
    -   *   Policy response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable getIamPolicyCallable() { - return stub.getIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Use this method to grant or revoke access to the service account. For example, you could - * grant a principal the ability to impersonate the service account. - * - *

    This method does not enable the service account to access other resources. To grant roles to - * a service account on a resource, follow these steps: - * - *

    1. Call the resource's `getIamPolicy` method to get its current IAM policy. 2. Edit the - * policy so that it binds the service account to an IAM role for the resource. 3. Call the - * resource's `setIamPolicy` method to update its IAM policy. - * - *

    For detailed instructions, see [Manage access to project, folders, and - * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) - * or [Manage access to other - * resources](https://cloud.google.com/iam/help/access/manage-other-resources). - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   Policy policy = Policy.newBuilder().build();
    -   *   Policy response = iAMClient.setIamPolicy(resource, policy);
    -   * }
    -   * }
    - * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(ResourceName resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .setPolicy(policy) - .build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Use this method to grant or revoke access to the service account. For example, you could - * grant a principal the ability to impersonate the service account. - * - *

    This method does not enable the service account to access other resources. To grant roles to - * a service account on a resource, follow these steps: - * - *

    1. Call the resource's `getIamPolicy` method to get its current IAM policy. 2. Edit the - * policy so that it binds the service account to an IAM role for the resource. 3. Call the - * resource's `setIamPolicy` method to update its IAM policy. - * - *

    For detailed instructions, see [Manage access to project, folders, and - * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) - * or [Manage access to other - * resources](https://cloud.google.com/iam/help/access/manage-other-resources). - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String resource = ProjectName.of("[PROJECT]").toString();
    -   *   Policy policy = Policy.newBuilder().build();
    -   *   Policy response = iAMClient.setIamPolicy(resource, policy);
    -   * }
    -   * }
    - * - * @param resource REQUIRED: The resource for which the policy is being specified. See the - * operation documentation for the appropriate value for this field. - * @param policy REQUIRED: The complete policy to be applied to the `resource`. The size of the - * policy is limited to a few 10s of KB. An empty policy is a valid policy but certain Cloud - * Platform services (such as Projects) might reject them. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(String resource, Policy policy) { - SetIamPolicyRequest request = - SetIamPolicyRequest.newBuilder().setResource(resource).setPolicy(policy).build(); - return setIamPolicy(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Use this method to grant or revoke access to the service account. For example, you could - * grant a principal the ability to impersonate the service account. - * - *

    This method does not enable the service account to access other resources. To grant roles to - * a service account on a resource, follow these steps: - * - *

    1. Call the resource's `getIamPolicy` method to get its current IAM policy. 2. Edit the - * policy so that it binds the service account to an IAM role for the resource. 3. Call the - * resource's `setIamPolicy` method to update its IAM policy. - * - *

    For detailed instructions, see [Manage access to project, folders, and - * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) - * or [Manage access to other - * resources](https://cloud.google.com/iam/help/access/manage-other-resources). - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   SetIamPolicyRequest request =
    -   *       SetIamPolicyRequest.newBuilder()
    -   *           .setResource(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setPolicy(Policy.newBuilder().build())
    -   *           .setUpdateMask(FieldMask.newBuilder().build())
    -   *           .build();
    -   *   Policy response = iAMClient.setIamPolicy(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Policy setIamPolicy(SetIamPolicyRequest request) { - return setIamPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Use this method to grant or revoke access to the service account. For example, you could - * grant a principal the ability to impersonate the service account. - * - *

    This method does not enable the service account to access other resources. To grant roles to - * a service account on a resource, follow these steps: - * - *

    1. Call the resource's `getIamPolicy` method to get its current IAM policy. 2. Edit the - * policy so that it binds the service account to an IAM role for the resource. 3. Call the - * resource's `setIamPolicy` method to update its IAM policy. - * - *

    For detailed instructions, see [Manage access to project, folders, and - * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) - * or [Manage access to other - * resources](https://cloud.google.com/iam/help/access/manage-other-resources). - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   SetIamPolicyRequest request =
    -   *       SetIamPolicyRequest.newBuilder()
    -   *           .setResource(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .setPolicy(Policy.newBuilder().build())
    -   *           .setUpdateMask(FieldMask.newBuilder().build())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.setIamPolicyCallable().futureCall(request);
    -   *   // Do something.
    -   *   Policy response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable setIamPolicyCallable() { - return stub.setIamPolicyCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Tests whether the caller has the specified permissions on a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    -   *   List permissions = new ArrayList<>();
    -   *   TestIamPermissionsResponse response = iAMClient.testIamPermissions(resource, permissions);
    -   * }
    -   * }
    - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - ResourceName resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource == null ? null : resource.toString()) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Tests whether the caller has the specified permissions on a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String resource = ProjectName.of("[PROJECT]").toString();
    -   *   List permissions = new ArrayList<>();
    -   *   TestIamPermissionsResponse response = iAMClient.testIamPermissions(resource, permissions);
    -   * }
    -   * }
    - * - * @param resource REQUIRED: The resource for which the policy detail is being requested. See the - * operation documentation for the appropriate value for this field. - * @param permissions The set of permissions to check for the `resource`. Permissions with - * wildcards (such as '*' or 'storage.*') are not allowed. For more information see - * [IAM Overview](https://cloud.google.com/iam/docs/overview#permissions). - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions( - String resource, List permissions) { - TestIamPermissionsRequest request = - TestIamPermissionsRequest.newBuilder() - .setResource(resource) - .addAllPermissions(permissions) - .build(); - return testIamPermissions(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Tests whether the caller has the specified permissions on a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   TestIamPermissionsRequest request =
    -   *       TestIamPermissionsRequest.newBuilder()
    -   *           .setResource(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .addAllPermissions(new ArrayList())
    -   *           .build();
    -   *   TestIamPermissionsResponse response = iAMClient.testIamPermissions(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) { - return testIamPermissionsCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Tests whether the caller has the specified permissions on a - * [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   TestIamPermissionsRequest request =
    -   *       TestIamPermissionsRequest.newBuilder()
    -   *           .setResource(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString())
    -   *           .addAllPermissions(new ArrayList())
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.testIamPermissionsCallable().futureCall(request);
    -   *   // Do something.
    -   *   TestIamPermissionsResponse response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - testIamPermissionsCallable() { - return stub.testIamPermissionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists roles that can be granted on a Google Cloud resource. A role is grantable if the IAM - * policy for the resource can contain bindings to the role. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   String fullResourceName = "fullResourceName-853732376";
    -   *   for (Role element : iAMClient.queryGrantableRoles(fullResourceName).iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - * - * @param fullResourceName Required. The full resource name to query from the list of grantable - * roles. - *

    The name follows the Google Cloud Platform resource format. For example, a Cloud - * Platform project with id `my-project` will be named - * `//cloudresourcemanager.googleapis.com/projects/my-project`. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final QueryGrantableRolesPagedResponse queryGrantableRoles(String fullResourceName) { - QueryGrantableRolesRequest request = - QueryGrantableRolesRequest.newBuilder().setFullResourceName(fullResourceName).build(); - return queryGrantableRoles(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists roles that can be granted on a Google Cloud resource. A role is grantable if the IAM - * policy for the resource can contain bindings to the role. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   QueryGrantableRolesRequest request =
    -   *       QueryGrantableRolesRequest.newBuilder()
    -   *           .setFullResourceName("fullResourceName-853732376")
    -   *           .setView(RoleView.forNumber(0))
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   for (Role element : iAMClient.queryGrantableRoles(request).iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final QueryGrantableRolesPagedResponse queryGrantableRoles( - QueryGrantableRolesRequest request) { - return queryGrantableRolesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists roles that can be granted on a Google Cloud resource. A role is grantable if the IAM - * policy for the resource can contain bindings to the role. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   QueryGrantableRolesRequest request =
    -   *       QueryGrantableRolesRequest.newBuilder()
    -   *           .setFullResourceName("fullResourceName-853732376")
    -   *           .setView(RoleView.forNumber(0))
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   ApiFuture future = iAMClient.queryGrantableRolesPagedCallable().futureCall(request);
    -   *   // Do something.
    -   *   for (Role element : future.get().iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - */ - public final UnaryCallable - queryGrantableRolesPagedCallable() { - return stub.queryGrantableRolesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists roles that can be granted on a Google Cloud resource. A role is grantable if the IAM - * policy for the resource can contain bindings to the role. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   QueryGrantableRolesRequest request =
    -   *       QueryGrantableRolesRequest.newBuilder()
    -   *           .setFullResourceName("fullResourceName-853732376")
    -   *           .setView(RoleView.forNumber(0))
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   while (true) {
    -   *     QueryGrantableRolesResponse response =
    -   *         iAMClient.queryGrantableRolesCallable().call(request);
    -   *     for (Role element : response.getRolesList()) {
    -   *       // doThingsWith(element);
    -   *     }
    -   *     String nextPageToken = response.getNextPageToken();
    -   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    -   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    -   *     } else {
    -   *       break;
    -   *     }
    -   *   }
    -   * }
    -   * }
    - */ - public final UnaryCallable - queryGrantableRolesCallable() { - return stub.queryGrantableRolesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role - * that is defined for an organization or project. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ListRolesRequest request =
    -   *       ListRolesRequest.newBuilder()
    -   *           .setParent(ProjectName.of("[PROJECT]").toString())
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .setView(RoleView.forNumber(0))
    -   *           .setShowDeleted(true)
    -   *           .build();
    -   *   for (Role element : iAMClient.listRoles(request).iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final ListRolesPagedResponse listRoles(ListRolesRequest request) { - return listRolesPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role - * that is defined for an organization or project. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ListRolesRequest request =
    -   *       ListRolesRequest.newBuilder()
    -   *           .setParent(ProjectName.of("[PROJECT]").toString())
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .setView(RoleView.forNumber(0))
    -   *           .setShowDeleted(true)
    -   *           .build();
    -   *   ApiFuture future = iAMClient.listRolesPagedCallable().futureCall(request);
    -   *   // Do something.
    -   *   for (Role element : future.get().iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - */ - public final UnaryCallable listRolesPagedCallable() { - return stub.listRolesPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role - * that is defined for an organization or project. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   ListRolesRequest request =
    -   *       ListRolesRequest.newBuilder()
    -   *           .setParent(ProjectName.of("[PROJECT]").toString())
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .setView(RoleView.forNumber(0))
    -   *           .setShowDeleted(true)
    -   *           .build();
    -   *   while (true) {
    -   *     ListRolesResponse response = iAMClient.listRolesCallable().call(request);
    -   *     for (Role element : response.getRolesList()) {
    -   *       // doThingsWith(element);
    -   *     }
    -   *     String nextPageToken = response.getNextPageToken();
    -   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    -   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    -   *     } else {
    -   *       break;
    -   *     }
    -   *   }
    -   * }
    -   * }
    - */ - public final UnaryCallable listRolesCallable() { - return stub.listRolesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the definition of a [Role][google.iam.admin.v1.Role]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   GetRoleRequest request =
    -   *       GetRoleRequest.newBuilder().setName("GetRoleRequest84528163".toString()).build();
    -   *   Role response = iAMClient.getRole(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Role getRole(GetRoleRequest request) { - return getRoleCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Gets the definition of a [Role][google.iam.admin.v1.Role]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   GetRoleRequest request =
    -   *       GetRoleRequest.newBuilder().setName("GetRoleRequest84528163".toString()).build();
    -   *   ApiFuture future = iAMClient.getRoleCallable().futureCall(request);
    -   *   // Do something.
    -   *   Role response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable getRoleCallable() { - return stub.getRoleCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new custom [Role][google.iam.admin.v1.Role]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   CreateRoleRequest request =
    -   *       CreateRoleRequest.newBuilder()
    -   *           .setParent(ProjectName.of("[PROJECT]").toString())
    -   *           .setRoleId("roleId-925416399")
    -   *           .setRole(Role.newBuilder().build())
    -   *           .build();
    -   *   Role response = iAMClient.createRole(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Role createRole(CreateRoleRequest request) { - return createRoleCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Creates a new custom [Role][google.iam.admin.v1.Role]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   CreateRoleRequest request =
    -   *       CreateRoleRequest.newBuilder()
    -   *           .setParent(ProjectName.of("[PROJECT]").toString())
    -   *           .setRoleId("roleId-925416399")
    -   *           .setRole(Role.newBuilder().build())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.createRoleCallable().futureCall(request);
    -   *   // Do something.
    -   *   Role response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable createRoleCallable() { - return stub.createRoleCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the definition of a custom [Role][google.iam.admin.v1.Role]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   UpdateRoleRequest request =
    -   *       UpdateRoleRequest.newBuilder()
    -   *           .setName("UpdateRoleRequest230834320".toString())
    -   *           .setRole(Role.newBuilder().build())
    -   *           .setUpdateMask(FieldMask.newBuilder().build())
    -   *           .build();
    -   *   Role response = iAMClient.updateRole(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Role updateRole(UpdateRoleRequest request) { - return updateRoleCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Updates the definition of a custom [Role][google.iam.admin.v1.Role]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   UpdateRoleRequest request =
    -   *       UpdateRoleRequest.newBuilder()
    -   *           .setName("UpdateRoleRequest230834320".toString())
    -   *           .setRole(Role.newBuilder().build())
    -   *           .setUpdateMask(FieldMask.newBuilder().build())
    -   *           .build();
    -   *   ApiFuture future = iAMClient.updateRoleCallable().futureCall(request);
    -   *   // Do something.
    -   *   Role response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable updateRoleCallable() { - return stub.updateRoleCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a custom [Role][google.iam.admin.v1.Role]. - * - *

    When you delete a custom role, the following changes occur immediately: - * - *

      - *
    • You cannot bind a principal to the custom role in an IAM [Policy][google.iam.v1.Policy]. - *
    • Existing bindings to the custom role are not changed, but they have no effect. - *
    • By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not - * include the custom role. - *
    - * - *

    You have 7 days to undelete the custom role. After 7 days, the following changes occur: - * - *

      - *
    • The custom role is permanently deleted and cannot be recovered. - *
    • If an IAM policy contains a binding to the custom role, the binding is permanently - * removed. - *
    - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DeleteRoleRequest request =
    -   *       DeleteRoleRequest.newBuilder()
    -   *           .setName("DeleteRoleRequest1468559982".toString())
    -   *           .setEtag(ByteString.EMPTY)
    -   *           .build();
    -   *   Role response = iAMClient.deleteRole(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Role deleteRole(DeleteRoleRequest request) { - return deleteRoleCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Deletes a custom [Role][google.iam.admin.v1.Role]. - * - *

    When you delete a custom role, the following changes occur immediately: - * - *

      - *
    • You cannot bind a principal to the custom role in an IAM [Policy][google.iam.v1.Policy]. - *
    • Existing bindings to the custom role are not changed, but they have no effect. - *
    • By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not - * include the custom role. - *
    - * - *

    You have 7 days to undelete the custom role. After 7 days, the following changes occur: - * - *

      - *
    • The custom role is permanently deleted and cannot be recovered. - *
    • If an IAM policy contains a binding to the custom role, the binding is permanently - * removed. - *
    - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   DeleteRoleRequest request =
    -   *       DeleteRoleRequest.newBuilder()
    -   *           .setName("DeleteRoleRequest1468559982".toString())
    -   *           .setEtag(ByteString.EMPTY)
    -   *           .build();
    -   *   ApiFuture future = iAMClient.deleteRoleCallable().futureCall(request);
    -   *   // Do something.
    -   *   Role response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable deleteRoleCallable() { - return stub.deleteRoleCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Undeletes a custom [Role][google.iam.admin.v1.Role]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   UndeleteRoleRequest request =
    -   *       UndeleteRoleRequest.newBuilder()
    -   *           .setName("UndeleteRoleRequest755355893".toString())
    -   *           .setEtag(ByteString.EMPTY)
    -   *           .build();
    -   *   Role response = iAMClient.undeleteRole(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final Role undeleteRole(UndeleteRoleRequest request) { - return undeleteRoleCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Undeletes a custom [Role][google.iam.admin.v1.Role]. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   UndeleteRoleRequest request =
    -   *       UndeleteRoleRequest.newBuilder()
    -   *           .setName("UndeleteRoleRequest755355893".toString())
    -   *           .setEtag(ByteString.EMPTY)
    -   *           .build();
    -   *   ApiFuture future = iAMClient.undeleteRoleCallable().futureCall(request);
    -   *   // Do something.
    -   *   Role response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable undeleteRoleCallable() { - return stub.undeleteRoleCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every permission that you can test on a resource. A permission is testable if you can - * check whether a principal has that permission on the resource. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   QueryTestablePermissionsRequest request =
    -   *       QueryTestablePermissionsRequest.newBuilder()
    -   *           .setFullResourceName("fullResourceName-853732376")
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   for (Permission element : iAMClient.queryTestablePermissions(request).iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final QueryTestablePermissionsPagedResponse queryTestablePermissions( - QueryTestablePermissionsRequest request) { - return queryTestablePermissionsPagedCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every permission that you can test on a resource. A permission is testable if you can - * check whether a principal has that permission on the resource. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   QueryTestablePermissionsRequest request =
    -   *       QueryTestablePermissionsRequest.newBuilder()
    -   *           .setFullResourceName("fullResourceName-853732376")
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.queryTestablePermissionsPagedCallable().futureCall(request);
    -   *   // Do something.
    -   *   for (Permission element : future.get().iterateAll()) {
    -   *     // doThingsWith(element);
    -   *   }
    -   * }
    -   * }
    - */ - public final UnaryCallable - queryTestablePermissionsPagedCallable() { - return stub.queryTestablePermissionsPagedCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lists every permission that you can test on a resource. A permission is testable if you can - * check whether a principal has that permission on the resource. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   QueryTestablePermissionsRequest request =
    -   *       QueryTestablePermissionsRequest.newBuilder()
    -   *           .setFullResourceName("fullResourceName-853732376")
    -   *           .setPageSize(883849137)
    -   *           .setPageToken("pageToken873572522")
    -   *           .build();
    -   *   while (true) {
    -   *     QueryTestablePermissionsResponse response =
    -   *         iAMClient.queryTestablePermissionsCallable().call(request);
    -   *     for (Permission element : response.getPermissionsList()) {
    -   *       // doThingsWith(element);
    -   *     }
    -   *     String nextPageToken = response.getNextPageToken();
    -   *     if (!Strings.isNullOrEmpty(nextPageToken)) {
    -   *       request = request.toBuilder().setPageToken(nextPageToken).build();
    -   *     } else {
    -   *       break;
    -   *     }
    -   *   }
    -   * }
    -   * }
    - */ - public final UnaryCallable - queryTestablePermissionsCallable() { - return stub.queryTestablePermissionsCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of services that allow you to opt into audit logs that are not generated by - * default. - * - *

    To learn more about audit logs, see the [Logging - * documentation](https://cloud.google.com/logging/docs/audit). - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   QueryAuditableServicesRequest request =
    -   *       QueryAuditableServicesRequest.newBuilder()
    -   *           .setFullResourceName("fullResourceName-853732376")
    -   *           .build();
    -   *   QueryAuditableServicesResponse response = iAMClient.queryAuditableServices(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final QueryAuditableServicesResponse queryAuditableServices( - QueryAuditableServicesRequest request) { - return queryAuditableServicesCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Returns a list of services that allow you to opt into audit logs that are not generated by - * default. - * - *

    To learn more about audit logs, see the [Logging - * documentation](https://cloud.google.com/logging/docs/audit). - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   QueryAuditableServicesRequest request =
    -   *       QueryAuditableServicesRequest.newBuilder()
    -   *           .setFullResourceName("fullResourceName-853732376")
    -   *           .build();
    -   *   ApiFuture future =
    -   *       iAMClient.queryAuditableServicesCallable().futureCall(request);
    -   *   // Do something.
    -   *   QueryAuditableServicesResponse response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable - queryAuditableServicesCallable() { - return stub.queryAuditableServicesCallable(); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lints, or validates, an IAM policy. Currently checks the - * [google.iam.v1.Binding.condition][google.iam.v1.Binding.condition] field, which contains a - * condition expression for a role binding. - * - *

    Successful calls to this method always return an HTTP `200 OK` status code, even if the - * linter detects an issue in the IAM policy. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   LintPolicyRequest request =
    -   *       LintPolicyRequest.newBuilder().setFullResourceName("fullResourceName-853732376").build();
    -   *   LintPolicyResponse response = iAMClient.lintPolicy(request);
    -   * }
    -   * }
    - * - * @param request The request object containing all of the parameters for the API call. - * @throws com.google.api.gax.rpc.ApiException if the remote call fails - */ - public final LintPolicyResponse lintPolicy(LintPolicyRequest request) { - return lintPolicyCallable().call(request); - } - - // AUTO-GENERATED DOCUMENTATION AND METHOD. - /** - * Lints, or validates, an IAM policy. Currently checks the - * [google.iam.v1.Binding.condition][google.iam.v1.Binding.condition] field, which contains a - * condition expression for a role binding. - * - *

    Successful calls to this method always return an HTTP `200 OK` status code, even if the - * linter detects an issue in the IAM policy. - * - *

    Sample code: - * - *

    {@code
    -   * // This snippet has been automatically generated and should be regarded as a code template only.
    -   * // It will require modifications to work:
    -   * // - It may require correct/in-range values for request initialization.
    -   * // - It may require specifying regional endpoints when creating the service client as shown in
    -   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    -   * try (IAMClient iAMClient = IAMClient.create()) {
    -   *   LintPolicyRequest request =
    -   *       LintPolicyRequest.newBuilder().setFullResourceName("fullResourceName-853732376").build();
    -   *   ApiFuture future = iAMClient.lintPolicyCallable().futureCall(request);
    -   *   // Do something.
    -   *   LintPolicyResponse response = future.get();
    -   * }
    -   * }
    - */ - public final UnaryCallable lintPolicyCallable() { - return stub.lintPolicyCallable(); - } - - @Override - public final void close() { - stub.close(); - } - - @Override - public void shutdown() { - stub.shutdown(); - } - - @Override - public boolean isShutdown() { - return stub.isShutdown(); - } - - @Override - public boolean isTerminated() { - return stub.isTerminated(); - } - - @Override - public void shutdownNow() { - stub.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return stub.awaitTermination(duration, unit); - } - - public static class ListServiceAccountsPagedResponse - extends AbstractPagedListResponse< - ListServiceAccountsRequest, - ListServiceAccountsResponse, - ServiceAccount, - ListServiceAccountsPage, - ListServiceAccountsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListServiceAccountsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new ListServiceAccountsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private ListServiceAccountsPagedResponse(ListServiceAccountsPage page) { - super(page, ListServiceAccountsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListServiceAccountsPage - extends AbstractPage< - ListServiceAccountsRequest, - ListServiceAccountsResponse, - ServiceAccount, - ListServiceAccountsPage> { - - private ListServiceAccountsPage( - PageContext - context, - ListServiceAccountsResponse response) { - super(context, response); - } - - private static ListServiceAccountsPage createEmptyPage() { - return new ListServiceAccountsPage(null, null); - } - - @Override - protected ListServiceAccountsPage createPage( - PageContext - context, - ListServiceAccountsResponse response) { - return new ListServiceAccountsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListServiceAccountsFixedSizeCollection - extends AbstractFixedSizeCollection< - ListServiceAccountsRequest, - ListServiceAccountsResponse, - ServiceAccount, - ListServiceAccountsPage, - ListServiceAccountsFixedSizeCollection> { - - private ListServiceAccountsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListServiceAccountsFixedSizeCollection createEmptyCollection() { - return new ListServiceAccountsFixedSizeCollection(null, 0); - } - - @Override - protected ListServiceAccountsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListServiceAccountsFixedSizeCollection(pages, collectionSize); - } - } - - public static class QueryGrantableRolesPagedResponse - extends AbstractPagedListResponse< - QueryGrantableRolesRequest, - QueryGrantableRolesResponse, - Role, - QueryGrantableRolesPage, - QueryGrantableRolesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - QueryGrantableRolesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new QueryGrantableRolesPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private QueryGrantableRolesPagedResponse(QueryGrantableRolesPage page) { - super(page, QueryGrantableRolesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class QueryGrantableRolesPage - extends AbstractPage< - QueryGrantableRolesRequest, QueryGrantableRolesResponse, Role, QueryGrantableRolesPage> { - - private QueryGrantableRolesPage( - PageContext context, - QueryGrantableRolesResponse response) { - super(context, response); - } - - private static QueryGrantableRolesPage createEmptyPage() { - return new QueryGrantableRolesPage(null, null); - } - - @Override - protected QueryGrantableRolesPage createPage( - PageContext context, - QueryGrantableRolesResponse response) { - return new QueryGrantableRolesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class QueryGrantableRolesFixedSizeCollection - extends AbstractFixedSizeCollection< - QueryGrantableRolesRequest, - QueryGrantableRolesResponse, - Role, - QueryGrantableRolesPage, - QueryGrantableRolesFixedSizeCollection> { - - private QueryGrantableRolesFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static QueryGrantableRolesFixedSizeCollection createEmptyCollection() { - return new QueryGrantableRolesFixedSizeCollection(null, 0); - } - - @Override - protected QueryGrantableRolesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new QueryGrantableRolesFixedSizeCollection(pages, collectionSize); - } - } - - public static class ListRolesPagedResponse - extends AbstractPagedListResponse< - ListRolesRequest, ListRolesResponse, Role, ListRolesPage, ListRolesFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext context, - ApiFuture futureResponse) { - ApiFuture futurePage = - ListRolesPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, input -> new ListRolesPagedResponse(input), MoreExecutors.directExecutor()); - } - - private ListRolesPagedResponse(ListRolesPage page) { - super(page, ListRolesFixedSizeCollection.createEmptyCollection()); - } - } - - public static class ListRolesPage - extends AbstractPage { - - private ListRolesPage( - PageContext context, - ListRolesResponse response) { - super(context, response); - } - - private static ListRolesPage createEmptyPage() { - return new ListRolesPage(null, null); - } - - @Override - protected ListRolesPage createPage( - PageContext context, - ListRolesResponse response) { - return new ListRolesPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class ListRolesFixedSizeCollection - extends AbstractFixedSizeCollection< - ListRolesRequest, ListRolesResponse, Role, ListRolesPage, ListRolesFixedSizeCollection> { - - private ListRolesFixedSizeCollection(List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static ListRolesFixedSizeCollection createEmptyCollection() { - return new ListRolesFixedSizeCollection(null, 0); - } - - @Override - protected ListRolesFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new ListRolesFixedSizeCollection(pages, collectionSize); - } - } - - public static class QueryTestablePermissionsPagedResponse - extends AbstractPagedListResponse< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - Permission, - QueryTestablePermissionsPage, - QueryTestablePermissionsFixedSizeCollection> { - - public static ApiFuture createAsync( - PageContext - context, - ApiFuture futureResponse) { - ApiFuture futurePage = - QueryTestablePermissionsPage.createEmptyPage().createPageAsync(context, futureResponse); - return ApiFutures.transform( - futurePage, - input -> new QueryTestablePermissionsPagedResponse(input), - MoreExecutors.directExecutor()); - } - - private QueryTestablePermissionsPagedResponse(QueryTestablePermissionsPage page) { - super(page, QueryTestablePermissionsFixedSizeCollection.createEmptyCollection()); - } - } - - public static class QueryTestablePermissionsPage - extends AbstractPage< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - Permission, - QueryTestablePermissionsPage> { - - private QueryTestablePermissionsPage( - PageContext - context, - QueryTestablePermissionsResponse response) { - super(context, response); - } - - private static QueryTestablePermissionsPage createEmptyPage() { - return new QueryTestablePermissionsPage(null, null); - } - - @Override - protected QueryTestablePermissionsPage createPage( - PageContext - context, - QueryTestablePermissionsResponse response) { - return new QueryTestablePermissionsPage(context, response); - } - - @Override - public ApiFuture createPageAsync( - PageContext - context, - ApiFuture futureResponse) { - return super.createPageAsync(context, futureResponse); - } - } - - public static class QueryTestablePermissionsFixedSizeCollection - extends AbstractFixedSizeCollection< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - Permission, - QueryTestablePermissionsPage, - QueryTestablePermissionsFixedSizeCollection> { - - private QueryTestablePermissionsFixedSizeCollection( - List pages, int collectionSize) { - super(pages, collectionSize); - } - - private static QueryTestablePermissionsFixedSizeCollection createEmptyCollection() { - return new QueryTestablePermissionsFixedSizeCollection(null, 0); - } - - @Override - protected QueryTestablePermissionsFixedSizeCollection createCollection( - List pages, int collectionSize) { - return new QueryTestablePermissionsFixedSizeCollection(pages, collectionSize); - } - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java deleted file mode 100644 index b487d8b8986e..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/IAMSettings.java +++ /dev/null @@ -1,605 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1; - -import static com.google.cloud.iam.admin.v1.IAMClient.ListRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.ListServiceAccountsPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryGrantableRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryTestablePermissionsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientSettings; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.iam.admin.v1.stub.IAMStubSettings; -import com.google.iam.admin.v1.CreateRoleRequest; -import com.google.iam.admin.v1.CreateServiceAccountKeyRequest; -import com.google.iam.admin.v1.CreateServiceAccountRequest; -import com.google.iam.admin.v1.DeleteRoleRequest; -import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest; -import com.google.iam.admin.v1.DeleteServiceAccountRequest; -import com.google.iam.admin.v1.DisableServiceAccountKeyRequest; -import com.google.iam.admin.v1.DisableServiceAccountRequest; -import com.google.iam.admin.v1.EnableServiceAccountKeyRequest; -import com.google.iam.admin.v1.EnableServiceAccountRequest; -import com.google.iam.admin.v1.GetRoleRequest; -import com.google.iam.admin.v1.GetServiceAccountKeyRequest; -import com.google.iam.admin.v1.GetServiceAccountRequest; -import com.google.iam.admin.v1.LintPolicyRequest; -import com.google.iam.admin.v1.LintPolicyResponse; -import com.google.iam.admin.v1.ListRolesRequest; -import com.google.iam.admin.v1.ListRolesResponse; -import com.google.iam.admin.v1.ListServiceAccountKeysRequest; -import com.google.iam.admin.v1.ListServiceAccountKeysResponse; -import com.google.iam.admin.v1.ListServiceAccountsRequest; -import com.google.iam.admin.v1.ListServiceAccountsResponse; -import com.google.iam.admin.v1.PatchServiceAccountRequest; -import com.google.iam.admin.v1.QueryAuditableServicesRequest; -import com.google.iam.admin.v1.QueryAuditableServicesResponse; -import com.google.iam.admin.v1.QueryGrantableRolesRequest; -import com.google.iam.admin.v1.QueryGrantableRolesResponse; -import com.google.iam.admin.v1.QueryTestablePermissionsRequest; -import com.google.iam.admin.v1.QueryTestablePermissionsResponse; -import com.google.iam.admin.v1.Role; -import com.google.iam.admin.v1.ServiceAccount; -import com.google.iam.admin.v1.ServiceAccountKey; -import com.google.iam.admin.v1.SignBlobRequest; -import com.google.iam.admin.v1.SignBlobResponse; -import com.google.iam.admin.v1.SignJwtRequest; -import com.google.iam.admin.v1.SignJwtResponse; -import com.google.iam.admin.v1.UndeleteRoleRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountResponse; -import com.google.iam.admin.v1.UpdateRoleRequest; -import com.google.iam.admin.v1.UploadServiceAccountKeyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link IAMClient}. - * - *

    The default instance has everything set to sensible defaults: - * - *

      - *
    • The default service address (iam.googleapis.com) and default port (443) are used. - *
    • Credentials are acquired automatically through Application Default Credentials. - *
    • Retries are configured for idempotent methods but not for non-idempotent methods. - *
    - * - *

    The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

    For example, to set the total timeout of getServiceAccount to 30 seconds: - * - *

    {@code
    - * // This snippet has been automatically generated and should be regarded as a code template only.
    - * // It will require modifications to work:
    - * // - It may require correct/in-range values for request initialization.
    - * // - It may require specifying regional endpoints when creating the service client as shown in
    - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    - * IAMSettings.Builder iAMSettingsBuilder = IAMSettings.newBuilder();
    - * iAMSettingsBuilder
    - *     .getServiceAccountSettings()
    - *     .setRetrySettings(
    - *         iAMSettingsBuilder.getServiceAccountSettings().getRetrySettings().toBuilder()
    - *             .setTotalTimeout(Duration.ofSeconds(30))
    - *             .build());
    - * IAMSettings iAMSettings = iAMSettingsBuilder.build();
    - * }
    - */ -@Generated("by gapic-generator-java") -public class IAMSettings extends ClientSettings { - - /** Returns the object with the settings used for calls to listServiceAccounts. */ - public PagedCallSettings< - ListServiceAccountsRequest, ListServiceAccountsResponse, ListServiceAccountsPagedResponse> - listServiceAccountsSettings() { - return ((IAMStubSettings) getStubSettings()).listServiceAccountsSettings(); - } - - /** Returns the object with the settings used for calls to getServiceAccount. */ - public UnaryCallSettings getServiceAccountSettings() { - return ((IAMStubSettings) getStubSettings()).getServiceAccountSettings(); - } - - /** Returns the object with the settings used for calls to createServiceAccount. */ - public UnaryCallSettings - createServiceAccountSettings() { - return ((IAMStubSettings) getStubSettings()).createServiceAccountSettings(); - } - - /** Returns the object with the settings used for calls to updateServiceAccount. */ - public UnaryCallSettings updateServiceAccountSettings() { - return ((IAMStubSettings) getStubSettings()).updateServiceAccountSettings(); - } - - /** Returns the object with the settings used for calls to patchServiceAccount. */ - public UnaryCallSettings - patchServiceAccountSettings() { - return ((IAMStubSettings) getStubSettings()).patchServiceAccountSettings(); - } - - /** Returns the object with the settings used for calls to deleteServiceAccount. */ - public UnaryCallSettings deleteServiceAccountSettings() { - return ((IAMStubSettings) getStubSettings()).deleteServiceAccountSettings(); - } - - /** Returns the object with the settings used for calls to undeleteServiceAccount. */ - public UnaryCallSettings - undeleteServiceAccountSettings() { - return ((IAMStubSettings) getStubSettings()).undeleteServiceAccountSettings(); - } - - /** Returns the object with the settings used for calls to enableServiceAccount. */ - public UnaryCallSettings enableServiceAccountSettings() { - return ((IAMStubSettings) getStubSettings()).enableServiceAccountSettings(); - } - - /** Returns the object with the settings used for calls to disableServiceAccount. */ - public UnaryCallSettings disableServiceAccountSettings() { - return ((IAMStubSettings) getStubSettings()).disableServiceAccountSettings(); - } - - /** Returns the object with the settings used for calls to listServiceAccountKeys. */ - public UnaryCallSettings - listServiceAccountKeysSettings() { - return ((IAMStubSettings) getStubSettings()).listServiceAccountKeysSettings(); - } - - /** Returns the object with the settings used for calls to getServiceAccountKey. */ - public UnaryCallSettings - getServiceAccountKeySettings() { - return ((IAMStubSettings) getStubSettings()).getServiceAccountKeySettings(); - } - - /** Returns the object with the settings used for calls to createServiceAccountKey. */ - public UnaryCallSettings - createServiceAccountKeySettings() { - return ((IAMStubSettings) getStubSettings()).createServiceAccountKeySettings(); - } - - /** Returns the object with the settings used for calls to uploadServiceAccountKey. */ - public UnaryCallSettings - uploadServiceAccountKeySettings() { - return ((IAMStubSettings) getStubSettings()).uploadServiceAccountKeySettings(); - } - - /** Returns the object with the settings used for calls to deleteServiceAccountKey. */ - public UnaryCallSettings - deleteServiceAccountKeySettings() { - return ((IAMStubSettings) getStubSettings()).deleteServiceAccountKeySettings(); - } - - /** Returns the object with the settings used for calls to disableServiceAccountKey. */ - public UnaryCallSettings - disableServiceAccountKeySettings() { - return ((IAMStubSettings) getStubSettings()).disableServiceAccountKeySettings(); - } - - /** Returns the object with the settings used for calls to enableServiceAccountKey. */ - public UnaryCallSettings - enableServiceAccountKeySettings() { - return ((IAMStubSettings) getStubSettings()).enableServiceAccountKeySettings(); - } - - /** - * Returns the object with the settings used for calls to signBlob. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings signBlobSettings() { - return ((IAMStubSettings) getStubSettings()).signBlobSettings(); - } - - /** - * Returns the object with the settings used for calls to signJwt. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings signJwtSettings() { - return ((IAMStubSettings) getStubSettings()).signJwtSettings(); - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return ((IAMStubSettings) getStubSettings()).getIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return ((IAMStubSettings) getStubSettings()).setIamPolicySettings(); - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return ((IAMStubSettings) getStubSettings()).testIamPermissionsSettings(); - } - - /** Returns the object with the settings used for calls to queryGrantableRoles. */ - public PagedCallSettings< - QueryGrantableRolesRequest, QueryGrantableRolesResponse, QueryGrantableRolesPagedResponse> - queryGrantableRolesSettings() { - return ((IAMStubSettings) getStubSettings()).queryGrantableRolesSettings(); - } - - /** Returns the object with the settings used for calls to listRoles. */ - public PagedCallSettings - listRolesSettings() { - return ((IAMStubSettings) getStubSettings()).listRolesSettings(); - } - - /** Returns the object with the settings used for calls to getRole. */ - public UnaryCallSettings getRoleSettings() { - return ((IAMStubSettings) getStubSettings()).getRoleSettings(); - } - - /** Returns the object with the settings used for calls to createRole. */ - public UnaryCallSettings createRoleSettings() { - return ((IAMStubSettings) getStubSettings()).createRoleSettings(); - } - - /** Returns the object with the settings used for calls to updateRole. */ - public UnaryCallSettings updateRoleSettings() { - return ((IAMStubSettings) getStubSettings()).updateRoleSettings(); - } - - /** Returns the object with the settings used for calls to deleteRole. */ - public UnaryCallSettings deleteRoleSettings() { - return ((IAMStubSettings) getStubSettings()).deleteRoleSettings(); - } - - /** Returns the object with the settings used for calls to undeleteRole. */ - public UnaryCallSettings undeleteRoleSettings() { - return ((IAMStubSettings) getStubSettings()).undeleteRoleSettings(); - } - - /** Returns the object with the settings used for calls to queryTestablePermissions. */ - public PagedCallSettings< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - QueryTestablePermissionsPagedResponse> - queryTestablePermissionsSettings() { - return ((IAMStubSettings) getStubSettings()).queryTestablePermissionsSettings(); - } - - /** Returns the object with the settings used for calls to queryAuditableServices. */ - public UnaryCallSettings - queryAuditableServicesSettings() { - return ((IAMStubSettings) getStubSettings()).queryAuditableServicesSettings(); - } - - /** Returns the object with the settings used for calls to lintPolicy. */ - public UnaryCallSettings lintPolicySettings() { - return ((IAMStubSettings) getStubSettings()).lintPolicySettings(); - } - - public static final IAMSettings create(IAMStubSettings stub) throws IOException { - return new IAMSettings.Builder(stub.toBuilder()).build(); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return IAMStubSettings.defaultExecutorProviderBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return IAMStubSettings.getDefaultEndpoint(); - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return IAMStubSettings.getDefaultServiceScopes(); - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return IAMStubSettings.defaultCredentialsProviderBuilder(); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return IAMStubSettings.defaultGrpcTransportProviderBuilder(); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return IAMStubSettings.defaultTransportChannelProvider(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return IAMStubSettings.defaultApiClientHeaderProviderBuilder(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected IAMSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - } - - /** Builder for IAMSettings. */ - public static class Builder extends ClientSettings.Builder { - - protected Builder() throws IOException { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(IAMStubSettings.newBuilder(clientContext)); - } - - protected Builder(IAMSettings settings) { - super(settings.getStubSettings().toBuilder()); - } - - protected Builder(IAMStubSettings.Builder stubSettings) { - super(stubSettings); - } - - private static Builder createDefault() { - return new Builder(IAMStubSettings.newBuilder()); - } - - public IAMStubSettings.Builder getStubSettingsBuilder() { - return ((IAMStubSettings.Builder) getStubSettings()); - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

    Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods( - getStubSettingsBuilder().unaryMethodSettingsBuilders(), settingsUpdater); - return this; - } - - /** Returns the builder for the settings used for calls to listServiceAccounts. */ - public PagedCallSettings.Builder< - ListServiceAccountsRequest, - ListServiceAccountsResponse, - ListServiceAccountsPagedResponse> - listServiceAccountsSettings() { - return getStubSettingsBuilder().listServiceAccountsSettings(); - } - - /** Returns the builder for the settings used for calls to getServiceAccount. */ - public UnaryCallSettings.Builder - getServiceAccountSettings() { - return getStubSettingsBuilder().getServiceAccountSettings(); - } - - /** Returns the builder for the settings used for calls to createServiceAccount. */ - public UnaryCallSettings.Builder - createServiceAccountSettings() { - return getStubSettingsBuilder().createServiceAccountSettings(); - } - - /** Returns the builder for the settings used for calls to updateServiceAccount. */ - public UnaryCallSettings.Builder - updateServiceAccountSettings() { - return getStubSettingsBuilder().updateServiceAccountSettings(); - } - - /** Returns the builder for the settings used for calls to patchServiceAccount. */ - public UnaryCallSettings.Builder - patchServiceAccountSettings() { - return getStubSettingsBuilder().patchServiceAccountSettings(); - } - - /** Returns the builder for the settings used for calls to deleteServiceAccount. */ - public UnaryCallSettings.Builder - deleteServiceAccountSettings() { - return getStubSettingsBuilder().deleteServiceAccountSettings(); - } - - /** Returns the builder for the settings used for calls to undeleteServiceAccount. */ - public UnaryCallSettings.Builder - undeleteServiceAccountSettings() { - return getStubSettingsBuilder().undeleteServiceAccountSettings(); - } - - /** Returns the builder for the settings used for calls to enableServiceAccount. */ - public UnaryCallSettings.Builder - enableServiceAccountSettings() { - return getStubSettingsBuilder().enableServiceAccountSettings(); - } - - /** Returns the builder for the settings used for calls to disableServiceAccount. */ - public UnaryCallSettings.Builder - disableServiceAccountSettings() { - return getStubSettingsBuilder().disableServiceAccountSettings(); - } - - /** Returns the builder for the settings used for calls to listServiceAccountKeys. */ - public UnaryCallSettings.Builder - listServiceAccountKeysSettings() { - return getStubSettingsBuilder().listServiceAccountKeysSettings(); - } - - /** Returns the builder for the settings used for calls to getServiceAccountKey. */ - public UnaryCallSettings.Builder - getServiceAccountKeySettings() { - return getStubSettingsBuilder().getServiceAccountKeySettings(); - } - - /** Returns the builder for the settings used for calls to createServiceAccountKey. */ - public UnaryCallSettings.Builder - createServiceAccountKeySettings() { - return getStubSettingsBuilder().createServiceAccountKeySettings(); - } - - /** Returns the builder for the settings used for calls to uploadServiceAccountKey. */ - public UnaryCallSettings.Builder - uploadServiceAccountKeySettings() { - return getStubSettingsBuilder().uploadServiceAccountKeySettings(); - } - - /** Returns the builder for the settings used for calls to deleteServiceAccountKey. */ - public UnaryCallSettings.Builder - deleteServiceAccountKeySettings() { - return getStubSettingsBuilder().deleteServiceAccountKeySettings(); - } - - /** Returns the builder for the settings used for calls to disableServiceAccountKey. */ - public UnaryCallSettings.Builder - disableServiceAccountKeySettings() { - return getStubSettingsBuilder().disableServiceAccountKeySettings(); - } - - /** Returns the builder for the settings used for calls to enableServiceAccountKey. */ - public UnaryCallSettings.Builder - enableServiceAccountKeySettings() { - return getStubSettingsBuilder().enableServiceAccountKeySettings(); - } - - /** - * Returns the builder for the settings used for calls to signBlob. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder signBlobSettings() { - return getStubSettingsBuilder().signBlobSettings(); - } - - /** - * Returns the builder for the settings used for calls to signJwt. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder signJwtSettings() { - return getStubSettingsBuilder().signJwtSettings(); - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getStubSettingsBuilder().getIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return getStubSettingsBuilder().setIamPolicySettings(); - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return getStubSettingsBuilder().testIamPermissionsSettings(); - } - - /** Returns the builder for the settings used for calls to queryGrantableRoles. */ - public PagedCallSettings.Builder< - QueryGrantableRolesRequest, - QueryGrantableRolesResponse, - QueryGrantableRolesPagedResponse> - queryGrantableRolesSettings() { - return getStubSettingsBuilder().queryGrantableRolesSettings(); - } - - /** Returns the builder for the settings used for calls to listRoles. */ - public PagedCallSettings.Builder - listRolesSettings() { - return getStubSettingsBuilder().listRolesSettings(); - } - - /** Returns the builder for the settings used for calls to getRole. */ - public UnaryCallSettings.Builder getRoleSettings() { - return getStubSettingsBuilder().getRoleSettings(); - } - - /** Returns the builder for the settings used for calls to createRole. */ - public UnaryCallSettings.Builder createRoleSettings() { - return getStubSettingsBuilder().createRoleSettings(); - } - - /** Returns the builder for the settings used for calls to updateRole. */ - public UnaryCallSettings.Builder updateRoleSettings() { - return getStubSettingsBuilder().updateRoleSettings(); - } - - /** Returns the builder for the settings used for calls to deleteRole. */ - public UnaryCallSettings.Builder deleteRoleSettings() { - return getStubSettingsBuilder().deleteRoleSettings(); - } - - /** Returns the builder for the settings used for calls to undeleteRole. */ - public UnaryCallSettings.Builder undeleteRoleSettings() { - return getStubSettingsBuilder().undeleteRoleSettings(); - } - - /** Returns the builder for the settings used for calls to queryTestablePermissions. */ - public PagedCallSettings.Builder< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - QueryTestablePermissionsPagedResponse> - queryTestablePermissionsSettings() { - return getStubSettingsBuilder().queryTestablePermissionsSettings(); - } - - /** Returns the builder for the settings used for calls to queryAuditableServices. */ - public UnaryCallSettings.Builder - queryAuditableServicesSettings() { - return getStubSettingsBuilder().queryAuditableServicesSettings(); - } - - /** Returns the builder for the settings used for calls to lintPolicy. */ - public UnaryCallSettings.Builder lintPolicySettings() { - return getStubSettingsBuilder().lintPolicySettings(); - } - - @Override - public IAMSettings build() throws IOException { - return new IAMSettings(this); - } - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/gapic_metadata.json b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/gapic_metadata.json deleted file mode 100644 index b721693a4a72..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/gapic_metadata.json +++ /dev/null @@ -1,111 +0,0 @@ -{ - "schema": "1.0", - "comment": "This file maps proto services/RPCs to the corresponding library clients/methods", - "language": "java", - "protoPackage": "google.iam.admin.v1", - "libraryPackage": "com.google.cloud.iam.admin.v1", - "services": { - "IAM": { - "clients": { - "grpc": { - "libraryClient": "IAMClient", - "rpcs": { - "CreateRole": { - "methods": ["createRole", "createRoleCallable"] - }, - "CreateServiceAccount": { - "methods": ["createServiceAccount", "createServiceAccount", "createServiceAccount", "createServiceAccountCallable"] - }, - "CreateServiceAccountKey": { - "methods": ["createServiceAccountKey", "createServiceAccountKey", "createServiceAccountKey", "createServiceAccountKeyCallable"] - }, - "DeleteRole": { - "methods": ["deleteRole", "deleteRoleCallable"] - }, - "DeleteServiceAccount": { - "methods": ["deleteServiceAccount", "deleteServiceAccount", "deleteServiceAccount", "deleteServiceAccountCallable"] - }, - "DeleteServiceAccountKey": { - "methods": ["deleteServiceAccountKey", "deleteServiceAccountKey", "deleteServiceAccountKey", "deleteServiceAccountKeyCallable"] - }, - "DisableServiceAccount": { - "methods": ["disableServiceAccount", "disableServiceAccountCallable"] - }, - "DisableServiceAccountKey": { - "methods": ["disableServiceAccountKey", "disableServiceAccountKey", "disableServiceAccountKey", "disableServiceAccountKeyCallable"] - }, - "EnableServiceAccount": { - "methods": ["enableServiceAccount", "enableServiceAccountCallable"] - }, - "EnableServiceAccountKey": { - "methods": ["enableServiceAccountKey", "enableServiceAccountKey", "enableServiceAccountKey", "enableServiceAccountKeyCallable"] - }, - "GetIamPolicy": { - "methods": ["getIamPolicy", "getIamPolicy", "getIamPolicy", "getIamPolicyCallable"] - }, - "GetRole": { - "methods": ["getRole", "getRoleCallable"] - }, - "GetServiceAccount": { - "methods": ["getServiceAccount", "getServiceAccount", "getServiceAccount", "getServiceAccountCallable"] - }, - "GetServiceAccountKey": { - "methods": ["getServiceAccountKey", "getServiceAccountKey", "getServiceAccountKey", "getServiceAccountKeyCallable"] - }, - "LintPolicy": { - "methods": ["lintPolicy", "lintPolicyCallable"] - }, - "ListRoles": { - "methods": ["listRoles", "listRolesPagedCallable", "listRolesCallable"] - }, - "ListServiceAccountKeys": { - "methods": ["listServiceAccountKeys", "listServiceAccountKeys", "listServiceAccountKeys", "listServiceAccountKeysCallable"] - }, - "ListServiceAccounts": { - "methods": ["listServiceAccounts", "listServiceAccounts", "listServiceAccounts", "listServiceAccountsPagedCallable", "listServiceAccountsCallable"] - }, - "PatchServiceAccount": { - "methods": ["patchServiceAccount", "patchServiceAccountCallable"] - }, - "QueryAuditableServices": { - "methods": ["queryAuditableServices", "queryAuditableServicesCallable"] - }, - "QueryGrantableRoles": { - "methods": ["queryGrantableRoles", "queryGrantableRoles", "queryGrantableRolesPagedCallable", "queryGrantableRolesCallable"] - }, - "QueryTestablePermissions": { - "methods": ["queryTestablePermissions", "queryTestablePermissionsPagedCallable", "queryTestablePermissionsCallable"] - }, - "SetIamPolicy": { - "methods": ["setIamPolicy", "setIamPolicy", "setIamPolicy", "setIamPolicyCallable"] - }, - "SignBlob": { - "methods": ["signBlob", "signBlob", "signBlob", "signBlobCallable"] - }, - "SignJwt": { - "methods": ["signJwt", "signJwt", "signJwt", "signJwtCallable"] - }, - "TestIamPermissions": { - "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] - }, - "UndeleteRole": { - "methods": ["undeleteRole", "undeleteRoleCallable"] - }, - "UndeleteServiceAccount": { - "methods": ["undeleteServiceAccount", "undeleteServiceAccountCallable"] - }, - "UpdateRole": { - "methods": ["updateRole", "updateRoleCallable"] - }, - "UpdateServiceAccount": { - "methods": ["updateServiceAccount", "updateServiceAccountCallable"] - }, - "UploadServiceAccountKey": { - "methods": ["uploadServiceAccountKey", "uploadServiceAccountKeyCallable"] - } - } - } - } - } - } -} \ No newline at end of file diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/package-info.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/package-info.java deleted file mode 100644 index 579be0c0ed17..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/package-info.java +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -/** - * A client to Identity and Access Management (IAM) API - * - *

    The interfaces provided are listed below, along with usage samples. - * - *

    ======================= IAMClient ======================= - * - *

    Service Description: Creates and manages Identity and Access Management (IAM) resources. - * - *

    You can use this service to work with all of the following resources: - * - *

      - *
    • **Service accounts**, which identify an application or a virtual machine - * (VM) instance rather than a person - *
    • **Service account keys**, which service accounts use to authenticate with - * Google APIs - *
    • **IAM policies for service accounts**, which specify the roles that a - * principal has for the service account - *
    • **IAM custom roles**, which help you limit the number of permissions that - * you grant to principals - *
    - * - *

    In addition, you can use this service to complete the following tasks, among others: - * - *

      - *
    • Test whether a service account can use specific permissions - *
    • Check which roles you can grant for a specific resource - *
    • Lint, or validate, condition expressions in an IAM policy - *
    - * - *

    When you read data from the IAM API, each read is eventually consistent. In other words, if - * you write data with the IAM API, then immediately read that data, the read operation might return - * an older version of the data. To deal with this behavior, your application can retry the request - * with truncated exponential backoff. - * - *

    In contrast, writing data to the IAM API is sequentially consistent. In other words, write - * operations are always processed in the order in which they were received. - * - *

    Sample for IAMClient: - * - *

    {@code
    - * // This snippet has been automatically generated and should be regarded as a code template only.
    - * // It will require modifications to work:
    - * // - It may require correct/in-range values for request initialization.
    - * // - It may require specifying regional endpoints when creating the service client as shown in
    - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    - * try (IAMClient iAMClient = IAMClient.create()) {
    - *   ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]");
    - *   ServiceAccount response = iAMClient.getServiceAccount(name);
    - * }
    - * }
    - */ -@Generated("by gapic-generator-java") -package com.google.cloud.iam.admin.v1; - -import javax.annotation.Generated; diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMCallableFactory.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMCallableFactory.java deleted file mode 100644 index 5b67255961c2..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMCallableFactory.java +++ /dev/null @@ -1,113 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1.stub; - -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcCallableFactory; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.BatchingCallSettings; -import com.google.api.gax.rpc.BidiStreamingCallable; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.ClientStreamingCallable; -import com.google.api.gax.rpc.OperationCallSettings; -import com.google.api.gax.rpc.OperationCallable; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallSettings; -import com.google.api.gax.rpc.ServerStreamingCallable; -import com.google.api.gax.rpc.StreamingCallSettings; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.longrunning.Operation; -import com.google.longrunning.stub.OperationsStub; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC callable factory implementation for the IAM service API. - * - *

    This class is for advanced usage. - */ -@Generated("by gapic-generator-java") -public class GrpcIAMCallableFactory implements GrpcStubCallableFactory { - - @Override - public UnaryCallable createUnaryCallable( - GrpcCallSettings grpcCallSettings, - UnaryCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createUnaryCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public - UnaryCallable createPagedCallable( - GrpcCallSettings grpcCallSettings, - PagedCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createPagedCallable(grpcCallSettings, callSettings, clientContext); - } - - @Override - public UnaryCallable createBatchingCallable( - GrpcCallSettings grpcCallSettings, - BatchingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBatchingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - OperationCallable createOperationCallable( - GrpcCallSettings grpcCallSettings, - OperationCallSettings callSettings, - ClientContext clientContext, - OperationsStub operationsStub) { - return GrpcCallableFactory.createOperationCallable( - grpcCallSettings, callSettings, clientContext, operationsStub); - } - - @Override - public - BidiStreamingCallable createBidiStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createBidiStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ServerStreamingCallable createServerStreamingCallable( - GrpcCallSettings grpcCallSettings, - ServerStreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createServerStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } - - @Override - public - ClientStreamingCallable createClientStreamingCallable( - GrpcCallSettings grpcCallSettings, - StreamingCallSettings callSettings, - ClientContext clientContext) { - return GrpcCallableFactory.createClientStreamingCallable( - grpcCallSettings, callSettings, clientContext); - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMStub.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMStub.java deleted file mode 100644 index a45476c805ff..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/GrpcIAMStub.java +++ /dev/null @@ -1,1181 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1.stub; - -import static com.google.cloud.iam.admin.v1.IAMClient.ListRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.ListServiceAccountsPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryGrantableRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryTestablePermissionsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.core.BackgroundResourceAggregation; -import com.google.api.gax.grpc.GrpcCallSettings; -import com.google.api.gax.grpc.GrpcStubCallableFactory; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableMap; -import com.google.iam.admin.v1.CreateRoleRequest; -import com.google.iam.admin.v1.CreateServiceAccountKeyRequest; -import com.google.iam.admin.v1.CreateServiceAccountRequest; -import com.google.iam.admin.v1.DeleteRoleRequest; -import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest; -import com.google.iam.admin.v1.DeleteServiceAccountRequest; -import com.google.iam.admin.v1.DisableServiceAccountKeyRequest; -import com.google.iam.admin.v1.DisableServiceAccountRequest; -import com.google.iam.admin.v1.EnableServiceAccountKeyRequest; -import com.google.iam.admin.v1.EnableServiceAccountRequest; -import com.google.iam.admin.v1.GetRoleRequest; -import com.google.iam.admin.v1.GetServiceAccountKeyRequest; -import com.google.iam.admin.v1.GetServiceAccountRequest; -import com.google.iam.admin.v1.LintPolicyRequest; -import com.google.iam.admin.v1.LintPolicyResponse; -import com.google.iam.admin.v1.ListRolesRequest; -import com.google.iam.admin.v1.ListRolesResponse; -import com.google.iam.admin.v1.ListServiceAccountKeysRequest; -import com.google.iam.admin.v1.ListServiceAccountKeysResponse; -import com.google.iam.admin.v1.ListServiceAccountsRequest; -import com.google.iam.admin.v1.ListServiceAccountsResponse; -import com.google.iam.admin.v1.PatchServiceAccountRequest; -import com.google.iam.admin.v1.QueryAuditableServicesRequest; -import com.google.iam.admin.v1.QueryAuditableServicesResponse; -import com.google.iam.admin.v1.QueryGrantableRolesRequest; -import com.google.iam.admin.v1.QueryGrantableRolesResponse; -import com.google.iam.admin.v1.QueryTestablePermissionsRequest; -import com.google.iam.admin.v1.QueryTestablePermissionsResponse; -import com.google.iam.admin.v1.Role; -import com.google.iam.admin.v1.ServiceAccount; -import com.google.iam.admin.v1.ServiceAccountKey; -import com.google.iam.admin.v1.SignBlobRequest; -import com.google.iam.admin.v1.SignBlobResponse; -import com.google.iam.admin.v1.SignJwtRequest; -import com.google.iam.admin.v1.SignJwtResponse; -import com.google.iam.admin.v1.UndeleteRoleRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountResponse; -import com.google.iam.admin.v1.UpdateRoleRequest; -import com.google.iam.admin.v1.UploadServiceAccountKeyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.longrunning.stub.GrpcOperationsStub; -import com.google.protobuf.Empty; -import io.grpc.MethodDescriptor; -import io.grpc.protobuf.ProtoUtils; -import java.io.IOException; -import java.util.Map; -import java.util.concurrent.TimeUnit; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * gRPC stub implementation for the IAM service API. - * - *

    This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public class GrpcIAMStub extends IAMStub { - private static final MethodDescriptor - listServiceAccountsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/ListServiceAccounts") - .setRequestMarshaller( - ProtoUtils.marshaller(ListServiceAccountsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListServiceAccountsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getServiceAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/GetServiceAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(GetServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServiceAccount.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createServiceAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/CreateServiceAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServiceAccount.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - updateServiceAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/UpdateServiceAccount") - .setRequestMarshaller(ProtoUtils.marshaller(ServiceAccount.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServiceAccount.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - patchServiceAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/PatchServiceAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(PatchServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServiceAccount.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteServiceAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/DeleteServiceAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - UndeleteServiceAccountRequest, UndeleteServiceAccountResponse> - undeleteServiceAccountMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/UndeleteServiceAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(UndeleteServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(UndeleteServiceAccountResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - enableServiceAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/EnableServiceAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(EnableServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - disableServiceAccountMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/DisableServiceAccount") - .setRequestMarshaller( - ProtoUtils.marshaller(DisableServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - ListServiceAccountKeysRequest, ListServiceAccountKeysResponse> - listServiceAccountKeysMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/ListServiceAccountKeys") - .setRequestMarshaller( - ProtoUtils.marshaller(ListServiceAccountKeysRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(ListServiceAccountKeysResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - getServiceAccountKeyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/GetServiceAccountKey") - .setRequestMarshaller( - ProtoUtils.marshaller(GetServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServiceAccountKey.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - createServiceAccountKeyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/CreateServiceAccountKey") - .setRequestMarshaller( - ProtoUtils.marshaller(CreateServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServiceAccountKey.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - uploadServiceAccountKeyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/UploadServiceAccountKey") - .setRequestMarshaller( - ProtoUtils.marshaller(UploadServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ServiceAccountKey.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - deleteServiceAccountKeyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/DeleteServiceAccountKey") - .setRequestMarshaller( - ProtoUtils.marshaller(DeleteServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - disableServiceAccountKeyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/DisableServiceAccountKey") - .setRequestMarshaller( - ProtoUtils.marshaller(DisableServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - enableServiceAccountKeyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/EnableServiceAccountKey") - .setRequestMarshaller( - ProtoUtils.marshaller(EnableServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - signBlobMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/SignBlob") - .setRequestMarshaller(ProtoUtils.marshaller(SignBlobRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SignBlobResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor signJwtMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/SignJwt") - .setRequestMarshaller(ProtoUtils.marshaller(SignJwtRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(SignJwtResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/GetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor setIamPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/SetIamPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Policy.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - testIamPermissionsMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/TestIamPermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(TestIamPermissionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - queryGrantableRolesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/QueryGrantableRoles") - .setRequestMarshaller( - ProtoUtils.marshaller(QueryGrantableRolesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(QueryGrantableRolesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - listRolesMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/ListRoles") - .setRequestMarshaller(ProtoUtils.marshaller(ListRolesRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(ListRolesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor getRoleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/GetRole") - .setRequestMarshaller(ProtoUtils.marshaller(GetRoleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Role.getDefaultInstance())) - .build(); - - private static final MethodDescriptor createRoleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/CreateRole") - .setRequestMarshaller(ProtoUtils.marshaller(CreateRoleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Role.getDefaultInstance())) - .build(); - - private static final MethodDescriptor updateRoleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/UpdateRole") - .setRequestMarshaller(ProtoUtils.marshaller(UpdateRoleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Role.getDefaultInstance())) - .build(); - - private static final MethodDescriptor deleteRoleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/DeleteRole") - .setRequestMarshaller(ProtoUtils.marshaller(DeleteRoleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Role.getDefaultInstance())) - .build(); - - private static final MethodDescriptor undeleteRoleMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/UndeleteRole") - .setRequestMarshaller(ProtoUtils.marshaller(UndeleteRoleRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(Role.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - QueryTestablePermissionsRequest, QueryTestablePermissionsResponse> - queryTestablePermissionsMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/QueryTestablePermissions") - .setRequestMarshaller( - ProtoUtils.marshaller(QueryTestablePermissionsRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(QueryTestablePermissionsResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor< - QueryAuditableServicesRequest, QueryAuditableServicesResponse> - queryAuditableServicesMethodDescriptor = - MethodDescriptor - .newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/QueryAuditableServices") - .setRequestMarshaller( - ProtoUtils.marshaller(QueryAuditableServicesRequest.getDefaultInstance())) - .setResponseMarshaller( - ProtoUtils.marshaller(QueryAuditableServicesResponse.getDefaultInstance())) - .build(); - - private static final MethodDescriptor - lintPolicyMethodDescriptor = - MethodDescriptor.newBuilder() - .setType(MethodDescriptor.MethodType.UNARY) - .setFullMethodName("google.iam.admin.v1.IAM/LintPolicy") - .setRequestMarshaller(ProtoUtils.marshaller(LintPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(ProtoUtils.marshaller(LintPolicyResponse.getDefaultInstance())) - .build(); - - private final UnaryCallable - listServiceAccountsCallable; - private final UnaryCallable - listServiceAccountsPagedCallable; - private final UnaryCallable getServiceAccountCallable; - private final UnaryCallable - createServiceAccountCallable; - private final UnaryCallable updateServiceAccountCallable; - private final UnaryCallable - patchServiceAccountCallable; - private final UnaryCallable deleteServiceAccountCallable; - private final UnaryCallable - undeleteServiceAccountCallable; - private final UnaryCallable enableServiceAccountCallable; - private final UnaryCallable disableServiceAccountCallable; - private final UnaryCallable - listServiceAccountKeysCallable; - private final UnaryCallable - getServiceAccountKeyCallable; - private final UnaryCallable - createServiceAccountKeyCallable; - private final UnaryCallable - uploadServiceAccountKeyCallable; - private final UnaryCallable - deleteServiceAccountKeyCallable; - private final UnaryCallable - disableServiceAccountKeyCallable; - private final UnaryCallable - enableServiceAccountKeyCallable; - private final UnaryCallable signBlobCallable; - private final UnaryCallable signJwtCallable; - private final UnaryCallable getIamPolicyCallable; - private final UnaryCallable setIamPolicyCallable; - private final UnaryCallable - testIamPermissionsCallable; - private final UnaryCallable - queryGrantableRolesCallable; - private final UnaryCallable - queryGrantableRolesPagedCallable; - private final UnaryCallable listRolesCallable; - private final UnaryCallable listRolesPagedCallable; - private final UnaryCallable getRoleCallable; - private final UnaryCallable createRoleCallable; - private final UnaryCallable updateRoleCallable; - private final UnaryCallable deleteRoleCallable; - private final UnaryCallable undeleteRoleCallable; - private final UnaryCallable - queryTestablePermissionsCallable; - private final UnaryCallable< - QueryTestablePermissionsRequest, QueryTestablePermissionsPagedResponse> - queryTestablePermissionsPagedCallable; - private final UnaryCallable - queryAuditableServicesCallable; - private final UnaryCallable lintPolicyCallable; - - private final BackgroundResource backgroundResources; - private final GrpcOperationsStub operationsStub; - private final GrpcStubCallableFactory callableFactory; - - public static final GrpcIAMStub create(IAMStubSettings settings) throws IOException { - return new GrpcIAMStub(settings, ClientContext.create(settings)); - } - - public static final GrpcIAMStub create(ClientContext clientContext) throws IOException { - return new GrpcIAMStub(IAMStubSettings.newBuilder().build(), clientContext); - } - - public static final GrpcIAMStub create( - ClientContext clientContext, GrpcStubCallableFactory callableFactory) throws IOException { - return new GrpcIAMStub(IAMStubSettings.newBuilder().build(), clientContext, callableFactory); - } - - /** - * Constructs an instance of GrpcIAMStub, using the given settings. This is protected so that it - * is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected GrpcIAMStub(IAMStubSettings settings, ClientContext clientContext) throws IOException { - this(settings, clientContext, new GrpcIAMCallableFactory()); - } - - /** - * Constructs an instance of GrpcIAMStub, using the given settings. This is protected so that it - * is easy to make a subclass, but otherwise, the static factory methods should be preferred. - */ - protected GrpcIAMStub( - IAMStubSettings settings, - ClientContext clientContext, - GrpcStubCallableFactory callableFactory) - throws IOException { - this.callableFactory = callableFactory; - this.operationsStub = GrpcOperationsStub.create(clientContext, callableFactory); - - GrpcCallSettings - listServiceAccountsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listServiceAccountsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getServiceAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getServiceAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createServiceAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createServiceAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings updateServiceAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateServiceAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - patchServiceAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(patchServiceAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put( - "service_account.name", - String.valueOf(request.getServiceAccount().getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteServiceAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteServiceAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - undeleteServiceAccountTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(undeleteServiceAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings enableServiceAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(enableServiceAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings disableServiceAccountTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(disableServiceAccountMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - listServiceAccountKeysTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(listServiceAccountKeysMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - getServiceAccountKeyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getServiceAccountKeyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - createServiceAccountKeyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createServiceAccountKeyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - uploadServiceAccountKeyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(uploadServiceAccountKeyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - deleteServiceAccountKeyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteServiceAccountKeyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - disableServiceAccountKeyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(disableServiceAccountKeyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - enableServiceAccountKeyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(enableServiceAccountKeyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings signBlobTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(signBlobMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings signJwtTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(signJwtMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings getIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings setIamPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(setIamPolicyMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings - testIamPermissionsTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(testIamPermissionsMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("resource", String.valueOf(request.getResource())); - return params.build(); - }) - .build(); - GrpcCallSettings - queryGrantableRolesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(queryGrantableRolesMethodDescriptor) - .build(); - GrpcCallSettings listRolesTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(listRolesMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings getRoleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(getRoleMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings createRoleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(createRoleMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("parent", String.valueOf(request.getParent())); - return params.build(); - }) - .build(); - GrpcCallSettings updateRoleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(updateRoleMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings deleteRoleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(deleteRoleMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings undeleteRoleTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(undeleteRoleMethodDescriptor) - .setParamsExtractor( - request -> { - ImmutableMap.Builder params = ImmutableMap.builder(); - params.put("name", String.valueOf(request.getName())); - return params.build(); - }) - .build(); - GrpcCallSettings - queryTestablePermissionsTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(queryTestablePermissionsMethodDescriptor) - .build(); - GrpcCallSettings - queryAuditableServicesTransportSettings = - GrpcCallSettings - .newBuilder() - .setMethodDescriptor(queryAuditableServicesMethodDescriptor) - .build(); - GrpcCallSettings lintPolicyTransportSettings = - GrpcCallSettings.newBuilder() - .setMethodDescriptor(lintPolicyMethodDescriptor) - .build(); - - this.listServiceAccountsCallable = - callableFactory.createUnaryCallable( - listServiceAccountsTransportSettings, - settings.listServiceAccountsSettings(), - clientContext); - this.listServiceAccountsPagedCallable = - callableFactory.createPagedCallable( - listServiceAccountsTransportSettings, - settings.listServiceAccountsSettings(), - clientContext); - this.getServiceAccountCallable = - callableFactory.createUnaryCallable( - getServiceAccountTransportSettings, - settings.getServiceAccountSettings(), - clientContext); - this.createServiceAccountCallable = - callableFactory.createUnaryCallable( - createServiceAccountTransportSettings, - settings.createServiceAccountSettings(), - clientContext); - this.updateServiceAccountCallable = - callableFactory.createUnaryCallable( - updateServiceAccountTransportSettings, - settings.updateServiceAccountSettings(), - clientContext); - this.patchServiceAccountCallable = - callableFactory.createUnaryCallable( - patchServiceAccountTransportSettings, - settings.patchServiceAccountSettings(), - clientContext); - this.deleteServiceAccountCallable = - callableFactory.createUnaryCallable( - deleteServiceAccountTransportSettings, - settings.deleteServiceAccountSettings(), - clientContext); - this.undeleteServiceAccountCallable = - callableFactory.createUnaryCallable( - undeleteServiceAccountTransportSettings, - settings.undeleteServiceAccountSettings(), - clientContext); - this.enableServiceAccountCallable = - callableFactory.createUnaryCallable( - enableServiceAccountTransportSettings, - settings.enableServiceAccountSettings(), - clientContext); - this.disableServiceAccountCallable = - callableFactory.createUnaryCallable( - disableServiceAccountTransportSettings, - settings.disableServiceAccountSettings(), - clientContext); - this.listServiceAccountKeysCallable = - callableFactory.createUnaryCallable( - listServiceAccountKeysTransportSettings, - settings.listServiceAccountKeysSettings(), - clientContext); - this.getServiceAccountKeyCallable = - callableFactory.createUnaryCallable( - getServiceAccountKeyTransportSettings, - settings.getServiceAccountKeySettings(), - clientContext); - this.createServiceAccountKeyCallable = - callableFactory.createUnaryCallable( - createServiceAccountKeyTransportSettings, - settings.createServiceAccountKeySettings(), - clientContext); - this.uploadServiceAccountKeyCallable = - callableFactory.createUnaryCallable( - uploadServiceAccountKeyTransportSettings, - settings.uploadServiceAccountKeySettings(), - clientContext); - this.deleteServiceAccountKeyCallable = - callableFactory.createUnaryCallable( - deleteServiceAccountKeyTransportSettings, - settings.deleteServiceAccountKeySettings(), - clientContext); - this.disableServiceAccountKeyCallable = - callableFactory.createUnaryCallable( - disableServiceAccountKeyTransportSettings, - settings.disableServiceAccountKeySettings(), - clientContext); - this.enableServiceAccountKeyCallable = - callableFactory.createUnaryCallable( - enableServiceAccountKeyTransportSettings, - settings.enableServiceAccountKeySettings(), - clientContext); - this.signBlobCallable = - callableFactory.createUnaryCallable( - signBlobTransportSettings, settings.signBlobSettings(), clientContext); - this.signJwtCallable = - callableFactory.createUnaryCallable( - signJwtTransportSettings, settings.signJwtSettings(), clientContext); - this.getIamPolicyCallable = - callableFactory.createUnaryCallable( - getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); - this.setIamPolicyCallable = - callableFactory.createUnaryCallable( - setIamPolicyTransportSettings, settings.setIamPolicySettings(), clientContext); - this.testIamPermissionsCallable = - callableFactory.createUnaryCallable( - testIamPermissionsTransportSettings, - settings.testIamPermissionsSettings(), - clientContext); - this.queryGrantableRolesCallable = - callableFactory.createUnaryCallable( - queryGrantableRolesTransportSettings, - settings.queryGrantableRolesSettings(), - clientContext); - this.queryGrantableRolesPagedCallable = - callableFactory.createPagedCallable( - queryGrantableRolesTransportSettings, - settings.queryGrantableRolesSettings(), - clientContext); - this.listRolesCallable = - callableFactory.createUnaryCallable( - listRolesTransportSettings, settings.listRolesSettings(), clientContext); - this.listRolesPagedCallable = - callableFactory.createPagedCallable( - listRolesTransportSettings, settings.listRolesSettings(), clientContext); - this.getRoleCallable = - callableFactory.createUnaryCallable( - getRoleTransportSettings, settings.getRoleSettings(), clientContext); - this.createRoleCallable = - callableFactory.createUnaryCallable( - createRoleTransportSettings, settings.createRoleSettings(), clientContext); - this.updateRoleCallable = - callableFactory.createUnaryCallable( - updateRoleTransportSettings, settings.updateRoleSettings(), clientContext); - this.deleteRoleCallable = - callableFactory.createUnaryCallable( - deleteRoleTransportSettings, settings.deleteRoleSettings(), clientContext); - this.undeleteRoleCallable = - callableFactory.createUnaryCallable( - undeleteRoleTransportSettings, settings.undeleteRoleSettings(), clientContext); - this.queryTestablePermissionsCallable = - callableFactory.createUnaryCallable( - queryTestablePermissionsTransportSettings, - settings.queryTestablePermissionsSettings(), - clientContext); - this.queryTestablePermissionsPagedCallable = - callableFactory.createPagedCallable( - queryTestablePermissionsTransportSettings, - settings.queryTestablePermissionsSettings(), - clientContext); - this.queryAuditableServicesCallable = - callableFactory.createUnaryCallable( - queryAuditableServicesTransportSettings, - settings.queryAuditableServicesSettings(), - clientContext); - this.lintPolicyCallable = - callableFactory.createUnaryCallable( - lintPolicyTransportSettings, settings.lintPolicySettings(), clientContext); - - this.backgroundResources = - new BackgroundResourceAggregation(clientContext.getBackgroundResources()); - } - - public GrpcOperationsStub getOperationsStub() { - return operationsStub; - } - - @Override - public UnaryCallable - listServiceAccountsCallable() { - return listServiceAccountsCallable; - } - - @Override - public UnaryCallable - listServiceAccountsPagedCallable() { - return listServiceAccountsPagedCallable; - } - - @Override - public UnaryCallable getServiceAccountCallable() { - return getServiceAccountCallable; - } - - @Override - public UnaryCallable createServiceAccountCallable() { - return createServiceAccountCallable; - } - - @Override - public UnaryCallable updateServiceAccountCallable() { - return updateServiceAccountCallable; - } - - @Override - public UnaryCallable patchServiceAccountCallable() { - return patchServiceAccountCallable; - } - - @Override - public UnaryCallable deleteServiceAccountCallable() { - return deleteServiceAccountCallable; - } - - @Override - public UnaryCallable - undeleteServiceAccountCallable() { - return undeleteServiceAccountCallable; - } - - @Override - public UnaryCallable enableServiceAccountCallable() { - return enableServiceAccountCallable; - } - - @Override - public UnaryCallable disableServiceAccountCallable() { - return disableServiceAccountCallable; - } - - @Override - public UnaryCallable - listServiceAccountKeysCallable() { - return listServiceAccountKeysCallable; - } - - @Override - public UnaryCallable - getServiceAccountKeyCallable() { - return getServiceAccountKeyCallable; - } - - @Override - public UnaryCallable - createServiceAccountKeyCallable() { - return createServiceAccountKeyCallable; - } - - @Override - public UnaryCallable - uploadServiceAccountKeyCallable() { - return uploadServiceAccountKeyCallable; - } - - @Override - public UnaryCallable deleteServiceAccountKeyCallable() { - return deleteServiceAccountKeyCallable; - } - - @Override - public UnaryCallable disableServiceAccountKeyCallable() { - return disableServiceAccountKeyCallable; - } - - @Override - public UnaryCallable enableServiceAccountKeyCallable() { - return enableServiceAccountKeyCallable; - } - - @Override - public UnaryCallable signBlobCallable() { - return signBlobCallable; - } - - @Override - public UnaryCallable signJwtCallable() { - return signJwtCallable; - } - - @Override - public UnaryCallable getIamPolicyCallable() { - return getIamPolicyCallable; - } - - @Override - public UnaryCallable setIamPolicyCallable() { - return setIamPolicyCallable; - } - - @Override - public UnaryCallable - testIamPermissionsCallable() { - return testIamPermissionsCallable; - } - - @Override - public UnaryCallable - queryGrantableRolesCallable() { - return queryGrantableRolesCallable; - } - - @Override - public UnaryCallable - queryGrantableRolesPagedCallable() { - return queryGrantableRolesPagedCallable; - } - - @Override - public UnaryCallable listRolesCallable() { - return listRolesCallable; - } - - @Override - public UnaryCallable listRolesPagedCallable() { - return listRolesPagedCallable; - } - - @Override - public UnaryCallable getRoleCallable() { - return getRoleCallable; - } - - @Override - public UnaryCallable createRoleCallable() { - return createRoleCallable; - } - - @Override - public UnaryCallable updateRoleCallable() { - return updateRoleCallable; - } - - @Override - public UnaryCallable deleteRoleCallable() { - return deleteRoleCallable; - } - - @Override - public UnaryCallable undeleteRoleCallable() { - return undeleteRoleCallable; - } - - @Override - public UnaryCallable - queryTestablePermissionsCallable() { - return queryTestablePermissionsCallable; - } - - @Override - public UnaryCallable - queryTestablePermissionsPagedCallable() { - return queryTestablePermissionsPagedCallable; - } - - @Override - public UnaryCallable - queryAuditableServicesCallable() { - return queryAuditableServicesCallable; - } - - @Override - public UnaryCallable lintPolicyCallable() { - return lintPolicyCallable; - } - - @Override - public final void close() { - try { - backgroundResources.close(); - } catch (RuntimeException e) { - throw e; - } catch (Exception e) { - throw new IllegalStateException("Failed to close resource", e); - } - } - - @Override - public void shutdown() { - backgroundResources.shutdown(); - } - - @Override - public boolean isShutdown() { - return backgroundResources.isShutdown(); - } - - @Override - public boolean isTerminated() { - return backgroundResources.isTerminated(); - } - - @Override - public void shutdownNow() { - backgroundResources.shutdownNow(); - } - - @Override - public boolean awaitTermination(long duration, TimeUnit unit) throws InterruptedException { - return backgroundResources.awaitTermination(duration, unit); - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStub.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStub.java deleted file mode 100644 index 32e94da43e72..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStub.java +++ /dev/null @@ -1,241 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1.stub; - -import static com.google.cloud.iam.admin.v1.IAMClient.ListRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.ListServiceAccountsPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryGrantableRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryTestablePermissionsPagedResponse; - -import com.google.api.gax.core.BackgroundResource; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.iam.admin.v1.CreateRoleRequest; -import com.google.iam.admin.v1.CreateServiceAccountKeyRequest; -import com.google.iam.admin.v1.CreateServiceAccountRequest; -import com.google.iam.admin.v1.DeleteRoleRequest; -import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest; -import com.google.iam.admin.v1.DeleteServiceAccountRequest; -import com.google.iam.admin.v1.DisableServiceAccountKeyRequest; -import com.google.iam.admin.v1.DisableServiceAccountRequest; -import com.google.iam.admin.v1.EnableServiceAccountKeyRequest; -import com.google.iam.admin.v1.EnableServiceAccountRequest; -import com.google.iam.admin.v1.GetRoleRequest; -import com.google.iam.admin.v1.GetServiceAccountKeyRequest; -import com.google.iam.admin.v1.GetServiceAccountRequest; -import com.google.iam.admin.v1.LintPolicyRequest; -import com.google.iam.admin.v1.LintPolicyResponse; -import com.google.iam.admin.v1.ListRolesRequest; -import com.google.iam.admin.v1.ListRolesResponse; -import com.google.iam.admin.v1.ListServiceAccountKeysRequest; -import com.google.iam.admin.v1.ListServiceAccountKeysResponse; -import com.google.iam.admin.v1.ListServiceAccountsRequest; -import com.google.iam.admin.v1.ListServiceAccountsResponse; -import com.google.iam.admin.v1.PatchServiceAccountRequest; -import com.google.iam.admin.v1.QueryAuditableServicesRequest; -import com.google.iam.admin.v1.QueryAuditableServicesResponse; -import com.google.iam.admin.v1.QueryGrantableRolesRequest; -import com.google.iam.admin.v1.QueryGrantableRolesResponse; -import com.google.iam.admin.v1.QueryTestablePermissionsRequest; -import com.google.iam.admin.v1.QueryTestablePermissionsResponse; -import com.google.iam.admin.v1.Role; -import com.google.iam.admin.v1.ServiceAccount; -import com.google.iam.admin.v1.ServiceAccountKey; -import com.google.iam.admin.v1.SignBlobRequest; -import com.google.iam.admin.v1.SignBlobResponse; -import com.google.iam.admin.v1.SignJwtRequest; -import com.google.iam.admin.v1.SignJwtResponse; -import com.google.iam.admin.v1.UndeleteRoleRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountResponse; -import com.google.iam.admin.v1.UpdateRoleRequest; -import com.google.iam.admin.v1.UploadServiceAccountKeyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Base stub class for the IAM service API. - * - *

    This class is for advanced usage and reflects the underlying API directly. - */ -@Generated("by gapic-generator-java") -public abstract class IAMStub implements BackgroundResource { - - public UnaryCallable - listServiceAccountsPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listServiceAccountsPagedCallable()"); - } - - public UnaryCallable - listServiceAccountsCallable() { - throw new UnsupportedOperationException("Not implemented: listServiceAccountsCallable()"); - } - - public UnaryCallable getServiceAccountCallable() { - throw new UnsupportedOperationException("Not implemented: getServiceAccountCallable()"); - } - - public UnaryCallable createServiceAccountCallable() { - throw new UnsupportedOperationException("Not implemented: createServiceAccountCallable()"); - } - - public UnaryCallable updateServiceAccountCallable() { - throw new UnsupportedOperationException("Not implemented: updateServiceAccountCallable()"); - } - - public UnaryCallable patchServiceAccountCallable() { - throw new UnsupportedOperationException("Not implemented: patchServiceAccountCallable()"); - } - - public UnaryCallable deleteServiceAccountCallable() { - throw new UnsupportedOperationException("Not implemented: deleteServiceAccountCallable()"); - } - - public UnaryCallable - undeleteServiceAccountCallable() { - throw new UnsupportedOperationException("Not implemented: undeleteServiceAccountCallable()"); - } - - public UnaryCallable enableServiceAccountCallable() { - throw new UnsupportedOperationException("Not implemented: enableServiceAccountCallable()"); - } - - public UnaryCallable disableServiceAccountCallable() { - throw new UnsupportedOperationException("Not implemented: disableServiceAccountCallable()"); - } - - public UnaryCallable - listServiceAccountKeysCallable() { - throw new UnsupportedOperationException("Not implemented: listServiceAccountKeysCallable()"); - } - - public UnaryCallable - getServiceAccountKeyCallable() { - throw new UnsupportedOperationException("Not implemented: getServiceAccountKeyCallable()"); - } - - public UnaryCallable - createServiceAccountKeyCallable() { - throw new UnsupportedOperationException("Not implemented: createServiceAccountKeyCallable()"); - } - - public UnaryCallable - uploadServiceAccountKeyCallable() { - throw new UnsupportedOperationException("Not implemented: uploadServiceAccountKeyCallable()"); - } - - public UnaryCallable deleteServiceAccountKeyCallable() { - throw new UnsupportedOperationException("Not implemented: deleteServiceAccountKeyCallable()"); - } - - public UnaryCallable disableServiceAccountKeyCallable() { - throw new UnsupportedOperationException("Not implemented: disableServiceAccountKeyCallable()"); - } - - public UnaryCallable enableServiceAccountKeyCallable() { - throw new UnsupportedOperationException("Not implemented: enableServiceAccountKeyCallable()"); - } - - @Deprecated - public UnaryCallable signBlobCallable() { - throw new UnsupportedOperationException("Not implemented: signBlobCallable()"); - } - - @Deprecated - public UnaryCallable signJwtCallable() { - throw new UnsupportedOperationException("Not implemented: signJwtCallable()"); - } - - public UnaryCallable getIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); - } - - public UnaryCallable setIamPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: setIamPolicyCallable()"); - } - - public UnaryCallable - testIamPermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: testIamPermissionsCallable()"); - } - - public UnaryCallable - queryGrantableRolesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: queryGrantableRolesPagedCallable()"); - } - - public UnaryCallable - queryGrantableRolesCallable() { - throw new UnsupportedOperationException("Not implemented: queryGrantableRolesCallable()"); - } - - public UnaryCallable listRolesPagedCallable() { - throw new UnsupportedOperationException("Not implemented: listRolesPagedCallable()"); - } - - public UnaryCallable listRolesCallable() { - throw new UnsupportedOperationException("Not implemented: listRolesCallable()"); - } - - public UnaryCallable getRoleCallable() { - throw new UnsupportedOperationException("Not implemented: getRoleCallable()"); - } - - public UnaryCallable createRoleCallable() { - throw new UnsupportedOperationException("Not implemented: createRoleCallable()"); - } - - public UnaryCallable updateRoleCallable() { - throw new UnsupportedOperationException("Not implemented: updateRoleCallable()"); - } - - public UnaryCallable deleteRoleCallable() { - throw new UnsupportedOperationException("Not implemented: deleteRoleCallable()"); - } - - public UnaryCallable undeleteRoleCallable() { - throw new UnsupportedOperationException("Not implemented: undeleteRoleCallable()"); - } - - public UnaryCallable - queryTestablePermissionsPagedCallable() { - throw new UnsupportedOperationException( - "Not implemented: queryTestablePermissionsPagedCallable()"); - } - - public UnaryCallable - queryTestablePermissionsCallable() { - throw new UnsupportedOperationException("Not implemented: queryTestablePermissionsCallable()"); - } - - public UnaryCallable - queryAuditableServicesCallable() { - throw new UnsupportedOperationException("Not implemented: queryAuditableServicesCallable()"); - } - - public UnaryCallable lintPolicyCallable() { - throw new UnsupportedOperationException("Not implemented: lintPolicyCallable()"); - } - - @Override - public abstract void close(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java deleted file mode 100644 index bfb79c3cbcb1..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/main/java/com/google/cloud/iam/admin/v1/stub/IAMStubSettings.java +++ /dev/null @@ -1,1382 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1.stub; - -import static com.google.cloud.iam.admin.v1.IAMClient.ListRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.ListServiceAccountsPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryGrantableRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryTestablePermissionsPagedResponse; - -import com.google.api.core.ApiFunction; -import com.google.api.core.ApiFuture; -import com.google.api.core.BetaApi; -import com.google.api.gax.core.GaxProperties; -import com.google.api.gax.core.GoogleCredentialsProvider; -import com.google.api.gax.core.InstantiatingExecutorProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.GrpcTransportChannel; -import com.google.api.gax.grpc.InstantiatingGrpcChannelProvider; -import com.google.api.gax.retrying.RetrySettings; -import com.google.api.gax.rpc.ApiCallContext; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.ClientContext; -import com.google.api.gax.rpc.PageContext; -import com.google.api.gax.rpc.PagedCallSettings; -import com.google.api.gax.rpc.PagedListDescriptor; -import com.google.api.gax.rpc.PagedListResponseFactory; -import com.google.api.gax.rpc.StatusCode; -import com.google.api.gax.rpc.StubSettings; -import com.google.api.gax.rpc.TransportChannelProvider; -import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.api.gax.rpc.UnaryCallable; -import com.google.common.collect.ImmutableList; -import com.google.common.collect.ImmutableMap; -import com.google.common.collect.ImmutableSet; -import com.google.common.collect.Lists; -import com.google.iam.admin.v1.CreateRoleRequest; -import com.google.iam.admin.v1.CreateServiceAccountKeyRequest; -import com.google.iam.admin.v1.CreateServiceAccountRequest; -import com.google.iam.admin.v1.DeleteRoleRequest; -import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest; -import com.google.iam.admin.v1.DeleteServiceAccountRequest; -import com.google.iam.admin.v1.DisableServiceAccountKeyRequest; -import com.google.iam.admin.v1.DisableServiceAccountRequest; -import com.google.iam.admin.v1.EnableServiceAccountKeyRequest; -import com.google.iam.admin.v1.EnableServiceAccountRequest; -import com.google.iam.admin.v1.GetRoleRequest; -import com.google.iam.admin.v1.GetServiceAccountKeyRequest; -import com.google.iam.admin.v1.GetServiceAccountRequest; -import com.google.iam.admin.v1.LintPolicyRequest; -import com.google.iam.admin.v1.LintPolicyResponse; -import com.google.iam.admin.v1.ListRolesRequest; -import com.google.iam.admin.v1.ListRolesResponse; -import com.google.iam.admin.v1.ListServiceAccountKeysRequest; -import com.google.iam.admin.v1.ListServiceAccountKeysResponse; -import com.google.iam.admin.v1.ListServiceAccountsRequest; -import com.google.iam.admin.v1.ListServiceAccountsResponse; -import com.google.iam.admin.v1.PatchServiceAccountRequest; -import com.google.iam.admin.v1.Permission; -import com.google.iam.admin.v1.QueryAuditableServicesRequest; -import com.google.iam.admin.v1.QueryAuditableServicesResponse; -import com.google.iam.admin.v1.QueryGrantableRolesRequest; -import com.google.iam.admin.v1.QueryGrantableRolesResponse; -import com.google.iam.admin.v1.QueryTestablePermissionsRequest; -import com.google.iam.admin.v1.QueryTestablePermissionsResponse; -import com.google.iam.admin.v1.Role; -import com.google.iam.admin.v1.ServiceAccount; -import com.google.iam.admin.v1.ServiceAccountKey; -import com.google.iam.admin.v1.SignBlobRequest; -import com.google.iam.admin.v1.SignBlobResponse; -import com.google.iam.admin.v1.SignJwtRequest; -import com.google.iam.admin.v1.SignJwtResponse; -import com.google.iam.admin.v1.UndeleteRoleRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountResponse; -import com.google.iam.admin.v1.UpdateRoleRequest; -import com.google.iam.admin.v1.UploadServiceAccountKeyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.Empty; -import java.io.IOException; -import java.util.List; -import javax.annotation.Generated; -import org.threeten.bp.Duration; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -/** - * Settings class to configure an instance of {@link IAMStub}. - * - *

    The default instance has everything set to sensible defaults: - * - *

      - *
    • The default service address (iam.googleapis.com) and default port (443) are used. - *
    • Credentials are acquired automatically through Application Default Credentials. - *
    • Retries are configured for idempotent methods but not for non-idempotent methods. - *
    - * - *

    The builder of this class is recursive, so contained classes are themselves builders. When - * build() is called, the tree of builders is called to create the complete settings object. - * - *

    For example, to set the total timeout of getServiceAccount to 30 seconds: - * - *

    {@code
    - * // This snippet has been automatically generated and should be regarded as a code template only.
    - * // It will require modifications to work:
    - * // - It may require correct/in-range values for request initialization.
    - * // - It may require specifying regional endpoints when creating the service client as shown in
    - * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
    - * IAMStubSettings.Builder iAMSettingsBuilder = IAMStubSettings.newBuilder();
    - * iAMSettingsBuilder
    - *     .getServiceAccountSettings()
    - *     .setRetrySettings(
    - *         iAMSettingsBuilder.getServiceAccountSettings().getRetrySettings().toBuilder()
    - *             .setTotalTimeout(Duration.ofSeconds(30))
    - *             .build());
    - * IAMStubSettings iAMSettings = iAMSettingsBuilder.build();
    - * }
    - */ -@Generated("by gapic-generator-java") -public class IAMStubSettings extends StubSettings { - /** The default scopes of the service. */ - private static final ImmutableList DEFAULT_SERVICE_SCOPES = - ImmutableList.builder().add("https://www.googleapis.com/auth/cloud-platform").build(); - - private final PagedCallSettings< - ListServiceAccountsRequest, ListServiceAccountsResponse, ListServiceAccountsPagedResponse> - listServiceAccountsSettings; - private final UnaryCallSettings - getServiceAccountSettings; - private final UnaryCallSettings - createServiceAccountSettings; - private final UnaryCallSettings updateServiceAccountSettings; - private final UnaryCallSettings - patchServiceAccountSettings; - private final UnaryCallSettings deleteServiceAccountSettings; - private final UnaryCallSettings - undeleteServiceAccountSettings; - private final UnaryCallSettings enableServiceAccountSettings; - private final UnaryCallSettings - disableServiceAccountSettings; - private final UnaryCallSettings - listServiceAccountKeysSettings; - private final UnaryCallSettings - getServiceAccountKeySettings; - private final UnaryCallSettings - createServiceAccountKeySettings; - private final UnaryCallSettings - uploadServiceAccountKeySettings; - private final UnaryCallSettings - deleteServiceAccountKeySettings; - private final UnaryCallSettings - disableServiceAccountKeySettings; - private final UnaryCallSettings - enableServiceAccountKeySettings; - private final UnaryCallSettings signBlobSettings; - private final UnaryCallSettings signJwtSettings; - private final UnaryCallSettings getIamPolicySettings; - private final UnaryCallSettings setIamPolicySettings; - private final UnaryCallSettings - testIamPermissionsSettings; - private final PagedCallSettings< - QueryGrantableRolesRequest, QueryGrantableRolesResponse, QueryGrantableRolesPagedResponse> - queryGrantableRolesSettings; - private final PagedCallSettings - listRolesSettings; - private final UnaryCallSettings getRoleSettings; - private final UnaryCallSettings createRoleSettings; - private final UnaryCallSettings updateRoleSettings; - private final UnaryCallSettings deleteRoleSettings; - private final UnaryCallSettings undeleteRoleSettings; - private final PagedCallSettings< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - QueryTestablePermissionsPagedResponse> - queryTestablePermissionsSettings; - private final UnaryCallSettings - queryAuditableServicesSettings; - private final UnaryCallSettings lintPolicySettings; - - private static final PagedListDescriptor< - ListServiceAccountsRequest, ListServiceAccountsResponse, ServiceAccount> - LIST_SERVICE_ACCOUNTS_PAGE_STR_DESC = - new PagedListDescriptor< - ListServiceAccountsRequest, ListServiceAccountsResponse, ServiceAccount>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListServiceAccountsRequest injectToken( - ListServiceAccountsRequest payload, String token) { - return ListServiceAccountsRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListServiceAccountsRequest injectPageSize( - ListServiceAccountsRequest payload, int pageSize) { - return ListServiceAccountsRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListServiceAccountsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListServiceAccountsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListServiceAccountsResponse payload) { - return payload.getAccountsList() == null - ? ImmutableList.of() - : payload.getAccountsList(); - } - }; - - private static final PagedListDescriptor< - QueryGrantableRolesRequest, QueryGrantableRolesResponse, Role> - QUERY_GRANTABLE_ROLES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public QueryGrantableRolesRequest injectToken( - QueryGrantableRolesRequest payload, String token) { - return QueryGrantableRolesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public QueryGrantableRolesRequest injectPageSize( - QueryGrantableRolesRequest payload, int pageSize) { - return QueryGrantableRolesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(QueryGrantableRolesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(QueryGrantableRolesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(QueryGrantableRolesResponse payload) { - return payload.getRolesList() == null - ? ImmutableList.of() - : payload.getRolesList(); - } - }; - - private static final PagedListDescriptor - LIST_ROLES_PAGE_STR_DESC = - new PagedListDescriptor() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public ListRolesRequest injectToken(ListRolesRequest payload, String token) { - return ListRolesRequest.newBuilder(payload).setPageToken(token).build(); - } - - @Override - public ListRolesRequest injectPageSize(ListRolesRequest payload, int pageSize) { - return ListRolesRequest.newBuilder(payload).setPageSize(pageSize).build(); - } - - @Override - public Integer extractPageSize(ListRolesRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(ListRolesResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(ListRolesResponse payload) { - return payload.getRolesList() == null - ? ImmutableList.of() - : payload.getRolesList(); - } - }; - - private static final PagedListDescriptor< - QueryTestablePermissionsRequest, QueryTestablePermissionsResponse, Permission> - QUERY_TESTABLE_PERMISSIONS_PAGE_STR_DESC = - new PagedListDescriptor< - QueryTestablePermissionsRequest, QueryTestablePermissionsResponse, Permission>() { - @Override - public String emptyToken() { - return ""; - } - - @Override - public QueryTestablePermissionsRequest injectToken( - QueryTestablePermissionsRequest payload, String token) { - return QueryTestablePermissionsRequest.newBuilder(payload) - .setPageToken(token) - .build(); - } - - @Override - public QueryTestablePermissionsRequest injectPageSize( - QueryTestablePermissionsRequest payload, int pageSize) { - return QueryTestablePermissionsRequest.newBuilder(payload) - .setPageSize(pageSize) - .build(); - } - - @Override - public Integer extractPageSize(QueryTestablePermissionsRequest payload) { - return payload.getPageSize(); - } - - @Override - public String extractNextToken(QueryTestablePermissionsResponse payload) { - return payload.getNextPageToken(); - } - - @Override - public Iterable extractResources(QueryTestablePermissionsResponse payload) { - return payload.getPermissionsList() == null - ? ImmutableList.of() - : payload.getPermissionsList(); - } - }; - - private static final PagedListResponseFactory< - ListServiceAccountsRequest, ListServiceAccountsResponse, ListServiceAccountsPagedResponse> - LIST_SERVICE_ACCOUNTS_PAGE_STR_FACT = - new PagedListResponseFactory< - ListServiceAccountsRequest, - ListServiceAccountsResponse, - ListServiceAccountsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListServiceAccountsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, LIST_SERVICE_ACCOUNTS_PAGE_STR_DESC, request, context); - return ListServiceAccountsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - QueryGrantableRolesRequest, QueryGrantableRolesResponse, QueryGrantableRolesPagedResponse> - QUERY_GRANTABLE_ROLES_PAGE_STR_FACT = - new PagedListResponseFactory< - QueryGrantableRolesRequest, - QueryGrantableRolesResponse, - QueryGrantableRolesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - QueryGrantableRolesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext - pageContext = - PageContext.create( - callable, QUERY_GRANTABLE_ROLES_PAGE_STR_DESC, request, context); - return QueryGrantableRolesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - ListRolesRequest, ListRolesResponse, ListRolesPagedResponse> - LIST_ROLES_PAGE_STR_FACT = - new PagedListResponseFactory< - ListRolesRequest, ListRolesResponse, ListRolesPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable callable, - ListRolesRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext pageContext = - PageContext.create(callable, LIST_ROLES_PAGE_STR_DESC, request, context); - return ListRolesPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - private static final PagedListResponseFactory< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - QueryTestablePermissionsPagedResponse> - QUERY_TESTABLE_PERMISSIONS_PAGE_STR_FACT = - new PagedListResponseFactory< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - QueryTestablePermissionsPagedResponse>() { - @Override - public ApiFuture getFuturePagedResponse( - UnaryCallable - callable, - QueryTestablePermissionsRequest request, - ApiCallContext context, - ApiFuture futureResponse) { - PageContext< - QueryTestablePermissionsRequest, QueryTestablePermissionsResponse, Permission> - pageContext = - PageContext.create( - callable, QUERY_TESTABLE_PERMISSIONS_PAGE_STR_DESC, request, context); - return QueryTestablePermissionsPagedResponse.createAsync(pageContext, futureResponse); - } - }; - - /** Returns the object with the settings used for calls to listServiceAccounts. */ - public PagedCallSettings< - ListServiceAccountsRequest, ListServiceAccountsResponse, ListServiceAccountsPagedResponse> - listServiceAccountsSettings() { - return listServiceAccountsSettings; - } - - /** Returns the object with the settings used for calls to getServiceAccount. */ - public UnaryCallSettings getServiceAccountSettings() { - return getServiceAccountSettings; - } - - /** Returns the object with the settings used for calls to createServiceAccount. */ - public UnaryCallSettings - createServiceAccountSettings() { - return createServiceAccountSettings; - } - - /** Returns the object with the settings used for calls to updateServiceAccount. */ - public UnaryCallSettings updateServiceAccountSettings() { - return updateServiceAccountSettings; - } - - /** Returns the object with the settings used for calls to patchServiceAccount. */ - public UnaryCallSettings - patchServiceAccountSettings() { - return patchServiceAccountSettings; - } - - /** Returns the object with the settings used for calls to deleteServiceAccount. */ - public UnaryCallSettings deleteServiceAccountSettings() { - return deleteServiceAccountSettings; - } - - /** Returns the object with the settings used for calls to undeleteServiceAccount. */ - public UnaryCallSettings - undeleteServiceAccountSettings() { - return undeleteServiceAccountSettings; - } - - /** Returns the object with the settings used for calls to enableServiceAccount. */ - public UnaryCallSettings enableServiceAccountSettings() { - return enableServiceAccountSettings; - } - - /** Returns the object with the settings used for calls to disableServiceAccount. */ - public UnaryCallSettings disableServiceAccountSettings() { - return disableServiceAccountSettings; - } - - /** Returns the object with the settings used for calls to listServiceAccountKeys. */ - public UnaryCallSettings - listServiceAccountKeysSettings() { - return listServiceAccountKeysSettings; - } - - /** Returns the object with the settings used for calls to getServiceAccountKey. */ - public UnaryCallSettings - getServiceAccountKeySettings() { - return getServiceAccountKeySettings; - } - - /** Returns the object with the settings used for calls to createServiceAccountKey. */ - public UnaryCallSettings - createServiceAccountKeySettings() { - return createServiceAccountKeySettings; - } - - /** Returns the object with the settings used for calls to uploadServiceAccountKey. */ - public UnaryCallSettings - uploadServiceAccountKeySettings() { - return uploadServiceAccountKeySettings; - } - - /** Returns the object with the settings used for calls to deleteServiceAccountKey. */ - public UnaryCallSettings - deleteServiceAccountKeySettings() { - return deleteServiceAccountKeySettings; - } - - /** Returns the object with the settings used for calls to disableServiceAccountKey. */ - public UnaryCallSettings - disableServiceAccountKeySettings() { - return disableServiceAccountKeySettings; - } - - /** Returns the object with the settings used for calls to enableServiceAccountKey. */ - public UnaryCallSettings - enableServiceAccountKeySettings() { - return enableServiceAccountKeySettings; - } - - /** - * Returns the object with the settings used for calls to signBlob. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings signBlobSettings() { - return signBlobSettings; - } - - /** - * Returns the object with the settings used for calls to signJwt. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings signJwtSettings() { - return signJwtSettings; - } - - /** Returns the object with the settings used for calls to getIamPolicy. */ - public UnaryCallSettings getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the object with the settings used for calls to setIamPolicy. */ - public UnaryCallSettings setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the object with the settings used for calls to testIamPermissions. */ - public UnaryCallSettings - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the object with the settings used for calls to queryGrantableRoles. */ - public PagedCallSettings< - QueryGrantableRolesRequest, QueryGrantableRolesResponse, QueryGrantableRolesPagedResponse> - queryGrantableRolesSettings() { - return queryGrantableRolesSettings; - } - - /** Returns the object with the settings used for calls to listRoles. */ - public PagedCallSettings - listRolesSettings() { - return listRolesSettings; - } - - /** Returns the object with the settings used for calls to getRole. */ - public UnaryCallSettings getRoleSettings() { - return getRoleSettings; - } - - /** Returns the object with the settings used for calls to createRole. */ - public UnaryCallSettings createRoleSettings() { - return createRoleSettings; - } - - /** Returns the object with the settings used for calls to updateRole. */ - public UnaryCallSettings updateRoleSettings() { - return updateRoleSettings; - } - - /** Returns the object with the settings used for calls to deleteRole. */ - public UnaryCallSettings deleteRoleSettings() { - return deleteRoleSettings; - } - - /** Returns the object with the settings used for calls to undeleteRole. */ - public UnaryCallSettings undeleteRoleSettings() { - return undeleteRoleSettings; - } - - /** Returns the object with the settings used for calls to queryTestablePermissions. */ - public PagedCallSettings< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - QueryTestablePermissionsPagedResponse> - queryTestablePermissionsSettings() { - return queryTestablePermissionsSettings; - } - - /** Returns the object with the settings used for calls to queryAuditableServices. */ - public UnaryCallSettings - queryAuditableServicesSettings() { - return queryAuditableServicesSettings; - } - - /** Returns the object with the settings used for calls to lintPolicy. */ - public UnaryCallSettings lintPolicySettings() { - return lintPolicySettings; - } - - public IAMStub createStub() throws IOException { - if (getTransportChannelProvider() - .getTransportName() - .equals(GrpcTransportChannel.getGrpcTransportName())) { - return GrpcIAMStub.create(this); - } - throw new UnsupportedOperationException( - String.format( - "Transport not supported: %s", getTransportChannelProvider().getTransportName())); - } - - /** Returns a builder for the default ExecutorProvider for this service. */ - public static InstantiatingExecutorProvider.Builder defaultExecutorProviderBuilder() { - return InstantiatingExecutorProvider.newBuilder(); - } - - /** Returns the default service endpoint. */ - public static String getDefaultEndpoint() { - return "iam.googleapis.com:443"; - } - - /** Returns the default mTLS service endpoint. */ - public static String getDefaultMtlsEndpoint() { - return "iam.mtls.googleapis.com:443"; - } - - /** Returns the default service scopes. */ - public static List getDefaultServiceScopes() { - return DEFAULT_SERVICE_SCOPES; - } - - /** Returns a builder for the default credentials for this service. */ - public static GoogleCredentialsProvider.Builder defaultCredentialsProviderBuilder() { - return GoogleCredentialsProvider.newBuilder() - .setScopesToApply(DEFAULT_SERVICE_SCOPES) - .setUseJwtAccessWithScope(true); - } - - /** Returns a builder for the default ChannelProvider for this service. */ - public static InstantiatingGrpcChannelProvider.Builder defaultGrpcTransportProviderBuilder() { - return InstantiatingGrpcChannelProvider.newBuilder() - .setMaxInboundMessageSize(Integer.MAX_VALUE); - } - - public static TransportChannelProvider defaultTransportChannelProvider() { - return defaultGrpcTransportProviderBuilder().build(); - } - - @BetaApi("The surface for customizing headers is not stable yet and may change in the future.") - public static ApiClientHeaderProvider.Builder defaultApiClientHeaderProviderBuilder() { - return ApiClientHeaderProvider.newBuilder() - .setGeneratedLibToken("gapic", GaxProperties.getLibraryVersion(IAMStubSettings.class)) - .setTransportToken( - GaxGrpcProperties.getGrpcTokenName(), GaxGrpcProperties.getGrpcVersion()); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder() { - return Builder.createDefault(); - } - - /** Returns a new builder for this class. */ - public static Builder newBuilder(ClientContext clientContext) { - return new Builder(clientContext); - } - - /** Returns a builder containing all the values of this settings class. */ - public Builder toBuilder() { - return new Builder(this); - } - - protected IAMStubSettings(Builder settingsBuilder) throws IOException { - super(settingsBuilder); - - listServiceAccountsSettings = settingsBuilder.listServiceAccountsSettings().build(); - getServiceAccountSettings = settingsBuilder.getServiceAccountSettings().build(); - createServiceAccountSettings = settingsBuilder.createServiceAccountSettings().build(); - updateServiceAccountSettings = settingsBuilder.updateServiceAccountSettings().build(); - patchServiceAccountSettings = settingsBuilder.patchServiceAccountSettings().build(); - deleteServiceAccountSettings = settingsBuilder.deleteServiceAccountSettings().build(); - undeleteServiceAccountSettings = settingsBuilder.undeleteServiceAccountSettings().build(); - enableServiceAccountSettings = settingsBuilder.enableServiceAccountSettings().build(); - disableServiceAccountSettings = settingsBuilder.disableServiceAccountSettings().build(); - listServiceAccountKeysSettings = settingsBuilder.listServiceAccountKeysSettings().build(); - getServiceAccountKeySettings = settingsBuilder.getServiceAccountKeySettings().build(); - createServiceAccountKeySettings = settingsBuilder.createServiceAccountKeySettings().build(); - uploadServiceAccountKeySettings = settingsBuilder.uploadServiceAccountKeySettings().build(); - deleteServiceAccountKeySettings = settingsBuilder.deleteServiceAccountKeySettings().build(); - disableServiceAccountKeySettings = settingsBuilder.disableServiceAccountKeySettings().build(); - enableServiceAccountKeySettings = settingsBuilder.enableServiceAccountKeySettings().build(); - signBlobSettings = settingsBuilder.signBlobSettings().build(); - signJwtSettings = settingsBuilder.signJwtSettings().build(); - getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); - setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); - testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); - queryGrantableRolesSettings = settingsBuilder.queryGrantableRolesSettings().build(); - listRolesSettings = settingsBuilder.listRolesSettings().build(); - getRoleSettings = settingsBuilder.getRoleSettings().build(); - createRoleSettings = settingsBuilder.createRoleSettings().build(); - updateRoleSettings = settingsBuilder.updateRoleSettings().build(); - deleteRoleSettings = settingsBuilder.deleteRoleSettings().build(); - undeleteRoleSettings = settingsBuilder.undeleteRoleSettings().build(); - queryTestablePermissionsSettings = settingsBuilder.queryTestablePermissionsSettings().build(); - queryAuditableServicesSettings = settingsBuilder.queryAuditableServicesSettings().build(); - lintPolicySettings = settingsBuilder.lintPolicySettings().build(); - } - - /** Builder for IAMStubSettings. */ - public static class Builder extends StubSettings.Builder { - private final ImmutableList> unaryMethodSettingsBuilders; - private final PagedCallSettings.Builder< - ListServiceAccountsRequest, - ListServiceAccountsResponse, - ListServiceAccountsPagedResponse> - listServiceAccountsSettings; - private final UnaryCallSettings.Builder - getServiceAccountSettings; - private final UnaryCallSettings.Builder - createServiceAccountSettings; - private final UnaryCallSettings.Builder - updateServiceAccountSettings; - private final UnaryCallSettings.Builder - patchServiceAccountSettings; - private final UnaryCallSettings.Builder - deleteServiceAccountSettings; - private final UnaryCallSettings.Builder< - UndeleteServiceAccountRequest, UndeleteServiceAccountResponse> - undeleteServiceAccountSettings; - private final UnaryCallSettings.Builder - enableServiceAccountSettings; - private final UnaryCallSettings.Builder - disableServiceAccountSettings; - private final UnaryCallSettings.Builder< - ListServiceAccountKeysRequest, ListServiceAccountKeysResponse> - listServiceAccountKeysSettings; - private final UnaryCallSettings.Builder - getServiceAccountKeySettings; - private final UnaryCallSettings.Builder - createServiceAccountKeySettings; - private final UnaryCallSettings.Builder - uploadServiceAccountKeySettings; - private final UnaryCallSettings.Builder - deleteServiceAccountKeySettings; - private final UnaryCallSettings.Builder - disableServiceAccountKeySettings; - private final UnaryCallSettings.Builder - enableServiceAccountKeySettings; - private final UnaryCallSettings.Builder signBlobSettings; - private final UnaryCallSettings.Builder signJwtSettings; - private final UnaryCallSettings.Builder getIamPolicySettings; - private final UnaryCallSettings.Builder setIamPolicySettings; - private final UnaryCallSettings.Builder - testIamPermissionsSettings; - private final PagedCallSettings.Builder< - QueryGrantableRolesRequest, - QueryGrantableRolesResponse, - QueryGrantableRolesPagedResponse> - queryGrantableRolesSettings; - private final PagedCallSettings.Builder< - ListRolesRequest, ListRolesResponse, ListRolesPagedResponse> - listRolesSettings; - private final UnaryCallSettings.Builder getRoleSettings; - private final UnaryCallSettings.Builder createRoleSettings; - private final UnaryCallSettings.Builder updateRoleSettings; - private final UnaryCallSettings.Builder deleteRoleSettings; - private final UnaryCallSettings.Builder undeleteRoleSettings; - private final PagedCallSettings.Builder< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - QueryTestablePermissionsPagedResponse> - queryTestablePermissionsSettings; - private final UnaryCallSettings.Builder< - QueryAuditableServicesRequest, QueryAuditableServicesResponse> - queryAuditableServicesSettings; - private final UnaryCallSettings.Builder - lintPolicySettings; - private static final ImmutableMap> - RETRYABLE_CODE_DEFINITIONS; - - static { - ImmutableMap.Builder> definitions = - ImmutableMap.builder(); - definitions.put( - "retry_policy_0_codes", - ImmutableSet.copyOf( - Lists.newArrayList( - StatusCode.Code.UNAVAILABLE, StatusCode.Code.DEADLINE_EXCEEDED))); - definitions.put( - "no_retry_1_codes", ImmutableSet.copyOf(Lists.newArrayList())); - definitions.put("no_retry_codes", ImmutableSet.copyOf(Lists.newArrayList())); - RETRYABLE_CODE_DEFINITIONS = definitions.build(); - } - - private static final ImmutableMap RETRY_PARAM_DEFINITIONS; - - static { - ImmutableMap.Builder definitions = ImmutableMap.builder(); - RetrySettings settings = null; - settings = - RetrySettings.newBuilder() - .setInitialRetryDelay(Duration.ofMillis(100L)) - .setRetryDelayMultiplier(1.3) - .setMaxRetryDelay(Duration.ofMillis(60000L)) - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("retry_policy_0_params", settings); - settings = - RetrySettings.newBuilder() - .setInitialRpcTimeout(Duration.ofMillis(60000L)) - .setRpcTimeoutMultiplier(1.0) - .setMaxRpcTimeout(Duration.ofMillis(60000L)) - .setTotalTimeout(Duration.ofMillis(60000L)) - .build(); - definitions.put("no_retry_1_params", settings); - settings = RetrySettings.newBuilder().setRpcTimeoutMultiplier(1.0).build(); - definitions.put("no_retry_params", settings); - RETRY_PARAM_DEFINITIONS = definitions.build(); - } - - protected Builder() { - this(((ClientContext) null)); - } - - protected Builder(ClientContext clientContext) { - super(clientContext); - - listServiceAccountsSettings = - PagedCallSettings.newBuilder(LIST_SERVICE_ACCOUNTS_PAGE_STR_FACT); - getServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - patchServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - undeleteServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - enableServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - disableServiceAccountSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - listServiceAccountKeysSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - uploadServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - disableServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - enableServiceAccountKeySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - signBlobSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - signJwtSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - queryGrantableRolesSettings = - PagedCallSettings.newBuilder(QUERY_GRANTABLE_ROLES_PAGE_STR_FACT); - listRolesSettings = PagedCallSettings.newBuilder(LIST_ROLES_PAGE_STR_FACT); - getRoleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - createRoleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - updateRoleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - deleteRoleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - undeleteRoleSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - queryTestablePermissionsSettings = - PagedCallSettings.newBuilder(QUERY_TESTABLE_PERMISSIONS_PAGE_STR_FACT); - queryAuditableServicesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - lintPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listServiceAccountsSettings, - getServiceAccountSettings, - createServiceAccountSettings, - updateServiceAccountSettings, - patchServiceAccountSettings, - deleteServiceAccountSettings, - undeleteServiceAccountSettings, - enableServiceAccountSettings, - disableServiceAccountSettings, - listServiceAccountKeysSettings, - getServiceAccountKeySettings, - createServiceAccountKeySettings, - uploadServiceAccountKeySettings, - deleteServiceAccountKeySettings, - disableServiceAccountKeySettings, - enableServiceAccountKeySettings, - signBlobSettings, - signJwtSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings, - queryGrantableRolesSettings, - listRolesSettings, - getRoleSettings, - createRoleSettings, - updateRoleSettings, - deleteRoleSettings, - undeleteRoleSettings, - queryTestablePermissionsSettings, - queryAuditableServicesSettings, - lintPolicySettings); - initDefaults(this); - } - - protected Builder(IAMStubSettings settings) { - super(settings); - - listServiceAccountsSettings = settings.listServiceAccountsSettings.toBuilder(); - getServiceAccountSettings = settings.getServiceAccountSettings.toBuilder(); - createServiceAccountSettings = settings.createServiceAccountSettings.toBuilder(); - updateServiceAccountSettings = settings.updateServiceAccountSettings.toBuilder(); - patchServiceAccountSettings = settings.patchServiceAccountSettings.toBuilder(); - deleteServiceAccountSettings = settings.deleteServiceAccountSettings.toBuilder(); - undeleteServiceAccountSettings = settings.undeleteServiceAccountSettings.toBuilder(); - enableServiceAccountSettings = settings.enableServiceAccountSettings.toBuilder(); - disableServiceAccountSettings = settings.disableServiceAccountSettings.toBuilder(); - listServiceAccountKeysSettings = settings.listServiceAccountKeysSettings.toBuilder(); - getServiceAccountKeySettings = settings.getServiceAccountKeySettings.toBuilder(); - createServiceAccountKeySettings = settings.createServiceAccountKeySettings.toBuilder(); - uploadServiceAccountKeySettings = settings.uploadServiceAccountKeySettings.toBuilder(); - deleteServiceAccountKeySettings = settings.deleteServiceAccountKeySettings.toBuilder(); - disableServiceAccountKeySettings = settings.disableServiceAccountKeySettings.toBuilder(); - enableServiceAccountKeySettings = settings.enableServiceAccountKeySettings.toBuilder(); - signBlobSettings = settings.signBlobSettings.toBuilder(); - signJwtSettings = settings.signJwtSettings.toBuilder(); - getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); - setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); - testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); - queryGrantableRolesSettings = settings.queryGrantableRolesSettings.toBuilder(); - listRolesSettings = settings.listRolesSettings.toBuilder(); - getRoleSettings = settings.getRoleSettings.toBuilder(); - createRoleSettings = settings.createRoleSettings.toBuilder(); - updateRoleSettings = settings.updateRoleSettings.toBuilder(); - deleteRoleSettings = settings.deleteRoleSettings.toBuilder(); - undeleteRoleSettings = settings.undeleteRoleSettings.toBuilder(); - queryTestablePermissionsSettings = settings.queryTestablePermissionsSettings.toBuilder(); - queryAuditableServicesSettings = settings.queryAuditableServicesSettings.toBuilder(); - lintPolicySettings = settings.lintPolicySettings.toBuilder(); - - unaryMethodSettingsBuilders = - ImmutableList.>of( - listServiceAccountsSettings, - getServiceAccountSettings, - createServiceAccountSettings, - updateServiceAccountSettings, - patchServiceAccountSettings, - deleteServiceAccountSettings, - undeleteServiceAccountSettings, - enableServiceAccountSettings, - disableServiceAccountSettings, - listServiceAccountKeysSettings, - getServiceAccountKeySettings, - createServiceAccountKeySettings, - uploadServiceAccountKeySettings, - deleteServiceAccountKeySettings, - disableServiceAccountKeySettings, - enableServiceAccountKeySettings, - signBlobSettings, - signJwtSettings, - getIamPolicySettings, - setIamPolicySettings, - testIamPermissionsSettings, - queryGrantableRolesSettings, - listRolesSettings, - getRoleSettings, - createRoleSettings, - updateRoleSettings, - deleteRoleSettings, - undeleteRoleSettings, - queryTestablePermissionsSettings, - queryAuditableServicesSettings, - lintPolicySettings); - } - - private static Builder createDefault() { - Builder builder = new Builder(((ClientContext) null)); - - builder.setTransportChannelProvider(defaultTransportChannelProvider()); - builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build()); - builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build()); - builder.setEndpoint(getDefaultEndpoint()); - builder.setMtlsEndpoint(getDefaultMtlsEndpoint()); - builder.setSwitchToMtlsEndpointAllowed(true); - - return initDefaults(builder); - } - - private static Builder initDefaults(Builder builder) { - builder - .listServiceAccountsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getServiceAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createServiceAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .updateServiceAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .patchServiceAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteServiceAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .undeleteServiceAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .enableServiceAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .disableServiceAccountSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .listServiceAccountKeysSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .getServiceAccountKeySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .createServiceAccountKeySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .uploadServiceAccountKeySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteServiceAccountKeySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_0_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("retry_policy_0_params")); - - builder - .disableServiceAccountKeySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .enableServiceAccountKeySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .signBlobSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .signJwtSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .getIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .setIamPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .testIamPermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .queryGrantableRolesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); - - builder - .listRolesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .getRoleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .createRoleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .updateRoleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .deleteRoleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .undeleteRoleSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .queryTestablePermissionsSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .queryAuditableServicesSettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - builder - .lintPolicySettings() - .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) - .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); - - return builder; - } - - /** - * Applies the given settings updater function to all of the unary API methods in this service. - * - *

    Note: This method does not support applying settings to streaming methods. - */ - public Builder applyToAllUnaryMethods( - ApiFunction, Void> settingsUpdater) { - super.applyToAllUnaryMethods(unaryMethodSettingsBuilders, settingsUpdater); - return this; - } - - public ImmutableList> unaryMethodSettingsBuilders() { - return unaryMethodSettingsBuilders; - } - - /** Returns the builder for the settings used for calls to listServiceAccounts. */ - public PagedCallSettings.Builder< - ListServiceAccountsRequest, - ListServiceAccountsResponse, - ListServiceAccountsPagedResponse> - listServiceAccountsSettings() { - return listServiceAccountsSettings; - } - - /** Returns the builder for the settings used for calls to getServiceAccount. */ - public UnaryCallSettings.Builder - getServiceAccountSettings() { - return getServiceAccountSettings; - } - - /** Returns the builder for the settings used for calls to createServiceAccount. */ - public UnaryCallSettings.Builder - createServiceAccountSettings() { - return createServiceAccountSettings; - } - - /** Returns the builder for the settings used for calls to updateServiceAccount. */ - public UnaryCallSettings.Builder - updateServiceAccountSettings() { - return updateServiceAccountSettings; - } - - /** Returns the builder for the settings used for calls to patchServiceAccount. */ - public UnaryCallSettings.Builder - patchServiceAccountSettings() { - return patchServiceAccountSettings; - } - - /** Returns the builder for the settings used for calls to deleteServiceAccount. */ - public UnaryCallSettings.Builder - deleteServiceAccountSettings() { - return deleteServiceAccountSettings; - } - - /** Returns the builder for the settings used for calls to undeleteServiceAccount. */ - public UnaryCallSettings.Builder - undeleteServiceAccountSettings() { - return undeleteServiceAccountSettings; - } - - /** Returns the builder for the settings used for calls to enableServiceAccount. */ - public UnaryCallSettings.Builder - enableServiceAccountSettings() { - return enableServiceAccountSettings; - } - - /** Returns the builder for the settings used for calls to disableServiceAccount. */ - public UnaryCallSettings.Builder - disableServiceAccountSettings() { - return disableServiceAccountSettings; - } - - /** Returns the builder for the settings used for calls to listServiceAccountKeys. */ - public UnaryCallSettings.Builder - listServiceAccountKeysSettings() { - return listServiceAccountKeysSettings; - } - - /** Returns the builder for the settings used for calls to getServiceAccountKey. */ - public UnaryCallSettings.Builder - getServiceAccountKeySettings() { - return getServiceAccountKeySettings; - } - - /** Returns the builder for the settings used for calls to createServiceAccountKey. */ - public UnaryCallSettings.Builder - createServiceAccountKeySettings() { - return createServiceAccountKeySettings; - } - - /** Returns the builder for the settings used for calls to uploadServiceAccountKey. */ - public UnaryCallSettings.Builder - uploadServiceAccountKeySettings() { - return uploadServiceAccountKeySettings; - } - - /** Returns the builder for the settings used for calls to deleteServiceAccountKey. */ - public UnaryCallSettings.Builder - deleteServiceAccountKeySettings() { - return deleteServiceAccountKeySettings; - } - - /** Returns the builder for the settings used for calls to disableServiceAccountKey. */ - public UnaryCallSettings.Builder - disableServiceAccountKeySettings() { - return disableServiceAccountKeySettings; - } - - /** Returns the builder for the settings used for calls to enableServiceAccountKey. */ - public UnaryCallSettings.Builder - enableServiceAccountKeySettings() { - return enableServiceAccountKeySettings; - } - - /** - * Returns the builder for the settings used for calls to signBlob. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder signBlobSettings() { - return signBlobSettings; - } - - /** - * Returns the builder for the settings used for calls to signJwt. - * - * @deprecated This method is deprecated and will be removed in the next major version update. - */ - @Deprecated - public UnaryCallSettings.Builder signJwtSettings() { - return signJwtSettings; - } - - /** Returns the builder for the settings used for calls to getIamPolicy. */ - public UnaryCallSettings.Builder getIamPolicySettings() { - return getIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to setIamPolicy. */ - public UnaryCallSettings.Builder setIamPolicySettings() { - return setIamPolicySettings; - } - - /** Returns the builder for the settings used for calls to testIamPermissions. */ - public UnaryCallSettings.Builder - testIamPermissionsSettings() { - return testIamPermissionsSettings; - } - - /** Returns the builder for the settings used for calls to queryGrantableRoles. */ - public PagedCallSettings.Builder< - QueryGrantableRolesRequest, - QueryGrantableRolesResponse, - QueryGrantableRolesPagedResponse> - queryGrantableRolesSettings() { - return queryGrantableRolesSettings; - } - - /** Returns the builder for the settings used for calls to listRoles. */ - public PagedCallSettings.Builder - listRolesSettings() { - return listRolesSettings; - } - - /** Returns the builder for the settings used for calls to getRole. */ - public UnaryCallSettings.Builder getRoleSettings() { - return getRoleSettings; - } - - /** Returns the builder for the settings used for calls to createRole. */ - public UnaryCallSettings.Builder createRoleSettings() { - return createRoleSettings; - } - - /** Returns the builder for the settings used for calls to updateRole. */ - public UnaryCallSettings.Builder updateRoleSettings() { - return updateRoleSettings; - } - - /** Returns the builder for the settings used for calls to deleteRole. */ - public UnaryCallSettings.Builder deleteRoleSettings() { - return deleteRoleSettings; - } - - /** Returns the builder for the settings used for calls to undeleteRole. */ - public UnaryCallSettings.Builder undeleteRoleSettings() { - return undeleteRoleSettings; - } - - /** Returns the builder for the settings used for calls to queryTestablePermissions. */ - public PagedCallSettings.Builder< - QueryTestablePermissionsRequest, - QueryTestablePermissionsResponse, - QueryTestablePermissionsPagedResponse> - queryTestablePermissionsSettings() { - return queryTestablePermissionsSettings; - } - - /** Returns the builder for the settings used for calls to queryAuditableServices. */ - public UnaryCallSettings.Builder - queryAuditableServicesSettings() { - return queryAuditableServicesSettings; - } - - /** Returns the builder for the settings used for calls to lintPolicy. */ - public UnaryCallSettings.Builder lintPolicySettings() { - return lintPolicySettings; - } - - @Override - public IAMStubSettings build() throws IOException { - return new IAMStubSettings(this); - } - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/IAMClientTest.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/IAMClientTest.java deleted file mode 100644 index b7f5f0d4f58f..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/IAMClientTest.java +++ /dev/null @@ -1,2230 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1; - -import static com.google.cloud.iam.admin.v1.IAMClient.ListRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.ListServiceAccountsPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryGrantableRolesPagedResponse; -import static com.google.cloud.iam.admin.v1.IAMClient.QueryTestablePermissionsPagedResponse; - -import com.google.api.gax.core.NoCredentialsProvider; -import com.google.api.gax.grpc.GaxGrpcProperties; -import com.google.api.gax.grpc.testing.LocalChannelProvider; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.api.gax.grpc.testing.MockServiceHelper; -import com.google.api.gax.rpc.ApiClientHeaderProvider; -import com.google.api.gax.rpc.InvalidArgumentException; -import com.google.api.resourcenames.ResourceName; -import com.google.common.collect.Lists; -import com.google.iam.admin.v1.CreateRoleRequest; -import com.google.iam.admin.v1.CreateServiceAccountKeyRequest; -import com.google.iam.admin.v1.CreateServiceAccountRequest; -import com.google.iam.admin.v1.DeleteRoleRequest; -import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest; -import com.google.iam.admin.v1.DeleteServiceAccountRequest; -import com.google.iam.admin.v1.DisableServiceAccountKeyRequest; -import com.google.iam.admin.v1.DisableServiceAccountRequest; -import com.google.iam.admin.v1.EnableServiceAccountKeyRequest; -import com.google.iam.admin.v1.EnableServiceAccountRequest; -import com.google.iam.admin.v1.GetRoleRequest; -import com.google.iam.admin.v1.GetServiceAccountKeyRequest; -import com.google.iam.admin.v1.GetServiceAccountRequest; -import com.google.iam.admin.v1.KeyName; -import com.google.iam.admin.v1.LintPolicyRequest; -import com.google.iam.admin.v1.LintPolicyResponse; -import com.google.iam.admin.v1.LintResult; -import com.google.iam.admin.v1.ListRolesRequest; -import com.google.iam.admin.v1.ListRolesResponse; -import com.google.iam.admin.v1.ListServiceAccountKeysRequest; -import com.google.iam.admin.v1.ListServiceAccountKeysResponse; -import com.google.iam.admin.v1.ListServiceAccountsRequest; -import com.google.iam.admin.v1.ListServiceAccountsResponse; -import com.google.iam.admin.v1.PatchServiceAccountRequest; -import com.google.iam.admin.v1.Permission; -import com.google.iam.admin.v1.ProjectName; -import com.google.iam.admin.v1.QueryAuditableServicesRequest; -import com.google.iam.admin.v1.QueryAuditableServicesResponse; -import com.google.iam.admin.v1.QueryGrantableRolesRequest; -import com.google.iam.admin.v1.QueryGrantableRolesResponse; -import com.google.iam.admin.v1.QueryTestablePermissionsRequest; -import com.google.iam.admin.v1.QueryTestablePermissionsResponse; -import com.google.iam.admin.v1.Role; -import com.google.iam.admin.v1.RoleView; -import com.google.iam.admin.v1.ServiceAccount; -import com.google.iam.admin.v1.ServiceAccountKey; -import com.google.iam.admin.v1.ServiceAccountKeyAlgorithm; -import com.google.iam.admin.v1.ServiceAccountKeyOrigin; -import com.google.iam.admin.v1.ServiceAccountName; -import com.google.iam.admin.v1.ServiceAccountPrivateKeyType; -import com.google.iam.admin.v1.ServiceAccountPublicKeyType; -import com.google.iam.admin.v1.SignBlobRequest; -import com.google.iam.admin.v1.SignBlobResponse; -import com.google.iam.admin.v1.SignJwtRequest; -import com.google.iam.admin.v1.SignJwtResponse; -import com.google.iam.admin.v1.UndeleteRoleRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountResponse; -import com.google.iam.admin.v1.UpdateRoleRequest; -import com.google.iam.admin.v1.UploadServiceAccountKeyRequest; -import com.google.iam.v1.AuditConfig; -import com.google.iam.v1.Binding; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.ByteString; -import com.google.protobuf.Empty; -import com.google.protobuf.FieldMask; -import com.google.protobuf.Timestamp; -import io.grpc.StatusRuntimeException; -import java.io.IOException; -import java.util.ArrayList; -import java.util.Arrays; -import java.util.List; -import java.util.UUID; -import javax.annotation.Generated; -import org.junit.After; -import org.junit.AfterClass; -import org.junit.Assert; -import org.junit.Before; -import org.junit.BeforeClass; -import org.junit.Test; - -@Generated("by gapic-generator-java") -public class IAMClientTest { - private static MockIAM mockIAM; - private static MockServiceHelper mockServiceHelper; - private LocalChannelProvider channelProvider; - private IAMClient client; - - @BeforeClass - public static void startStaticServer() { - mockIAM = new MockIAM(); - mockServiceHelper = - new MockServiceHelper( - UUID.randomUUID().toString(), Arrays.asList(mockIAM)); - mockServiceHelper.start(); - } - - @AfterClass - public static void stopServer() { - mockServiceHelper.stop(); - } - - @Before - public void setUp() throws IOException { - mockServiceHelper.reset(); - channelProvider = mockServiceHelper.createChannelProvider(); - IAMSettings settings = - IAMSettings.newBuilder() - .setTransportChannelProvider(channelProvider) - .setCredentialsProvider(NoCredentialsProvider.create()) - .build(); - client = IAMClient.create(settings); - } - - @After - public void tearDown() throws Exception { - client.close(); - } - - @Test - public void listServiceAccountsTest() throws Exception { - ServiceAccount responsesElement = ServiceAccount.newBuilder().build(); - ListServiceAccountsResponse expectedResponse = - ListServiceAccountsResponse.newBuilder() - .setNextPageToken("") - .addAllAccounts(Arrays.asList(responsesElement)) - .build(); - mockIAM.addResponse(expectedResponse); - - ProjectName name = ProjectName.of("[PROJECT]"); - - ListServiceAccountsPagedResponse pagedListResponse = client.listServiceAccounts(name); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountsList().get(0), resources.get(0)); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListServiceAccountsRequest actualRequest = ((ListServiceAccountsRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listServiceAccountsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ProjectName name = ProjectName.of("[PROJECT]"); - client.listServiceAccounts(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listServiceAccountsTest2() throws Exception { - ServiceAccount responsesElement = ServiceAccount.newBuilder().build(); - ListServiceAccountsResponse expectedResponse = - ListServiceAccountsResponse.newBuilder() - .setNextPageToken("") - .addAllAccounts(Arrays.asList(responsesElement)) - .build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - - ListServiceAccountsPagedResponse pagedListResponse = client.listServiceAccounts(name); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getAccountsList().get(0), resources.get(0)); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListServiceAccountsRequest actualRequest = ((ListServiceAccountsRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listServiceAccountsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - client.listServiceAccounts(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getServiceAccountTest() throws Exception { - ServiceAccount expectedResponse = - ServiceAccount.newBuilder() - .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) - .setProjectId("projectId-894832108") - .setUniqueId("uniqueId-294460212") - .setEmail("email96619420") - .setDisplayName("displayName1714148973") - .setEtag(ByteString.EMPTY) - .setDescription("description-1724546052") - .setOauth2ClientId("oauth2ClientId-1210797087") - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - - ServiceAccount actualResponse = client.getServiceAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetServiceAccountRequest actualRequest = ((GetServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getServiceAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - client.getServiceAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getServiceAccountTest2() throws Exception { - ServiceAccount expectedResponse = - ServiceAccount.newBuilder() - .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) - .setProjectId("projectId-894832108") - .setUniqueId("uniqueId-294460212") - .setEmail("email96619420") - .setDisplayName("displayName1714148973") - .setEtag(ByteString.EMPTY) - .setDescription("description-1724546052") - .setOauth2ClientId("oauth2ClientId-1210797087") - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - - ServiceAccount actualResponse = client.getServiceAccount(name); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetServiceAccountRequest actualRequest = ((GetServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getServiceAccountExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - client.getServiceAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createServiceAccountTest() throws Exception { - ServiceAccount expectedResponse = - ServiceAccount.newBuilder() - .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) - .setProjectId("projectId-894832108") - .setUniqueId("uniqueId-294460212") - .setEmail("email96619420") - .setDisplayName("displayName1714148973") - .setEtag(ByteString.EMPTY) - .setDescription("description-1724546052") - .setOauth2ClientId("oauth2ClientId-1210797087") - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - ProjectName name = ProjectName.of("[PROJECT]"); - String accountId = "accountId-1827029976"; - ServiceAccount serviceAccount = ServiceAccount.newBuilder().build(); - - ServiceAccount actualResponse = client.createServiceAccount(name, accountId, serviceAccount); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateServiceAccountRequest actualRequest = - ((CreateServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(accountId, actualRequest.getAccountId()); - Assert.assertEquals(serviceAccount, actualRequest.getServiceAccount()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createServiceAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ProjectName name = ProjectName.of("[PROJECT]"); - String accountId = "accountId-1827029976"; - ServiceAccount serviceAccount = ServiceAccount.newBuilder().build(); - client.createServiceAccount(name, accountId, serviceAccount); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createServiceAccountTest2() throws Exception { - ServiceAccount expectedResponse = - ServiceAccount.newBuilder() - .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) - .setProjectId("projectId-894832108") - .setUniqueId("uniqueId-294460212") - .setEmail("email96619420") - .setDisplayName("displayName1714148973") - .setEtag(ByteString.EMPTY) - .setDescription("description-1724546052") - .setOauth2ClientId("oauth2ClientId-1210797087") - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - String accountId = "accountId-1827029976"; - ServiceAccount serviceAccount = ServiceAccount.newBuilder().build(); - - ServiceAccount actualResponse = client.createServiceAccount(name, accountId, serviceAccount); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateServiceAccountRequest actualRequest = - ((CreateServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(accountId, actualRequest.getAccountId()); - Assert.assertEquals(serviceAccount, actualRequest.getServiceAccount()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createServiceAccountExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - String accountId = "accountId-1827029976"; - ServiceAccount serviceAccount = ServiceAccount.newBuilder().build(); - client.createServiceAccount(name, accountId, serviceAccount); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateServiceAccountTest() throws Exception { - ServiceAccount expectedResponse = - ServiceAccount.newBuilder() - .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) - .setProjectId("projectId-894832108") - .setUniqueId("uniqueId-294460212") - .setEmail("email96619420") - .setDisplayName("displayName1714148973") - .setEtag(ByteString.EMPTY) - .setDescription("description-1724546052") - .setOauth2ClientId("oauth2ClientId-1210797087") - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - ServiceAccount request = - ServiceAccount.newBuilder() - .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) - .setProjectId("projectId-894832108") - .setUniqueId("uniqueId-294460212") - .setEmail("email96619420") - .setDisplayName("displayName1714148973") - .setEtag(ByteString.EMPTY) - .setDescription("description-1724546052") - .setOauth2ClientId("oauth2ClientId-1210797087") - .setDisabled(true) - .build(); - - ServiceAccount actualResponse = client.updateServiceAccount(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ServiceAccount actualRequest = ((ServiceAccount) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getProjectId(), actualRequest.getProjectId()); - Assert.assertEquals(request.getUniqueId(), actualRequest.getUniqueId()); - Assert.assertEquals(request.getEmail(), actualRequest.getEmail()); - Assert.assertEquals(request.getDisplayName(), actualRequest.getDisplayName()); - Assert.assertEquals(request.getEtag(), actualRequest.getEtag()); - Assert.assertEquals(request.getDescription(), actualRequest.getDescription()); - Assert.assertEquals(request.getOauth2ClientId(), actualRequest.getOauth2ClientId()); - Assert.assertEquals(request.getDisabled(), actualRequest.getDisabled()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateServiceAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ServiceAccount request = - ServiceAccount.newBuilder() - .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) - .setProjectId("projectId-894832108") - .setUniqueId("uniqueId-294460212") - .setEmail("email96619420") - .setDisplayName("displayName1714148973") - .setEtag(ByteString.EMPTY) - .setDescription("description-1724546052") - .setOauth2ClientId("oauth2ClientId-1210797087") - .setDisabled(true) - .build(); - client.updateServiceAccount(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void patchServiceAccountTest() throws Exception { - ServiceAccount expectedResponse = - ServiceAccount.newBuilder() - .setName(ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]").toString()) - .setProjectId("projectId-894832108") - .setUniqueId("uniqueId-294460212") - .setEmail("email96619420") - .setDisplayName("displayName1714148973") - .setEtag(ByteString.EMPTY) - .setDescription("description-1724546052") - .setOauth2ClientId("oauth2ClientId-1210797087") - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - PatchServiceAccountRequest request = - PatchServiceAccountRequest.newBuilder() - .setServiceAccount(ServiceAccount.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - ServiceAccount actualResponse = client.patchServiceAccount(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - PatchServiceAccountRequest actualRequest = ((PatchServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getServiceAccount(), actualRequest.getServiceAccount()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void patchServiceAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - PatchServiceAccountRequest request = - PatchServiceAccountRequest.newBuilder() - .setServiceAccount(ServiceAccount.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.patchServiceAccount(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteServiceAccountTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - - client.deleteServiceAccount(name); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteServiceAccountRequest actualRequest = - ((DeleteServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteServiceAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - client.deleteServiceAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteServiceAccountTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteServiceAccount(name); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteServiceAccountRequest actualRequest = - ((DeleteServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteServiceAccountExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - client.deleteServiceAccount(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void undeleteServiceAccountTest() throws Exception { - UndeleteServiceAccountResponse expectedResponse = - UndeleteServiceAccountResponse.newBuilder() - .setRestoredAccount(ServiceAccount.newBuilder().build()) - .build(); - mockIAM.addResponse(expectedResponse); - - UndeleteServiceAccountRequest request = - UndeleteServiceAccountRequest.newBuilder().setName("name3373707").build(); - - UndeleteServiceAccountResponse actualResponse = client.undeleteServiceAccount(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UndeleteServiceAccountRequest actualRequest = - ((UndeleteServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void undeleteServiceAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - UndeleteServiceAccountRequest request = - UndeleteServiceAccountRequest.newBuilder().setName("name3373707").build(); - client.undeleteServiceAccount(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void enableServiceAccountTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - EnableServiceAccountRequest request = - EnableServiceAccountRequest.newBuilder().setName("name3373707").build(); - - client.enableServiceAccount(request); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - EnableServiceAccountRequest actualRequest = - ((EnableServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void enableServiceAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - EnableServiceAccountRequest request = - EnableServiceAccountRequest.newBuilder().setName("name3373707").build(); - client.enableServiceAccount(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void disableServiceAccountTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - DisableServiceAccountRequest request = - DisableServiceAccountRequest.newBuilder().setName("name3373707").build(); - - client.disableServiceAccount(request); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DisableServiceAccountRequest actualRequest = - ((DisableServiceAccountRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void disableServiceAccountExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - DisableServiceAccountRequest request = - DisableServiceAccountRequest.newBuilder().setName("name3373707").build(); - client.disableServiceAccount(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listServiceAccountKeysTest() throws Exception { - ListServiceAccountKeysResponse expectedResponse = - ListServiceAccountKeysResponse.newBuilder() - .addAllKeys(new ArrayList()) - .build(); - mockIAM.addResponse(expectedResponse); - - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - List keyTypes = new ArrayList<>(); - - ListServiceAccountKeysResponse actualResponse = client.listServiceAccountKeys(name, keyTypes); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListServiceAccountKeysRequest actualRequest = - ((ListServiceAccountKeysRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(keyTypes, actualRequest.getKeyTypesList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listServiceAccountKeysExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - List keyTypes = new ArrayList<>(); - client.listServiceAccountKeys(name, keyTypes); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listServiceAccountKeysTest2() throws Exception { - ListServiceAccountKeysResponse expectedResponse = - ListServiceAccountKeysResponse.newBuilder() - .addAllKeys(new ArrayList()) - .build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - List keyTypes = new ArrayList<>(); - - ListServiceAccountKeysResponse actualResponse = client.listServiceAccountKeys(name, keyTypes); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListServiceAccountKeysRequest actualRequest = - ((ListServiceAccountKeysRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(keyTypes, actualRequest.getKeyTypesList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listServiceAccountKeysExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - List keyTypes = new ArrayList<>(); - client.listServiceAccountKeys(name, keyTypes); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getServiceAccountKeyTest() throws Exception { - ServiceAccountKey expectedResponse = - ServiceAccountKey.newBuilder() - .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString()) - .setPrivateKeyType(ServiceAccountPrivateKeyType.forNumber(0)) - .setKeyAlgorithm(ServiceAccountKeyAlgorithm.forNumber(0)) - .setPrivateKeyData(ByteString.EMPTY) - .setPublicKeyData(ByteString.EMPTY) - .setValidAfterTime(Timestamp.newBuilder().build()) - .setValidBeforeTime(Timestamp.newBuilder().build()) - .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0)) - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); - ServiceAccountPublicKeyType publicKeyType = ServiceAccountPublicKeyType.forNumber(0); - - ServiceAccountKey actualResponse = client.getServiceAccountKey(name, publicKeyType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetServiceAccountKeyRequest actualRequest = - ((GetServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(publicKeyType, actualRequest.getPublicKeyType()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getServiceAccountKeyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); - ServiceAccountPublicKeyType publicKeyType = ServiceAccountPublicKeyType.forNumber(0); - client.getServiceAccountKey(name, publicKeyType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getServiceAccountKeyTest2() throws Exception { - ServiceAccountKey expectedResponse = - ServiceAccountKey.newBuilder() - .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString()) - .setPrivateKeyType(ServiceAccountPrivateKeyType.forNumber(0)) - .setKeyAlgorithm(ServiceAccountKeyAlgorithm.forNumber(0)) - .setPrivateKeyData(ByteString.EMPTY) - .setPublicKeyData(ByteString.EMPTY) - .setValidAfterTime(Timestamp.newBuilder().build()) - .setValidBeforeTime(Timestamp.newBuilder().build()) - .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0)) - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - ServiceAccountPublicKeyType publicKeyType = ServiceAccountPublicKeyType.forNumber(0); - - ServiceAccountKey actualResponse = client.getServiceAccountKey(name, publicKeyType); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetServiceAccountKeyRequest actualRequest = - ((GetServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(publicKeyType, actualRequest.getPublicKeyType()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getServiceAccountKeyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - ServiceAccountPublicKeyType publicKeyType = ServiceAccountPublicKeyType.forNumber(0); - client.getServiceAccountKey(name, publicKeyType); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createServiceAccountKeyTest() throws Exception { - ServiceAccountKey expectedResponse = - ServiceAccountKey.newBuilder() - .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString()) - .setPrivateKeyType(ServiceAccountPrivateKeyType.forNumber(0)) - .setKeyAlgorithm(ServiceAccountKeyAlgorithm.forNumber(0)) - .setPrivateKeyData(ByteString.EMPTY) - .setPublicKeyData(ByteString.EMPTY) - .setValidAfterTime(Timestamp.newBuilder().build()) - .setValidBeforeTime(Timestamp.newBuilder().build()) - .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0)) - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - ServiceAccountPrivateKeyType privateKeyType = ServiceAccountPrivateKeyType.forNumber(0); - ServiceAccountKeyAlgorithm keyAlgorithm = ServiceAccountKeyAlgorithm.forNumber(0); - - ServiceAccountKey actualResponse = - client.createServiceAccountKey(name, privateKeyType, keyAlgorithm); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateServiceAccountKeyRequest actualRequest = - ((CreateServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(privateKeyType, actualRequest.getPrivateKeyType()); - Assert.assertEquals(keyAlgorithm, actualRequest.getKeyAlgorithm()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createServiceAccountKeyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - ServiceAccountPrivateKeyType privateKeyType = ServiceAccountPrivateKeyType.forNumber(0); - ServiceAccountKeyAlgorithm keyAlgorithm = ServiceAccountKeyAlgorithm.forNumber(0); - client.createServiceAccountKey(name, privateKeyType, keyAlgorithm); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createServiceAccountKeyTest2() throws Exception { - ServiceAccountKey expectedResponse = - ServiceAccountKey.newBuilder() - .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString()) - .setPrivateKeyType(ServiceAccountPrivateKeyType.forNumber(0)) - .setKeyAlgorithm(ServiceAccountKeyAlgorithm.forNumber(0)) - .setPrivateKeyData(ByteString.EMPTY) - .setPublicKeyData(ByteString.EMPTY) - .setValidAfterTime(Timestamp.newBuilder().build()) - .setValidBeforeTime(Timestamp.newBuilder().build()) - .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0)) - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - ServiceAccountPrivateKeyType privateKeyType = ServiceAccountPrivateKeyType.forNumber(0); - ServiceAccountKeyAlgorithm keyAlgorithm = ServiceAccountKeyAlgorithm.forNumber(0); - - ServiceAccountKey actualResponse = - client.createServiceAccountKey(name, privateKeyType, keyAlgorithm); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateServiceAccountKeyRequest actualRequest = - ((CreateServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(privateKeyType, actualRequest.getPrivateKeyType()); - Assert.assertEquals(keyAlgorithm, actualRequest.getKeyAlgorithm()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createServiceAccountKeyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - ServiceAccountPrivateKeyType privateKeyType = ServiceAccountPrivateKeyType.forNumber(0); - ServiceAccountKeyAlgorithm keyAlgorithm = ServiceAccountKeyAlgorithm.forNumber(0); - client.createServiceAccountKey(name, privateKeyType, keyAlgorithm); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void uploadServiceAccountKeyTest() throws Exception { - ServiceAccountKey expectedResponse = - ServiceAccountKey.newBuilder() - .setName(KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]").toString()) - .setPrivateKeyType(ServiceAccountPrivateKeyType.forNumber(0)) - .setKeyAlgorithm(ServiceAccountKeyAlgorithm.forNumber(0)) - .setPrivateKeyData(ByteString.EMPTY) - .setPublicKeyData(ByteString.EMPTY) - .setValidAfterTime(Timestamp.newBuilder().build()) - .setValidBeforeTime(Timestamp.newBuilder().build()) - .setKeyOrigin(ServiceAccountKeyOrigin.forNumber(0)) - .setDisabled(true) - .build(); - mockIAM.addResponse(expectedResponse); - - UploadServiceAccountKeyRequest request = - UploadServiceAccountKeyRequest.newBuilder() - .setName("name3373707") - .setPublicKeyData(ByteString.EMPTY) - .build(); - - ServiceAccountKey actualResponse = client.uploadServiceAccountKey(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UploadServiceAccountKeyRequest actualRequest = - ((UploadServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getPublicKeyData(), actualRequest.getPublicKeyData()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void uploadServiceAccountKeyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - UploadServiceAccountKeyRequest request = - UploadServiceAccountKeyRequest.newBuilder() - .setName("name3373707") - .setPublicKeyData(ByteString.EMPTY) - .build(); - client.uploadServiceAccountKey(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteServiceAccountKeyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); - - client.deleteServiceAccountKey(name); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteServiceAccountKeyRequest actualRequest = - ((DeleteServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteServiceAccountKeyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); - client.deleteServiceAccountKey(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteServiceAccountKeyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - - client.deleteServiceAccountKey(name); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteServiceAccountKeyRequest actualRequest = - ((DeleteServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteServiceAccountKeyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - client.deleteServiceAccountKey(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void disableServiceAccountKeyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); - - client.disableServiceAccountKey(name); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DisableServiceAccountKeyRequest actualRequest = - ((DisableServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void disableServiceAccountKeyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); - client.disableServiceAccountKey(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void disableServiceAccountKeyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - - client.disableServiceAccountKey(name); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DisableServiceAccountKeyRequest actualRequest = - ((DisableServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void disableServiceAccountKeyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - client.disableServiceAccountKey(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void enableServiceAccountKeyTest() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); - - client.enableServiceAccountKey(name); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - EnableServiceAccountKeyRequest actualRequest = - ((EnableServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void enableServiceAccountKeyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - KeyName name = KeyName.of("[PROJECT]", "[SERVICE_ACCOUNT]", "[KEY]"); - client.enableServiceAccountKey(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void enableServiceAccountKeyTest2() throws Exception { - Empty expectedResponse = Empty.newBuilder().build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - - client.enableServiceAccountKey(name); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - EnableServiceAccountKeyRequest actualRequest = - ((EnableServiceAccountKeyRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void enableServiceAccountKeyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - client.enableServiceAccountKey(name); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void signBlobTest() throws Exception { - SignBlobResponse expectedResponse = - SignBlobResponse.newBuilder() - .setKeyId("keyId101944282") - .setSignature(ByteString.EMPTY) - .build(); - mockIAM.addResponse(expectedResponse); - - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - ByteString bytesToSign = ByteString.EMPTY; - - SignBlobResponse actualResponse = client.signBlob(name, bytesToSign); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SignBlobRequest actualRequest = ((SignBlobRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(bytesToSign, actualRequest.getBytesToSign()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void signBlobExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - ByteString bytesToSign = ByteString.EMPTY; - client.signBlob(name, bytesToSign); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void signBlobTest2() throws Exception { - SignBlobResponse expectedResponse = - SignBlobResponse.newBuilder() - .setKeyId("keyId101944282") - .setSignature(ByteString.EMPTY) - .build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - ByteString bytesToSign = ByteString.EMPTY; - - SignBlobResponse actualResponse = client.signBlob(name, bytesToSign); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SignBlobRequest actualRequest = ((SignBlobRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(bytesToSign, actualRequest.getBytesToSign()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void signBlobExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - ByteString bytesToSign = ByteString.EMPTY; - client.signBlob(name, bytesToSign); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void signJwtTest() throws Exception { - SignJwtResponse expectedResponse = - SignJwtResponse.newBuilder() - .setKeyId("keyId101944282") - .setSignedJwt("signedJwt1076760587") - .build(); - mockIAM.addResponse(expectedResponse); - - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - String payload = "payload-786701938"; - - SignJwtResponse actualResponse = client.signJwt(name, payload); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SignJwtRequest actualRequest = ((SignJwtRequest) actualRequests.get(0)); - - Assert.assertEquals(name.toString(), actualRequest.getName()); - Assert.assertEquals(payload, actualRequest.getPayload()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void signJwtExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ServiceAccountName name = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - String payload = "payload-786701938"; - client.signJwt(name, payload); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void signJwtTest2() throws Exception { - SignJwtResponse expectedResponse = - SignJwtResponse.newBuilder() - .setKeyId("keyId101944282") - .setSignedJwt("signedJwt1076760587") - .build(); - mockIAM.addResponse(expectedResponse); - - String name = "name3373707"; - String payload = "payload-786701938"; - - SignJwtResponse actualResponse = client.signJwt(name, payload); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SignJwtRequest actualRequest = ((SignJwtRequest) actualRequests.get(0)); - - Assert.assertEquals(name, actualRequest.getName()); - Assert.assertEquals(payload, actualRequest.getPayload()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void signJwtExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String name = "name3373707"; - String payload = "payload-786701938"; - client.signJwt(name, payload); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAM.addResponse(expectedResponse); - - ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAM.addResponse(expectedResponse); - - String resource = "resource-341064690"; - - Policy actualResponse = client.getIamPolicy(resource); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetIamPolicyRequest actualRequest = ((GetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String resource = "resource-341064690"; - client.getIamPolicy(resource); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAM.addResponse(expectedResponse); - - ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void setIamPolicyTest2() throws Exception { - Policy expectedResponse = - Policy.newBuilder() - .setVersion(351608024) - .addAllBindings(new ArrayList()) - .addAllAuditConfigs(new ArrayList()) - .setEtag(ByteString.EMPTY) - .build(); - mockIAM.addResponse(expectedResponse); - - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - - Policy actualResponse = client.setIamPolicy(resource, policy); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - SetIamPolicyRequest actualRequest = ((SetIamPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(policy, actualRequest.getPolicy()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void setIamPolicyExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String resource = "resource-341064690"; - Policy policy = Policy.newBuilder().build(); - client.setIamPolicy(resource, policy); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockIAM.addResponse(expectedResponse); - - ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(resource.toString(), actualRequest.getResource()); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ResourceName resource = ServiceAccountName.of("[PROJECT]", "[SERVICE_ACCOUNT]"); - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void testIamPermissionsTest2() throws Exception { - TestIamPermissionsResponse expectedResponse = - TestIamPermissionsResponse.newBuilder().addAllPermissions(new ArrayList()).build(); - mockIAM.addResponse(expectedResponse); - - String resource = "resource-341064690"; - List permissions = new ArrayList<>(); - - TestIamPermissionsResponse actualResponse = client.testIamPermissions(resource, permissions); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - TestIamPermissionsRequest actualRequest = ((TestIamPermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(resource, actualRequest.getResource()); - Assert.assertEquals(permissions, actualRequest.getPermissionsList()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void testIamPermissionsExceptionTest2() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String resource = "resource-341064690"; - List permissions = new ArrayList<>(); - client.testIamPermissions(resource, permissions); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryGrantableRolesTest() throws Exception { - Role responsesElement = Role.newBuilder().build(); - QueryGrantableRolesResponse expectedResponse = - QueryGrantableRolesResponse.newBuilder() - .setNextPageToken("") - .addAllRoles(Arrays.asList(responsesElement)) - .build(); - mockIAM.addResponse(expectedResponse); - - String fullResourceName = "fullResourceName-853732376"; - - QueryGrantableRolesPagedResponse pagedListResponse = - client.queryGrantableRoles(fullResourceName); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRolesList().get(0), resources.get(0)); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - QueryGrantableRolesRequest actualRequest = ((QueryGrantableRolesRequest) actualRequests.get(0)); - - Assert.assertEquals(fullResourceName, actualRequest.getFullResourceName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void queryGrantableRolesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - String fullResourceName = "fullResourceName-853732376"; - client.queryGrantableRoles(fullResourceName); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void listRolesTest() throws Exception { - Role responsesElement = Role.newBuilder().build(); - ListRolesResponse expectedResponse = - ListRolesResponse.newBuilder() - .setNextPageToken("") - .addAllRoles(Arrays.asList(responsesElement)) - .build(); - mockIAM.addResponse(expectedResponse); - - ListRolesRequest request = - ListRolesRequest.newBuilder() - .setParent(ProjectName.of("[PROJECT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setView(RoleView.forNumber(0)) - .setShowDeleted(true) - .build(); - - ListRolesPagedResponse pagedListResponse = client.listRoles(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getRolesList().get(0), resources.get(0)); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - ListRolesRequest actualRequest = ((ListRolesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertEquals(request.getView(), actualRequest.getView()); - Assert.assertEquals(request.getShowDeleted(), actualRequest.getShowDeleted()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void listRolesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - ListRolesRequest request = - ListRolesRequest.newBuilder() - .setParent(ProjectName.of("[PROJECT]").toString()) - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .setView(RoleView.forNumber(0)) - .setShowDeleted(true) - .build(); - client.listRoles(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void getRoleTest() throws Exception { - Role expectedResponse = - Role.newBuilder() - .setName("name3373707") - .setTitle("title110371416") - .setDescription("description-1724546052") - .addAllIncludedPermissions(new ArrayList()) - .setEtag(ByteString.EMPTY) - .setDeleted(true) - .build(); - mockIAM.addResponse(expectedResponse); - - GetRoleRequest request = - GetRoleRequest.newBuilder().setName("GetRoleRequest84528163".toString()).build(); - - Role actualResponse = client.getRole(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - GetRoleRequest actualRequest = ((GetRoleRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void getRoleExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - GetRoleRequest request = - GetRoleRequest.newBuilder().setName("GetRoleRequest84528163".toString()).build(); - client.getRole(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void createRoleTest() throws Exception { - Role expectedResponse = - Role.newBuilder() - .setName("name3373707") - .setTitle("title110371416") - .setDescription("description-1724546052") - .addAllIncludedPermissions(new ArrayList()) - .setEtag(ByteString.EMPTY) - .setDeleted(true) - .build(); - mockIAM.addResponse(expectedResponse); - - CreateRoleRequest request = - CreateRoleRequest.newBuilder() - .setParent(ProjectName.of("[PROJECT]").toString()) - .setRoleId("roleId-925416399") - .setRole(Role.newBuilder().build()) - .build(); - - Role actualResponse = client.createRole(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - CreateRoleRequest actualRequest = ((CreateRoleRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getParent(), actualRequest.getParent()); - Assert.assertEquals(request.getRoleId(), actualRequest.getRoleId()); - Assert.assertEquals(request.getRole(), actualRequest.getRole()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void createRoleExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - CreateRoleRequest request = - CreateRoleRequest.newBuilder() - .setParent(ProjectName.of("[PROJECT]").toString()) - .setRoleId("roleId-925416399") - .setRole(Role.newBuilder().build()) - .build(); - client.createRole(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void updateRoleTest() throws Exception { - Role expectedResponse = - Role.newBuilder() - .setName("name3373707") - .setTitle("title110371416") - .setDescription("description-1724546052") - .addAllIncludedPermissions(new ArrayList()) - .setEtag(ByteString.EMPTY) - .setDeleted(true) - .build(); - mockIAM.addResponse(expectedResponse); - - UpdateRoleRequest request = - UpdateRoleRequest.newBuilder() - .setName("UpdateRoleRequest230834320".toString()) - .setRole(Role.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - - Role actualResponse = client.updateRole(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UpdateRoleRequest actualRequest = ((UpdateRoleRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getRole(), actualRequest.getRole()); - Assert.assertEquals(request.getUpdateMask(), actualRequest.getUpdateMask()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void updateRoleExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - UpdateRoleRequest request = - UpdateRoleRequest.newBuilder() - .setName("UpdateRoleRequest230834320".toString()) - .setRole(Role.newBuilder().build()) - .setUpdateMask(FieldMask.newBuilder().build()) - .build(); - client.updateRole(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void deleteRoleTest() throws Exception { - Role expectedResponse = - Role.newBuilder() - .setName("name3373707") - .setTitle("title110371416") - .setDescription("description-1724546052") - .addAllIncludedPermissions(new ArrayList()) - .setEtag(ByteString.EMPTY) - .setDeleted(true) - .build(); - mockIAM.addResponse(expectedResponse); - - DeleteRoleRequest request = - DeleteRoleRequest.newBuilder() - .setName("DeleteRoleRequest1468559982".toString()) - .setEtag(ByteString.EMPTY) - .build(); - - Role actualResponse = client.deleteRole(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - DeleteRoleRequest actualRequest = ((DeleteRoleRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getEtag(), actualRequest.getEtag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void deleteRoleExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - DeleteRoleRequest request = - DeleteRoleRequest.newBuilder() - .setName("DeleteRoleRequest1468559982".toString()) - .setEtag(ByteString.EMPTY) - .build(); - client.deleteRole(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void undeleteRoleTest() throws Exception { - Role expectedResponse = - Role.newBuilder() - .setName("name3373707") - .setTitle("title110371416") - .setDescription("description-1724546052") - .addAllIncludedPermissions(new ArrayList()) - .setEtag(ByteString.EMPTY) - .setDeleted(true) - .build(); - mockIAM.addResponse(expectedResponse); - - UndeleteRoleRequest request = - UndeleteRoleRequest.newBuilder() - .setName("UndeleteRoleRequest755355893".toString()) - .setEtag(ByteString.EMPTY) - .build(); - - Role actualResponse = client.undeleteRole(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - UndeleteRoleRequest actualRequest = ((UndeleteRoleRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getName(), actualRequest.getName()); - Assert.assertEquals(request.getEtag(), actualRequest.getEtag()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void undeleteRoleExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - UndeleteRoleRequest request = - UndeleteRoleRequest.newBuilder() - .setName("UndeleteRoleRequest755355893".toString()) - .setEtag(ByteString.EMPTY) - .build(); - client.undeleteRole(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryTestablePermissionsTest() throws Exception { - Permission responsesElement = Permission.newBuilder().build(); - QueryTestablePermissionsResponse expectedResponse = - QueryTestablePermissionsResponse.newBuilder() - .setNextPageToken("") - .addAllPermissions(Arrays.asList(responsesElement)) - .build(); - mockIAM.addResponse(expectedResponse); - - QueryTestablePermissionsRequest request = - QueryTestablePermissionsRequest.newBuilder() - .setFullResourceName("fullResourceName-853732376") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - - QueryTestablePermissionsPagedResponse pagedListResponse = - client.queryTestablePermissions(request); - - List resources = Lists.newArrayList(pagedListResponse.iterateAll()); - - Assert.assertEquals(1, resources.size()); - Assert.assertEquals(expectedResponse.getPermissionsList().get(0), resources.get(0)); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - QueryTestablePermissionsRequest actualRequest = - ((QueryTestablePermissionsRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getFullResourceName(), actualRequest.getFullResourceName()); - Assert.assertEquals(request.getPageSize(), actualRequest.getPageSize()); - Assert.assertEquals(request.getPageToken(), actualRequest.getPageToken()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void queryTestablePermissionsExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - QueryTestablePermissionsRequest request = - QueryTestablePermissionsRequest.newBuilder() - .setFullResourceName("fullResourceName-853732376") - .setPageSize(883849137) - .setPageToken("pageToken873572522") - .build(); - client.queryTestablePermissions(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void queryAuditableServicesTest() throws Exception { - QueryAuditableServicesResponse expectedResponse = - QueryAuditableServicesResponse.newBuilder() - .addAllServices(new ArrayList()) - .build(); - mockIAM.addResponse(expectedResponse); - - QueryAuditableServicesRequest request = - QueryAuditableServicesRequest.newBuilder() - .setFullResourceName("fullResourceName-853732376") - .build(); - - QueryAuditableServicesResponse actualResponse = client.queryAuditableServices(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - QueryAuditableServicesRequest actualRequest = - ((QueryAuditableServicesRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getFullResourceName(), actualRequest.getFullResourceName()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void queryAuditableServicesExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - QueryAuditableServicesRequest request = - QueryAuditableServicesRequest.newBuilder() - .setFullResourceName("fullResourceName-853732376") - .build(); - client.queryAuditableServices(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } - - @Test - public void lintPolicyTest() throws Exception { - LintPolicyResponse expectedResponse = - LintPolicyResponse.newBuilder().addAllLintResults(new ArrayList()).build(); - mockIAM.addResponse(expectedResponse); - - LintPolicyRequest request = - LintPolicyRequest.newBuilder().setFullResourceName("fullResourceName-853732376").build(); - - LintPolicyResponse actualResponse = client.lintPolicy(request); - Assert.assertEquals(expectedResponse, actualResponse); - - List actualRequests = mockIAM.getRequests(); - Assert.assertEquals(1, actualRequests.size()); - LintPolicyRequest actualRequest = ((LintPolicyRequest) actualRequests.get(0)); - - Assert.assertEquals(request.getFullResourceName(), actualRequest.getFullResourceName()); - Assert.assertEquals(request.getCondition(), actualRequest.getCondition()); - Assert.assertTrue( - channelProvider.isHeaderSent( - ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), - GaxGrpcProperties.getDefaultApiClientHeaderPattern())); - } - - @Test - public void lintPolicyExceptionTest() throws Exception { - StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); - mockIAM.addException(exception); - - try { - LintPolicyRequest request = - LintPolicyRequest.newBuilder().setFullResourceName("fullResourceName-853732376").build(); - client.lintPolicy(request); - Assert.fail("No exception raised"); - } catch (InvalidArgumentException e) { - // Expected exception. - } - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAM.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAM.java deleted file mode 100644 index 9fb58bc30239..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAM.java +++ /dev/null @@ -1,59 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1; - -import com.google.api.core.BetaApi; -import com.google.api.gax.grpc.testing.MockGrpcService; -import com.google.protobuf.AbstractMessage; -import io.grpc.ServerServiceDefinition; -import java.util.List; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockIAM implements MockGrpcService { - private final MockIAMImpl serviceImpl; - - public MockIAM() { - serviceImpl = new MockIAMImpl(); - } - - @Override - public List getRequests() { - return serviceImpl.getRequests(); - } - - @Override - public void addResponse(AbstractMessage response) { - serviceImpl.addResponse(response); - } - - @Override - public void addException(Exception exception) { - serviceImpl.addException(exception); - } - - @Override - public ServerServiceDefinition getServiceDefinition() { - return serviceImpl.bindService(); - } - - @Override - public void reset() { - serviceImpl.reset(); - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAMImpl.java b/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAMImpl.java deleted file mode 100644 index 5cf0bc5ee6e9..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/google-iam-admin/src/test/java/com/google/cloud/iam/admin/v1/MockIAMImpl.java +++ /dev/null @@ -1,755 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.cloud.iam.admin.v1; - -import com.google.api.core.BetaApi; -import com.google.iam.admin.v1.CreateRoleRequest; -import com.google.iam.admin.v1.CreateServiceAccountKeyRequest; -import com.google.iam.admin.v1.CreateServiceAccountRequest; -import com.google.iam.admin.v1.DeleteRoleRequest; -import com.google.iam.admin.v1.DeleteServiceAccountKeyRequest; -import com.google.iam.admin.v1.DeleteServiceAccountRequest; -import com.google.iam.admin.v1.DisableServiceAccountKeyRequest; -import com.google.iam.admin.v1.DisableServiceAccountRequest; -import com.google.iam.admin.v1.EnableServiceAccountKeyRequest; -import com.google.iam.admin.v1.EnableServiceAccountRequest; -import com.google.iam.admin.v1.GetRoleRequest; -import com.google.iam.admin.v1.GetServiceAccountKeyRequest; -import com.google.iam.admin.v1.GetServiceAccountRequest; -import com.google.iam.admin.v1.IAMGrpc.IAMImplBase; -import com.google.iam.admin.v1.LintPolicyRequest; -import com.google.iam.admin.v1.LintPolicyResponse; -import com.google.iam.admin.v1.ListRolesRequest; -import com.google.iam.admin.v1.ListRolesResponse; -import com.google.iam.admin.v1.ListServiceAccountKeysRequest; -import com.google.iam.admin.v1.ListServiceAccountKeysResponse; -import com.google.iam.admin.v1.ListServiceAccountsRequest; -import com.google.iam.admin.v1.ListServiceAccountsResponse; -import com.google.iam.admin.v1.PatchServiceAccountRequest; -import com.google.iam.admin.v1.QueryAuditableServicesRequest; -import com.google.iam.admin.v1.QueryAuditableServicesResponse; -import com.google.iam.admin.v1.QueryGrantableRolesRequest; -import com.google.iam.admin.v1.QueryGrantableRolesResponse; -import com.google.iam.admin.v1.QueryTestablePermissionsRequest; -import com.google.iam.admin.v1.QueryTestablePermissionsResponse; -import com.google.iam.admin.v1.Role; -import com.google.iam.admin.v1.ServiceAccount; -import com.google.iam.admin.v1.ServiceAccountKey; -import com.google.iam.admin.v1.SignBlobRequest; -import com.google.iam.admin.v1.SignBlobResponse; -import com.google.iam.admin.v1.SignJwtRequest; -import com.google.iam.admin.v1.SignJwtResponse; -import com.google.iam.admin.v1.UndeleteRoleRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountRequest; -import com.google.iam.admin.v1.UndeleteServiceAccountResponse; -import com.google.iam.admin.v1.UpdateRoleRequest; -import com.google.iam.admin.v1.UploadServiceAccountKeyRequest; -import com.google.iam.v1.GetIamPolicyRequest; -import com.google.iam.v1.Policy; -import com.google.iam.v1.SetIamPolicyRequest; -import com.google.iam.v1.TestIamPermissionsRequest; -import com.google.iam.v1.TestIamPermissionsResponse; -import com.google.protobuf.AbstractMessage; -import com.google.protobuf.Empty; -import io.grpc.stub.StreamObserver; -import java.util.ArrayList; -import java.util.LinkedList; -import java.util.List; -import java.util.Queue; -import javax.annotation.Generated; - -@BetaApi -@Generated("by gapic-generator-java") -public class MockIAMImpl extends IAMImplBase { - private List requests; - private Queue responses; - - public MockIAMImpl() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - public List getRequests() { - return requests; - } - - public void addResponse(AbstractMessage response) { - responses.add(response); - } - - public void setResponses(List responses) { - this.responses = new LinkedList(responses); - } - - public void addException(Exception exception) { - responses.add(exception); - } - - public void reset() { - requests = new ArrayList<>(); - responses = new LinkedList<>(); - } - - @Override - public void listServiceAccounts( - ListServiceAccountsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListServiceAccountsResponse) { - requests.add(request); - responseObserver.onNext(((ListServiceAccountsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListServiceAccounts, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListServiceAccountsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getServiceAccount( - GetServiceAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ServiceAccount) { - requests.add(request); - responseObserver.onNext(((ServiceAccount) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetServiceAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ServiceAccount.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createServiceAccount( - CreateServiceAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ServiceAccount) { - requests.add(request); - responseObserver.onNext(((ServiceAccount) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateServiceAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ServiceAccount.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateServiceAccount( - ServiceAccount request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ServiceAccount) { - requests.add(request); - responseObserver.onNext(((ServiceAccount) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateServiceAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ServiceAccount.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void patchServiceAccount( - PatchServiceAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ServiceAccount) { - requests.add(request); - responseObserver.onNext(((ServiceAccount) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method PatchServiceAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ServiceAccount.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteServiceAccount( - DeleteServiceAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteServiceAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void undeleteServiceAccount( - UndeleteServiceAccountRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof UndeleteServiceAccountResponse) { - requests.add(request); - responseObserver.onNext(((UndeleteServiceAccountResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UndeleteServiceAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - UndeleteServiceAccountResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void enableServiceAccount( - EnableServiceAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method EnableServiceAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void disableServiceAccount( - DisableServiceAccountRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DisableServiceAccount, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listServiceAccountKeys( - ListServiceAccountKeysRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListServiceAccountKeysResponse) { - requests.add(request); - responseObserver.onNext(((ListServiceAccountKeysResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListServiceAccountKeys, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListServiceAccountKeysResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getServiceAccountKey( - GetServiceAccountKeyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ServiceAccountKey) { - requests.add(request); - responseObserver.onNext(((ServiceAccountKey) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetServiceAccountKey, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ServiceAccountKey.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createServiceAccountKey( - CreateServiceAccountKeyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ServiceAccountKey) { - requests.add(request); - responseObserver.onNext(((ServiceAccountKey) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateServiceAccountKey, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ServiceAccountKey.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void uploadServiceAccountKey( - UploadServiceAccountKeyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ServiceAccountKey) { - requests.add(request); - responseObserver.onNext(((ServiceAccountKey) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UploadServiceAccountKey, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ServiceAccountKey.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteServiceAccountKey( - DeleteServiceAccountKeyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteServiceAccountKey, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void disableServiceAccountKey( - DisableServiceAccountKeyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DisableServiceAccountKey, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void enableServiceAccountKey( - EnableServiceAccountKeyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Empty) { - requests.add(request); - responseObserver.onNext(((Empty) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method EnableServiceAccountKey, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Empty.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void signBlob(SignBlobRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SignBlobResponse) { - requests.add(request); - responseObserver.onNext(((SignBlobResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SignBlob, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SignBlobResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void signJwt(SignJwtRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof SignJwtResponse) { - requests.add(request); - responseObserver.onNext(((SignJwtResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SignJwt, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - SignJwtResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void setIamPolicy(SetIamPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Policy) { - requests.add(request); - responseObserver.onNext(((Policy) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method SetIamPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Policy.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void testIamPermissions( - TestIamPermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof TestIamPermissionsResponse) { - requests.add(request); - responseObserver.onNext(((TestIamPermissionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method TestIamPermissions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - TestIamPermissionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void queryGrantableRoles( - QueryGrantableRolesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof QueryGrantableRolesResponse) { - requests.add(request); - responseObserver.onNext(((QueryGrantableRolesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method QueryGrantableRoles, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - QueryGrantableRolesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void listRoles( - ListRolesRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof ListRolesResponse) { - requests.add(request); - responseObserver.onNext(((ListRolesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method ListRoles, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - ListRolesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void getRole(GetRoleRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Role) { - requests.add(request); - responseObserver.onNext(((Role) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method GetRole, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Role.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void createRole(CreateRoleRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Role) { - requests.add(request); - responseObserver.onNext(((Role) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method CreateRole, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Role.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void updateRole(UpdateRoleRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Role) { - requests.add(request); - responseObserver.onNext(((Role) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UpdateRole, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Role.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void deleteRole(DeleteRoleRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Role) { - requests.add(request); - responseObserver.onNext(((Role) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method DeleteRole, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Role.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void undeleteRole(UndeleteRoleRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof Role) { - requests.add(request); - responseObserver.onNext(((Role) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method UndeleteRole, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - Role.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void queryTestablePermissions( - QueryTestablePermissionsRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof QueryTestablePermissionsResponse) { - requests.add(request); - responseObserver.onNext(((QueryTestablePermissionsResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method QueryTestablePermissions, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - QueryTestablePermissionsResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void queryAuditableServices( - QueryAuditableServicesRequest request, - StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof QueryAuditableServicesResponse) { - requests.add(request); - responseObserver.onNext(((QueryAuditableServicesResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method QueryAuditableServices, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - QueryAuditableServicesResponse.class.getName(), - Exception.class.getName()))); - } - } - - @Override - public void lintPolicy( - LintPolicyRequest request, StreamObserver responseObserver) { - Object response = responses.poll(); - if (response instanceof LintPolicyResponse) { - requests.add(request); - responseObserver.onNext(((LintPolicyResponse) response)); - responseObserver.onCompleted(); - } else if (response instanceof Exception) { - responseObserver.onError(((Exception) response)); - } else { - responseObserver.onError( - new IllegalArgumentException( - String.format( - "Unrecognized response type %s for method LintPolicy, expected %s or %s", - response == null ? "null" : response.getClass().getName(), - LintPolicyResponse.class.getName(), - Exception.class.getName()))); - } - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java b/owl-bot-staging/java-iam-admin/v1/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java deleted file mode 100644 index ef3392784cba..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/grpc-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/IAMGrpc.java +++ /dev/null @@ -1,3409 +0,0 @@ -package com.google.iam.admin.v1; - -import static io.grpc.MethodDescriptor.generateFullMethodName; - -/** - *
    - * Creates and manages Identity and Access Management (IAM) resources.
    - * You can use this service to work with all of the following resources:
    - * * **Service accounts**, which identify an application or a virtual machine
    - *   (VM) instance rather than a person
    - * * **Service account keys**, which service accounts use to authenticate with
    - *   Google APIs
    - * * **IAM policies for service accounts**, which specify the roles that a
    - *   principal has for the service account
    - * * **IAM custom roles**, which help you limit the number of permissions that
    - *   you grant to principals
    - * In addition, you can use this service to complete the following tasks, among
    - * others:
    - * * Test whether a service account can use specific permissions
    - * * Check which roles you can grant for a specific resource
    - * * Lint, or validate, condition expressions in an IAM policy
    - * When you read data from the IAM API, each read is eventually consistent. In
    - * other words, if you write data with the IAM API, then immediately read that
    - * data, the read operation might return an older version of the data. To deal
    - * with this behavior, your application can retry the request with truncated
    - * exponential backoff.
    - * In contrast, writing data to the IAM API is sequentially consistent. In other
    - * words, write operations are always processed in the order in which they were
    - * received.
    - * 
    - */ -@javax.annotation.Generated( - value = "by gRPC proto compiler", - comments = "Source: google/iam/admin/v1/iam.proto") -@io.grpc.stub.annotations.GrpcGenerated -public final class IAMGrpc { - - private IAMGrpc() {} - - public static final String SERVICE_NAME = "google.iam.admin.v1.IAM"; - - // Static method descriptors that strictly reflect the proto. - private static volatile io.grpc.MethodDescriptor getListServiceAccountsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServiceAccounts", - requestType = com.google.iam.admin.v1.ListServiceAccountsRequest.class, - responseType = com.google.iam.admin.v1.ListServiceAccountsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListServiceAccountsMethod() { - io.grpc.MethodDescriptor getListServiceAccountsMethod; - if ((getListServiceAccountsMethod = IAMGrpc.getListServiceAccountsMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getListServiceAccountsMethod = IAMGrpc.getListServiceAccountsMethod) == null) { - IAMGrpc.getListServiceAccountsMethod = getListServiceAccountsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServiceAccounts")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ListServiceAccountsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ListServiceAccountsResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("ListServiceAccounts")) - .build(); - } - } - } - return getListServiceAccountsMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetServiceAccount", - requestType = com.google.iam.admin.v1.GetServiceAccountRequest.class, - responseType = com.google.iam.admin.v1.ServiceAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetServiceAccountMethod() { - io.grpc.MethodDescriptor getGetServiceAccountMethod; - if ((getGetServiceAccountMethod = IAMGrpc.getGetServiceAccountMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getGetServiceAccountMethod = IAMGrpc.getGetServiceAccountMethod) == null) { - IAMGrpc.getGetServiceAccountMethod = getGetServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.GetServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("GetServiceAccount")) - .build(); - } - } - } - return getGetServiceAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateServiceAccount", - requestType = com.google.iam.admin.v1.CreateServiceAccountRequest.class, - responseType = com.google.iam.admin.v1.ServiceAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateServiceAccountMethod() { - io.grpc.MethodDescriptor getCreateServiceAccountMethod; - if ((getCreateServiceAccountMethod = IAMGrpc.getCreateServiceAccountMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getCreateServiceAccountMethod = IAMGrpc.getCreateServiceAccountMethod) == null) { - IAMGrpc.getCreateServiceAccountMethod = getCreateServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.CreateServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("CreateServiceAccount")) - .build(); - } - } - } - return getCreateServiceAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateServiceAccount", - requestType = com.google.iam.admin.v1.ServiceAccount.class, - responseType = com.google.iam.admin.v1.ServiceAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateServiceAccountMethod() { - io.grpc.MethodDescriptor getUpdateServiceAccountMethod; - if ((getUpdateServiceAccountMethod = IAMGrpc.getUpdateServiceAccountMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getUpdateServiceAccountMethod = IAMGrpc.getUpdateServiceAccountMethod) == null) { - IAMGrpc.getUpdateServiceAccountMethod = getUpdateServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("UpdateServiceAccount")) - .build(); - } - } - } - return getUpdateServiceAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getPatchServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "PatchServiceAccount", - requestType = com.google.iam.admin.v1.PatchServiceAccountRequest.class, - responseType = com.google.iam.admin.v1.ServiceAccount.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getPatchServiceAccountMethod() { - io.grpc.MethodDescriptor getPatchServiceAccountMethod; - if ((getPatchServiceAccountMethod = IAMGrpc.getPatchServiceAccountMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getPatchServiceAccountMethod = IAMGrpc.getPatchServiceAccountMethod) == null) { - IAMGrpc.getPatchServiceAccountMethod = getPatchServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "PatchServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.PatchServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("PatchServiceAccount")) - .build(); - } - } - } - return getPatchServiceAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteServiceAccount", - requestType = com.google.iam.admin.v1.DeleteServiceAccountRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteServiceAccountMethod() { - io.grpc.MethodDescriptor getDeleteServiceAccountMethod; - if ((getDeleteServiceAccountMethod = IAMGrpc.getDeleteServiceAccountMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getDeleteServiceAccountMethod = IAMGrpc.getDeleteServiceAccountMethod) == null) { - IAMGrpc.getDeleteServiceAccountMethod = getDeleteServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.DeleteServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("DeleteServiceAccount")) - .build(); - } - } - } - return getDeleteServiceAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeleteServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteServiceAccount", - requestType = com.google.iam.admin.v1.UndeleteServiceAccountRequest.class, - responseType = com.google.iam.admin.v1.UndeleteServiceAccountResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeleteServiceAccountMethod() { - io.grpc.MethodDescriptor getUndeleteServiceAccountMethod; - if ((getUndeleteServiceAccountMethod = IAMGrpc.getUndeleteServiceAccountMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getUndeleteServiceAccountMethod = IAMGrpc.getUndeleteServiceAccountMethod) == null) { - IAMGrpc.getUndeleteServiceAccountMethod = getUndeleteServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.UndeleteServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.UndeleteServiceAccountResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("UndeleteServiceAccount")) - .build(); - } - } - } - return getUndeleteServiceAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getEnableServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableServiceAccount", - requestType = com.google.iam.admin.v1.EnableServiceAccountRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEnableServiceAccountMethod() { - io.grpc.MethodDescriptor getEnableServiceAccountMethod; - if ((getEnableServiceAccountMethod = IAMGrpc.getEnableServiceAccountMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getEnableServiceAccountMethod = IAMGrpc.getEnableServiceAccountMethod) == null) { - IAMGrpc.getEnableServiceAccountMethod = getEnableServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.EnableServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("EnableServiceAccount")) - .build(); - } - } - } - return getEnableServiceAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getDisableServiceAccountMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableServiceAccount", - requestType = com.google.iam.admin.v1.DisableServiceAccountRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDisableServiceAccountMethod() { - io.grpc.MethodDescriptor getDisableServiceAccountMethod; - if ((getDisableServiceAccountMethod = IAMGrpc.getDisableServiceAccountMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getDisableServiceAccountMethod = IAMGrpc.getDisableServiceAccountMethod) == null) { - IAMGrpc.getDisableServiceAccountMethod = getDisableServiceAccountMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableServiceAccount")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.DisableServiceAccountRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("DisableServiceAccount")) - .build(); - } - } - } - return getDisableServiceAccountMethod; - } - - private static volatile io.grpc.MethodDescriptor getListServiceAccountKeysMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListServiceAccountKeys", - requestType = com.google.iam.admin.v1.ListServiceAccountKeysRequest.class, - responseType = com.google.iam.admin.v1.ListServiceAccountKeysResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListServiceAccountKeysMethod() { - io.grpc.MethodDescriptor getListServiceAccountKeysMethod; - if ((getListServiceAccountKeysMethod = IAMGrpc.getListServiceAccountKeysMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getListServiceAccountKeysMethod = IAMGrpc.getListServiceAccountKeysMethod) == null) { - IAMGrpc.getListServiceAccountKeysMethod = getListServiceAccountKeysMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListServiceAccountKeys")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ListServiceAccountKeysRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ListServiceAccountKeysResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("ListServiceAccountKeys")) - .build(); - } - } - } - return getListServiceAccountKeysMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetServiceAccountKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetServiceAccountKey", - requestType = com.google.iam.admin.v1.GetServiceAccountKeyRequest.class, - responseType = com.google.iam.admin.v1.ServiceAccountKey.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetServiceAccountKeyMethod() { - io.grpc.MethodDescriptor getGetServiceAccountKeyMethod; - if ((getGetServiceAccountKeyMethod = IAMGrpc.getGetServiceAccountKeyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getGetServiceAccountKeyMethod = IAMGrpc.getGetServiceAccountKeyMethod) == null) { - IAMGrpc.getGetServiceAccountKeyMethod = getGetServiceAccountKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetServiceAccountKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.GetServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ServiceAccountKey.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("GetServiceAccountKey")) - .build(); - } - } - } - return getGetServiceAccountKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateServiceAccountKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateServiceAccountKey", - requestType = com.google.iam.admin.v1.CreateServiceAccountKeyRequest.class, - responseType = com.google.iam.admin.v1.ServiceAccountKey.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateServiceAccountKeyMethod() { - io.grpc.MethodDescriptor getCreateServiceAccountKeyMethod; - if ((getCreateServiceAccountKeyMethod = IAMGrpc.getCreateServiceAccountKeyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getCreateServiceAccountKeyMethod = IAMGrpc.getCreateServiceAccountKeyMethod) == null) { - IAMGrpc.getCreateServiceAccountKeyMethod = getCreateServiceAccountKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateServiceAccountKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.CreateServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ServiceAccountKey.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("CreateServiceAccountKey")) - .build(); - } - } - } - return getCreateServiceAccountKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getUploadServiceAccountKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UploadServiceAccountKey", - requestType = com.google.iam.admin.v1.UploadServiceAccountKeyRequest.class, - responseType = com.google.iam.admin.v1.ServiceAccountKey.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUploadServiceAccountKeyMethod() { - io.grpc.MethodDescriptor getUploadServiceAccountKeyMethod; - if ((getUploadServiceAccountKeyMethod = IAMGrpc.getUploadServiceAccountKeyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getUploadServiceAccountKeyMethod = IAMGrpc.getUploadServiceAccountKeyMethod) == null) { - IAMGrpc.getUploadServiceAccountKeyMethod = getUploadServiceAccountKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UploadServiceAccountKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.UploadServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ServiceAccountKey.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("UploadServiceAccountKey")) - .build(); - } - } - } - return getUploadServiceAccountKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteServiceAccountKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteServiceAccountKey", - requestType = com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteServiceAccountKeyMethod() { - io.grpc.MethodDescriptor getDeleteServiceAccountKeyMethod; - if ((getDeleteServiceAccountKeyMethod = IAMGrpc.getDeleteServiceAccountKeyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getDeleteServiceAccountKeyMethod = IAMGrpc.getDeleteServiceAccountKeyMethod) == null) { - IAMGrpc.getDeleteServiceAccountKeyMethod = getDeleteServiceAccountKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteServiceAccountKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("DeleteServiceAccountKey")) - .build(); - } - } - } - return getDeleteServiceAccountKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getDisableServiceAccountKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DisableServiceAccountKey", - requestType = com.google.iam.admin.v1.DisableServiceAccountKeyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDisableServiceAccountKeyMethod() { - io.grpc.MethodDescriptor getDisableServiceAccountKeyMethod; - if ((getDisableServiceAccountKeyMethod = IAMGrpc.getDisableServiceAccountKeyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getDisableServiceAccountKeyMethod = IAMGrpc.getDisableServiceAccountKeyMethod) == null) { - IAMGrpc.getDisableServiceAccountKeyMethod = getDisableServiceAccountKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DisableServiceAccountKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.DisableServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("DisableServiceAccountKey")) - .build(); - } - } - } - return getDisableServiceAccountKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getEnableServiceAccountKeyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "EnableServiceAccountKey", - requestType = com.google.iam.admin.v1.EnableServiceAccountKeyRequest.class, - responseType = com.google.protobuf.Empty.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getEnableServiceAccountKeyMethod() { - io.grpc.MethodDescriptor getEnableServiceAccountKeyMethod; - if ((getEnableServiceAccountKeyMethod = IAMGrpc.getEnableServiceAccountKeyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getEnableServiceAccountKeyMethod = IAMGrpc.getEnableServiceAccountKeyMethod) == null) { - IAMGrpc.getEnableServiceAccountKeyMethod = getEnableServiceAccountKeyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "EnableServiceAccountKey")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.EnableServiceAccountKeyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.protobuf.Empty.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("EnableServiceAccountKey")) - .build(); - } - } - } - return getEnableServiceAccountKeyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSignBlobMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SignBlob", - requestType = com.google.iam.admin.v1.SignBlobRequest.class, - responseType = com.google.iam.admin.v1.SignBlobResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSignBlobMethod() { - io.grpc.MethodDescriptor getSignBlobMethod; - if ((getSignBlobMethod = IAMGrpc.getSignBlobMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getSignBlobMethod = IAMGrpc.getSignBlobMethod) == null) { - IAMGrpc.getSignBlobMethod = getSignBlobMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SignBlob")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.SignBlobRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.SignBlobResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("SignBlob")) - .build(); - } - } - } - return getSignBlobMethod; - } - - private static volatile io.grpc.MethodDescriptor getSignJwtMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SignJwt", - requestType = com.google.iam.admin.v1.SignJwtRequest.class, - responseType = com.google.iam.admin.v1.SignJwtResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSignJwtMethod() { - io.grpc.MethodDescriptor getSignJwtMethod; - if ((getSignJwtMethod = IAMGrpc.getSignJwtMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getSignJwtMethod = IAMGrpc.getSignJwtMethod) == null) { - IAMGrpc.getSignJwtMethod = getSignJwtMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SignJwt")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.SignJwtRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.SignJwtResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("SignJwt")) - .build(); - } - } - } - return getSignJwtMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetIamPolicy", - requestType = com.google.iam.v1.GetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetIamPolicyMethod() { - io.grpc.MethodDescriptor getGetIamPolicyMethod; - if ((getGetIamPolicyMethod = IAMGrpc.getGetIamPolicyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getGetIamPolicyMethod = IAMGrpc.getGetIamPolicyMethod) == null) { - IAMGrpc.getGetIamPolicyMethod = getGetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.GetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("GetIamPolicy")) - .build(); - } - } - } - return getGetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getSetIamPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "SetIamPolicy", - requestType = com.google.iam.v1.SetIamPolicyRequest.class, - responseType = com.google.iam.v1.Policy.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getSetIamPolicyMethod() { - io.grpc.MethodDescriptor getSetIamPolicyMethod; - if ((getSetIamPolicyMethod = IAMGrpc.getSetIamPolicyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getSetIamPolicyMethod = IAMGrpc.getSetIamPolicyMethod) == null) { - IAMGrpc.getSetIamPolicyMethod = getSetIamPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "SetIamPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.SetIamPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.Policy.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("SetIamPolicy")) - .build(); - } - } - } - return getSetIamPolicyMethod; - } - - private static volatile io.grpc.MethodDescriptor getTestIamPermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "TestIamPermissions", - requestType = com.google.iam.v1.TestIamPermissionsRequest.class, - responseType = com.google.iam.v1.TestIamPermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getTestIamPermissionsMethod() { - io.grpc.MethodDescriptor getTestIamPermissionsMethod; - if ((getTestIamPermissionsMethod = IAMGrpc.getTestIamPermissionsMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getTestIamPermissionsMethod = IAMGrpc.getTestIamPermissionsMethod) == null) { - IAMGrpc.getTestIamPermissionsMethod = getTestIamPermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "TestIamPermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.v1.TestIamPermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("TestIamPermissions")) - .build(); - } - } - } - return getTestIamPermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryGrantableRolesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryGrantableRoles", - requestType = com.google.iam.admin.v1.QueryGrantableRolesRequest.class, - responseType = com.google.iam.admin.v1.QueryGrantableRolesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryGrantableRolesMethod() { - io.grpc.MethodDescriptor getQueryGrantableRolesMethod; - if ((getQueryGrantableRolesMethod = IAMGrpc.getQueryGrantableRolesMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getQueryGrantableRolesMethod = IAMGrpc.getQueryGrantableRolesMethod) == null) { - IAMGrpc.getQueryGrantableRolesMethod = getQueryGrantableRolesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryGrantableRoles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.QueryGrantableRolesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.QueryGrantableRolesResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("QueryGrantableRoles")) - .build(); - } - } - } - return getQueryGrantableRolesMethod; - } - - private static volatile io.grpc.MethodDescriptor getListRolesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "ListRoles", - requestType = com.google.iam.admin.v1.ListRolesRequest.class, - responseType = com.google.iam.admin.v1.ListRolesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getListRolesMethod() { - io.grpc.MethodDescriptor getListRolesMethod; - if ((getListRolesMethod = IAMGrpc.getListRolesMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getListRolesMethod = IAMGrpc.getListRolesMethod) == null) { - IAMGrpc.getListRolesMethod = getListRolesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "ListRoles")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ListRolesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.ListRolesResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("ListRoles")) - .build(); - } - } - } - return getListRolesMethod; - } - - private static volatile io.grpc.MethodDescriptor getGetRoleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "GetRole", - requestType = com.google.iam.admin.v1.GetRoleRequest.class, - responseType = com.google.iam.admin.v1.Role.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getGetRoleMethod() { - io.grpc.MethodDescriptor getGetRoleMethod; - if ((getGetRoleMethod = IAMGrpc.getGetRoleMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getGetRoleMethod = IAMGrpc.getGetRoleMethod) == null) { - IAMGrpc.getGetRoleMethod = getGetRoleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "GetRole")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.GetRoleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.Role.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("GetRole")) - .build(); - } - } - } - return getGetRoleMethod; - } - - private static volatile io.grpc.MethodDescriptor getCreateRoleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "CreateRole", - requestType = com.google.iam.admin.v1.CreateRoleRequest.class, - responseType = com.google.iam.admin.v1.Role.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getCreateRoleMethod() { - io.grpc.MethodDescriptor getCreateRoleMethod; - if ((getCreateRoleMethod = IAMGrpc.getCreateRoleMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getCreateRoleMethod = IAMGrpc.getCreateRoleMethod) == null) { - IAMGrpc.getCreateRoleMethod = getCreateRoleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CreateRole")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.CreateRoleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.Role.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("CreateRole")) - .build(); - } - } - } - return getCreateRoleMethod; - } - - private static volatile io.grpc.MethodDescriptor getUpdateRoleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UpdateRole", - requestType = com.google.iam.admin.v1.UpdateRoleRequest.class, - responseType = com.google.iam.admin.v1.Role.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUpdateRoleMethod() { - io.grpc.MethodDescriptor getUpdateRoleMethod; - if ((getUpdateRoleMethod = IAMGrpc.getUpdateRoleMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getUpdateRoleMethod = IAMGrpc.getUpdateRoleMethod) == null) { - IAMGrpc.getUpdateRoleMethod = getUpdateRoleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UpdateRole")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.UpdateRoleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.Role.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("UpdateRole")) - .build(); - } - } - } - return getUpdateRoleMethod; - } - - private static volatile io.grpc.MethodDescriptor getDeleteRoleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "DeleteRole", - requestType = com.google.iam.admin.v1.DeleteRoleRequest.class, - responseType = com.google.iam.admin.v1.Role.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getDeleteRoleMethod() { - io.grpc.MethodDescriptor getDeleteRoleMethod; - if ((getDeleteRoleMethod = IAMGrpc.getDeleteRoleMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getDeleteRoleMethod = IAMGrpc.getDeleteRoleMethod) == null) { - IAMGrpc.getDeleteRoleMethod = getDeleteRoleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "DeleteRole")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.DeleteRoleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.Role.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("DeleteRole")) - .build(); - } - } - } - return getDeleteRoleMethod; - } - - private static volatile io.grpc.MethodDescriptor getUndeleteRoleMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "UndeleteRole", - requestType = com.google.iam.admin.v1.UndeleteRoleRequest.class, - responseType = com.google.iam.admin.v1.Role.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getUndeleteRoleMethod() { - io.grpc.MethodDescriptor getUndeleteRoleMethod; - if ((getUndeleteRoleMethod = IAMGrpc.getUndeleteRoleMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getUndeleteRoleMethod = IAMGrpc.getUndeleteRoleMethod) == null) { - IAMGrpc.getUndeleteRoleMethod = getUndeleteRoleMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteRole")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.UndeleteRoleRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.Role.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("UndeleteRole")) - .build(); - } - } - } - return getUndeleteRoleMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryTestablePermissionsMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryTestablePermissions", - requestType = com.google.iam.admin.v1.QueryTestablePermissionsRequest.class, - responseType = com.google.iam.admin.v1.QueryTestablePermissionsResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryTestablePermissionsMethod() { - io.grpc.MethodDescriptor getQueryTestablePermissionsMethod; - if ((getQueryTestablePermissionsMethod = IAMGrpc.getQueryTestablePermissionsMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getQueryTestablePermissionsMethod = IAMGrpc.getQueryTestablePermissionsMethod) == null) { - IAMGrpc.getQueryTestablePermissionsMethod = getQueryTestablePermissionsMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryTestablePermissions")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.QueryTestablePermissionsRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.QueryTestablePermissionsResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("QueryTestablePermissions")) - .build(); - } - } - } - return getQueryTestablePermissionsMethod; - } - - private static volatile io.grpc.MethodDescriptor getQueryAuditableServicesMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "QueryAuditableServices", - requestType = com.google.iam.admin.v1.QueryAuditableServicesRequest.class, - responseType = com.google.iam.admin.v1.QueryAuditableServicesResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getQueryAuditableServicesMethod() { - io.grpc.MethodDescriptor getQueryAuditableServicesMethod; - if ((getQueryAuditableServicesMethod = IAMGrpc.getQueryAuditableServicesMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getQueryAuditableServicesMethod = IAMGrpc.getQueryAuditableServicesMethod) == null) { - IAMGrpc.getQueryAuditableServicesMethod = getQueryAuditableServicesMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "QueryAuditableServices")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.QueryAuditableServicesRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.QueryAuditableServicesResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("QueryAuditableServices")) - .build(); - } - } - } - return getQueryAuditableServicesMethod; - } - - private static volatile io.grpc.MethodDescriptor getLintPolicyMethod; - - @io.grpc.stub.annotations.RpcMethod( - fullMethodName = SERVICE_NAME + '/' + "LintPolicy", - requestType = com.google.iam.admin.v1.LintPolicyRequest.class, - responseType = com.google.iam.admin.v1.LintPolicyResponse.class, - methodType = io.grpc.MethodDescriptor.MethodType.UNARY) - public static io.grpc.MethodDescriptor getLintPolicyMethod() { - io.grpc.MethodDescriptor getLintPolicyMethod; - if ((getLintPolicyMethod = IAMGrpc.getLintPolicyMethod) == null) { - synchronized (IAMGrpc.class) { - if ((getLintPolicyMethod = IAMGrpc.getLintPolicyMethod) == null) { - IAMGrpc.getLintPolicyMethod = getLintPolicyMethod = - io.grpc.MethodDescriptor.newBuilder() - .setType(io.grpc.MethodDescriptor.MethodType.UNARY) - .setFullMethodName(generateFullMethodName(SERVICE_NAME, "LintPolicy")) - .setSampledToLocalTracing(true) - .setRequestMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.LintPolicyRequest.getDefaultInstance())) - .setResponseMarshaller(io.grpc.protobuf.ProtoUtils.marshaller( - com.google.iam.admin.v1.LintPolicyResponse.getDefaultInstance())) - .setSchemaDescriptor(new IAMMethodDescriptorSupplier("LintPolicy")) - .build(); - } - } - } - return getLintPolicyMethod; - } - - /** - * Creates a new async stub that supports all call types for the service - */ - public static IAMStub newStub(io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IAMStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IAMStub(channel, callOptions); - } - }; - return IAMStub.newStub(factory, channel); - } - - /** - * Creates a new blocking-style stub that supports unary and streaming output calls on the service - */ - public static IAMBlockingStub newBlockingStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IAMBlockingStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IAMBlockingStub(channel, callOptions); - } - }; - return IAMBlockingStub.newStub(factory, channel); - } - - /** - * Creates a new ListenableFuture-style stub that supports unary calls on the service - */ - public static IAMFutureStub newFutureStub( - io.grpc.Channel channel) { - io.grpc.stub.AbstractStub.StubFactory factory = - new io.grpc.stub.AbstractStub.StubFactory() { - @java.lang.Override - public IAMFutureStub newStub(io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IAMFutureStub(channel, callOptions); - } - }; - return IAMFutureStub.newStub(factory, channel); - } - - /** - *
    -   * Creates and manages Identity and Access Management (IAM) resources.
    -   * You can use this service to work with all of the following resources:
    -   * * **Service accounts**, which identify an application or a virtual machine
    -   *   (VM) instance rather than a person
    -   * * **Service account keys**, which service accounts use to authenticate with
    -   *   Google APIs
    -   * * **IAM policies for service accounts**, which specify the roles that a
    -   *   principal has for the service account
    -   * * **IAM custom roles**, which help you limit the number of permissions that
    -   *   you grant to principals
    -   * In addition, you can use this service to complete the following tasks, among
    -   * others:
    -   * * Test whether a service account can use specific permissions
    -   * * Check which roles you can grant for a specific resource
    -   * * Lint, or validate, condition expressions in an IAM policy
    -   * When you read data from the IAM API, each read is eventually consistent. In
    -   * other words, if you write data with the IAM API, then immediately read that
    -   * data, the read operation might return an older version of the data. To deal
    -   * with this behavior, your application can retry the request with truncated
    -   * exponential backoff.
    -   * In contrast, writing data to the IAM API is sequentially consistent. In other
    -   * words, write operations are always processed in the order in which they were
    -   * received.
    -   * 
    - */ - public static abstract class IAMImplBase implements io.grpc.BindableService { - - /** - *
    -     * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific project.
    -     * 
    - */ - public void listServiceAccounts(com.google.iam.admin.v1.ListServiceAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServiceAccountsMethod(), responseObserver); - } - - /** - *
    -     * Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public void getServiceAccount(com.google.iam.admin.v1.GetServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceAccountMethod(), responseObserver); - } - - /** - *
    -     * Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public void createServiceAccount(com.google.iam.admin.v1.CreateServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceAccountMethod(), responseObserver); - } - - /** - *
    -     * **Note:** We are in the process of deprecating this method. Use
    -     * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead.
    -     * Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * You can update only the `display_name` field.
    -     * 
    - */ - public void updateServiceAccount(com.google.iam.admin.v1.ServiceAccount request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateServiceAccountMethod(), responseObserver); - } - - /** - *
    -     * Patches a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public void patchServiceAccount(com.google.iam.admin.v1.PatchServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getPatchServiceAccountMethod(), responseObserver); - } - - /** - *
    -     * Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * **Warning:** After you delete a service account, you might not be able to
    -     * undelete it. If you know that you need to re-enable the service account in
    -     * the future, use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead.
    -     * If you delete a service account, IAM permanently removes the service
    -     * account 30 days later. Google Cloud cannot recover the service account
    -     * after it is permanently removed, even if you file a support request.
    -     * To help avoid unplanned outages, we recommend that you disable the service
    -     * account before you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to disable the
    -     * service account, then wait at least 24 hours and watch for unintended
    -     * consequences. If there are no unintended consequences, you can delete the
    -     * service account.
    -     * 
    - */ - public void deleteServiceAccount(com.google.iam.admin.v1.DeleteServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServiceAccountMethod(), responseObserver); - } - - /** - *
    -     * Restores a deleted [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * **Important:** It is not always possible to restore a deleted service
    -     * account. Use this method only as a last resort.
    -     * After you delete a service account, IAM permanently removes the service
    -     * account 30 days later. There is no way to restore a deleted service account
    -     * that has been permanently removed.
    -     * 
    - */ - public void undeleteServiceAccount(com.google.iam.admin.v1.UndeleteServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteServiceAccountMethod(), responseObserver); - } - - /** - *
    -     * Enables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] that was disabled by
    -     * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount].
    -     * If the service account is already enabled, then this method has no effect.
    -     * If the service account was disabled by other means—for example, if Google
    -     * disabled the service account because it was compromised—you cannot use this
    -     * method to enable the service account.
    -     * 
    - */ - public void enableServiceAccount(com.google.iam.admin.v1.EnableServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnableServiceAccountMethod(), responseObserver); - } - - /** - *
    -     * Disables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] immediately.
    -     * If an application uses the service account to authenticate, that
    -     * application can no longer call Google APIs or access Google Cloud
    -     * resources. Existing access tokens for the service account are rejected, and
    -     * requests for new access tokens will fail.
    -     * To re-enable the service account, use [EnableServiceAccount][google.iam.admin.v1.IAM.EnableServiceAccount]. After you
    -     * re-enable the service account, its existing access tokens will be accepted,
    -     * and you can request new access tokens.
    -     * To help avoid unplanned outages, we recommend that you disable the service
    -     * account before you delete it. Use this method to disable the service
    -     * account, then wait at least 24 hours and watch for unintended consequences.
    -     * If there are no unintended consequences, you can delete the service account
    -     * with [DeleteServiceAccount][google.iam.admin.v1.IAM.DeleteServiceAccount].
    -     * 
    - */ - public void disableServiceAccount(com.google.iam.admin.v1.DisableServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisableServiceAccountMethod(), responseObserver); - } - - /** - *
    -     * Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account.
    -     * 
    - */ - public void listServiceAccountKeys(com.google.iam.admin.v1.ListServiceAccountKeysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListServiceAccountKeysMethod(), responseObserver); - } - - /** - *
    -     * Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public void getServiceAccountKey(com.google.iam.admin.v1.GetServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetServiceAccountKeyMethod(), responseObserver); - } - - /** - *
    -     * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public void createServiceAccountKey(com.google.iam.admin.v1.CreateServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateServiceAccountKeyMethod(), responseObserver); - } - - /** - *
    -     * Uploads the public key portion of a key pair that you manage, and
    -     * associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * After you upload the public key, you can use the private key from the key
    -     * pair as a service account key.
    -     * 
    - */ - public void uploadServiceAccountKey(com.google.iam.admin.v1.UploadServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUploadServiceAccountKeyMethod(), responseObserver); - } - - /** - *
    -     * Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service account key does not
    -     * revoke short-lived credentials that have been issued based on the service
    -     * account key.
    -     * 
    - */ - public void deleteServiceAccountKey(com.google.iam.admin.v1.DeleteServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteServiceAccountKeyMethod(), responseObserver); - } - - /** - *
    -     * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be
    -     * re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    -     * 
    - */ - public void disableServiceAccountKey(com.google.iam.admin.v1.DisableServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDisableServiceAccountKeyMethod(), responseObserver); - } - - /** - *
    -     * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public void enableServiceAccountKey(com.google.iam.admin.v1.EnableServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getEnableServiceAccountKeyMethod(), responseObserver); - } - - /** - *
    -     * **Note:** This method is deprecated. Use the
    -     * [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob)
    -     * method in the IAM Service Account Credentials API instead. If you currently
    -     * use this method, see the [migration
    -     * guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
    -     * instructions.
    -     * Signs a blob using the system-managed private key for a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - @java.lang.Deprecated - public void signBlob(com.google.iam.admin.v1.SignBlobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSignBlobMethod(), responseObserver); - } - - /** - *
    -     * **Note:** This method is deprecated. Use the
    -     * [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt)
    -     * method in the IAM Service Account Credentials API instead. If you currently
    -     * use this method, see the [migration
    -     * guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
    -     * instructions.
    -     * Signs a JSON Web Token (JWT) using the system-managed private key for a
    -     * [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - @java.lang.Deprecated - public void signJwt(com.google.iam.admin.v1.SignJwtRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSignJwtMethod(), responseObserver); - } - - /** - *
    -     * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM
    -     * policy specifies which principals have access to the service account.
    -     * This method does not tell you whether the service account has been granted
    -     * any roles on other resources. To check whether a service account has role
    -     * grants on a resource, use the `getIamPolicy` method for that resource. For
    -     * example, to view the role grants for a project, call the Resource Manager
    -     * API's
    -     * [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy)
    -     * method.
    -     * 
    - */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetIamPolicyMethod(), responseObserver); - } - - /** - *
    -     * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * Use this method to grant or revoke access to the service account. For
    -     * example, you could grant a principal the ability to impersonate the service
    -     * account.
    -     * This method does not enable the service account to access other resources.
    -     * To grant roles to a service account on a resource, follow these steps:
    -     * 1. Call the resource's `getIamPolicy` method to get its current IAM policy.
    -     * 2. Edit the policy so that it binds the service account to an IAM role for
    -     * the resource.
    -     * 3. Call the resource's `setIamPolicy` method to update its IAM policy.
    -     * For detailed instructions, see
    -     * [Manage access to project, folders, and
    -     * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts)
    -     * or [Manage access to other
    -     * resources](https://cloud.google.com/iam/help/access/manage-other-resources).
    -     * 
    - */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getSetIamPolicyMethod(), responseObserver); - } - - /** - *
    -     * Tests whether the caller has the specified permissions on a
    -     * [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getTestIamPermissionsMethod(), responseObserver); - } - - /** - *
    -     * Lists roles that can be granted on a Google Cloud resource. A role is
    -     * grantable if the IAM policy for the resource can contain bindings to the
    -     * role.
    -     * 
    - */ - public void queryGrantableRoles(com.google.iam.admin.v1.QueryGrantableRolesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryGrantableRolesMethod(), responseObserver); - } - - /** - *
    -     * Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role
    -     * that is defined for an organization or project.
    -     * 
    - */ - public void listRoles(com.google.iam.admin.v1.ListRolesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getListRolesMethod(), responseObserver); - } - - /** - *
    -     * Gets the definition of a [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public void getRole(com.google.iam.admin.v1.GetRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getGetRoleMethod(), responseObserver); - } - - /** - *
    -     * Creates a new custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public void createRole(com.google.iam.admin.v1.CreateRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCreateRoleMethod(), responseObserver); - } - - /** - *
    -     * Updates the definition of a custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public void updateRole(com.google.iam.admin.v1.UpdateRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUpdateRoleMethod(), responseObserver); - } - - /** - *
    -     * Deletes a custom [Role][google.iam.admin.v1.Role].
    -     * When you delete a custom role, the following changes occur immediately:
    -     * * You cannot bind a principal to the custom role in an IAM
    -     * [Policy][google.iam.v1.Policy].
    -     * * Existing bindings to the custom role are not changed, but they have no
    -     * effect.
    -     * * By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not include the custom
    -     * role.
    -     * You have 7 days to undelete the custom role. After 7 days, the following
    -     * changes occur:
    -     * * The custom role is permanently deleted and cannot be recovered.
    -     * * If an IAM policy contains a binding to the custom role, the binding is
    -     * permanently removed.
    -     * 
    - */ - public void deleteRole(com.google.iam.admin.v1.DeleteRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getDeleteRoleMethod(), responseObserver); - } - - /** - *
    -     * Undeletes a custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public void undeleteRole(com.google.iam.admin.v1.UndeleteRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getUndeleteRoleMethod(), responseObserver); - } - - /** - *
    -     * Lists every permission that you can test on a resource. A permission is
    -     * testable if you can check whether a principal has that permission on the
    -     * resource.
    -     * 
    - */ - public void queryTestablePermissions(com.google.iam.admin.v1.QueryTestablePermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryTestablePermissionsMethod(), responseObserver); - } - - /** - *
    -     * Returns a list of services that allow you to opt into audit logs that are
    -     * not generated by default.
    -     * To learn more about audit logs, see the [Logging
    -     * documentation](https://cloud.google.com/logging/docs/audit).
    -     * 
    - */ - public void queryAuditableServices(com.google.iam.admin.v1.QueryAuditableServicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getQueryAuditableServicesMethod(), responseObserver); - } - - /** - *
    -     * Lints, or validates, an IAM policy. Currently checks the
    -     * [google.iam.v1.Binding.condition][google.iam.v1.Binding.condition] field, which contains a condition
    -     * expression for a role binding.
    -     * Successful calls to this method always return an HTTP `200 OK` status code,
    -     * even if the linter detects an issue in the IAM policy.
    -     * 
    - */ - public void lintPolicy(com.google.iam.admin.v1.LintPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getLintPolicyMethod(), responseObserver); - } - - @java.lang.Override public final io.grpc.ServerServiceDefinition bindService() { - return io.grpc.ServerServiceDefinition.builder(getServiceDescriptor()) - .addMethod( - getListServiceAccountsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.ListServiceAccountsRequest, - com.google.iam.admin.v1.ListServiceAccountsResponse>( - this, METHODID_LIST_SERVICE_ACCOUNTS))) - .addMethod( - getGetServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.GetServiceAccountRequest, - com.google.iam.admin.v1.ServiceAccount>( - this, METHODID_GET_SERVICE_ACCOUNT))) - .addMethod( - getCreateServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.CreateServiceAccountRequest, - com.google.iam.admin.v1.ServiceAccount>( - this, METHODID_CREATE_SERVICE_ACCOUNT))) - .addMethod( - getUpdateServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.ServiceAccount, - com.google.iam.admin.v1.ServiceAccount>( - this, METHODID_UPDATE_SERVICE_ACCOUNT))) - .addMethod( - getPatchServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.PatchServiceAccountRequest, - com.google.iam.admin.v1.ServiceAccount>( - this, METHODID_PATCH_SERVICE_ACCOUNT))) - .addMethod( - getDeleteServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.DeleteServiceAccountRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SERVICE_ACCOUNT))) - .addMethod( - getUndeleteServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.UndeleteServiceAccountRequest, - com.google.iam.admin.v1.UndeleteServiceAccountResponse>( - this, METHODID_UNDELETE_SERVICE_ACCOUNT))) - .addMethod( - getEnableServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.EnableServiceAccountRequest, - com.google.protobuf.Empty>( - this, METHODID_ENABLE_SERVICE_ACCOUNT))) - .addMethod( - getDisableServiceAccountMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.DisableServiceAccountRequest, - com.google.protobuf.Empty>( - this, METHODID_DISABLE_SERVICE_ACCOUNT))) - .addMethod( - getListServiceAccountKeysMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.ListServiceAccountKeysRequest, - com.google.iam.admin.v1.ListServiceAccountKeysResponse>( - this, METHODID_LIST_SERVICE_ACCOUNT_KEYS))) - .addMethod( - getGetServiceAccountKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.GetServiceAccountKeyRequest, - com.google.iam.admin.v1.ServiceAccountKey>( - this, METHODID_GET_SERVICE_ACCOUNT_KEY))) - .addMethod( - getCreateServiceAccountKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.CreateServiceAccountKeyRequest, - com.google.iam.admin.v1.ServiceAccountKey>( - this, METHODID_CREATE_SERVICE_ACCOUNT_KEY))) - .addMethod( - getUploadServiceAccountKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.UploadServiceAccountKeyRequest, - com.google.iam.admin.v1.ServiceAccountKey>( - this, METHODID_UPLOAD_SERVICE_ACCOUNT_KEY))) - .addMethod( - getDeleteServiceAccountKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest, - com.google.protobuf.Empty>( - this, METHODID_DELETE_SERVICE_ACCOUNT_KEY))) - .addMethod( - getDisableServiceAccountKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.DisableServiceAccountKeyRequest, - com.google.protobuf.Empty>( - this, METHODID_DISABLE_SERVICE_ACCOUNT_KEY))) - .addMethod( - getEnableServiceAccountKeyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.EnableServiceAccountKeyRequest, - com.google.protobuf.Empty>( - this, METHODID_ENABLE_SERVICE_ACCOUNT_KEY))) - .addMethod( - getSignBlobMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.SignBlobRequest, - com.google.iam.admin.v1.SignBlobResponse>( - this, METHODID_SIGN_BLOB))) - .addMethod( - getSignJwtMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.SignJwtRequest, - com.google.iam.admin.v1.SignJwtResponse>( - this, METHODID_SIGN_JWT))) - .addMethod( - getGetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.GetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_GET_IAM_POLICY))) - .addMethod( - getSetIamPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.SetIamPolicyRequest, - com.google.iam.v1.Policy>( - this, METHODID_SET_IAM_POLICY))) - .addMethod( - getTestIamPermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.v1.TestIamPermissionsRequest, - com.google.iam.v1.TestIamPermissionsResponse>( - this, METHODID_TEST_IAM_PERMISSIONS))) - .addMethod( - getQueryGrantableRolesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.QueryGrantableRolesRequest, - com.google.iam.admin.v1.QueryGrantableRolesResponse>( - this, METHODID_QUERY_GRANTABLE_ROLES))) - .addMethod( - getListRolesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.ListRolesRequest, - com.google.iam.admin.v1.ListRolesResponse>( - this, METHODID_LIST_ROLES))) - .addMethod( - getGetRoleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.GetRoleRequest, - com.google.iam.admin.v1.Role>( - this, METHODID_GET_ROLE))) - .addMethod( - getCreateRoleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.CreateRoleRequest, - com.google.iam.admin.v1.Role>( - this, METHODID_CREATE_ROLE))) - .addMethod( - getUpdateRoleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.UpdateRoleRequest, - com.google.iam.admin.v1.Role>( - this, METHODID_UPDATE_ROLE))) - .addMethod( - getDeleteRoleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.DeleteRoleRequest, - com.google.iam.admin.v1.Role>( - this, METHODID_DELETE_ROLE))) - .addMethod( - getUndeleteRoleMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.UndeleteRoleRequest, - com.google.iam.admin.v1.Role>( - this, METHODID_UNDELETE_ROLE))) - .addMethod( - getQueryTestablePermissionsMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.QueryTestablePermissionsRequest, - com.google.iam.admin.v1.QueryTestablePermissionsResponse>( - this, METHODID_QUERY_TESTABLE_PERMISSIONS))) - .addMethod( - getQueryAuditableServicesMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.QueryAuditableServicesRequest, - com.google.iam.admin.v1.QueryAuditableServicesResponse>( - this, METHODID_QUERY_AUDITABLE_SERVICES))) - .addMethod( - getLintPolicyMethod(), - io.grpc.stub.ServerCalls.asyncUnaryCall( - new MethodHandlers< - com.google.iam.admin.v1.LintPolicyRequest, - com.google.iam.admin.v1.LintPolicyResponse>( - this, METHODID_LINT_POLICY))) - .build(); - } - } - - /** - *
    -   * Creates and manages Identity and Access Management (IAM) resources.
    -   * You can use this service to work with all of the following resources:
    -   * * **Service accounts**, which identify an application or a virtual machine
    -   *   (VM) instance rather than a person
    -   * * **Service account keys**, which service accounts use to authenticate with
    -   *   Google APIs
    -   * * **IAM policies for service accounts**, which specify the roles that a
    -   *   principal has for the service account
    -   * * **IAM custom roles**, which help you limit the number of permissions that
    -   *   you grant to principals
    -   * In addition, you can use this service to complete the following tasks, among
    -   * others:
    -   * * Test whether a service account can use specific permissions
    -   * * Check which roles you can grant for a specific resource
    -   * * Lint, or validate, condition expressions in an IAM policy
    -   * When you read data from the IAM API, each read is eventually consistent. In
    -   * other words, if you write data with the IAM API, then immediately read that
    -   * data, the read operation might return an older version of the data. To deal
    -   * with this behavior, your application can retry the request with truncated
    -   * exponential backoff.
    -   * In contrast, writing data to the IAM API is sequentially consistent. In other
    -   * words, write operations are always processed in the order in which they were
    -   * received.
    -   * 
    - */ - public static final class IAMStub extends io.grpc.stub.AbstractAsyncStub { - private IAMStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IAMStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IAMStub(channel, callOptions); - } - - /** - *
    -     * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific project.
    -     * 
    - */ - public void listServiceAccounts(com.google.iam.admin.v1.ListServiceAccountsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServiceAccountsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public void getServiceAccount(com.google.iam.admin.v1.GetServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public void createServiceAccount(com.google.iam.admin.v1.CreateServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * **Note:** We are in the process of deprecating this method. Use
    -     * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead.
    -     * Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * You can update only the `display_name` field.
    -     * 
    - */ - public void updateServiceAccount(com.google.iam.admin.v1.ServiceAccount request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Patches a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public void patchServiceAccount(com.google.iam.admin.v1.PatchServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getPatchServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * **Warning:** After you delete a service account, you might not be able to
    -     * undelete it. If you know that you need to re-enable the service account in
    -     * the future, use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead.
    -     * If you delete a service account, IAM permanently removes the service
    -     * account 30 days later. Google Cloud cannot recover the service account
    -     * after it is permanently removed, even if you file a support request.
    -     * To help avoid unplanned outages, we recommend that you disable the service
    -     * account before you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to disable the
    -     * service account, then wait at least 24 hours and watch for unintended
    -     * consequences. If there are no unintended consequences, you can delete the
    -     * service account.
    -     * 
    - */ - public void deleteServiceAccount(com.google.iam.admin.v1.DeleteServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Restores a deleted [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * **Important:** It is not always possible to restore a deleted service
    -     * account. Use this method only as a last resort.
    -     * After you delete a service account, IAM permanently removes the service
    -     * account 30 days later. There is no way to restore a deleted service account
    -     * that has been permanently removed.
    -     * 
    - */ - public void undeleteServiceAccount(com.google.iam.admin.v1.UndeleteServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Enables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] that was disabled by
    -     * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount].
    -     * If the service account is already enabled, then this method has no effect.
    -     * If the service account was disabled by other means—for example, if Google
    -     * disabled the service account because it was compromised—you cannot use this
    -     * method to enable the service account.
    -     * 
    - */ - public void enableServiceAccount(com.google.iam.admin.v1.EnableServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Disables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] immediately.
    -     * If an application uses the service account to authenticate, that
    -     * application can no longer call Google APIs or access Google Cloud
    -     * resources. Existing access tokens for the service account are rejected, and
    -     * requests for new access tokens will fail.
    -     * To re-enable the service account, use [EnableServiceAccount][google.iam.admin.v1.IAM.EnableServiceAccount]. After you
    -     * re-enable the service account, its existing access tokens will be accepted,
    -     * and you can request new access tokens.
    -     * To help avoid unplanned outages, we recommend that you disable the service
    -     * account before you delete it. Use this method to disable the service
    -     * account, then wait at least 24 hours and watch for unintended consequences.
    -     * If there are no unintended consequences, you can delete the service account
    -     * with [DeleteServiceAccount][google.iam.admin.v1.IAM.DeleteServiceAccount].
    -     * 
    - */ - public void disableServiceAccount(com.google.iam.admin.v1.DisableServiceAccountRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableServiceAccountMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account.
    -     * 
    - */ - public void listServiceAccountKeys(com.google.iam.admin.v1.ListServiceAccountKeysRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListServiceAccountKeysMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public void getServiceAccountKey(com.google.iam.admin.v1.GetServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetServiceAccountKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public void createServiceAccountKey(com.google.iam.admin.v1.CreateServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateServiceAccountKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Uploads the public key portion of a key pair that you manage, and
    -     * associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * After you upload the public key, you can use the private key from the key
    -     * pair as a service account key.
    -     * 
    - */ - public void uploadServiceAccountKey(com.google.iam.admin.v1.UploadServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUploadServiceAccountKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service account key does not
    -     * revoke short-lived credentials that have been issued based on the service
    -     * account key.
    -     * 
    - */ - public void deleteServiceAccountKey(com.google.iam.admin.v1.DeleteServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteServiceAccountKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be
    -     * re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    -     * 
    - */ - public void disableServiceAccountKey(com.google.iam.admin.v1.DisableServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDisableServiceAccountKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public void enableServiceAccountKey(com.google.iam.admin.v1.EnableServiceAccountKeyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getEnableServiceAccountKeyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * **Note:** This method is deprecated. Use the
    -     * [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob)
    -     * method in the IAM Service Account Credentials API instead. If you currently
    -     * use this method, see the [migration
    -     * guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
    -     * instructions.
    -     * Signs a blob using the system-managed private key for a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - @java.lang.Deprecated - public void signBlob(com.google.iam.admin.v1.SignBlobRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSignBlobMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * **Note:** This method is deprecated. Use the
    -     * [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt)
    -     * method in the IAM Service Account Credentials API instead. If you currently
    -     * use this method, see the [migration
    -     * guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
    -     * instructions.
    -     * Signs a JSON Web Token (JWT) using the system-managed private key for a
    -     * [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - @java.lang.Deprecated - public void signJwt(com.google.iam.admin.v1.SignJwtRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSignJwtMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM
    -     * policy specifies which principals have access to the service account.
    -     * This method does not tell you whether the service account has been granted
    -     * any roles on other resources. To check whether a service account has role
    -     * grants on a resource, use the `getIamPolicy` method for that resource. For
    -     * example, to view the role grants for a project, call the Resource Manager
    -     * API's
    -     * [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy)
    -     * method.
    -     * 
    - */ - public void getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * Use this method to grant or revoke access to the service account. For
    -     * example, you could grant a principal the ability to impersonate the service
    -     * account.
    -     * This method does not enable the service account to access other resources.
    -     * To grant roles to a service account on a resource, follow these steps:
    -     * 1. Call the resource's `getIamPolicy` method to get its current IAM policy.
    -     * 2. Edit the policy so that it binds the service account to an IAM role for
    -     * the resource.
    -     * 3. Call the resource's `setIamPolicy` method to update its IAM policy.
    -     * For detailed instructions, see
    -     * [Manage access to project, folders, and
    -     * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts)
    -     * or [Manage access to other
    -     * resources](https://cloud.google.com/iam/help/access/manage-other-resources).
    -     * 
    - */ - public void setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Tests whether the caller has the specified permissions on a
    -     * [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public void testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lists roles that can be granted on a Google Cloud resource. A role is
    -     * grantable if the IAM policy for the resource can contain bindings to the
    -     * role.
    -     * 
    - */ - public void queryGrantableRoles(com.google.iam.admin.v1.QueryGrantableRolesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryGrantableRolesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role
    -     * that is defined for an organization or project.
    -     * 
    - */ - public void listRoles(com.google.iam.admin.v1.ListRolesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getListRolesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Gets the definition of a [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public void getRole(com.google.iam.admin.v1.GetRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getGetRoleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Creates a new custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public void createRole(com.google.iam.admin.v1.CreateRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getCreateRoleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Updates the definition of a custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public void updateRole(com.google.iam.admin.v1.UpdateRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUpdateRoleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Deletes a custom [Role][google.iam.admin.v1.Role].
    -     * When you delete a custom role, the following changes occur immediately:
    -     * * You cannot bind a principal to the custom role in an IAM
    -     * [Policy][google.iam.v1.Policy].
    -     * * Existing bindings to the custom role are not changed, but they have no
    -     * effect.
    -     * * By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not include the custom
    -     * role.
    -     * You have 7 days to undelete the custom role. After 7 days, the following
    -     * changes occur:
    -     * * The custom role is permanently deleted and cannot be recovered.
    -     * * If an IAM policy contains a binding to the custom role, the binding is
    -     * permanently removed.
    -     * 
    - */ - public void deleteRole(com.google.iam.admin.v1.DeleteRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getDeleteRoleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Undeletes a custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public void undeleteRole(com.google.iam.admin.v1.UndeleteRoleRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getUndeleteRoleMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lists every permission that you can test on a resource. A permission is
    -     * testable if you can check whether a principal has that permission on the
    -     * resource.
    -     * 
    - */ - public void queryTestablePermissions(com.google.iam.admin.v1.QueryTestablePermissionsRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryTestablePermissionsMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Returns a list of services that allow you to opt into audit logs that are
    -     * not generated by default.
    -     * To learn more about audit logs, see the [Logging
    -     * documentation](https://cloud.google.com/logging/docs/audit).
    -     * 
    - */ - public void queryAuditableServices(com.google.iam.admin.v1.QueryAuditableServicesRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getQueryAuditableServicesMethod(), getCallOptions()), request, responseObserver); - } - - /** - *
    -     * Lints, or validates, an IAM policy. Currently checks the
    -     * [google.iam.v1.Binding.condition][google.iam.v1.Binding.condition] field, which contains a condition
    -     * expression for a role binding.
    -     * Successful calls to this method always return an HTTP `200 OK` status code,
    -     * even if the linter detects an issue in the IAM policy.
    -     * 
    - */ - public void lintPolicy(com.google.iam.admin.v1.LintPolicyRequest request, - io.grpc.stub.StreamObserver responseObserver) { - io.grpc.stub.ClientCalls.asyncUnaryCall( - getChannel().newCall(getLintPolicyMethod(), getCallOptions()), request, responseObserver); - } - } - - /** - *
    -   * Creates and manages Identity and Access Management (IAM) resources.
    -   * You can use this service to work with all of the following resources:
    -   * * **Service accounts**, which identify an application or a virtual machine
    -   *   (VM) instance rather than a person
    -   * * **Service account keys**, which service accounts use to authenticate with
    -   *   Google APIs
    -   * * **IAM policies for service accounts**, which specify the roles that a
    -   *   principal has for the service account
    -   * * **IAM custom roles**, which help you limit the number of permissions that
    -   *   you grant to principals
    -   * In addition, you can use this service to complete the following tasks, among
    -   * others:
    -   * * Test whether a service account can use specific permissions
    -   * * Check which roles you can grant for a specific resource
    -   * * Lint, or validate, condition expressions in an IAM policy
    -   * When you read data from the IAM API, each read is eventually consistent. In
    -   * other words, if you write data with the IAM API, then immediately read that
    -   * data, the read operation might return an older version of the data. To deal
    -   * with this behavior, your application can retry the request with truncated
    -   * exponential backoff.
    -   * In contrast, writing data to the IAM API is sequentially consistent. In other
    -   * words, write operations are always processed in the order in which they were
    -   * received.
    -   * 
    - */ - public static final class IAMBlockingStub extends io.grpc.stub.AbstractBlockingStub { - private IAMBlockingStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IAMBlockingStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IAMBlockingStub(channel, callOptions); - } - - /** - *
    -     * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific project.
    -     * 
    - */ - public com.google.iam.admin.v1.ListServiceAccountsResponse listServiceAccounts(com.google.iam.admin.v1.ListServiceAccountsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServiceAccountsMethod(), getCallOptions(), request); - } - - /** - *
    -     * Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public com.google.iam.admin.v1.ServiceAccount getServiceAccount(com.google.iam.admin.v1.GetServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceAccountMethod(), getCallOptions(), request); - } - - /** - *
    -     * Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public com.google.iam.admin.v1.ServiceAccount createServiceAccount(com.google.iam.admin.v1.CreateServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceAccountMethod(), getCallOptions(), request); - } - - /** - *
    -     * **Note:** We are in the process of deprecating this method. Use
    -     * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead.
    -     * Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * You can update only the `display_name` field.
    -     * 
    - */ - public com.google.iam.admin.v1.ServiceAccount updateServiceAccount(com.google.iam.admin.v1.ServiceAccount request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateServiceAccountMethod(), getCallOptions(), request); - } - - /** - *
    -     * Patches a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public com.google.iam.admin.v1.ServiceAccount patchServiceAccount(com.google.iam.admin.v1.PatchServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getPatchServiceAccountMethod(), getCallOptions(), request); - } - - /** - *
    -     * Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * **Warning:** After you delete a service account, you might not be able to
    -     * undelete it. If you know that you need to re-enable the service account in
    -     * the future, use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead.
    -     * If you delete a service account, IAM permanently removes the service
    -     * account 30 days later. Google Cloud cannot recover the service account
    -     * after it is permanently removed, even if you file a support request.
    -     * To help avoid unplanned outages, we recommend that you disable the service
    -     * account before you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to disable the
    -     * service account, then wait at least 24 hours and watch for unintended
    -     * consequences. If there are no unintended consequences, you can delete the
    -     * service account.
    -     * 
    - */ - public com.google.protobuf.Empty deleteServiceAccount(com.google.iam.admin.v1.DeleteServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceAccountMethod(), getCallOptions(), request); - } - - /** - *
    -     * Restores a deleted [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * **Important:** It is not always possible to restore a deleted service
    -     * account. Use this method only as a last resort.
    -     * After you delete a service account, IAM permanently removes the service
    -     * account 30 days later. There is no way to restore a deleted service account
    -     * that has been permanently removed.
    -     * 
    - */ - public com.google.iam.admin.v1.UndeleteServiceAccountResponse undeleteServiceAccount(com.google.iam.admin.v1.UndeleteServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteServiceAccountMethod(), getCallOptions(), request); - } - - /** - *
    -     * Enables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] that was disabled by
    -     * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount].
    -     * If the service account is already enabled, then this method has no effect.
    -     * If the service account was disabled by other means—for example, if Google
    -     * disabled the service account because it was compromised—you cannot use this
    -     * method to enable the service account.
    -     * 
    - */ - public com.google.protobuf.Empty enableServiceAccount(com.google.iam.admin.v1.EnableServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableServiceAccountMethod(), getCallOptions(), request); - } - - /** - *
    -     * Disables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] immediately.
    -     * If an application uses the service account to authenticate, that
    -     * application can no longer call Google APIs or access Google Cloud
    -     * resources. Existing access tokens for the service account are rejected, and
    -     * requests for new access tokens will fail.
    -     * To re-enable the service account, use [EnableServiceAccount][google.iam.admin.v1.IAM.EnableServiceAccount]. After you
    -     * re-enable the service account, its existing access tokens will be accepted,
    -     * and you can request new access tokens.
    -     * To help avoid unplanned outages, we recommend that you disable the service
    -     * account before you delete it. Use this method to disable the service
    -     * account, then wait at least 24 hours and watch for unintended consequences.
    -     * If there are no unintended consequences, you can delete the service account
    -     * with [DeleteServiceAccount][google.iam.admin.v1.IAM.DeleteServiceAccount].
    -     * 
    - */ - public com.google.protobuf.Empty disableServiceAccount(com.google.iam.admin.v1.DisableServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableServiceAccountMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account.
    -     * 
    - */ - public com.google.iam.admin.v1.ListServiceAccountKeysResponse listServiceAccountKeys(com.google.iam.admin.v1.ListServiceAccountKeysRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListServiceAccountKeysMethod(), getCallOptions(), request); - } - - /** - *
    -     * Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public com.google.iam.admin.v1.ServiceAccountKey getServiceAccountKey(com.google.iam.admin.v1.GetServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetServiceAccountKeyMethod(), getCallOptions(), request); - } - - /** - *
    -     * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public com.google.iam.admin.v1.ServiceAccountKey createServiceAccountKey(com.google.iam.admin.v1.CreateServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateServiceAccountKeyMethod(), getCallOptions(), request); - } - - /** - *
    -     * Uploads the public key portion of a key pair that you manage, and
    -     * associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * After you upload the public key, you can use the private key from the key
    -     * pair as a service account key.
    -     * 
    - */ - public com.google.iam.admin.v1.ServiceAccountKey uploadServiceAccountKey(com.google.iam.admin.v1.UploadServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUploadServiceAccountKeyMethod(), getCallOptions(), request); - } - - /** - *
    -     * Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service account key does not
    -     * revoke short-lived credentials that have been issued based on the service
    -     * account key.
    -     * 
    - */ - public com.google.protobuf.Empty deleteServiceAccountKey(com.google.iam.admin.v1.DeleteServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteServiceAccountKeyMethod(), getCallOptions(), request); - } - - /** - *
    -     * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be
    -     * re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    -     * 
    - */ - public com.google.protobuf.Empty disableServiceAccountKey(com.google.iam.admin.v1.DisableServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDisableServiceAccountKeyMethod(), getCallOptions(), request); - } - - /** - *
    -     * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public com.google.protobuf.Empty enableServiceAccountKey(com.google.iam.admin.v1.EnableServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getEnableServiceAccountKeyMethod(), getCallOptions(), request); - } - - /** - *
    -     * **Note:** This method is deprecated. Use the
    -     * [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob)
    -     * method in the IAM Service Account Credentials API instead. If you currently
    -     * use this method, see the [migration
    -     * guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
    -     * instructions.
    -     * Signs a blob using the system-managed private key for a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - @java.lang.Deprecated - public com.google.iam.admin.v1.SignBlobResponse signBlob(com.google.iam.admin.v1.SignBlobRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSignBlobMethod(), getCallOptions(), request); - } - - /** - *
    -     * **Note:** This method is deprecated. Use the
    -     * [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt)
    -     * method in the IAM Service Account Credentials API instead. If you currently
    -     * use this method, see the [migration
    -     * guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
    -     * instructions.
    -     * Signs a JSON Web Token (JWT) using the system-managed private key for a
    -     * [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - @java.lang.Deprecated - public com.google.iam.admin.v1.SignJwtResponse signJwt(com.google.iam.admin.v1.SignJwtRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSignJwtMethod(), getCallOptions(), request); - } - - /** - *
    -     * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM
    -     * policy specifies which principals have access to the service account.
    -     * This method does not tell you whether the service account has been granted
    -     * any roles on other resources. To check whether a service account has role
    -     * grants on a resource, use the `getIamPolicy` method for that resource. For
    -     * example, to view the role grants for a project, call the Resource Manager
    -     * API's
    -     * [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy)
    -     * method.
    -     * 
    - */ - public com.google.iam.v1.Policy getIamPolicy(com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
    -     * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * Use this method to grant or revoke access to the service account. For
    -     * example, you could grant a principal the ability to impersonate the service
    -     * account.
    -     * This method does not enable the service account to access other resources.
    -     * To grant roles to a service account on a resource, follow these steps:
    -     * 1. Call the resource's `getIamPolicy` method to get its current IAM policy.
    -     * 2. Edit the policy so that it binds the service account to an IAM role for
    -     * the resource.
    -     * 3. Call the resource's `setIamPolicy` method to update its IAM policy.
    -     * For detailed instructions, see
    -     * [Manage access to project, folders, and
    -     * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts)
    -     * or [Manage access to other
    -     * resources](https://cloud.google.com/iam/help/access/manage-other-resources).
    -     * 
    - */ - public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getSetIamPolicyMethod(), getCallOptions(), request); - } - - /** - *
    -     * Tests whether the caller has the specified permissions on a
    -     * [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions(com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getTestIamPermissionsMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lists roles that can be granted on a Google Cloud resource. A role is
    -     * grantable if the IAM policy for the resource can contain bindings to the
    -     * role.
    -     * 
    - */ - public com.google.iam.admin.v1.QueryGrantableRolesResponse queryGrantableRoles(com.google.iam.admin.v1.QueryGrantableRolesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryGrantableRolesMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role
    -     * that is defined for an organization or project.
    -     * 
    - */ - public com.google.iam.admin.v1.ListRolesResponse listRoles(com.google.iam.admin.v1.ListRolesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getListRolesMethod(), getCallOptions(), request); - } - - /** - *
    -     * Gets the definition of a [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public com.google.iam.admin.v1.Role getRole(com.google.iam.admin.v1.GetRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getGetRoleMethod(), getCallOptions(), request); - } - - /** - *
    -     * Creates a new custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public com.google.iam.admin.v1.Role createRole(com.google.iam.admin.v1.CreateRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getCreateRoleMethod(), getCallOptions(), request); - } - - /** - *
    -     * Updates the definition of a custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public com.google.iam.admin.v1.Role updateRole(com.google.iam.admin.v1.UpdateRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUpdateRoleMethod(), getCallOptions(), request); - } - - /** - *
    -     * Deletes a custom [Role][google.iam.admin.v1.Role].
    -     * When you delete a custom role, the following changes occur immediately:
    -     * * You cannot bind a principal to the custom role in an IAM
    -     * [Policy][google.iam.v1.Policy].
    -     * * Existing bindings to the custom role are not changed, but they have no
    -     * effect.
    -     * * By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not include the custom
    -     * role.
    -     * You have 7 days to undelete the custom role. After 7 days, the following
    -     * changes occur:
    -     * * The custom role is permanently deleted and cannot be recovered.
    -     * * If an IAM policy contains a binding to the custom role, the binding is
    -     * permanently removed.
    -     * 
    - */ - public com.google.iam.admin.v1.Role deleteRole(com.google.iam.admin.v1.DeleteRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getDeleteRoleMethod(), getCallOptions(), request); - } - - /** - *
    -     * Undeletes a custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public com.google.iam.admin.v1.Role undeleteRole(com.google.iam.admin.v1.UndeleteRoleRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getUndeleteRoleMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lists every permission that you can test on a resource. A permission is
    -     * testable if you can check whether a principal has that permission on the
    -     * resource.
    -     * 
    - */ - public com.google.iam.admin.v1.QueryTestablePermissionsResponse queryTestablePermissions(com.google.iam.admin.v1.QueryTestablePermissionsRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryTestablePermissionsMethod(), getCallOptions(), request); - } - - /** - *
    -     * Returns a list of services that allow you to opt into audit logs that are
    -     * not generated by default.
    -     * To learn more about audit logs, see the [Logging
    -     * documentation](https://cloud.google.com/logging/docs/audit).
    -     * 
    - */ - public com.google.iam.admin.v1.QueryAuditableServicesResponse queryAuditableServices(com.google.iam.admin.v1.QueryAuditableServicesRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getQueryAuditableServicesMethod(), getCallOptions(), request); - } - - /** - *
    -     * Lints, or validates, an IAM policy. Currently checks the
    -     * [google.iam.v1.Binding.condition][google.iam.v1.Binding.condition] field, which contains a condition
    -     * expression for a role binding.
    -     * Successful calls to this method always return an HTTP `200 OK` status code,
    -     * even if the linter detects an issue in the IAM policy.
    -     * 
    - */ - public com.google.iam.admin.v1.LintPolicyResponse lintPolicy(com.google.iam.admin.v1.LintPolicyRequest request) { - return io.grpc.stub.ClientCalls.blockingUnaryCall( - getChannel(), getLintPolicyMethod(), getCallOptions(), request); - } - } - - /** - *
    -   * Creates and manages Identity and Access Management (IAM) resources.
    -   * You can use this service to work with all of the following resources:
    -   * * **Service accounts**, which identify an application or a virtual machine
    -   *   (VM) instance rather than a person
    -   * * **Service account keys**, which service accounts use to authenticate with
    -   *   Google APIs
    -   * * **IAM policies for service accounts**, which specify the roles that a
    -   *   principal has for the service account
    -   * * **IAM custom roles**, which help you limit the number of permissions that
    -   *   you grant to principals
    -   * In addition, you can use this service to complete the following tasks, among
    -   * others:
    -   * * Test whether a service account can use specific permissions
    -   * * Check which roles you can grant for a specific resource
    -   * * Lint, or validate, condition expressions in an IAM policy
    -   * When you read data from the IAM API, each read is eventually consistent. In
    -   * other words, if you write data with the IAM API, then immediately read that
    -   * data, the read operation might return an older version of the data. To deal
    -   * with this behavior, your application can retry the request with truncated
    -   * exponential backoff.
    -   * In contrast, writing data to the IAM API is sequentially consistent. In other
    -   * words, write operations are always processed in the order in which they were
    -   * received.
    -   * 
    - */ - public static final class IAMFutureStub extends io.grpc.stub.AbstractFutureStub { - private IAMFutureStub( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - super(channel, callOptions); - } - - @java.lang.Override - protected IAMFutureStub build( - io.grpc.Channel channel, io.grpc.CallOptions callOptions) { - return new IAMFutureStub(channel, callOptions); - } - - /** - *
    -     * Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific project.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture listServiceAccounts( - com.google.iam.admin.v1.ListServiceAccountsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServiceAccountsMethod(), getCallOptions()), request); - } - - /** - *
    -     * Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture getServiceAccount( - com.google.iam.admin.v1.GetServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceAccountMethod(), getCallOptions()), request); - } - - /** - *
    -     * Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture createServiceAccount( - com.google.iam.admin.v1.CreateServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceAccountMethod(), getCallOptions()), request); - } - - /** - *
    -     * **Note:** We are in the process of deprecating this method. Use
    -     * [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead.
    -     * Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * You can update only the `display_name` field.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture updateServiceAccount( - com.google.iam.admin.v1.ServiceAccount request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateServiceAccountMethod(), getCallOptions()), request); - } - - /** - *
    -     * Patches a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture patchServiceAccount( - com.google.iam.admin.v1.PatchServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getPatchServiceAccountMethod(), getCallOptions()), request); - } - - /** - *
    -     * Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * **Warning:** After you delete a service account, you might not be able to
    -     * undelete it. If you know that you need to re-enable the service account in
    -     * the future, use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead.
    -     * If you delete a service account, IAM permanently removes the service
    -     * account 30 days later. Google Cloud cannot recover the service account
    -     * after it is permanently removed, even if you file a support request.
    -     * To help avoid unplanned outages, we recommend that you disable the service
    -     * account before you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to disable the
    -     * service account, then wait at least 24 hours and watch for unintended
    -     * consequences. If there are no unintended consequences, you can delete the
    -     * service account.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture deleteServiceAccount( - com.google.iam.admin.v1.DeleteServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceAccountMethod(), getCallOptions()), request); - } - - /** - *
    -     * Restores a deleted [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * **Important:** It is not always possible to restore a deleted service
    -     * account. Use this method only as a last resort.
    -     * After you delete a service account, IAM permanently removes the service
    -     * account 30 days later. There is no way to restore a deleted service account
    -     * that has been permanently removed.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture undeleteServiceAccount( - com.google.iam.admin.v1.UndeleteServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteServiceAccountMethod(), getCallOptions()), request); - } - - /** - *
    -     * Enables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] that was disabled by
    -     * [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount].
    -     * If the service account is already enabled, then this method has no effect.
    -     * If the service account was disabled by other means—for example, if Google
    -     * disabled the service account because it was compromised—you cannot use this
    -     * method to enable the service account.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture enableServiceAccount( - com.google.iam.admin.v1.EnableServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableServiceAccountMethod(), getCallOptions()), request); - } - - /** - *
    -     * Disables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] immediately.
    -     * If an application uses the service account to authenticate, that
    -     * application can no longer call Google APIs or access Google Cloud
    -     * resources. Existing access tokens for the service account are rejected, and
    -     * requests for new access tokens will fail.
    -     * To re-enable the service account, use [EnableServiceAccount][google.iam.admin.v1.IAM.EnableServiceAccount]. After you
    -     * re-enable the service account, its existing access tokens will be accepted,
    -     * and you can request new access tokens.
    -     * To help avoid unplanned outages, we recommend that you disable the service
    -     * account before you delete it. Use this method to disable the service
    -     * account, then wait at least 24 hours and watch for unintended consequences.
    -     * If there are no unintended consequences, you can delete the service account
    -     * with [DeleteServiceAccount][google.iam.admin.v1.IAM.DeleteServiceAccount].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture disableServiceAccount( - com.google.iam.admin.v1.DisableServiceAccountRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableServiceAccountMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture listServiceAccountKeys( - com.google.iam.admin.v1.ListServiceAccountKeysRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListServiceAccountKeysMethod(), getCallOptions()), request); - } - - /** - *
    -     * Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture getServiceAccountKey( - com.google.iam.admin.v1.GetServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetServiceAccountKeyMethod(), getCallOptions()), request); - } - - /** - *
    -     * Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture createServiceAccountKey( - com.google.iam.admin.v1.CreateServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateServiceAccountKeyMethod(), getCallOptions()), request); - } - - /** - *
    -     * Uploads the public key portion of a key pair that you manage, and
    -     * associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * After you upload the public key, you can use the private key from the key
    -     * pair as a service account key.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture uploadServiceAccountKey( - com.google.iam.admin.v1.UploadServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUploadServiceAccountKeyMethod(), getCallOptions()), request); - } - - /** - *
    -     * Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service account key does not
    -     * revoke short-lived credentials that have been issued based on the service
    -     * account key.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture deleteServiceAccountKey( - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteServiceAccountKeyMethod(), getCallOptions()), request); - } - - /** - *
    -     * Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be
    -     * re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture disableServiceAccountKey( - com.google.iam.admin.v1.DisableServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDisableServiceAccountKeyMethod(), getCallOptions()), request); - } - - /** - *
    -     * Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture enableServiceAccountKey( - com.google.iam.admin.v1.EnableServiceAccountKeyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getEnableServiceAccountKeyMethod(), getCallOptions()), request); - } - - /** - *
    -     * **Note:** This method is deprecated. Use the
    -     * [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob)
    -     * method in the IAM Service Account Credentials API instead. If you currently
    -     * use this method, see the [migration
    -     * guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
    -     * instructions.
    -     * Signs a blob using the system-managed private key for a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture signBlob( - com.google.iam.admin.v1.SignBlobRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSignBlobMethod(), getCallOptions()), request); - } - - /** - *
    -     * **Note:** This method is deprecated. Use the
    -     * [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt)
    -     * method in the IAM Service Account Credentials API instead. If you currently
    -     * use this method, see the [migration
    -     * guide](https://cloud.google.com/iam/help/credentials/migrate-api) for
    -     * instructions.
    -     * Signs a JSON Web Token (JWT) using the system-managed private key for a
    -     * [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - @java.lang.Deprecated - public com.google.common.util.concurrent.ListenableFuture signJwt( - com.google.iam.admin.v1.SignJwtRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSignJwtMethod(), getCallOptions()), request); - } - - /** - *
    -     * Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM
    -     * policy specifies which principals have access to the service account.
    -     * This method does not tell you whether the service account has been granted
    -     * any roles on other resources. To check whether a service account has role
    -     * grants on a resource, use the `getIamPolicy` method for that resource. For
    -     * example, to view the role grants for a project, call the Resource Manager
    -     * API's
    -     * [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy)
    -     * method.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture getIamPolicy( - com.google.iam.v1.GetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
    -     * Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * Use this method to grant or revoke access to the service account. For
    -     * example, you could grant a principal the ability to impersonate the service
    -     * account.
    -     * This method does not enable the service account to access other resources.
    -     * To grant roles to a service account on a resource, follow these steps:
    -     * 1. Call the resource's `getIamPolicy` method to get its current IAM policy.
    -     * 2. Edit the policy so that it binds the service account to an IAM role for
    -     * the resource.
    -     * 3. Call the resource's `setIamPolicy` method to update its IAM policy.
    -     * For detailed instructions, see
    -     * [Manage access to project, folders, and
    -     * organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts)
    -     * or [Manage access to other
    -     * resources](https://cloud.google.com/iam/help/access/manage-other-resources).
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture setIamPolicy( - com.google.iam.v1.SetIamPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getSetIamPolicyMethod(), getCallOptions()), request); - } - - /** - *
    -     * Tests whether the caller has the specified permissions on a
    -     * [ServiceAccount][google.iam.admin.v1.ServiceAccount].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture testIamPermissions( - com.google.iam.v1.TestIamPermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getTestIamPermissionsMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lists roles that can be granted on a Google Cloud resource. A role is
    -     * grantable if the IAM policy for the resource can contain bindings to the
    -     * role.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture queryGrantableRoles( - com.google.iam.admin.v1.QueryGrantableRolesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getQueryGrantableRolesMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role
    -     * that is defined for an organization or project.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture listRoles( - com.google.iam.admin.v1.ListRolesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getListRolesMethod(), getCallOptions()), request); - } - - /** - *
    -     * Gets the definition of a [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture getRole( - com.google.iam.admin.v1.GetRoleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getGetRoleMethod(), getCallOptions()), request); - } - - /** - *
    -     * Creates a new custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture createRole( - com.google.iam.admin.v1.CreateRoleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getCreateRoleMethod(), getCallOptions()), request); - } - - /** - *
    -     * Updates the definition of a custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture updateRole( - com.google.iam.admin.v1.UpdateRoleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUpdateRoleMethod(), getCallOptions()), request); - } - - /** - *
    -     * Deletes a custom [Role][google.iam.admin.v1.Role].
    -     * When you delete a custom role, the following changes occur immediately:
    -     * * You cannot bind a principal to the custom role in an IAM
    -     * [Policy][google.iam.v1.Policy].
    -     * * Existing bindings to the custom role are not changed, but they have no
    -     * effect.
    -     * * By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not include the custom
    -     * role.
    -     * You have 7 days to undelete the custom role. After 7 days, the following
    -     * changes occur:
    -     * * The custom role is permanently deleted and cannot be recovered.
    -     * * If an IAM policy contains a binding to the custom role, the binding is
    -     * permanently removed.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture deleteRole( - com.google.iam.admin.v1.DeleteRoleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getDeleteRoleMethod(), getCallOptions()), request); - } - - /** - *
    -     * Undeletes a custom [Role][google.iam.admin.v1.Role].
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture undeleteRole( - com.google.iam.admin.v1.UndeleteRoleRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getUndeleteRoleMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lists every permission that you can test on a resource. A permission is
    -     * testable if you can check whether a principal has that permission on the
    -     * resource.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture queryTestablePermissions( - com.google.iam.admin.v1.QueryTestablePermissionsRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getQueryTestablePermissionsMethod(), getCallOptions()), request); - } - - /** - *
    -     * Returns a list of services that allow you to opt into audit logs that are
    -     * not generated by default.
    -     * To learn more about audit logs, see the [Logging
    -     * documentation](https://cloud.google.com/logging/docs/audit).
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture queryAuditableServices( - com.google.iam.admin.v1.QueryAuditableServicesRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getQueryAuditableServicesMethod(), getCallOptions()), request); - } - - /** - *
    -     * Lints, or validates, an IAM policy. Currently checks the
    -     * [google.iam.v1.Binding.condition][google.iam.v1.Binding.condition] field, which contains a condition
    -     * expression for a role binding.
    -     * Successful calls to this method always return an HTTP `200 OK` status code,
    -     * even if the linter detects an issue in the IAM policy.
    -     * 
    - */ - public com.google.common.util.concurrent.ListenableFuture lintPolicy( - com.google.iam.admin.v1.LintPolicyRequest request) { - return io.grpc.stub.ClientCalls.futureUnaryCall( - getChannel().newCall(getLintPolicyMethod(), getCallOptions()), request); - } - } - - private static final int METHODID_LIST_SERVICE_ACCOUNTS = 0; - private static final int METHODID_GET_SERVICE_ACCOUNT = 1; - private static final int METHODID_CREATE_SERVICE_ACCOUNT = 2; - private static final int METHODID_UPDATE_SERVICE_ACCOUNT = 3; - private static final int METHODID_PATCH_SERVICE_ACCOUNT = 4; - private static final int METHODID_DELETE_SERVICE_ACCOUNT = 5; - private static final int METHODID_UNDELETE_SERVICE_ACCOUNT = 6; - private static final int METHODID_ENABLE_SERVICE_ACCOUNT = 7; - private static final int METHODID_DISABLE_SERVICE_ACCOUNT = 8; - private static final int METHODID_LIST_SERVICE_ACCOUNT_KEYS = 9; - private static final int METHODID_GET_SERVICE_ACCOUNT_KEY = 10; - private static final int METHODID_CREATE_SERVICE_ACCOUNT_KEY = 11; - private static final int METHODID_UPLOAD_SERVICE_ACCOUNT_KEY = 12; - private static final int METHODID_DELETE_SERVICE_ACCOUNT_KEY = 13; - private static final int METHODID_DISABLE_SERVICE_ACCOUNT_KEY = 14; - private static final int METHODID_ENABLE_SERVICE_ACCOUNT_KEY = 15; - private static final int METHODID_SIGN_BLOB = 16; - private static final int METHODID_SIGN_JWT = 17; - private static final int METHODID_GET_IAM_POLICY = 18; - private static final int METHODID_SET_IAM_POLICY = 19; - private static final int METHODID_TEST_IAM_PERMISSIONS = 20; - private static final int METHODID_QUERY_GRANTABLE_ROLES = 21; - private static final int METHODID_LIST_ROLES = 22; - private static final int METHODID_GET_ROLE = 23; - private static final int METHODID_CREATE_ROLE = 24; - private static final int METHODID_UPDATE_ROLE = 25; - private static final int METHODID_DELETE_ROLE = 26; - private static final int METHODID_UNDELETE_ROLE = 27; - private static final int METHODID_QUERY_TESTABLE_PERMISSIONS = 28; - private static final int METHODID_QUERY_AUDITABLE_SERVICES = 29; - private static final int METHODID_LINT_POLICY = 30; - - private static final class MethodHandlers implements - io.grpc.stub.ServerCalls.UnaryMethod, - io.grpc.stub.ServerCalls.ServerStreamingMethod, - io.grpc.stub.ServerCalls.ClientStreamingMethod, - io.grpc.stub.ServerCalls.BidiStreamingMethod { - private final IAMImplBase serviceImpl; - private final int methodId; - - MethodHandlers(IAMImplBase serviceImpl, int methodId) { - this.serviceImpl = serviceImpl; - this.methodId = methodId; - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public void invoke(Req request, io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - case METHODID_LIST_SERVICE_ACCOUNTS: - serviceImpl.listServiceAccounts((com.google.iam.admin.v1.ListServiceAccountsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVICE_ACCOUNT: - serviceImpl.getServiceAccount((com.google.iam.admin.v1.GetServiceAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SERVICE_ACCOUNT: - serviceImpl.createServiceAccount((com.google.iam.admin.v1.CreateServiceAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_SERVICE_ACCOUNT: - serviceImpl.updateServiceAccount((com.google.iam.admin.v1.ServiceAccount) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_PATCH_SERVICE_ACCOUNT: - serviceImpl.patchServiceAccount((com.google.iam.admin.v1.PatchServiceAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVICE_ACCOUNT: - serviceImpl.deleteServiceAccount((com.google.iam.admin.v1.DeleteServiceAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_SERVICE_ACCOUNT: - serviceImpl.undeleteServiceAccount((com.google.iam.admin.v1.UndeleteServiceAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENABLE_SERVICE_ACCOUNT: - serviceImpl.enableServiceAccount((com.google.iam.admin.v1.EnableServiceAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISABLE_SERVICE_ACCOUNT: - serviceImpl.disableServiceAccount((com.google.iam.admin.v1.DisableServiceAccountRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_SERVICE_ACCOUNT_KEYS: - serviceImpl.listServiceAccountKeys((com.google.iam.admin.v1.ListServiceAccountKeysRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_SERVICE_ACCOUNT_KEY: - serviceImpl.getServiceAccountKey((com.google.iam.admin.v1.GetServiceAccountKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_SERVICE_ACCOUNT_KEY: - serviceImpl.createServiceAccountKey((com.google.iam.admin.v1.CreateServiceAccountKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPLOAD_SERVICE_ACCOUNT_KEY: - serviceImpl.uploadServiceAccountKey((com.google.iam.admin.v1.UploadServiceAccountKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_SERVICE_ACCOUNT_KEY: - serviceImpl.deleteServiceAccountKey((com.google.iam.admin.v1.DeleteServiceAccountKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DISABLE_SERVICE_ACCOUNT_KEY: - serviceImpl.disableServiceAccountKey((com.google.iam.admin.v1.DisableServiceAccountKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_ENABLE_SERVICE_ACCOUNT_KEY: - serviceImpl.enableServiceAccountKey((com.google.iam.admin.v1.EnableServiceAccountKeyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SIGN_BLOB: - serviceImpl.signBlob((com.google.iam.admin.v1.SignBlobRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SIGN_JWT: - serviceImpl.signJwt((com.google.iam.admin.v1.SignJwtRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_IAM_POLICY: - serviceImpl.getIamPolicy((com.google.iam.v1.GetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_SET_IAM_POLICY: - serviceImpl.setIamPolicy((com.google.iam.v1.SetIamPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_TEST_IAM_PERMISSIONS: - serviceImpl.testIamPermissions((com.google.iam.v1.TestIamPermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_GRANTABLE_ROLES: - serviceImpl.queryGrantableRoles((com.google.iam.admin.v1.QueryGrantableRolesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LIST_ROLES: - serviceImpl.listRoles((com.google.iam.admin.v1.ListRolesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_GET_ROLE: - serviceImpl.getRole((com.google.iam.admin.v1.GetRoleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_CREATE_ROLE: - serviceImpl.createRole((com.google.iam.admin.v1.CreateRoleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UPDATE_ROLE: - serviceImpl.updateRole((com.google.iam.admin.v1.UpdateRoleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_DELETE_ROLE: - serviceImpl.deleteRole((com.google.iam.admin.v1.DeleteRoleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_UNDELETE_ROLE: - serviceImpl.undeleteRole((com.google.iam.admin.v1.UndeleteRoleRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_TESTABLE_PERMISSIONS: - serviceImpl.queryTestablePermissions((com.google.iam.admin.v1.QueryTestablePermissionsRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_QUERY_AUDITABLE_SERVICES: - serviceImpl.queryAuditableServices((com.google.iam.admin.v1.QueryAuditableServicesRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - case METHODID_LINT_POLICY: - serviceImpl.lintPolicy((com.google.iam.admin.v1.LintPolicyRequest) request, - (io.grpc.stub.StreamObserver) responseObserver); - break; - default: - throw new AssertionError(); - } - } - - @java.lang.Override - @java.lang.SuppressWarnings("unchecked") - public io.grpc.stub.StreamObserver invoke( - io.grpc.stub.StreamObserver responseObserver) { - switch (methodId) { - default: - throw new AssertionError(); - } - } - } - - private static abstract class IAMBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoFileDescriptorSupplier, io.grpc.protobuf.ProtoServiceDescriptorSupplier { - IAMBaseDescriptorSupplier() {} - - @java.lang.Override - public com.google.protobuf.Descriptors.FileDescriptor getFileDescriptor() { - return com.google.iam.admin.v1.Iam.getDescriptor(); - } - - @java.lang.Override - public com.google.protobuf.Descriptors.ServiceDescriptor getServiceDescriptor() { - return getFileDescriptor().findServiceByName("IAM"); - } - } - - private static final class IAMFileDescriptorSupplier - extends IAMBaseDescriptorSupplier { - IAMFileDescriptorSupplier() {} - } - - private static final class IAMMethodDescriptorSupplier - extends IAMBaseDescriptorSupplier - implements io.grpc.protobuf.ProtoMethodDescriptorSupplier { - private final String methodName; - - IAMMethodDescriptorSupplier(String methodName) { - this.methodName = methodName; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.MethodDescriptor getMethodDescriptor() { - return getServiceDescriptor().findMethodByName(methodName); - } - } - - private static volatile io.grpc.ServiceDescriptor serviceDescriptor; - - public static io.grpc.ServiceDescriptor getServiceDescriptor() { - io.grpc.ServiceDescriptor result = serviceDescriptor; - if (result == null) { - synchronized (IAMGrpc.class) { - result = serviceDescriptor; - if (result == null) { - serviceDescriptor = result = io.grpc.ServiceDescriptor.newBuilder(SERVICE_NAME) - .setSchemaDescriptor(new IAMFileDescriptorSupplier()) - .addMethod(getListServiceAccountsMethod()) - .addMethod(getGetServiceAccountMethod()) - .addMethod(getCreateServiceAccountMethod()) - .addMethod(getUpdateServiceAccountMethod()) - .addMethod(getPatchServiceAccountMethod()) - .addMethod(getDeleteServiceAccountMethod()) - .addMethod(getUndeleteServiceAccountMethod()) - .addMethod(getEnableServiceAccountMethod()) - .addMethod(getDisableServiceAccountMethod()) - .addMethod(getListServiceAccountKeysMethod()) - .addMethod(getGetServiceAccountKeyMethod()) - .addMethod(getCreateServiceAccountKeyMethod()) - .addMethod(getUploadServiceAccountKeyMethod()) - .addMethod(getDeleteServiceAccountKeyMethod()) - .addMethod(getDisableServiceAccountKeyMethod()) - .addMethod(getEnableServiceAccountKeyMethod()) - .addMethod(getSignBlobMethod()) - .addMethod(getSignJwtMethod()) - .addMethod(getGetIamPolicyMethod()) - .addMethod(getSetIamPolicyMethod()) - .addMethod(getTestIamPermissionsMethod()) - .addMethod(getQueryGrantableRolesMethod()) - .addMethod(getListRolesMethod()) - .addMethod(getGetRoleMethod()) - .addMethod(getCreateRoleMethod()) - .addMethod(getUpdateRoleMethod()) - .addMethod(getDeleteRoleMethod()) - .addMethod(getUndeleteRoleMethod()) - .addMethod(getQueryTestablePermissionsMethod()) - .addMethod(getQueryAuditableServicesMethod()) - .addMethod(getLintPolicyMethod()) - .build(); - } - } - } - return result; - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditData.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditData.java deleted file mode 100644 index f754524df09c..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditData.java +++ /dev/null @@ -1,1672 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/audit_data.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Audit log information specific to Cloud IAM admin APIs. This message is
    - * serialized as an `Any` type in the `ServiceData` message of an
    - * `AuditLog` message.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.AuditData} - */ -public final class AuditData extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.AuditData) - AuditDataOrBuilder { -private static final long serialVersionUID = 0L; - // Use AuditData.newBuilder() to construct. - private AuditData(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuditData() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AuditData(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuditData( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.iam.admin.v1.AuditData.PermissionDelta.Builder subBuilder = null; - if (permissionDelta_ != null) { - subBuilder = permissionDelta_.toBuilder(); - } - permissionDelta_ = input.readMessage(com.google.iam.admin.v1.AuditData.PermissionDelta.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(permissionDelta_); - permissionDelta_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.AuditData.class, com.google.iam.admin.v1.AuditData.Builder.class); - } - - public interface PermissionDeltaOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.AuditData.PermissionDelta) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -     * Added permissions.
    -     * 
    - * - * repeated string added_permissions = 1; - * @return A list containing the addedPermissions. - */ - java.util.List - getAddedPermissionsList(); - /** - *
    -     * Added permissions.
    -     * 
    - * - * repeated string added_permissions = 1; - * @return The count of addedPermissions. - */ - int getAddedPermissionsCount(); - /** - *
    -     * Added permissions.
    -     * 
    - * - * repeated string added_permissions = 1; - * @param index The index of the element to return. - * @return The addedPermissions at the given index. - */ - java.lang.String getAddedPermissions(int index); - /** - *
    -     * Added permissions.
    -     * 
    - * - * repeated string added_permissions = 1; - * @param index The index of the value to return. - * @return The bytes of the addedPermissions at the given index. - */ - com.google.protobuf.ByteString - getAddedPermissionsBytes(int index); - - /** - *
    -     * Removed permissions.
    -     * 
    - * - * repeated string removed_permissions = 2; - * @return A list containing the removedPermissions. - */ - java.util.List - getRemovedPermissionsList(); - /** - *
    -     * Removed permissions.
    -     * 
    - * - * repeated string removed_permissions = 2; - * @return The count of removedPermissions. - */ - int getRemovedPermissionsCount(); - /** - *
    -     * Removed permissions.
    -     * 
    - * - * repeated string removed_permissions = 2; - * @param index The index of the element to return. - * @return The removedPermissions at the given index. - */ - java.lang.String getRemovedPermissions(int index); - /** - *
    -     * Removed permissions.
    -     * 
    - * - * repeated string removed_permissions = 2; - * @param index The index of the value to return. - * @return The bytes of the removedPermissions at the given index. - */ - com.google.protobuf.ByteString - getRemovedPermissionsBytes(int index); - } - /** - *
    -   * A PermissionDelta message to record the added_permissions and
    -   * removed_permissions inside a role.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.AuditData.PermissionDelta} - */ - public static final class PermissionDelta extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.AuditData.PermissionDelta) - PermissionDeltaOrBuilder { - private static final long serialVersionUID = 0L; - // Use PermissionDelta.newBuilder() to construct. - private PermissionDelta(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PermissionDelta() { - addedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - removedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PermissionDelta(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PermissionDelta( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - addedPermissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - addedPermissions_.add(s); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000002) != 0)) { - removedPermissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000002; - } - removedPermissions_.add(s); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - addedPermissions_ = addedPermissions_.getUnmodifiableView(); - } - if (((mutable_bitField0_ & 0x00000002) != 0)) { - removedPermissions_ = removedPermissions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_PermissionDelta_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_PermissionDelta_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.AuditData.PermissionDelta.class, com.google.iam.admin.v1.AuditData.PermissionDelta.Builder.class); - } - - public static final int ADDED_PERMISSIONS_FIELD_NUMBER = 1; - private com.google.protobuf.LazyStringList addedPermissions_; - /** - *
    -     * Added permissions.
    -     * 
    - * - * repeated string added_permissions = 1; - * @return A list containing the addedPermissions. - */ - public com.google.protobuf.ProtocolStringList - getAddedPermissionsList() { - return addedPermissions_; - } - /** - *
    -     * Added permissions.
    -     * 
    - * - * repeated string added_permissions = 1; - * @return The count of addedPermissions. - */ - public int getAddedPermissionsCount() { - return addedPermissions_.size(); - } - /** - *
    -     * Added permissions.
    -     * 
    - * - * repeated string added_permissions = 1; - * @param index The index of the element to return. - * @return The addedPermissions at the given index. - */ - public java.lang.String getAddedPermissions(int index) { - return addedPermissions_.get(index); - } - /** - *
    -     * Added permissions.
    -     * 
    - * - * repeated string added_permissions = 1; - * @param index The index of the value to return. - * @return The bytes of the addedPermissions at the given index. - */ - public com.google.protobuf.ByteString - getAddedPermissionsBytes(int index) { - return addedPermissions_.getByteString(index); - } - - public static final int REMOVED_PERMISSIONS_FIELD_NUMBER = 2; - private com.google.protobuf.LazyStringList removedPermissions_; - /** - *
    -     * Removed permissions.
    -     * 
    - * - * repeated string removed_permissions = 2; - * @return A list containing the removedPermissions. - */ - public com.google.protobuf.ProtocolStringList - getRemovedPermissionsList() { - return removedPermissions_; - } - /** - *
    -     * Removed permissions.
    -     * 
    - * - * repeated string removed_permissions = 2; - * @return The count of removedPermissions. - */ - public int getRemovedPermissionsCount() { - return removedPermissions_.size(); - } - /** - *
    -     * Removed permissions.
    -     * 
    - * - * repeated string removed_permissions = 2; - * @param index The index of the element to return. - * @return The removedPermissions at the given index. - */ - public java.lang.String getRemovedPermissions(int index) { - return removedPermissions_.get(index); - } - /** - *
    -     * Removed permissions.
    -     * 
    - * - * repeated string removed_permissions = 2; - * @param index The index of the value to return. - * @return The bytes of the removedPermissions at the given index. - */ - public com.google.protobuf.ByteString - getRemovedPermissionsBytes(int index) { - return removedPermissions_.getByteString(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < addedPermissions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, addedPermissions_.getRaw(i)); - } - for (int i = 0; i < removedPermissions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, removedPermissions_.getRaw(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - { - int dataSize = 0; - for (int i = 0; i < addedPermissions_.size(); i++) { - dataSize += computeStringSizeNoTag(addedPermissions_.getRaw(i)); - } - size += dataSize; - size += 1 * getAddedPermissionsList().size(); - } - { - int dataSize = 0; - for (int i = 0; i < removedPermissions_.size(); i++) { - dataSize += computeStringSizeNoTag(removedPermissions_.getRaw(i)); - } - size += dataSize; - size += 1 * getRemovedPermissionsList().size(); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.AuditData.PermissionDelta)) { - return super.equals(obj); - } - com.google.iam.admin.v1.AuditData.PermissionDelta other = (com.google.iam.admin.v1.AuditData.PermissionDelta) obj; - - if (!getAddedPermissionsList() - .equals(other.getAddedPermissionsList())) return false; - if (!getRemovedPermissionsList() - .equals(other.getRemovedPermissionsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAddedPermissionsCount() > 0) { - hash = (37 * hash) + ADDED_PERMISSIONS_FIELD_NUMBER; - hash = (53 * hash) + getAddedPermissionsList().hashCode(); - } - if (getRemovedPermissionsCount() > 0) { - hash = (37 * hash) + REMOVED_PERMISSIONS_FIELD_NUMBER; - hash = (53 * hash) + getRemovedPermissionsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.AuditData.PermissionDelta parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.AuditData.PermissionDelta prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -     * A PermissionDelta message to record the added_permissions and
    -     * removed_permissions inside a role.
    -     * 
    - * - * Protobuf type {@code google.iam.admin.v1.AuditData.PermissionDelta} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.AuditData.PermissionDelta) - com.google.iam.admin.v1.AuditData.PermissionDeltaOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_PermissionDelta_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_PermissionDelta_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.AuditData.PermissionDelta.class, com.google.iam.admin.v1.AuditData.PermissionDelta.Builder.class); - } - - // Construct using com.google.iam.admin.v1.AuditData.PermissionDelta.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - addedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - removedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_PermissionDelta_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.AuditData.PermissionDelta getDefaultInstanceForType() { - return com.google.iam.admin.v1.AuditData.PermissionDelta.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.AuditData.PermissionDelta build() { - com.google.iam.admin.v1.AuditData.PermissionDelta result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.AuditData.PermissionDelta buildPartial() { - com.google.iam.admin.v1.AuditData.PermissionDelta result = new com.google.iam.admin.v1.AuditData.PermissionDelta(this); - int from_bitField0_ = bitField0_; - if (((bitField0_ & 0x00000001) != 0)) { - addedPermissions_ = addedPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.addedPermissions_ = addedPermissions_; - if (((bitField0_ & 0x00000002) != 0)) { - removedPermissions_ = removedPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000002); - } - result.removedPermissions_ = removedPermissions_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.AuditData.PermissionDelta) { - return mergeFrom((com.google.iam.admin.v1.AuditData.PermissionDelta)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.AuditData.PermissionDelta other) { - if (other == com.google.iam.admin.v1.AuditData.PermissionDelta.getDefaultInstance()) return this; - if (!other.addedPermissions_.isEmpty()) { - if (addedPermissions_.isEmpty()) { - addedPermissions_ = other.addedPermissions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAddedPermissionsIsMutable(); - addedPermissions_.addAll(other.addedPermissions_); - } - onChanged(); - } - if (!other.removedPermissions_.isEmpty()) { - if (removedPermissions_.isEmpty()) { - removedPermissions_ = other.removedPermissions_; - bitField0_ = (bitField0_ & ~0x00000002); - } else { - ensureRemovedPermissionsIsMutable(); - removedPermissions_.addAll(other.removedPermissions_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.AuditData.PermissionDelta parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.AuditData.PermissionDelta) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private com.google.protobuf.LazyStringList addedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureAddedPermissionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - addedPermissions_ = new com.google.protobuf.LazyStringArrayList(addedPermissions_); - bitField0_ |= 0x00000001; - } - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @return A list containing the addedPermissions. - */ - public com.google.protobuf.ProtocolStringList - getAddedPermissionsList() { - return addedPermissions_.getUnmodifiableView(); - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @return The count of addedPermissions. - */ - public int getAddedPermissionsCount() { - return addedPermissions_.size(); - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @param index The index of the element to return. - * @return The addedPermissions at the given index. - */ - public java.lang.String getAddedPermissions(int index) { - return addedPermissions_.get(index); - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @param index The index of the value to return. - * @return The bytes of the addedPermissions at the given index. - */ - public com.google.protobuf.ByteString - getAddedPermissionsBytes(int index) { - return addedPermissions_.getByteString(index); - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @param index The index to set the value at. - * @param value The addedPermissions to set. - * @return This builder for chaining. - */ - public Builder setAddedPermissions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddedPermissionsIsMutable(); - addedPermissions_.set(index, value); - onChanged(); - return this; - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @param value The addedPermissions to add. - * @return This builder for chaining. - */ - public Builder addAddedPermissions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureAddedPermissionsIsMutable(); - addedPermissions_.add(value); - onChanged(); - return this; - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @param values The addedPermissions to add. - * @return This builder for chaining. - */ - public Builder addAllAddedPermissions( - java.lang.Iterable values) { - ensureAddedPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, addedPermissions_); - onChanged(); - return this; - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @return This builder for chaining. - */ - public Builder clearAddedPermissions() { - addedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
    -       * Added permissions.
    -       * 
    - * - * repeated string added_permissions = 1; - * @param value The bytes of the addedPermissions to add. - * @return This builder for chaining. - */ - public Builder addAddedPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureAddedPermissionsIsMutable(); - addedPermissions_.add(value); - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList removedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureRemovedPermissionsIsMutable() { - if (!((bitField0_ & 0x00000002) != 0)) { - removedPermissions_ = new com.google.protobuf.LazyStringArrayList(removedPermissions_); - bitField0_ |= 0x00000002; - } - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @return A list containing the removedPermissions. - */ - public com.google.protobuf.ProtocolStringList - getRemovedPermissionsList() { - return removedPermissions_.getUnmodifiableView(); - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @return The count of removedPermissions. - */ - public int getRemovedPermissionsCount() { - return removedPermissions_.size(); - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @param index The index of the element to return. - * @return The removedPermissions at the given index. - */ - public java.lang.String getRemovedPermissions(int index) { - return removedPermissions_.get(index); - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @param index The index of the value to return. - * @return The bytes of the removedPermissions at the given index. - */ - public com.google.protobuf.ByteString - getRemovedPermissionsBytes(int index) { - return removedPermissions_.getByteString(index); - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @param index The index to set the value at. - * @param value The removedPermissions to set. - * @return This builder for chaining. - */ - public Builder setRemovedPermissions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRemovedPermissionsIsMutable(); - removedPermissions_.set(index, value); - onChanged(); - return this; - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @param value The removedPermissions to add. - * @return This builder for chaining. - */ - public Builder addRemovedPermissions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureRemovedPermissionsIsMutable(); - removedPermissions_.add(value); - onChanged(); - return this; - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @param values The removedPermissions to add. - * @return This builder for chaining. - */ - public Builder addAllRemovedPermissions( - java.lang.Iterable values) { - ensureRemovedPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, removedPermissions_); - onChanged(); - return this; - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @return This builder for chaining. - */ - public Builder clearRemovedPermissions() { - removedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000002); - onChanged(); - return this; - } - /** - *
    -       * Removed permissions.
    -       * 
    - * - * repeated string removed_permissions = 2; - * @param value The bytes of the removedPermissions to add. - * @return This builder for chaining. - */ - public Builder addRemovedPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureRemovedPermissionsIsMutable(); - removedPermissions_.add(value); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.AuditData.PermissionDelta) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.AuditData.PermissionDelta) - private static final com.google.iam.admin.v1.AuditData.PermissionDelta DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.AuditData.PermissionDelta(); - } - - public static com.google.iam.admin.v1.AuditData.PermissionDelta getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PermissionDelta parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PermissionDelta(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.AuditData.PermissionDelta getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int PERMISSION_DELTA_FIELD_NUMBER = 1; - private com.google.iam.admin.v1.AuditData.PermissionDelta permissionDelta_; - /** - *
    -   * The permission_delta when when creating or updating a Role.
    -   * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - * @return Whether the permissionDelta field is set. - */ - @java.lang.Override - public boolean hasPermissionDelta() { - return permissionDelta_ != null; - } - /** - *
    -   * The permission_delta when when creating or updating a Role.
    -   * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - * @return The permissionDelta. - */ - @java.lang.Override - public com.google.iam.admin.v1.AuditData.PermissionDelta getPermissionDelta() { - return permissionDelta_ == null ? com.google.iam.admin.v1.AuditData.PermissionDelta.getDefaultInstance() : permissionDelta_; - } - /** - *
    -   * The permission_delta when when creating or updating a Role.
    -   * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.AuditData.PermissionDeltaOrBuilder getPermissionDeltaOrBuilder() { - return getPermissionDelta(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (permissionDelta_ != null) { - output.writeMessage(1, getPermissionDelta()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (permissionDelta_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getPermissionDelta()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.AuditData)) { - return super.equals(obj); - } - com.google.iam.admin.v1.AuditData other = (com.google.iam.admin.v1.AuditData) obj; - - if (hasPermissionDelta() != other.hasPermissionDelta()) return false; - if (hasPermissionDelta()) { - if (!getPermissionDelta() - .equals(other.getPermissionDelta())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasPermissionDelta()) { - hash = (37 * hash) + PERMISSION_DELTA_FIELD_NUMBER; - hash = (53 * hash) + getPermissionDelta().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.AuditData parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.AuditData parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.AuditData parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.AuditData parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.AuditData parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.AuditData parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.AuditData parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.AuditData parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.AuditData prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * Audit log information specific to Cloud IAM admin APIs. This message is
    -   * serialized as an `Any` type in the `ServiceData` message of an
    -   * `AuditLog` message.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.AuditData} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.AuditData) - com.google.iam.admin.v1.AuditDataOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.AuditData.class, com.google.iam.admin.v1.AuditData.Builder.class); - } - - // Construct using com.google.iam.admin.v1.AuditData.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (permissionDeltaBuilder_ == null) { - permissionDelta_ = null; - } else { - permissionDelta_ = null; - permissionDeltaBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.AuditDataProto.internal_static_google_iam_admin_v1_AuditData_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.AuditData getDefaultInstanceForType() { - return com.google.iam.admin.v1.AuditData.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.AuditData build() { - com.google.iam.admin.v1.AuditData result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.AuditData buildPartial() { - com.google.iam.admin.v1.AuditData result = new com.google.iam.admin.v1.AuditData(this); - if (permissionDeltaBuilder_ == null) { - result.permissionDelta_ = permissionDelta_; - } else { - result.permissionDelta_ = permissionDeltaBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.AuditData) { - return mergeFrom((com.google.iam.admin.v1.AuditData)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.AuditData other) { - if (other == com.google.iam.admin.v1.AuditData.getDefaultInstance()) return this; - if (other.hasPermissionDelta()) { - mergePermissionDelta(other.getPermissionDelta()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.AuditData parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.AuditData) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.iam.admin.v1.AuditData.PermissionDelta permissionDelta_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.AuditData.PermissionDelta, com.google.iam.admin.v1.AuditData.PermissionDelta.Builder, com.google.iam.admin.v1.AuditData.PermissionDeltaOrBuilder> permissionDeltaBuilder_; - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - * @return Whether the permissionDelta field is set. - */ - public boolean hasPermissionDelta() { - return permissionDeltaBuilder_ != null || permissionDelta_ != null; - } - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - * @return The permissionDelta. - */ - public com.google.iam.admin.v1.AuditData.PermissionDelta getPermissionDelta() { - if (permissionDeltaBuilder_ == null) { - return permissionDelta_ == null ? com.google.iam.admin.v1.AuditData.PermissionDelta.getDefaultInstance() : permissionDelta_; - } else { - return permissionDeltaBuilder_.getMessage(); - } - } - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - public Builder setPermissionDelta(com.google.iam.admin.v1.AuditData.PermissionDelta value) { - if (permissionDeltaBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - permissionDelta_ = value; - onChanged(); - } else { - permissionDeltaBuilder_.setMessage(value); - } - - return this; - } - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - public Builder setPermissionDelta( - com.google.iam.admin.v1.AuditData.PermissionDelta.Builder builderForValue) { - if (permissionDeltaBuilder_ == null) { - permissionDelta_ = builderForValue.build(); - onChanged(); - } else { - permissionDeltaBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - public Builder mergePermissionDelta(com.google.iam.admin.v1.AuditData.PermissionDelta value) { - if (permissionDeltaBuilder_ == null) { - if (permissionDelta_ != null) { - permissionDelta_ = - com.google.iam.admin.v1.AuditData.PermissionDelta.newBuilder(permissionDelta_).mergeFrom(value).buildPartial(); - } else { - permissionDelta_ = value; - } - onChanged(); - } else { - permissionDeltaBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - public Builder clearPermissionDelta() { - if (permissionDeltaBuilder_ == null) { - permissionDelta_ = null; - onChanged(); - } else { - permissionDelta_ = null; - permissionDeltaBuilder_ = null; - } - - return this; - } - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - public com.google.iam.admin.v1.AuditData.PermissionDelta.Builder getPermissionDeltaBuilder() { - - onChanged(); - return getPermissionDeltaFieldBuilder().getBuilder(); - } - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - public com.google.iam.admin.v1.AuditData.PermissionDeltaOrBuilder getPermissionDeltaOrBuilder() { - if (permissionDeltaBuilder_ != null) { - return permissionDeltaBuilder_.getMessageOrBuilder(); - } else { - return permissionDelta_ == null ? - com.google.iam.admin.v1.AuditData.PermissionDelta.getDefaultInstance() : permissionDelta_; - } - } - /** - *
    -     * The permission_delta when when creating or updating a Role.
    -     * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.AuditData.PermissionDelta, com.google.iam.admin.v1.AuditData.PermissionDelta.Builder, com.google.iam.admin.v1.AuditData.PermissionDeltaOrBuilder> - getPermissionDeltaFieldBuilder() { - if (permissionDeltaBuilder_ == null) { - permissionDeltaBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.AuditData.PermissionDelta, com.google.iam.admin.v1.AuditData.PermissionDelta.Builder, com.google.iam.admin.v1.AuditData.PermissionDeltaOrBuilder>( - getPermissionDelta(), - getParentForChildren(), - isClean()); - permissionDelta_ = null; - } - return permissionDeltaBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.AuditData) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.AuditData) - private static final com.google.iam.admin.v1.AuditData DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.AuditData(); - } - - public static com.google.iam.admin.v1.AuditData getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditData parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuditData(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.AuditData getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditDataOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditDataOrBuilder.java deleted file mode 100644 index ba916d271515..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditDataOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/audit_data.proto - -package com.google.iam.admin.v1; - -public interface AuditDataOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.AuditData) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The permission_delta when when creating or updating a Role.
    -   * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - * @return Whether the permissionDelta field is set. - */ - boolean hasPermissionDelta(); - /** - *
    -   * The permission_delta when when creating or updating a Role.
    -   * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - * @return The permissionDelta. - */ - com.google.iam.admin.v1.AuditData.PermissionDelta getPermissionDelta(); - /** - *
    -   * The permission_delta when when creating or updating a Role.
    -   * 
    - * - * .google.iam.admin.v1.AuditData.PermissionDelta permission_delta = 1; - */ - com.google.iam.admin.v1.AuditData.PermissionDeltaOrBuilder getPermissionDeltaOrBuilder(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditDataProto.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditDataProto.java deleted file mode 100644 index 2088a4209caa..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/AuditDataProto.java +++ /dev/null @@ -1,66 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/audit_data.proto - -package com.google.iam.admin.v1; - -public final class AuditDataProto { - private AuditDataProto() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_AuditData_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_AuditData_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_AuditData_PermissionDelta_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_AuditData_PermissionDelta_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n$google/iam/admin/v1/audit_data.proto\022\023" + - "google.iam.admin.v1\"\240\001\n\tAuditData\022H\n\020per" + - "mission_delta\030\001 \001(\0132..google.iam.admin.v" + - "1.AuditData.PermissionDelta\032I\n\017Permissio" + - "nDelta\022\031\n\021added_permissions\030\001 \003(\t\022\033\n\023rem" + - "oved_permissions\030\002 \003(\tB\235\001\n\027com.google.ia" + - "m.admin.v1B\016AuditDataProtoP\001Z8google.gol" + - "ang.org/genproto/googleapis/iam/admin/v1" + - ";admin\252\002\031Google.Cloud.Iam.Admin.V1\312\002\031Goo" + - "gle\\Cloud\\Iam\\Admin\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - }); - internal_static_google_iam_admin_v1_AuditData_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_admin_v1_AuditData_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_AuditData_descriptor, - new java.lang.String[] { "PermissionDelta", }); - internal_static_google_iam_admin_v1_AuditData_PermissionDelta_descriptor = - internal_static_google_iam_admin_v1_AuditData_descriptor.getNestedTypes().get(0); - internal_static_google_iam_admin_v1_AuditData_PermissionDelta_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_AuditData_PermissionDelta_descriptor, - new java.lang.String[] { "AddedPermissions", "RemovedPermissions", }); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequest.java deleted file mode 100644 index d8208330949c..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequest.java +++ /dev/null @@ -1,1151 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The request to create a new role.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.CreateRoleRequest} - */ -public final class CreateRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.CreateRoleRequest) - CreateRoleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateRoleRequest.newBuilder() to construct. - private CreateRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateRoleRequest() { - parent_ = ""; - roleId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateRoleRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateRoleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - roleId_ = s; - break; - } - case 26: { - com.google.iam.admin.v1.Role.Builder subBuilder = null; - if (role_ != null) { - subBuilder = role_.toBuilder(); - } - role_ = input.readMessage(com.google.iam.admin.v1.Role.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(role_); - role_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.CreateRoleRequest.class, com.google.iam.admin.v1.CreateRoleRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
    -   * The `parent` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `parent` value format is described below:
    -   * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -   *   `projects/{PROJECT_ID}`. This method creates project-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -   *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
    -   * The `parent` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `parent` value format is described below:
    -   * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -   *   `projects/{PROJECT_ID}`. This method creates project-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -   *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLE_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object roleId_; - /** - *
    -   * The role ID to use for this role.
    -   * A role ID may contain alphanumeric characters, underscores (`_`), and
    -   * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -   * 64 characters.
    -   * 
    - * - * string role_id = 2; - * @return The roleId. - */ - @java.lang.Override - public java.lang.String getRoleId() { - java.lang.Object ref = roleId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - roleId_ = s; - return s; - } - } - /** - *
    -   * The role ID to use for this role.
    -   * A role ID may contain alphanumeric characters, underscores (`_`), and
    -   * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -   * 64 characters.
    -   * 
    - * - * string role_id = 2; - * @return The bytes for roleId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getRoleIdBytes() { - java.lang.Object ref = roleId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - roleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLE_FIELD_NUMBER = 3; - private com.google.iam.admin.v1.Role role_; - /** - *
    -   * The Role resource to create.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 3; - * @return Whether the role field is set. - */ - @java.lang.Override - public boolean hasRole() { - return role_ != null; - } - /** - *
    -   * The Role resource to create.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 3; - * @return The role. - */ - @java.lang.Override - public com.google.iam.admin.v1.Role getRole() { - return role_ == null ? com.google.iam.admin.v1.Role.getDefaultInstance() : role_; - } - /** - *
    -   * The Role resource to create.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - @java.lang.Override - public com.google.iam.admin.v1.RoleOrBuilder getRoleOrBuilder() { - return getRole(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roleId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, roleId_); - } - if (role_ != null) { - output.writeMessage(3, getRole()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(roleId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, roleId_); - } - if (role_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getRole()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.CreateRoleRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.CreateRoleRequest other = (com.google.iam.admin.v1.CreateRoleRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (!getRoleId() - .equals(other.getRoleId())) return false; - if (hasRole() != other.hasRole()) return false; - if (hasRole()) { - if (!getRole() - .equals(other.getRole())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + ROLE_ID_FIELD_NUMBER; - hash = (53 * hash) + getRoleId().hashCode(); - if (hasRole()) { - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.CreateRoleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The request to create a new role.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.CreateRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.CreateRoleRequest) - com.google.iam.admin.v1.CreateRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.CreateRoleRequest.class, com.google.iam.admin.v1.CreateRoleRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.CreateRoleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - roleId_ = ""; - - if (roleBuilder_ == null) { - role_ = null; - } else { - role_ = null; - roleBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateRoleRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.CreateRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateRoleRequest build() { - com.google.iam.admin.v1.CreateRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateRoleRequest buildPartial() { - com.google.iam.admin.v1.CreateRoleRequest result = new com.google.iam.admin.v1.CreateRoleRequest(this); - result.parent_ = parent_; - result.roleId_ = roleId_; - if (roleBuilder_ == null) { - result.role_ = role_; - } else { - result.role_ = roleBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.CreateRoleRequest) { - return mergeFrom((com.google.iam.admin.v1.CreateRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.CreateRoleRequest other) { - if (other == com.google.iam.admin.v1.CreateRoleRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (!other.getRoleId().isEmpty()) { - roleId_ = other.roleId_; - onChanged(); - } - if (other.hasRole()) { - mergeRole(other.getRole()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.CreateRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.CreateRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -     *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -     *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -     *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -     *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -     *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -     *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -     *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -     *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -     *   `projects/{PROJECT_ID}`. This method creates project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -     *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private java.lang.Object roleId_ = ""; - /** - *
    -     * The role ID to use for this role.
    -     * A role ID may contain alphanumeric characters, underscores (`_`), and
    -     * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -     * 64 characters.
    -     * 
    - * - * string role_id = 2; - * @return The roleId. - */ - public java.lang.String getRoleId() { - java.lang.Object ref = roleId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - roleId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The role ID to use for this role.
    -     * A role ID may contain alphanumeric characters, underscores (`_`), and
    -     * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -     * 64 characters.
    -     * 
    - * - * string role_id = 2; - * @return The bytes for roleId. - */ - public com.google.protobuf.ByteString - getRoleIdBytes() { - java.lang.Object ref = roleId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - roleId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The role ID to use for this role.
    -     * A role ID may contain alphanumeric characters, underscores (`_`), and
    -     * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -     * 64 characters.
    -     * 
    - * - * string role_id = 2; - * @param value The roleId to set. - * @return This builder for chaining. - */ - public Builder setRoleId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - roleId_ = value; - onChanged(); - return this; - } - /** - *
    -     * The role ID to use for this role.
    -     * A role ID may contain alphanumeric characters, underscores (`_`), and
    -     * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -     * 64 characters.
    -     * 
    - * - * string role_id = 2; - * @return This builder for chaining. - */ - public Builder clearRoleId() { - - roleId_ = getDefaultInstance().getRoleId(); - onChanged(); - return this; - } - /** - *
    -     * The role ID to use for this role.
    -     * A role ID may contain alphanumeric characters, underscores (`_`), and
    -     * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -     * 64 characters.
    -     * 
    - * - * string role_id = 2; - * @param value The bytes for roleId to set. - * @return This builder for chaining. - */ - public Builder setRoleIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - roleId_ = value; - onChanged(); - return this; - } - - private com.google.iam.admin.v1.Role role_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder> roleBuilder_; - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - * @return Whether the role field is set. - */ - public boolean hasRole() { - return roleBuilder_ != null || role_ != null; - } - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - * @return The role. - */ - public com.google.iam.admin.v1.Role getRole() { - if (roleBuilder_ == null) { - return role_ == null ? com.google.iam.admin.v1.Role.getDefaultInstance() : role_; - } else { - return roleBuilder_.getMessage(); - } - } - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - public Builder setRole(com.google.iam.admin.v1.Role value) { - if (roleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - role_ = value; - onChanged(); - } else { - roleBuilder_.setMessage(value); - } - - return this; - } - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - public Builder setRole( - com.google.iam.admin.v1.Role.Builder builderForValue) { - if (roleBuilder_ == null) { - role_ = builderForValue.build(); - onChanged(); - } else { - roleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - public Builder mergeRole(com.google.iam.admin.v1.Role value) { - if (roleBuilder_ == null) { - if (role_ != null) { - role_ = - com.google.iam.admin.v1.Role.newBuilder(role_).mergeFrom(value).buildPartial(); - } else { - role_ = value; - } - onChanged(); - } else { - roleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - public Builder clearRole() { - if (roleBuilder_ == null) { - role_ = null; - onChanged(); - } else { - role_ = null; - roleBuilder_ = null; - } - - return this; - } - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - public com.google.iam.admin.v1.Role.Builder getRoleBuilder() { - - onChanged(); - return getRoleFieldBuilder().getBuilder(); - } - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - public com.google.iam.admin.v1.RoleOrBuilder getRoleOrBuilder() { - if (roleBuilder_ != null) { - return roleBuilder_.getMessageOrBuilder(); - } else { - return role_ == null ? - com.google.iam.admin.v1.Role.getDefaultInstance() : role_; - } - } - /** - *
    -     * The Role resource to create.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder> - getRoleFieldBuilder() { - if (roleBuilder_ == null) { - roleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder>( - getRole(), - getParentForChildren(), - isClean()); - role_ = null; - } - return roleBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.CreateRoleRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.CreateRoleRequest) - private static final com.google.iam.admin.v1.CreateRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.CreateRoleRequest(); - } - - public static com.google.iam.admin.v1.CreateRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateRoleRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequestOrBuilder.java deleted file mode 100644 index 76d9dc97b40b..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateRoleRequestOrBuilder.java +++ /dev/null @@ -1,120 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface CreateRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.CreateRoleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The `parent` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `parent` value format is described below:
    -   * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -   *   `projects/{PROJECT_ID}`. This method creates project-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -   *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
    -   * The `parent` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `parent` value format is described below:
    -   * * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create):
    -   *   `projects/{PROJECT_ID}`. This method creates project-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create):
    -   *   `organizations/{ORGANIZATION_ID}`. This method creates organization-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
    -   * The role ID to use for this role.
    -   * A role ID may contain alphanumeric characters, underscores (`_`), and
    -   * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -   * 64 characters.
    -   * 
    - * - * string role_id = 2; - * @return The roleId. - */ - java.lang.String getRoleId(); - /** - *
    -   * The role ID to use for this role.
    -   * A role ID may contain alphanumeric characters, underscores (`_`), and
    -   * periods (`.`). It must contain a minimum of 3 characters and a maximum of
    -   * 64 characters.
    -   * 
    - * - * string role_id = 2; - * @return The bytes for roleId. - */ - com.google.protobuf.ByteString - getRoleIdBytes(); - - /** - *
    -   * The Role resource to create.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 3; - * @return Whether the role field is set. - */ - boolean hasRole(); - /** - *
    -   * The Role resource to create.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 3; - * @return The role. - */ - com.google.iam.admin.v1.Role getRole(); - /** - *
    -   * The Role resource to create.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 3; - */ - com.google.iam.admin.v1.RoleOrBuilder getRoleOrBuilder(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequest.java deleted file mode 100644 index 2d2ad9e28af5..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequest.java +++ /dev/null @@ -1,899 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account key create request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.CreateServiceAccountKeyRequest} - */ -public final class CreateServiceAccountKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.CreateServiceAccountKeyRequest) - CreateServiceAccountKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateServiceAccountKeyRequest.newBuilder() to construct. - private CreateServiceAccountKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateServiceAccountKeyRequest() { - name_ = ""; - privateKeyType_ = 0; - keyAlgorithm_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateServiceAccountKeyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateServiceAccountKeyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - privateKeyType_ = rawValue; - break; - } - case 24: { - int rawValue = input.readEnum(); - - keyAlgorithm_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.CreateServiceAccountKeyRequest.class, com.google.iam.admin.v1.CreateServiceAccountKeyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRIVATE_KEY_TYPE_FIELD_NUMBER = 2; - private int privateKeyType_; - /** - *
    -   * The output format of the private key. The default value is
    -   * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -   * format.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The enum numeric value on the wire for privateKeyType. - */ - @java.lang.Override public int getPrivateKeyTypeValue() { - return privateKeyType_; - } - /** - *
    -   * The output format of the private key. The default value is
    -   * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -   * format.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The privateKeyType. - */ - @java.lang.Override public com.google.iam.admin.v1.ServiceAccountPrivateKeyType getPrivateKeyType() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountPrivateKeyType result = com.google.iam.admin.v1.ServiceAccountPrivateKeyType.valueOf(privateKeyType_); - return result == null ? com.google.iam.admin.v1.ServiceAccountPrivateKeyType.UNRECOGNIZED : result; - } - - public static final int KEY_ALGORITHM_FIELD_NUMBER = 3; - private int keyAlgorithm_; - /** - *
    -   * Which type of key and algorithm to use for the key.
    -   * The default is currently a 2K RSA key.  However this may change in the
    -   * future.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @return The enum numeric value on the wire for keyAlgorithm. - */ - @java.lang.Override public int getKeyAlgorithmValue() { - return keyAlgorithm_; - } - /** - *
    -   * Which type of key and algorithm to use for the key.
    -   * The default is currently a 2K RSA key.  However this may change in the
    -   * future.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @return The keyAlgorithm. - */ - @java.lang.Override public com.google.iam.admin.v1.ServiceAccountKeyAlgorithm getKeyAlgorithm() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountKeyAlgorithm result = com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.valueOf(keyAlgorithm_); - return result == null ? com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (privateKeyType_ != com.google.iam.admin.v1.ServiceAccountPrivateKeyType.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, privateKeyType_); - } - if (keyAlgorithm_ != com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.KEY_ALG_UNSPECIFIED.getNumber()) { - output.writeEnum(3, keyAlgorithm_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (privateKeyType_ != com.google.iam.admin.v1.ServiceAccountPrivateKeyType.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, privateKeyType_); - } - if (keyAlgorithm_ != com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.KEY_ALG_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, keyAlgorithm_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.CreateServiceAccountKeyRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.CreateServiceAccountKeyRequest other = (com.google.iam.admin.v1.CreateServiceAccountKeyRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (privateKeyType_ != other.privateKeyType_) return false; - if (keyAlgorithm_ != other.keyAlgorithm_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PRIVATE_KEY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + privateKeyType_; - hash = (37 * hash) + KEY_ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + keyAlgorithm_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.CreateServiceAccountKeyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account key create request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.CreateServiceAccountKeyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.CreateServiceAccountKeyRequest) - com.google.iam.admin.v1.CreateServiceAccountKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.CreateServiceAccountKeyRequest.class, com.google.iam.admin.v1.CreateServiceAccountKeyRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.CreateServiceAccountKeyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - privateKeyType_ = 0; - - keyAlgorithm_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateServiceAccountKeyRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.CreateServiceAccountKeyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateServiceAccountKeyRequest build() { - com.google.iam.admin.v1.CreateServiceAccountKeyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateServiceAccountKeyRequest buildPartial() { - com.google.iam.admin.v1.CreateServiceAccountKeyRequest result = new com.google.iam.admin.v1.CreateServiceAccountKeyRequest(this); - result.name_ = name_; - result.privateKeyType_ = privateKeyType_; - result.keyAlgorithm_ = keyAlgorithm_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.CreateServiceAccountKeyRequest) { - return mergeFrom((com.google.iam.admin.v1.CreateServiceAccountKeyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.CreateServiceAccountKeyRequest other) { - if (other == com.google.iam.admin.v1.CreateServiceAccountKeyRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.privateKeyType_ != 0) { - setPrivateKeyTypeValue(other.getPrivateKeyTypeValue()); - } - if (other.keyAlgorithm_ != 0) { - setKeyAlgorithmValue(other.getKeyAlgorithmValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.CreateServiceAccountKeyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.CreateServiceAccountKeyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int privateKeyType_ = 0; - /** - *
    -     * The output format of the private key. The default value is
    -     * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -     * format.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The enum numeric value on the wire for privateKeyType. - */ - @java.lang.Override public int getPrivateKeyTypeValue() { - return privateKeyType_; - } - /** - *
    -     * The output format of the private key. The default value is
    -     * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -     * format.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @param value The enum numeric value on the wire for privateKeyType to set. - * @return This builder for chaining. - */ - public Builder setPrivateKeyTypeValue(int value) { - - privateKeyType_ = value; - onChanged(); - return this; - } - /** - *
    -     * The output format of the private key. The default value is
    -     * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -     * format.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The privateKeyType. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountPrivateKeyType getPrivateKeyType() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountPrivateKeyType result = com.google.iam.admin.v1.ServiceAccountPrivateKeyType.valueOf(privateKeyType_); - return result == null ? com.google.iam.admin.v1.ServiceAccountPrivateKeyType.UNRECOGNIZED : result; - } - /** - *
    -     * The output format of the private key. The default value is
    -     * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -     * format.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @param value The privateKeyType to set. - * @return This builder for chaining. - */ - public Builder setPrivateKeyType(com.google.iam.admin.v1.ServiceAccountPrivateKeyType value) { - if (value == null) { - throw new NullPointerException(); - } - - privateKeyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The output format of the private key. The default value is
    -     * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -     * format.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return This builder for chaining. - */ - public Builder clearPrivateKeyType() { - - privateKeyType_ = 0; - onChanged(); - return this; - } - - private int keyAlgorithm_ = 0; - /** - *
    -     * Which type of key and algorithm to use for the key.
    -     * The default is currently a 2K RSA key.  However this may change in the
    -     * future.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @return The enum numeric value on the wire for keyAlgorithm. - */ - @java.lang.Override public int getKeyAlgorithmValue() { - return keyAlgorithm_; - } - /** - *
    -     * Which type of key and algorithm to use for the key.
    -     * The default is currently a 2K RSA key.  However this may change in the
    -     * future.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @param value The enum numeric value on the wire for keyAlgorithm to set. - * @return This builder for chaining. - */ - public Builder setKeyAlgorithmValue(int value) { - - keyAlgorithm_ = value; - onChanged(); - return this; - } - /** - *
    -     * Which type of key and algorithm to use for the key.
    -     * The default is currently a 2K RSA key.  However this may change in the
    -     * future.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @return The keyAlgorithm. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKeyAlgorithm getKeyAlgorithm() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountKeyAlgorithm result = com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.valueOf(keyAlgorithm_); - return result == null ? com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.UNRECOGNIZED : result; - } - /** - *
    -     * Which type of key and algorithm to use for the key.
    -     * The default is currently a 2K RSA key.  However this may change in the
    -     * future.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @param value The keyAlgorithm to set. - * @return This builder for chaining. - */ - public Builder setKeyAlgorithm(com.google.iam.admin.v1.ServiceAccountKeyAlgorithm value) { - if (value == null) { - throw new NullPointerException(); - } - - keyAlgorithm_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * Which type of key and algorithm to use for the key.
    -     * The default is currently a 2K RSA key.  However this may change in the
    -     * future.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @return This builder for chaining. - */ - public Builder clearKeyAlgorithm() { - - keyAlgorithm_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.CreateServiceAccountKeyRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.CreateServiceAccountKeyRequest) - private static final com.google.iam.admin.v1.CreateServiceAccountKeyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.CreateServiceAccountKeyRequest(); - } - - public static com.google.iam.admin.v1.CreateServiceAccountKeyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServiceAccountKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateServiceAccountKeyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateServiceAccountKeyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequestOrBuilder.java deleted file mode 100644 index c1c653099e77..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountKeyRequestOrBuilder.java +++ /dev/null @@ -1,83 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface CreateServiceAccountKeyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.CreateServiceAccountKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * The output format of the private key. The default value is
    -   * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -   * format.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The enum numeric value on the wire for privateKeyType. - */ - int getPrivateKeyTypeValue(); - /** - *
    -   * The output format of the private key. The default value is
    -   * `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File
    -   * format.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The privateKeyType. - */ - com.google.iam.admin.v1.ServiceAccountPrivateKeyType getPrivateKeyType(); - - /** - *
    -   * Which type of key and algorithm to use for the key.
    -   * The default is currently a 2K RSA key.  However this may change in the
    -   * future.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @return The enum numeric value on the wire for keyAlgorithm. - */ - int getKeyAlgorithmValue(); - /** - *
    -   * Which type of key and algorithm to use for the key.
    -   * The default is currently a 2K RSA key.  However this may change in the
    -   * future.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 3; - * @return The keyAlgorithm. - */ - com.google.iam.admin.v1.ServiceAccountKeyAlgorithm getKeyAlgorithm(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequest.java deleted file mode 100644 index dc7d605d5c3d..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequest.java +++ /dev/null @@ -1,1049 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account create request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.CreateServiceAccountRequest} - */ -public final class CreateServiceAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.CreateServiceAccountRequest) - CreateServiceAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use CreateServiceAccountRequest.newBuilder() to construct. - private CreateServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private CreateServiceAccountRequest() { - name_ = ""; - accountId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new CreateServiceAccountRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private CreateServiceAccountRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - accountId_ = s; - break; - } - case 26: { - com.google.iam.admin.v1.ServiceAccount.Builder subBuilder = null; - if (serviceAccount_ != null) { - subBuilder = serviceAccount_.toBuilder(); - } - serviceAccount_ = input.readMessage(com.google.iam.admin.v1.ServiceAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serviceAccount_); - serviceAccount_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.CreateServiceAccountRequest.class, com.google.iam.admin.v1.CreateServiceAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. The resource name of the project associated with the service
    -   * accounts, such as `projects/my-project-123`.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. The resource name of the project associated with the service
    -   * accounts, such as `projects/my-project-123`.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ACCOUNT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object accountId_; - /** - *
    -   * Required. The account id that is used to generate the service account
    -   * email address and a stable unique id. It is unique within a project,
    -   * must be 6-30 characters long, and match the regular expression
    -   * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -   * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The accountId. - */ - @java.lang.Override - public java.lang.String getAccountId() { - java.lang.Object ref = accountId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountId_ = s; - return s; - } - } - /** - *
    -   * Required. The account id that is used to generate the service account
    -   * email address and a stable unique id. It is unique within a project,
    -   * must be 6-30 characters long, and match the regular expression
    -   * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -   * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for accountId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getAccountIdBytes() { - java.lang.Object ref = accountId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 3; - private com.google.iam.admin.v1.ServiceAccount serviceAccount_; - /** - *
    -   * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -   * create. Currently, only the following values are user assignable:
    -   * `display_name` and `description`.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - * @return Whether the serviceAccount field is set. - */ - @java.lang.Override - public boolean hasServiceAccount() { - return serviceAccount_ != null; - } - /** - *
    -   * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -   * create. Currently, only the following values are user assignable:
    -   * `display_name` and `description`.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - * @return The serviceAccount. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccount getServiceAccount() { - return serviceAccount_ == null ? com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; - } - /** - *
    -   * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -   * create. Currently, only the following values are user assignable:
    -   * `display_name` and `description`.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder() { - return getServiceAccount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, accountId_); - } - if (serviceAccount_ != null) { - output.writeMessage(3, getServiceAccount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(accountId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, accountId_); - } - if (serviceAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getServiceAccount()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.CreateServiceAccountRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.CreateServiceAccountRequest other = (com.google.iam.admin.v1.CreateServiceAccountRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getAccountId() - .equals(other.getAccountId())) return false; - if (hasServiceAccount() != other.hasServiceAccount()) return false; - if (hasServiceAccount()) { - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ACCOUNT_ID_FIELD_NUMBER; - hash = (53 * hash) + getAccountId().hashCode(); - if (hasServiceAccount()) { - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.CreateServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.CreateServiceAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account create request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.CreateServiceAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.CreateServiceAccountRequest) - com.google.iam.admin.v1.CreateServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.CreateServiceAccountRequest.class, com.google.iam.admin.v1.CreateServiceAccountRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.CreateServiceAccountRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - accountId_ = ""; - - if (serviceAccountBuilder_ == null) { - serviceAccount_ = null; - } else { - serviceAccount_ = null; - serviceAccountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateServiceAccountRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.CreateServiceAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateServiceAccountRequest build() { - com.google.iam.admin.v1.CreateServiceAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateServiceAccountRequest buildPartial() { - com.google.iam.admin.v1.CreateServiceAccountRequest result = new com.google.iam.admin.v1.CreateServiceAccountRequest(this); - result.name_ = name_; - result.accountId_ = accountId_; - if (serviceAccountBuilder_ == null) { - result.serviceAccount_ = serviceAccount_; - } else { - result.serviceAccount_ = serviceAccountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.CreateServiceAccountRequest) { - return mergeFrom((com.google.iam.admin.v1.CreateServiceAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.CreateServiceAccountRequest other) { - if (other == com.google.iam.admin.v1.CreateServiceAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getAccountId().isEmpty()) { - accountId_ = other.accountId_; - onChanged(); - } - if (other.hasServiceAccount()) { - mergeServiceAccount(other.getServiceAccount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.CreateServiceAccountRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.CreateServiceAccountRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object accountId_ = ""; - /** - *
    -     * Required. The account id that is used to generate the service account
    -     * email address and a stable unique id. It is unique within a project,
    -     * must be 6-30 characters long, and match the regular expression
    -     * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -     * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The accountId. - */ - public java.lang.String getAccountId() { - java.lang.Object ref = accountId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - accountId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The account id that is used to generate the service account
    -     * email address and a stable unique id. It is unique within a project,
    -     * must be 6-30 characters long, and match the regular expression
    -     * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -     * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for accountId. - */ - public com.google.protobuf.ByteString - getAccountIdBytes() { - java.lang.Object ref = accountId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - accountId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The account id that is used to generate the service account
    -     * email address and a stable unique id. It is unique within a project,
    -     * must be 6-30 characters long, and match the regular expression
    -     * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -     * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The accountId to set. - * @return This builder for chaining. - */ - public Builder setAccountId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - accountId_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The account id that is used to generate the service account
    -     * email address and a stable unique id. It is unique within a project,
    -     * must be 6-30 characters long, and match the regular expression
    -     * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -     * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearAccountId() { - - accountId_ = getDefaultInstance().getAccountId(); - onChanged(); - return this; - } - /** - *
    -     * Required. The account id that is used to generate the service account
    -     * email address and a stable unique id. It is unique within a project,
    -     * must be 6-30 characters long, and match the regular expression
    -     * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -     * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for accountId to set. - * @return This builder for chaining. - */ - public Builder setAccountIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - accountId_ = value; - onChanged(); - return this; - } - - private com.google.iam.admin.v1.ServiceAccount serviceAccount_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder> serviceAccountBuilder_; - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - * @return Whether the serviceAccount field is set. - */ - public boolean hasServiceAccount() { - return serviceAccountBuilder_ != null || serviceAccount_ != null; - } - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - * @return The serviceAccount. - */ - public com.google.iam.admin.v1.ServiceAccount getServiceAccount() { - if (serviceAccountBuilder_ == null) { - return serviceAccount_ == null ? com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; - } else { - return serviceAccountBuilder_.getMessage(); - } - } - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - public Builder setServiceAccount(com.google.iam.admin.v1.ServiceAccount value) { - if (serviceAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serviceAccount_ = value; - onChanged(); - } else { - serviceAccountBuilder_.setMessage(value); - } - - return this; - } - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - public Builder setServiceAccount( - com.google.iam.admin.v1.ServiceAccount.Builder builderForValue) { - if (serviceAccountBuilder_ == null) { - serviceAccount_ = builderForValue.build(); - onChanged(); - } else { - serviceAccountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - public Builder mergeServiceAccount(com.google.iam.admin.v1.ServiceAccount value) { - if (serviceAccountBuilder_ == null) { - if (serviceAccount_ != null) { - serviceAccount_ = - com.google.iam.admin.v1.ServiceAccount.newBuilder(serviceAccount_).mergeFrom(value).buildPartial(); - } else { - serviceAccount_ = value; - } - onChanged(); - } else { - serviceAccountBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - public Builder clearServiceAccount() { - if (serviceAccountBuilder_ == null) { - serviceAccount_ = null; - onChanged(); - } else { - serviceAccount_ = null; - serviceAccountBuilder_ = null; - } - - return this; - } - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - public com.google.iam.admin.v1.ServiceAccount.Builder getServiceAccountBuilder() { - - onChanged(); - return getServiceAccountFieldBuilder().getBuilder(); - } - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - public com.google.iam.admin.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder() { - if (serviceAccountBuilder_ != null) { - return serviceAccountBuilder_.getMessageOrBuilder(); - } else { - return serviceAccount_ == null ? - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; - } - } - /** - *
    -     * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -     * create. Currently, only the following values are user assignable:
    -     * `display_name` and `description`.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder> - getServiceAccountFieldBuilder() { - if (serviceAccountBuilder_ == null) { - serviceAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder>( - getServiceAccount(), - getParentForChildren(), - isClean()); - serviceAccount_ = null; - } - return serviceAccountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.CreateServiceAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.CreateServiceAccountRequest) - private static final com.google.iam.admin.v1.CreateServiceAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.CreateServiceAccountRequest(); - } - - public static com.google.iam.admin.v1.CreateServiceAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public CreateServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new CreateServiceAccountRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.CreateServiceAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequestOrBuilder.java deleted file mode 100644 index 74326a591643..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/CreateServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,90 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface CreateServiceAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.CreateServiceAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The resource name of the project associated with the service
    -   * accounts, such as `projects/my-project-123`.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The resource name of the project associated with the service
    -   * accounts, such as `projects/my-project-123`.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Required. The account id that is used to generate the service account
    -   * email address and a stable unique id. It is unique within a project,
    -   * must be 6-30 characters long, and match the regular expression
    -   * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -   * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The accountId. - */ - java.lang.String getAccountId(); - /** - *
    -   * Required. The account id that is used to generate the service account
    -   * email address and a stable unique id. It is unique within a project,
    -   * must be 6-30 characters long, and match the regular expression
    -   * `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035.
    -   * 
    - * - * string account_id = 2 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for accountId. - */ - com.google.protobuf.ByteString - getAccountIdBytes(); - - /** - *
    -   * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -   * create. Currently, only the following values are user assignable:
    -   * `display_name` and `description`.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - * @return Whether the serviceAccount field is set. - */ - boolean hasServiceAccount(); - /** - *
    -   * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -   * create. Currently, only the following values are user assignable:
    -   * `display_name` and `description`.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - * @return The serviceAccount. - */ - com.google.iam.admin.v1.ServiceAccount getServiceAccount(); - /** - *
    -   * The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to
    -   * create. Currently, only the following values are user assignable:
    -   * `display_name` and `description`.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount service_account = 3; - */ - com.google.iam.admin.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequest.java deleted file mode 100644 index d459092b06c5..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequest.java +++ /dev/null @@ -1,812 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The request to delete an existing role.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.DeleteRoleRequest} - */ -public final class DeleteRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.DeleteRoleRequest) - DeleteRoleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteRoleRequest.newBuilder() to construct. - private DeleteRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteRoleRequest() { - name_ = ""; - etag_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteRoleRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteRoleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - - etag_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DeleteRoleRequest.class, com.google.iam.admin.v1.DeleteRoleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   deletes only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   deletes only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ETAG_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString etag_; - /** - *
    -   * Used to perform a consistent read-modify-write.
    -   * 
    - * - * bytes etag = 2; - * @return The etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtag() { - return etag_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!etag_.isEmpty()) { - output.writeBytes(2, etag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!etag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, etag_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.DeleteRoleRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.DeleteRoleRequest other = (com.google.iam.admin.v1.DeleteRoleRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.DeleteRoleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The request to delete an existing role.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.DeleteRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DeleteRoleRequest) - com.google.iam.admin.v1.DeleteRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DeleteRoleRequest.class, com.google.iam.admin.v1.DeleteRoleRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.DeleteRoleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - etag_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteRoleRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.DeleteRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteRoleRequest build() { - com.google.iam.admin.v1.DeleteRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteRoleRequest buildPartial() { - com.google.iam.admin.v1.DeleteRoleRequest result = new com.google.iam.admin.v1.DeleteRoleRequest(this); - result.name_ = name_; - result.etag_ = etag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.DeleteRoleRequest) { - return mergeFrom((com.google.iam.admin.v1.DeleteRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.DeleteRoleRequest other) { - if (other == com.google.iam.admin.v1.DeleteRoleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getEtag() != com.google.protobuf.ByteString.EMPTY) { - setEtag(other.getEtag()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.DeleteRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.DeleteRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   deletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 2; - * @return The etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtag() { - return etag_; - } - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 2; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 2; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.DeleteRoleRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.DeleteRoleRequest) - private static final com.google.iam.admin.v1.DeleteRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.DeleteRoleRequest(); - } - - public static com.google.iam.admin.v1.DeleteRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteRoleRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequestOrBuilder.java deleted file mode 100644 index 0171f540c046..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteRoleRequestOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface DeleteRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.DeleteRoleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   deletes only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   deletes only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Used to perform a consistent read-modify-write.
    -   * 
    - * - * bytes etag = 2; - * @return The etag. - */ - com.google.protobuf.ByteString getEtag(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequest.java deleted file mode 100644 index 428c0b9fda54..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequest.java +++ /dev/null @@ -1,623 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account key delete request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.DeleteServiceAccountKeyRequest} - */ -public final class DeleteServiceAccountKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.DeleteServiceAccountKeyRequest) - DeleteServiceAccountKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteServiceAccountKeyRequest.newBuilder() to construct. - private DeleteServiceAccountKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteServiceAccountKeyRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteServiceAccountKeyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteServiceAccountKeyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.class, com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. The resource name of the service account key in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. The resource name of the service account key in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.DeleteServiceAccountKeyRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest other = (com.google.iam.admin.v1.DeleteServiceAccountKeyRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.DeleteServiceAccountKeyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account key delete request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.DeleteServiceAccountKeyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DeleteServiceAccountKeyRequest) - com.google.iam.admin.v1.DeleteServiceAccountKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.class, com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteServiceAccountKeyRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteServiceAccountKeyRequest build() { - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteServiceAccountKeyRequest buildPartial() { - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest result = new com.google.iam.admin.v1.DeleteServiceAccountKeyRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.DeleteServiceAccountKeyRequest) { - return mergeFrom((com.google.iam.admin.v1.DeleteServiceAccountKeyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.DeleteServiceAccountKeyRequest other) { - if (other == com.google.iam.admin.v1.DeleteServiceAccountKeyRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.DeleteServiceAccountKeyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.DeleteServiceAccountKeyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.DeleteServiceAccountKeyRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.DeleteServiceAccountKeyRequest) - private static final com.google.iam.admin.v1.DeleteServiceAccountKeyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.DeleteServiceAccountKeyRequest(); - } - - public static com.google.iam.admin.v1.DeleteServiceAccountKeyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServiceAccountKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteServiceAccountKeyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteServiceAccountKeyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequestOrBuilder.java deleted file mode 100644 index 223e2a057d9b..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountKeyRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface DeleteServiceAccountKeyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.DeleteServiceAccountKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The resource name of the service account key in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The resource name of the service account key in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequest.java deleted file mode 100644 index 11f23ca775a7..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequest.java +++ /dev/null @@ -1,623 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account delete request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.DeleteServiceAccountRequest} - */ -public final class DeleteServiceAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.DeleteServiceAccountRequest) - DeleteServiceAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DeleteServiceAccountRequest.newBuilder() to construct. - private DeleteServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DeleteServiceAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DeleteServiceAccountRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DeleteServiceAccountRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DeleteServiceAccountRequest.class, com.google.iam.admin.v1.DeleteServiceAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.DeleteServiceAccountRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.DeleteServiceAccountRequest other = (com.google.iam.admin.v1.DeleteServiceAccountRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DeleteServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.DeleteServiceAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account delete request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.DeleteServiceAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DeleteServiceAccountRequest) - com.google.iam.admin.v1.DeleteServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DeleteServiceAccountRequest.class, com.google.iam.admin.v1.DeleteServiceAccountRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.DeleteServiceAccountRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteServiceAccountRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.DeleteServiceAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteServiceAccountRequest build() { - com.google.iam.admin.v1.DeleteServiceAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteServiceAccountRequest buildPartial() { - com.google.iam.admin.v1.DeleteServiceAccountRequest result = new com.google.iam.admin.v1.DeleteServiceAccountRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.DeleteServiceAccountRequest) { - return mergeFrom((com.google.iam.admin.v1.DeleteServiceAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.DeleteServiceAccountRequest other) { - if (other == com.google.iam.admin.v1.DeleteServiceAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.DeleteServiceAccountRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.DeleteServiceAccountRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.DeleteServiceAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.DeleteServiceAccountRequest) - private static final com.google.iam.admin.v1.DeleteServiceAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.DeleteServiceAccountRequest(); - } - - public static com.google.iam.admin.v1.DeleteServiceAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DeleteServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DeleteServiceAccountRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.DeleteServiceAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequestOrBuilder.java deleted file mode 100644 index ca43eb9b687e..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DeleteServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface DeleteServiceAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.DeleteServiceAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequest.java deleted file mode 100644 index 3f9634bdae0c..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequest.java +++ /dev/null @@ -1,623 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account disable request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.DisableServiceAccountRequest} - */ -public final class DisableServiceAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.DisableServiceAccountRequest) - DisableServiceAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use DisableServiceAccountRequest.newBuilder() to construct. - private DisableServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private DisableServiceAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new DisableServiceAccountRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private DisableServiceAccountRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DisableServiceAccountRequest.class, com.google.iam.admin.v1.DisableServiceAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.DisableServiceAccountRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.DisableServiceAccountRequest other = (com.google.iam.admin.v1.DisableServiceAccountRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.DisableServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.DisableServiceAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account disable request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.DisableServiceAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.DisableServiceAccountRequest) - com.google.iam.admin.v1.DisableServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.DisableServiceAccountRequest.class, com.google.iam.admin.v1.DisableServiceAccountRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.DisableServiceAccountRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.DisableServiceAccountRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.DisableServiceAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.DisableServiceAccountRequest build() { - com.google.iam.admin.v1.DisableServiceAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.DisableServiceAccountRequest buildPartial() { - com.google.iam.admin.v1.DisableServiceAccountRequest result = new com.google.iam.admin.v1.DisableServiceAccountRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.DisableServiceAccountRequest) { - return mergeFrom((com.google.iam.admin.v1.DisableServiceAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.DisableServiceAccountRequest other) { - if (other == com.google.iam.admin.v1.DisableServiceAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.DisableServiceAccountRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.DisableServiceAccountRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.DisableServiceAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.DisableServiceAccountRequest) - private static final com.google.iam.admin.v1.DisableServiceAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.DisableServiceAccountRequest(); - } - - public static com.google.iam.admin.v1.DisableServiceAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public DisableServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new DisableServiceAccountRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.DisableServiceAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequestOrBuilder.java deleted file mode 100644 index cc46d48d746d..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/DisableServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface DisableServiceAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.DisableServiceAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequest.java deleted file mode 100644 index d9f79fbb4584..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequest.java +++ /dev/null @@ -1,623 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account enable request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.EnableServiceAccountRequest} - */ -public final class EnableServiceAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.EnableServiceAccountRequest) - EnableServiceAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use EnableServiceAccountRequest.newBuilder() to construct. - private EnableServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private EnableServiceAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new EnableServiceAccountRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private EnableServiceAccountRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.EnableServiceAccountRequest.class, com.google.iam.admin.v1.EnableServiceAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.EnableServiceAccountRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.EnableServiceAccountRequest other = (com.google.iam.admin.v1.EnableServiceAccountRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.EnableServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.EnableServiceAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account enable request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.EnableServiceAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.EnableServiceAccountRequest) - com.google.iam.admin.v1.EnableServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.EnableServiceAccountRequest.class, com.google.iam.admin.v1.EnableServiceAccountRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.EnableServiceAccountRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.EnableServiceAccountRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.EnableServiceAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.EnableServiceAccountRequest build() { - com.google.iam.admin.v1.EnableServiceAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.EnableServiceAccountRequest buildPartial() { - com.google.iam.admin.v1.EnableServiceAccountRequest result = new com.google.iam.admin.v1.EnableServiceAccountRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.EnableServiceAccountRequest) { - return mergeFrom((com.google.iam.admin.v1.EnableServiceAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.EnableServiceAccountRequest other) { - if (other == com.google.iam.admin.v1.EnableServiceAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.EnableServiceAccountRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.EnableServiceAccountRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.EnableServiceAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.EnableServiceAccountRequest) - private static final com.google.iam.admin.v1.EnableServiceAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.EnableServiceAccountRequest(); - } - - public static com.google.iam.admin.v1.EnableServiceAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public EnableServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new EnableServiceAccountRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.EnableServiceAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequestOrBuilder.java deleted file mode 100644 index f9b63e7ec173..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/EnableServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface EnableServiceAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.EnableServiceAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequest.java deleted file mode 100644 index bd27f2210ce5..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequest.java +++ /dev/null @@ -1,777 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The request to get the definition of an existing role.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.GetRoleRequest} - */ -public final class GetRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.GetRoleRequest) - GetRoleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetRoleRequest.newBuilder() to construct. - private GetRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetRoleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetRoleRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetRoleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.GetRoleRequest.class, com.google.iam.admin.v1.GetRoleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -   *   This method returns results from all
    -   *   [predefined
    -   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -   *   in Cloud IAM. Example request URL:
    -   *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -   * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   returns only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -   *   This method returns results from all
    -   *   [predefined
    -   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -   *   in Cloud IAM. Example request URL:
    -   *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -   * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   returns only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.GetRoleRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.GetRoleRequest other = (com.google.iam.admin.v1.GetRoleRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.GetRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.GetRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetRoleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.GetRoleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The request to get the definition of an existing role.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.GetRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.GetRoleRequest) - com.google.iam.admin.v1.GetRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.GetRoleRequest.class, com.google.iam.admin.v1.GetRoleRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.GetRoleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetRoleRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetRoleRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.GetRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.GetRoleRequest build() { - com.google.iam.admin.v1.GetRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetRoleRequest buildPartial() { - com.google.iam.admin.v1.GetRoleRequest result = new com.google.iam.admin.v1.GetRoleRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.GetRoleRequest) { - return mergeFrom((com.google.iam.admin.v1.GetRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.GetRoleRequest other) { - if (other == com.google.iam.admin.v1.GetRoleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.GetRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.GetRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -     *   This method returns results from all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -     *   This method returns results from all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -     *   This method returns results from all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -     *   This method returns results from all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -     *   This method returns results from all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL:
    -     *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -     * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   returns only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.GetRoleRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.GetRoleRequest) - private static final com.google.iam.admin.v1.GetRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.GetRoleRequest(); - } - - public static com.google.iam.admin.v1.GetRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetRoleRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequestOrBuilder.java deleted file mode 100644 index 5335386de1b4..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetRoleRequestOrBuilder.java +++ /dev/null @@ -1,81 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface GetRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.GetRoleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -   *   This method returns results from all
    -   *   [predefined
    -   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -   *   in Cloud IAM. Example request URL:
    -   *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -   * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   returns only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`.
    -   *   This method returns results from all
    -   *   [predefined
    -   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -   *   in Cloud IAM. Example request URL:
    -   *   `https://iam.googleapis.com/v1/roles/{ROLE_NAME}`
    -   * * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   returns only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequest.java deleted file mode 100644 index 338a31be4b47..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequest.java +++ /dev/null @@ -1,754 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account key get by id request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.GetServiceAccountKeyRequest} - */ -public final class GetServiceAccountKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.GetServiceAccountKeyRequest) - GetServiceAccountKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetServiceAccountKeyRequest.newBuilder() to construct. - private GetServiceAccountKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetServiceAccountKeyRequest() { - name_ = ""; - publicKeyType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetServiceAccountKeyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetServiceAccountKeyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - publicKeyType_ = rawValue; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.GetServiceAccountKeyRequest.class, com.google.iam.admin.v1.GetServiceAccountKeyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. The resource name of the service account key in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. The resource name of the service account key in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBLIC_KEY_TYPE_FIELD_NUMBER = 2; - private int publicKeyType_; - /** - *
    -   * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -   * means that the public key is not returned.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for publicKeyType. - */ - @java.lang.Override public int getPublicKeyTypeValue() { - return publicKeyType_; - } - /** - *
    -   * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -   * means that the public key is not returned.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The publicKeyType. - */ - @java.lang.Override public com.google.iam.admin.v1.ServiceAccountPublicKeyType getPublicKeyType() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountPublicKeyType result = com.google.iam.admin.v1.ServiceAccountPublicKeyType.valueOf(publicKeyType_); - return result == null ? com.google.iam.admin.v1.ServiceAccountPublicKeyType.UNRECOGNIZED : result; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (publicKeyType_ != com.google.iam.admin.v1.ServiceAccountPublicKeyType.TYPE_NONE.getNumber()) { - output.writeEnum(2, publicKeyType_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (publicKeyType_ != com.google.iam.admin.v1.ServiceAccountPublicKeyType.TYPE_NONE.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, publicKeyType_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.GetServiceAccountKeyRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.GetServiceAccountKeyRequest other = (com.google.iam.admin.v1.GetServiceAccountKeyRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (publicKeyType_ != other.publicKeyType_) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PUBLIC_KEY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + publicKeyType_; - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.GetServiceAccountKeyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account key get by id request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.GetServiceAccountKeyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.GetServiceAccountKeyRequest) - com.google.iam.admin.v1.GetServiceAccountKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.GetServiceAccountKeyRequest.class, com.google.iam.admin.v1.GetServiceAccountKeyRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.GetServiceAccountKeyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - publicKeyType_ = 0; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetServiceAccountKeyRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.GetServiceAccountKeyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.GetServiceAccountKeyRequest build() { - com.google.iam.admin.v1.GetServiceAccountKeyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetServiceAccountKeyRequest buildPartial() { - com.google.iam.admin.v1.GetServiceAccountKeyRequest result = new com.google.iam.admin.v1.GetServiceAccountKeyRequest(this); - result.name_ = name_; - result.publicKeyType_ = publicKeyType_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.GetServiceAccountKeyRequest) { - return mergeFrom((com.google.iam.admin.v1.GetServiceAccountKeyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.GetServiceAccountKeyRequest other) { - if (other == com.google.iam.admin.v1.GetServiceAccountKeyRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.publicKeyType_ != 0) { - setPublicKeyTypeValue(other.getPublicKeyTypeValue()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.GetServiceAccountKeyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.GetServiceAccountKeyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account key in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int publicKeyType_ = 0; - /** - *
    -     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -     * means that the public key is not returned.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for publicKeyType. - */ - @java.lang.Override public int getPublicKeyTypeValue() { - return publicKeyType_; - } - /** - *
    -     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -     * means that the public key is not returned.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The enum numeric value on the wire for publicKeyType to set. - * @return This builder for chaining. - */ - public Builder setPublicKeyTypeValue(int value) { - - publicKeyType_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -     * means that the public key is not returned.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The publicKeyType. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountPublicKeyType getPublicKeyType() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountPublicKeyType result = com.google.iam.admin.v1.ServiceAccountPublicKeyType.valueOf(publicKeyType_); - return result == null ? com.google.iam.admin.v1.ServiceAccountPublicKeyType.UNRECOGNIZED : result; - } - /** - *
    -     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -     * means that the public key is not returned.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The publicKeyType to set. - * @return This builder for chaining. - */ - public Builder setPublicKeyType(com.google.iam.admin.v1.ServiceAccountPublicKeyType value) { - if (value == null) { - throw new NullPointerException(); - } - - publicKeyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -     * means that the public key is not returned.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearPublicKeyType() { - - publicKeyType_ = 0; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.GetServiceAccountKeyRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.GetServiceAccountKeyRequest) - private static final com.google.iam.admin.v1.GetServiceAccountKeyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.GetServiceAccountKeyRequest(); - } - - public static com.google.iam.admin.v1.GetServiceAccountKeyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceAccountKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetServiceAccountKeyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetServiceAccountKeyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequestOrBuilder.java deleted file mode 100644 index 6e7ae6172e35..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountKeyRequestOrBuilder.java +++ /dev/null @@ -1,58 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface GetServiceAccountKeyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.GetServiceAccountKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The resource name of the service account key in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The resource name of the service account key in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -   * means that the public key is not returned.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The enum numeric value on the wire for publicKeyType. - */ - int getPublicKeyTypeValue(); - /** - *
    -   * Optional. The output format of the public key. The default is `TYPE_NONE`, which
    -   * means that the public key is not returned.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPublicKeyType public_key_type = 2 [(.google.api.field_behavior) = OPTIONAL]; - * @return The publicKeyType. - */ - com.google.iam.admin.v1.ServiceAccountPublicKeyType getPublicKeyType(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequest.java deleted file mode 100644 index d180d856d05c..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequest.java +++ /dev/null @@ -1,623 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account get request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.GetServiceAccountRequest} - */ -public final class GetServiceAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.GetServiceAccountRequest) - GetServiceAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use GetServiceAccountRequest.newBuilder() to construct. - private GetServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private GetServiceAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new GetServiceAccountRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private GetServiceAccountRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.GetServiceAccountRequest.class, com.google.iam.admin.v1.GetServiceAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.GetServiceAccountRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.GetServiceAccountRequest other = (com.google.iam.admin.v1.GetServiceAccountRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.GetServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.GetServiceAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account get request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.GetServiceAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.GetServiceAccountRequest) - com.google.iam.admin.v1.GetServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.GetServiceAccountRequest.class, com.google.iam.admin.v1.GetServiceAccountRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.GetServiceAccountRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetServiceAccountRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.GetServiceAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.GetServiceAccountRequest build() { - com.google.iam.admin.v1.GetServiceAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetServiceAccountRequest buildPartial() { - com.google.iam.admin.v1.GetServiceAccountRequest result = new com.google.iam.admin.v1.GetServiceAccountRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.GetServiceAccountRequest) { - return mergeFrom((com.google.iam.admin.v1.GetServiceAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.GetServiceAccountRequest other) { - if (other == com.google.iam.admin.v1.GetServiceAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.GetServiceAccountRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.GetServiceAccountRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.GetServiceAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.GetServiceAccountRequest) - private static final com.google.iam.admin.v1.GetServiceAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.GetServiceAccountRequest(); - } - - public static com.google.iam.admin.v1.GetServiceAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public GetServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new GetServiceAccountRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.GetServiceAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequestOrBuilder.java deleted file mode 100644 index 1681ff90689c..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/GetServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface GetServiceAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.GetServiceAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Iam.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Iam.java deleted file mode 100644 index 5ccaa6551744..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Iam.java +++ /dev/null @@ -1,847 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public final class Iam { - private Iam() {} - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistryLite registry) { - } - - public static void registerAllExtensions( - com.google.protobuf.ExtensionRegistry registry) { - registerAllExtensions( - (com.google.protobuf.ExtensionRegistryLite) registry); - } - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_ServiceAccount_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_ServiceAccount_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_CreateServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_ListServiceAccountsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_ListServiceAccountsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_GetServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_PatchServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_EnableServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_DisableServiceAccountRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_ServiceAccountKey_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_SignBlobRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_SignBlobRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_SignBlobResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_SignBlobResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_SignJwtRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_SignJwtRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_SignJwtResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_SignJwtResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_Role_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_Role_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_ListRolesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_ListRolesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_ListRolesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_ListRolesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_GetRoleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_GetRoleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_CreateRoleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_UpdateRoleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_DeleteRoleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_UndeleteRoleRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_Permission_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_Permission_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_LintPolicyRequest_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_LintResult_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_LintResult_fieldAccessorTable; - static final com.google.protobuf.Descriptors.Descriptor - internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor; - static final - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internal_static_google_iam_admin_v1_LintPolicyResponse_fieldAccessorTable; - - public static com.google.protobuf.Descriptors.FileDescriptor - getDescriptor() { - return descriptor; - } - private static com.google.protobuf.Descriptors.FileDescriptor - descriptor; - static { - java.lang.String[] descriptorData = { - "\n\035google/iam/admin/v1/iam.proto\022\023google." + - "iam.admin.v1\032\034google/api/annotations.pro" + - "to\032\027google/api/client.proto\032\037google/api/" + - "field_behavior.proto\032\031google/api/resourc" + - "e.proto\032\036google/iam/v1/iam_policy.proto\032" + - "\032google/iam/v1/policy.proto\032\033google/prot" + - "obuf/empty.proto\032 google/protobuf/field_" + - "mask.proto\032\037google/protobuf/timestamp.pr" + - "oto\032\026google/type/expr.proto\"\276\002\n\016ServiceA" + - "ccount\022\014\n\004name\030\001 \001(\t\022\027\n\nproject_id\030\002 \001(\t" + - "B\003\340A\003\022\026\n\tunique_id\030\004 \001(\tB\003\340A\003\022\022\n\005email\030\005" + - " \001(\tB\003\340A\003\022\031\n\014display_name\030\006 \001(\tB\003\340A\001\022\020\n\004" + - "etag\030\007 \001(\014B\002\030\001\022\030\n\013description\030\010 \001(\tB\003\340A\001" + - "\022\035\n\020oauth2_client_id\030\t \001(\tB\003\340A\003\022\025\n\010disab" + - "led\030\013 \001(\010B\003\340A\003:\\\352AY\n!iam.googleapis.com/" + - "ServiceAccount\0224projects/{project}/servi" + - "ceAccounts/{service_account}\"\267\001\n\033CreateS" + - "erviceAccountRequest\022A\n\004name\030\001 \001(\tB3\340A\002\372" + - "A-\n+cloudresourcemanager.googleapis.com/" + - "Project\022\027\n\naccount_id\030\002 \001(\tB\003\340A\002\022<\n\017serv" + - "ice_account\030\003 \001(\0132#.google.iam.admin.v1." + - "ServiceAccount\"\206\001\n\032ListServiceAccountsRe" + - "quest\022A\n\004name\030\001 \001(\tB3\340A\002\372A-\n+cloudresour" + - "cemanager.googleapis.com/Project\022\021\n\tpage" + - "_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"m\n\033ListS" + - "erviceAccountsResponse\0225\n\010accounts\030\001 \003(\013" + - "2#.google.iam.admin.v1.ServiceAccount\022\027\n" + - "\017next_page_token\030\002 \001(\t\"S\n\030GetServiceAcco" + - "untRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!iam.go" + - "ogleapis.com/ServiceAccount\"V\n\033DeleteSer" + - "viceAccountRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#" + - "\n!iam.googleapis.com/ServiceAccount\"\213\001\n\032" + - "PatchServiceAccountRequest\022<\n\017service_ac" + - "count\030\001 \001(\0132#.google.iam.admin.v1.Servic" + - "eAccount\022/\n\013update_mask\030\002 \001(\0132\032.google.p" + - "rotobuf.FieldMask\"-\n\035UndeleteServiceAcco" + - "untRequest\022\014\n\004name\030\001 \001(\t\"_\n\036UndeleteServ" + - "iceAccountResponse\022=\n\020restored_account\030\001" + - " \001(\0132#.google.iam.admin.v1.ServiceAccoun" + - "t\"+\n\033EnableServiceAccountRequest\022\014\n\004name" + - "\030\001 \001(\t\",\n\034DisableServiceAccountRequest\022\014" + - "\n\004name\030\001 \001(\t\"\362\001\n\035ListServiceAccountKeysR" + - "equest\0227\n\004name\030\001 \001(\tB)\340A\002\372A#\n!iam.google" + - "apis.com/ServiceAccount\022M\n\tkey_types\030\002 \003" + - "(\0162:.google.iam.admin.v1.ListServiceAcco" + - "untKeysRequest.KeyType\"I\n\007KeyType\022\030\n\024KEY" + - "_TYPE_UNSPECIFIED\020\000\022\020\n\014USER_MANAGED\020\001\022\022\n" + - "\016SYSTEM_MANAGED\020\002\"V\n\036ListServiceAccountK" + - "eysResponse\0224\n\004keys\030\001 \003(\0132&.google.iam.a" + - "dmin.v1.ServiceAccountKey\"\233\001\n\033GetService" + - "AccountKeyRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n" + - "\026iam.googleapis.com/Key\022N\n\017public_key_ty" + - "pe\030\002 \001(\01620.google.iam.admin.v1.ServiceAc" + - "countPublicKeyTypeB\003\340A\001\"\326\004\n\021ServiceAccou" + - "ntKey\022\014\n\004name\030\001 \001(\t\022K\n\020private_key_type\030" + - "\002 \001(\01621.google.iam.admin.v1.ServiceAccou" + - "ntPrivateKeyType\022F\n\rkey_algorithm\030\010 \001(\0162" + - "/.google.iam.admin.v1.ServiceAccountKeyA" + - "lgorithm\022\030\n\020private_key_data\030\003 \001(\014\022\027\n\017pu" + - "blic_key_data\030\007 \001(\014\0224\n\020valid_after_time\030" + - "\004 \001(\0132\032.google.protobuf.Timestamp\0225\n\021val" + - "id_before_time\030\005 \001(\0132\032.google.protobuf.T" + - "imestamp\022@\n\nkey_origin\030\t \001(\0162,.google.ia" + - "m.admin.v1.ServiceAccountKeyOrigin\022L\n\010ke" + - "y_type\030\n \001(\0162:.google.iam.admin.v1.ListS" + - "erviceAccountKeysRequest.KeyType\022\020\n\010disa" + - "bled\030\013 \001(\010:\\\352AY\n\026iam.googleapis.com/Key\022" + - "?projects/{project}/serviceAccounts/{ser" + - "vice_account}/keys/{key}\"\356\001\n\036CreateServi" + - "ceAccountKeyRequest\0227\n\004name\030\001 \001(\tB)\340A\002\372A" + - "#\n!iam.googleapis.com/ServiceAccount\022K\n\020" + - "private_key_type\030\002 \001(\01621.google.iam.admi" + - "n.v1.ServiceAccountPrivateKeyType\022F\n\rkey" + - "_algorithm\030\003 \001(\0162/.google.iam.admin.v1.S" + - "erviceAccountKeyAlgorithm\"G\n\036UploadServi" + - "ceAccountKeyRequest\022\014\n\004name\030\001 \001(\t\022\027\n\017pub" + - "lic_key_data\030\002 \001(\014\"N\n\036DeleteServiceAccou" + - "ntKeyRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026iam." + - "googleapis.com/Key\"O\n\037DisableServiceAcco" + - "untKeyRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026iam" + - ".googleapis.com/Key\"N\n\036EnableServiceAcco" + - "untKeyRequest\022,\n\004name\030\001 \001(\tB\036\340A\002\372A\030\n\026iam" + - ".googleapis.com/Key\"j\n\017SignBlobRequest\0229" + - "\n\004name\030\001 \001(\tB+\030\001\340A\002\372A#\n!iam.googleapis.c" + - "om/ServiceAccount\022\034\n\rbytes_to_sign\030\002 \001(\014" + - "B\005\030\001\340A\002\"=\n\020SignBlobResponse\022\022\n\006key_id\030\001 " + - "\001(\tB\002\030\001\022\025\n\tsignature\030\002 \001(\014B\002\030\001\"c\n\016SignJw" + - "tRequest\0229\n\004name\030\001 \001(\tB+\030\001\340A\002\372A#\n!iam.go" + - "ogleapis.com/ServiceAccount\022\026\n\007payload\030\002" + - " \001(\tB\005\030\001\340A\002\"=\n\017SignJwtResponse\022\022\n\006key_id" + - "\030\001 \001(\tB\002\030\001\022\026\n\nsigned_jwt\030\002 \001(\tB\002\030\001\"\206\002\n\004R" + - "ole\022\014\n\004name\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\023\n\013desc" + - "ription\030\003 \001(\t\022\034\n\024included_permissions\030\007 " + - "\003(\t\0228\n\005stage\030\010 \001(\0162).google.iam.admin.v1" + - ".Role.RoleLaunchStage\022\014\n\004etag\030\t \001(\014\022\017\n\007d" + - "eleted\030\013 \001(\010\"U\n\017RoleLaunchStage\022\t\n\005ALPHA" + - "\020\000\022\010\n\004BETA\020\001\022\006\n\002GA\020\002\022\016\n\nDEPRECATED\020\004\022\014\n\010" + - "DISABLED\020\005\022\007\n\003EAP\020\006\"\221\001\n\032QueryGrantableRo" + - "lesRequest\022\037\n\022full_resource_name\030\001 \001(\tB\003" + - "\340A\002\022+\n\004view\030\002 \001(\0162\035.google.iam.admin.v1." + - "RoleView\022\021\n\tpage_size\030\003 \001(\005\022\022\n\npage_toke" + - "n\030\004 \001(\t\"`\n\033QueryGrantableRolesResponse\022(" + - "\n\005roles\030\001 \003(\0132\031.google.iam.admin.v1.Role" + - "\022\027\n\017next_page_token\030\002 \001(\t\"\224\001\n\020ListRolesR" + - "equest\022\026\n\006parent\030\001 \001(\tB\006\372A\003\n\001*\022\021\n\tpage_s" + - "ize\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\022+\n\004view\030\004 " + - "\001(\0162\035.google.iam.admin.v1.RoleView\022\024\n\014sh" + - "ow_deleted\030\006 \001(\010\"V\n\021ListRolesResponse\022(\n" + - "\005roles\030\001 \003(\0132\031.google.iam.admin.v1.Role\022" + - "\027\n\017next_page_token\030\002 \001(\t\"&\n\016GetRoleReque" + - "st\022\024\n\004name\030\001 \001(\tB\006\372A\003\n\001*\"e\n\021CreateRoleRe" + - "quest\022\026\n\006parent\030\001 \001(\tB\006\372A\003\n\001*\022\017\n\007role_id" + - "\030\002 \001(\t\022\'\n\004role\030\003 \001(\0132\031.google.iam.admin." + - "v1.Role\"\203\001\n\021UpdateRoleRequest\022\024\n\004name\030\001 " + - "\001(\tB\006\372A\003\n\001*\022\'\n\004role\030\002 \001(\0132\031.google.iam.a" + - "dmin.v1.Role\022/\n\013update_mask\030\003 \001(\0132\032.goog" + - "le.protobuf.FieldMask\"7\n\021DeleteRoleReque" + - "st\022\024\n\004name\030\001 \001(\tB\006\372A\003\n\001*\022\014\n\004etag\030\002 \001(\014\"9" + - "\n\023UndeleteRoleRequest\022\024\n\004name\030\001 \001(\tB\006\372A\003" + - "\n\001*\022\014\n\004etag\030\002 \001(\014\"\311\003\n\nPermission\022\014\n\004name" + - "\030\001 \001(\t\022\r\n\005title\030\002 \001(\t\022\023\n\013description\030\003 \001" + - "(\t\022$\n\030only_in_predefined_roles\030\004 \001(\010B\002\030\001" + - "\022D\n\005stage\030\005 \001(\01625.google.iam.admin.v1.Pe" + - "rmission.PermissionLaunchStage\022[\n\032custom" + - "_roles_support_level\030\006 \001(\01627.google.iam." + - "admin.v1.Permission.CustomRolesSupportLe" + - "vel\022\024\n\014api_disabled\030\007 \001(\010\022\032\n\022primary_per" + - "mission\030\010 \001(\t\"D\n\025PermissionLaunchStage\022\t" + - "\n\005ALPHA\020\000\022\010\n\004BETA\020\001\022\006\n\002GA\020\002\022\016\n\nDEPRECATE" + - "D\020\003\"H\n\027CustomRolesSupportLevel\022\r\n\tSUPPOR" + - "TED\020\000\022\013\n\007TESTING\020\001\022\021\n\rNOT_SUPPORTED\020\002\"d\n" + - "\037QueryTestablePermissionsRequest\022\032\n\022full" + - "_resource_name\030\001 \001(\t\022\021\n\tpage_size\030\002 \001(\005\022" + - "\022\n\npage_token\030\003 \001(\t\"q\n QueryTestablePerm" + - "issionsResponse\0224\n\013permissions\030\001 \003(\0132\037.g" + - "oogle.iam.admin.v1.Permission\022\027\n\017next_pa" + - "ge_token\030\002 \001(\t\";\n\035QueryAuditableServices" + - "Request\022\032\n\022full_resource_name\030\001 \001(\t\"\232\001\n\036" + - "QueryAuditableServicesResponse\022V\n\010servic" + - "es\030\001 \003(\0132D.google.iam.admin.v1.QueryAudi" + - "tableServicesResponse.AuditableService\032 " + - "\n\020AuditableService\022\014\n\004name\030\001 \001(\t\"f\n\021Lint" + - "PolicyRequest\022\032\n\022full_resource_name\030\001 \001(" + - "\t\022&\n\tcondition\030\005 \001(\0132\021.google.type.ExprH" + - "\000B\r\n\013lint_object\"\363\002\n\nLintResult\0224\n\005level" + - "\030\001 \001(\0162%.google.iam.admin.v1.LintResult." + - "Level\022\034\n\024validation_unit_name\030\002 \001(\t\022:\n\010s" + - "everity\030\003 \001(\0162(.google.iam.admin.v1.Lint" + - "Result.Severity\022\022\n\nfield_name\030\005 \001(\t\022\027\n\017l" + - "ocation_offset\030\006 \001(\005\022\025\n\rdebug_message\030\007 " + - "\001(\t\"-\n\005Level\022\025\n\021LEVEL_UNSPECIFIED\020\000\022\r\n\tC" + - "ONDITION\020\003\"b\n\010Severity\022\030\n\024SEVERITY_UNSPE" + - "CIFIED\020\000\022\t\n\005ERROR\020\001\022\013\n\007WARNING\020\002\022\n\n\006NOTI" + - "CE\020\003\022\010\n\004INFO\020\004\022\016\n\nDEPRECATED\020\005\"K\n\022LintPo" + - "licyResponse\0225\n\014lint_results\030\001 \003(\0132\037.goo" + - "gle.iam.admin.v1.LintResult*a\n\032ServiceAc" + - "countKeyAlgorithm\022\027\n\023KEY_ALG_UNSPECIFIED" + - "\020\000\022\024\n\020KEY_ALG_RSA_1024\020\001\022\024\n\020KEY_ALG_RSA_" + - "2048\020\002*l\n\034ServiceAccountPrivateKeyType\022\024" + - "\n\020TYPE_UNSPECIFIED\020\000\022\024\n\020TYPE_PKCS12_FILE" + - "\020\001\022 \n\034TYPE_GOOGLE_CREDENTIALS_FILE\020\002*]\n\033" + - "ServiceAccountPublicKeyType\022\r\n\tTYPE_NONE" + - "\020\000\022\026\n\022TYPE_X509_PEM_FILE\020\001\022\027\n\023TYPE_RAW_P" + - "UBLIC_KEY\020\002*Y\n\027ServiceAccountKeyOrigin\022\026" + - "\n\022ORIGIN_UNSPECIFIED\020\000\022\021\n\rUSER_PROVIDED\020" + - "\001\022\023\n\017GOOGLE_PROVIDED\020\002*\037\n\010RoleView\022\t\n\005BA" + - "SIC\020\000\022\010\n\004FULL\020\0012\232+\n\003IAM\022\256\001\n\023ListServiceA" + - "ccounts\022/.google.iam.admin.v1.ListServic" + - "eAccountsRequest\0320.google.iam.admin.v1.L" + - "istServiceAccountsResponse\"4\202\323\344\223\002\'\022%/v1/" + - "{name=projects/*}/serviceAccounts\332A\004name" + - "\022\237\001\n\021GetServiceAccount\022-.google.iam.admi" + - "n.v1.GetServiceAccountRequest\032#.google.i" + - "am.admin.v1.ServiceAccount\"6\202\323\344\223\002)\022\'/v1/" + - "{name=projects/*/serviceAccounts/*}\332A\004na" + - "me\022\301\001\n\024CreateServiceAccount\0220.google.iam" + - ".admin.v1.CreateServiceAccountRequest\032#." + - "google.iam.admin.v1.ServiceAccount\"R\202\323\344\223" + - "\002*\"%/v1/{name=projects/*}/serviceAccount" + - "s:\001*\332A\037name,account_id,service_account\022\224" + - "\001\n\024UpdateServiceAccount\022#.google.iam.adm" + - "in.v1.ServiceAccount\032#.google.iam.admin." + - "v1.ServiceAccount\"2\202\323\344\223\002,\032\'/v1/{name=pro" + - "jects/*/serviceAccounts/*}:\001*\022\257\001\n\023PatchS" + - "erviceAccount\022/.google.iam.admin.v1.Patc" + - "hServiceAccountRequest\032#.google.iam.admi" + - "n.v1.ServiceAccount\"B\202\323\344\223\002<27/v1/{servic" + - "e_account.name=projects/*/serviceAccount" + - "s/*}:\001*\022\230\001\n\024DeleteServiceAccount\0220.googl" + - "e.iam.admin.v1.DeleteServiceAccountReque" + - "st\032\026.google.protobuf.Empty\"6\202\323\344\223\002)*\'/v1/" + - "{name=projects/*/serviceAccounts/*}\332A\004na" + - "me\022\276\001\n\026UndeleteServiceAccount\0222.google.i" + - "am.admin.v1.UndeleteServiceAccountReques" + - "t\0323.google.iam.admin.v1.UndeleteServiceA" + - "ccountResponse\";\202\323\344\223\0025\"0/v1/{name=projec" + - "ts/*/serviceAccounts/*}:undelete:\001*\022\233\001\n\024" + - "EnableServiceAccount\0220.google.iam.admin." + - "v1.EnableServiceAccountRequest\032\026.google." + - "protobuf.Empty\"9\202\323\344\223\0023\"./v1/{name=projec" + - "ts/*/serviceAccounts/*}:enable:\001*\022\236\001\n\025Di" + - "sableServiceAccount\0221.google.iam.admin.v" + - "1.DisableServiceAccountRequest\032\026.google." + - "protobuf.Empty\":\202\323\344\223\0024\"//v1/{name=projec" + - "ts/*/serviceAccounts/*}:disable:\001*\022\310\001\n\026L" + - "istServiceAccountKeys\0222.google.iam.admin" + - ".v1.ListServiceAccountKeysRequest\0323.goog" + - "le.iam.admin.v1.ListServiceAccountKeysRe" + - "sponse\"E\202\323\344\223\002.\022,/v1/{name=projects/*/ser" + - "viceAccounts/*}/keys\332A\016name,key_types\022\277\001" + - "\n\024GetServiceAccountKey\0220.google.iam.admi" + - "n.v1.GetServiceAccountKeyRequest\032&.googl" + - "e.iam.admin.v1.ServiceAccountKey\"M\202\323\344\223\0020" + - "\022./v1/{name=projects/*/serviceAccounts/*" + - "/keys/*}\332A\024name,public_key_type\022\325\001\n\027Crea" + - "teServiceAccountKey\0223.google.iam.admin.v" + - "1.CreateServiceAccountKeyRequest\032&.googl" + - "e.iam.admin.v1.ServiceAccountKey\"]\202\323\344\223\0021" + - "\",/v1/{name=projects/*/serviceAccounts/*" + - "}/keys:\001*\332A#name,private_key_type,key_al" + - "gorithm\022\266\001\n\027UploadServiceAccountKey\0223.go" + - "ogle.iam.admin.v1.UploadServiceAccountKe" + - "yRequest\032&.google.iam.admin.v1.ServiceAc" + - "countKey\">\202\323\344\223\0028\"3/v1/{name=projects/*/s" + - "erviceAccounts/*}/keys:upload:\001*\022\245\001\n\027Del" + - "eteServiceAccountKey\0223.google.iam.admin." + - "v1.DeleteServiceAccountKeyRequest\032\026.goog" + - "le.protobuf.Empty\"=\202\323\344\223\0020*./v1/{name=pro" + - "jects/*/serviceAccounts/*/keys/*}\332A\004name" + - "\022\262\001\n\030DisableServiceAccountKey\0224.google.i" + - "am.admin.v1.DisableServiceAccountKeyRequ" + - "est\032\026.google.protobuf.Empty\"H\202\323\344\223\002;\"6/v1" + - "/{name=projects/*/serviceAccounts/*/keys" + - "/*}:disable:\001*\332A\004name\022\257\001\n\027EnableServiceA" + - "ccountKey\0223.google.iam.admin.v1.EnableSe" + - "rviceAccountKeyRequest\032\026.google.protobuf" + - ".Empty\"G\202\323\344\223\002:\"5/v1/{name=projects/*/ser" + - "viceAccounts/*/keys/*}:enable:\001*\332A\004name\022" + - "\254\001\n\010SignBlob\022$.google.iam.admin.v1.SignB" + - "lobRequest\032%.google.iam.admin.v1.SignBlo" + - "bResponse\"S\210\002\001\202\323\344\223\0025\"0/v1/{name=projects" + - "/*/serviceAccounts/*}:signBlob:\001*\332A\022name" + - ",bytes_to_sign\022\242\001\n\007SignJwt\022#.google.iam." + - "admin.v1.SignJwtRequest\032$.google.iam.adm" + - "in.v1.SignJwtResponse\"L\210\002\001\202\323\344\223\0024\"//v1/{n" + - "ame=projects/*/serviceAccounts/*}:signJw" + - "t:\001*\332A\014name,payload\022\226\001\n\014GetIamPolicy\022\".g" + - "oogle.iam.v1.GetIamPolicyRequest\032\025.googl" + - "e.iam.v1.Policy\"K\202\323\344\223\002:\"8/v1/{resource=p" + - "rojects/*/serviceAccounts/*}:getIamPolic" + - "y\332A\010resource\022\240\001\n\014SetIamPolicy\022\".google.i" + - "am.v1.SetIamPolicyRequest\032\025.google.iam.v" + - "1.Policy\"U\202\323\344\223\002=\"8/v1/{resource=projects" + - "/*/serviceAccounts/*}:setIamPolicy:\001*\332A\017" + - "resource,policy\022\313\001\n\022TestIamPermissions\022(" + - ".google.iam.v1.TestIamPermissionsRequest" + - "\032).google.iam.v1.TestIamPermissionsRespo" + - "nse\"`\202\323\344\223\002C\">/v1/{resource=projects/*/se" + - "rviceAccounts/*}:testIamPermissions:\001*\332A" + - "\024resource,permissions\022\267\001\n\023QueryGrantable" + - "Roles\022/.google.iam.admin.v1.QueryGrantab" + - "leRolesRequest\0320.google.iam.admin.v1.Que" + - "ryGrantableRolesResponse\"=\202\323\344\223\002\"\"\035/v1/ro" + - "les:queryGrantableRoles:\001*\332A\022full_resour" + - "ce_name\022\264\001\n\tListRoles\022%.google.iam.admin" + - ".v1.ListRolesRequest\032&.google.iam.admin." + - "v1.ListRolesResponse\"X\202\323\344\223\002R\022\t/v1/rolesZ" + - "$\022\"/v1/{parent=organizations/*}/rolesZ\037\022" + - "\035/v1/{parent=projects/*}/roles\022\254\001\n\007GetRo" + - "le\022#.google.iam.admin.v1.GetRoleRequest\032" + - "\031.google.iam.admin.v1.Role\"a\202\323\344\223\002[\022\022/v1/" + - "{name=roles/*}Z$\022\"/v1/{name=organization" + - "s/*/roles/*}Z\037\022\035/v1/{name=projects/*/rol" + - "es/*}\022\242\001\n\nCreateRole\022&.google.iam.admin." + - "v1.CreateRoleRequest\032\031.google.iam.admin." + - "v1.Role\"Q\202\323\344\223\002K\"\"/v1/{parent=organizatio" + - "ns/*}/roles:\001*Z\"\"\035/v1/{parent=projects/*" + - "}/roles:\001*\022\250\001\n\nUpdateRole\022&.google.iam.a" + - "dmin.v1.UpdateRoleRequest\032\031.google.iam.a" + - "dmin.v1.Role\"W\202\323\344\223\002Q2\"/v1/{name=organiza" + - "tions/*/roles/*}:\004roleZ%2\035/v1/{name=proj" + - "ects/*/roles/*}:\004role\022\234\001\n\nDeleteRole\022&.g" + - "oogle.iam.admin.v1.DeleteRoleRequest\032\031.g" + - "oogle.iam.admin.v1.Role\"K\202\323\344\223\002E*\"/v1/{na" + - "me=organizations/*/roles/*}Z\037*\035/v1/{name" + - "=projects/*/roles/*}\022\270\001\n\014UndeleteRole\022(." + - "google.iam.admin.v1.UndeleteRoleRequest\032" + - "\031.google.iam.admin.v1.Role\"c\202\323\344\223\002]\"+/v1/" + - "{name=organizations/*/roles/*}:undelete:" + - "\001*Z+\"&/v1/{name=projects/*/roles/*}:unde" + - "lete:\001*\022\274\001\n\030QueryTestablePermissions\0224.g" + - "oogle.iam.admin.v1.QueryTestablePermissi" + - "onsRequest\0325.google.iam.admin.v1.QueryTe" + - "stablePermissionsResponse\"3\202\323\344\223\002-\"(/v1/p" + - "ermissions:queryTestablePermissions:\001*\022\264" + - "\001\n\026QueryAuditableServices\0222.google.iam.a" + - "dmin.v1.QueryAuditableServicesRequest\0323." + - "google.iam.admin.v1.QueryAuditableServic" + - "esResponse\"1\202\323\344\223\002+\"&/v1/iamPolicies:quer" + - "yAuditableServices:\001*\022\204\001\n\nLintPolicy\022&.g" + - "oogle.iam.admin.v1.LintPolicyRequest\032\'.g" + - "oogle.iam.admin.v1.LintPolicyResponse\"%\202" + - "\323\344\223\002\037\"\032/v1/iamPolicies:lintPolicy:\001*\032F\312A" + - "\022iam.googleapis.com\322A.https://www.google" + - "apis.com/auth/cloud-platformB\220\001\n\027com.goo" + - "gle.iam.admin.v1P\001Z8google.golang.org/ge" + - "nproto/googleapis/iam/admin/v1;admin\370\001\001\252" + - "\002\031Google.Cloud.Iam.Admin.V1\312\002\031Google\\Clo" + - "ud\\Iam\\Admin\\V1b\006proto3" - }; - descriptor = com.google.protobuf.Descriptors.FileDescriptor - .internalBuildGeneratedFileFrom(descriptorData, - new com.google.protobuf.Descriptors.FileDescriptor[] { - com.google.api.AnnotationsProto.getDescriptor(), - com.google.api.ClientProto.getDescriptor(), - com.google.api.FieldBehaviorProto.getDescriptor(), - com.google.api.ResourceProto.getDescriptor(), - com.google.iam.v1.IamPolicyProto.getDescriptor(), - com.google.iam.v1.PolicyProto.getDescriptor(), - com.google.protobuf.EmptyProto.getDescriptor(), - com.google.protobuf.FieldMaskProto.getDescriptor(), - com.google.protobuf.TimestampProto.getDescriptor(), - com.google.type.ExprProto.getDescriptor(), - }); - internal_static_google_iam_admin_v1_ServiceAccount_descriptor = - getDescriptor().getMessageTypes().get(0); - internal_static_google_iam_admin_v1_ServiceAccount_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_ServiceAccount_descriptor, - new java.lang.String[] { "Name", "ProjectId", "UniqueId", "Email", "DisplayName", "Etag", "Description", "Oauth2ClientId", "Disabled", }); - internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(1); - internal_static_google_iam_admin_v1_CreateServiceAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_CreateServiceAccountRequest_descriptor, - new java.lang.String[] { "Name", "AccountId", "ServiceAccount", }); - internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor = - getDescriptor().getMessageTypes().get(2); - internal_static_google_iam_admin_v1_ListServiceAccountsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor, - new java.lang.String[] { "Name", "PageSize", "PageToken", }); - internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor = - getDescriptor().getMessageTypes().get(3); - internal_static_google_iam_admin_v1_ListServiceAccountsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor, - new java.lang.String[] { "Accounts", "NextPageToken", }); - internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(4); - internal_static_google_iam_admin_v1_GetServiceAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_GetServiceAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(5); - internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_DeleteServiceAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(6); - internal_static_google_iam_admin_v1_PatchServiceAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor, - new java.lang.String[] { "ServiceAccount", "UpdateMask", }); - internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(7); - internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor = - getDescriptor().getMessageTypes().get(8); - internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor, - new java.lang.String[] { "RestoredAccount", }); - internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(9); - internal_static_google_iam_admin_v1_EnableServiceAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_EnableServiceAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor = - getDescriptor().getMessageTypes().get(10); - internal_static_google_iam_admin_v1_DisableServiceAccountRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_DisableServiceAccountRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor = - getDescriptor().getMessageTypes().get(11); - internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor, - new java.lang.String[] { "Name", "KeyTypes", }); - internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor = - getDescriptor().getMessageTypes().get(12); - internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor, - new java.lang.String[] { "Keys", }); - internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(13); - internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_GetServiceAccountKeyRequest_descriptor, - new java.lang.String[] { "Name", "PublicKeyType", }); - internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor = - getDescriptor().getMessageTypes().get(14); - internal_static_google_iam_admin_v1_ServiceAccountKey_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor, - new java.lang.String[] { "Name", "PrivateKeyType", "KeyAlgorithm", "PrivateKeyData", "PublicKeyData", "ValidAfterTime", "ValidBeforeTime", "KeyOrigin", "KeyType", "Disabled", }); - internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(15); - internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_CreateServiceAccountKeyRequest_descriptor, - new java.lang.String[] { "Name", "PrivateKeyType", "KeyAlgorithm", }); - internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(16); - internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor, - new java.lang.String[] { "Name", "PublicKeyData", }); - internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(17); - internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_DeleteServiceAccountKeyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(18); - internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_DisableServiceAccountKeyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor = - getDescriptor().getMessageTypes().get(19); - internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_EnableServiceAccountKeyRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_SignBlobRequest_descriptor = - getDescriptor().getMessageTypes().get(20); - internal_static_google_iam_admin_v1_SignBlobRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_SignBlobRequest_descriptor, - new java.lang.String[] { "Name", "BytesToSign", }); - internal_static_google_iam_admin_v1_SignBlobResponse_descriptor = - getDescriptor().getMessageTypes().get(21); - internal_static_google_iam_admin_v1_SignBlobResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_SignBlobResponse_descriptor, - new java.lang.String[] { "KeyId", "Signature", }); - internal_static_google_iam_admin_v1_SignJwtRequest_descriptor = - getDescriptor().getMessageTypes().get(22); - internal_static_google_iam_admin_v1_SignJwtRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_SignJwtRequest_descriptor, - new java.lang.String[] { "Name", "Payload", }); - internal_static_google_iam_admin_v1_SignJwtResponse_descriptor = - getDescriptor().getMessageTypes().get(23); - internal_static_google_iam_admin_v1_SignJwtResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_SignJwtResponse_descriptor, - new java.lang.String[] { "KeyId", "SignedJwt", }); - internal_static_google_iam_admin_v1_Role_descriptor = - getDescriptor().getMessageTypes().get(24); - internal_static_google_iam_admin_v1_Role_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_Role_descriptor, - new java.lang.String[] { "Name", "Title", "Description", "IncludedPermissions", "Stage", "Etag", "Deleted", }); - internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor = - getDescriptor().getMessageTypes().get(25); - internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor, - new java.lang.String[] { "FullResourceName", "View", "PageSize", "PageToken", }); - internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor = - getDescriptor().getMessageTypes().get(26); - internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor, - new java.lang.String[] { "Roles", "NextPageToken", }); - internal_static_google_iam_admin_v1_ListRolesRequest_descriptor = - getDescriptor().getMessageTypes().get(27); - internal_static_google_iam_admin_v1_ListRolesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_ListRolesRequest_descriptor, - new java.lang.String[] { "Parent", "PageSize", "PageToken", "View", "ShowDeleted", }); - internal_static_google_iam_admin_v1_ListRolesResponse_descriptor = - getDescriptor().getMessageTypes().get(28); - internal_static_google_iam_admin_v1_ListRolesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_ListRolesResponse_descriptor, - new java.lang.String[] { "Roles", "NextPageToken", }); - internal_static_google_iam_admin_v1_GetRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(29); - internal_static_google_iam_admin_v1_GetRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_GetRoleRequest_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(30); - internal_static_google_iam_admin_v1_CreateRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_CreateRoleRequest_descriptor, - new java.lang.String[] { "Parent", "RoleId", "Role", }); - internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(31); - internal_static_google_iam_admin_v1_UpdateRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor, - new java.lang.String[] { "Name", "Role", "UpdateMask", }); - internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(32); - internal_static_google_iam_admin_v1_DeleteRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_DeleteRoleRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor = - getDescriptor().getMessageTypes().get(33); - internal_static_google_iam_admin_v1_UndeleteRoleRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor, - new java.lang.String[] { "Name", "Etag", }); - internal_static_google_iam_admin_v1_Permission_descriptor = - getDescriptor().getMessageTypes().get(34); - internal_static_google_iam_admin_v1_Permission_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_Permission_descriptor, - new java.lang.String[] { "Name", "Title", "Description", "OnlyInPredefinedRoles", "Stage", "CustomRolesSupportLevel", "ApiDisabled", "PrimaryPermission", }); - internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor = - getDescriptor().getMessageTypes().get(35); - internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor, - new java.lang.String[] { "FullResourceName", "PageSize", "PageToken", }); - internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor = - getDescriptor().getMessageTypes().get(36); - internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor, - new java.lang.String[] { "Permissions", "NextPageToken", }); - internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor = - getDescriptor().getMessageTypes().get(37); - internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor, - new java.lang.String[] { "FullResourceName", }); - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor = - getDescriptor().getMessageTypes().get(38); - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor, - new java.lang.String[] { "Services", }); - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor = - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor.getNestedTypes().get(0); - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor, - new java.lang.String[] { "Name", }); - internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor = - getDescriptor().getMessageTypes().get(39); - internal_static_google_iam_admin_v1_LintPolicyRequest_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor, - new java.lang.String[] { "FullResourceName", "Condition", "LintObject", }); - internal_static_google_iam_admin_v1_LintResult_descriptor = - getDescriptor().getMessageTypes().get(40); - internal_static_google_iam_admin_v1_LintResult_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_LintResult_descriptor, - new java.lang.String[] { "Level", "ValidationUnitName", "Severity", "FieldName", "LocationOffset", "DebugMessage", }); - internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor = - getDescriptor().getMessageTypes().get(41); - internal_static_google_iam_admin_v1_LintPolicyResponse_fieldAccessorTable = new - com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( - internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor, - new java.lang.String[] { "LintResults", }); - com.google.protobuf.ExtensionRegistry registry = - com.google.protobuf.ExtensionRegistry.newInstance(); - registry.add(com.google.api.ClientProto.defaultHost); - registry.add(com.google.api.FieldBehaviorProto.fieldBehavior); - registry.add(com.google.api.AnnotationsProto.http); - registry.add(com.google.api.ClientProto.methodSignature); - registry.add(com.google.api.ClientProto.oauthScopes); - registry.add(com.google.api.ResourceProto.resource); - registry.add(com.google.api.ResourceProto.resourceReference); - com.google.protobuf.Descriptors.FileDescriptor - .internalUpdateFileDescriptor(descriptor, registry); - com.google.api.AnnotationsProto.getDescriptor(); - com.google.api.ClientProto.getDescriptor(); - com.google.api.FieldBehaviorProto.getDescriptor(); - com.google.api.ResourceProto.getDescriptor(); - com.google.iam.v1.IamPolicyProto.getDescriptor(); - com.google.iam.v1.PolicyProto.getDescriptor(); - com.google.protobuf.EmptyProto.getDescriptor(); - com.google.protobuf.FieldMaskProto.getDescriptor(); - com.google.protobuf.TimestampProto.getDescriptor(); - com.google.type.ExprProto.getDescriptor(); - } - - // @@protoc_insertion_point(outer_class_scope) -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/KeyName.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/KeyName.java deleted file mode 100644 index 3a1df9d65410..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/KeyName.java +++ /dev/null @@ -1,223 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.iam.admin.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class KeyName implements ResourceName { - private static final PathTemplate PROJECT_SERVICE_ACCOUNT_KEY = - PathTemplate.createWithoutUrlEncoding( - "projects/{project}/serviceAccounts/{service_account}/keys/{key}"); - private volatile Map fieldValuesMap; - private final String project; - private final String serviceAccount; - private final String key; - - @Deprecated - protected KeyName() { - project = null; - serviceAccount = null; - key = null; - } - - private KeyName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - serviceAccount = Preconditions.checkNotNull(builder.getServiceAccount()); - key = Preconditions.checkNotNull(builder.getKey()); - } - - public String getProject() { - return project; - } - - public String getServiceAccount() { - return serviceAccount; - } - - public String getKey() { - return key; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static KeyName of(String project, String serviceAccount, String key) { - return newBuilder().setProject(project).setServiceAccount(serviceAccount).setKey(key).build(); - } - - public static String format(String project, String serviceAccount, String key) { - return newBuilder() - .setProject(project) - .setServiceAccount(serviceAccount) - .setKey(key) - .build() - .toString(); - } - - public static KeyName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_SERVICE_ACCOUNT_KEY.validatedMatch( - formattedString, "KeyName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("service_account"), matchMap.get("key")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (KeyName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_SERVICE_ACCOUNT_KEY.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (serviceAccount != null) { - fieldMapBuilder.put("service_account", serviceAccount); - } - if (key != null) { - fieldMapBuilder.put("key", key); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_SERVICE_ACCOUNT_KEY.instantiate( - "project", project, "service_account", serviceAccount, "key", key); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - KeyName that = ((KeyName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.serviceAccount, that.serviceAccount) - && Objects.equals(this.key, that.key); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(serviceAccount); - h *= 1000003; - h ^= Objects.hashCode(key); - return h; - } - - /** Builder for projects/{project}/serviceAccounts/{service_account}/keys/{key}. */ - public static class Builder { - private String project; - private String serviceAccount; - private String key; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getServiceAccount() { - return serviceAccount; - } - - public String getKey() { - return key; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setServiceAccount(String serviceAccount) { - this.serviceAccount = serviceAccount; - return this; - } - - public Builder setKey(String key) { - this.key = key; - return this; - } - - private Builder(KeyName keyName) { - this.project = keyName.project; - this.serviceAccount = keyName.serviceAccount; - this.key = keyName.key; - } - - public KeyName build() { - return new KeyName(this); - } - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequest.java deleted file mode 100644 index b09faf5cb814..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequest.java +++ /dev/null @@ -1,969 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The request to lint a Cloud IAM policy object.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.LintPolicyRequest} - */ -public final class LintPolicyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.LintPolicyRequest) - LintPolicyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use LintPolicyRequest.newBuilder() to construct. - private LintPolicyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LintPolicyRequest() { - fullResourceName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LintPolicyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LintPolicyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - fullResourceName_ = s; - break; - } - case 42: { - com.google.type.Expr.Builder subBuilder = null; - if (lintObjectCase_ == 5) { - subBuilder = ((com.google.type.Expr) lintObject_).toBuilder(); - } - lintObject_ = - input.readMessage(com.google.type.Expr.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom((com.google.type.Expr) lintObject_); - lintObject_ = subBuilder.buildPartial(); - } - lintObjectCase_ = 5; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.LintPolicyRequest.class, com.google.iam.admin.v1.LintPolicyRequest.Builder.class); - } - - private int lintObjectCase_ = 0; - private java.lang.Object lintObject_; - public enum LintObjectCase - implements com.google.protobuf.Internal.EnumLite, - com.google.protobuf.AbstractMessage.InternalOneOfEnum { - CONDITION(5), - LINTOBJECT_NOT_SET(0); - private final int value; - private LintObjectCase(int value) { - this.value = value; - } - /** - * @param value The number of the enum to look for. - * @return The enum associated with the given number. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static LintObjectCase valueOf(int value) { - return forNumber(value); - } - - public static LintObjectCase forNumber(int value) { - switch (value) { - case 5: return CONDITION; - case 0: return LINTOBJECT_NOT_SET; - default: return null; - } - } - public int getNumber() { - return this.value; - } - }; - - public LintObjectCase - getLintObjectCase() { - return LintObjectCase.forNumber( - lintObjectCase_); - } - - public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fullResourceName_; - /** - *
    -   * The full resource name of the policy this lint request is about.
    -   * The name follows the Google Cloud Platform (GCP) resource format.
    -   * For example, a GCP project with ID `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * The resource name is not used to read the policy instance from the Cloud
    -   * IAM database. The candidate policy for lint has to be provided in the same
    -   * request object.
    -   * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - @java.lang.Override - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } - } - /** - *
    -   * The full resource name of the policy this lint request is about.
    -   * The name follows the Google Cloud Platform (GCP) resource format.
    -   * For example, a GCP project with ID `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * The resource name is not used to read the policy instance from the Cloud
    -   * IAM database. The candidate policy for lint has to be provided in the same
    -   * request object.
    -   * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int CONDITION_FIELD_NUMBER = 5; - /** - *
    -   * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -   * 
    - * - * .google.type.Expr condition = 5; - * @return Whether the condition field is set. - */ - @java.lang.Override - public boolean hasCondition() { - return lintObjectCase_ == 5; - } - /** - *
    -   * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -   * 
    - * - * .google.type.Expr condition = 5; - * @return The condition. - */ - @java.lang.Override - public com.google.type.Expr getCondition() { - if (lintObjectCase_ == 5) { - return (com.google.type.Expr) lintObject_; - } - return com.google.type.Expr.getDefaultInstance(); - } - /** - *
    -   * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -   * 
    - * - * .google.type.Expr condition = 5; - */ - @java.lang.Override - public com.google.type.ExprOrBuilder getConditionOrBuilder() { - if (lintObjectCase_ == 5) { - return (com.google.type.Expr) lintObject_; - } - return com.google.type.Expr.getDefaultInstance(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); - } - if (lintObjectCase_ == 5) { - output.writeMessage(5, (com.google.type.Expr) lintObject_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); - } - if (lintObjectCase_ == 5) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, (com.google.type.Expr) lintObject_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.LintPolicyRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.LintPolicyRequest other = (com.google.iam.admin.v1.LintPolicyRequest) obj; - - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; - if (!getLintObjectCase().equals(other.getLintObjectCase())) return false; - switch (lintObjectCase_) { - case 5: - if (!getCondition() - .equals(other.getCondition())) return false; - break; - case 0: - default: - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullResourceName().hashCode(); - switch (lintObjectCase_) { - case 5: - hash = (37 * hash) + CONDITION_FIELD_NUMBER; - hash = (53 * hash) + getCondition().hashCode(); - break; - case 0: - default: - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintPolicyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.LintPolicyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The request to lint a Cloud IAM policy object.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.LintPolicyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.LintPolicyRequest) - com.google.iam.admin.v1.LintPolicyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.LintPolicyRequest.class, com.google.iam.admin.v1.LintPolicyRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.LintPolicyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fullResourceName_ = ""; - - lintObjectCase_ = 0; - lintObject_ = null; - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintPolicyRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.LintPolicyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.LintPolicyRequest build() { - com.google.iam.admin.v1.LintPolicyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintPolicyRequest buildPartial() { - com.google.iam.admin.v1.LintPolicyRequest result = new com.google.iam.admin.v1.LintPolicyRequest(this); - result.fullResourceName_ = fullResourceName_; - if (lintObjectCase_ == 5) { - if (conditionBuilder_ == null) { - result.lintObject_ = lintObject_; - } else { - result.lintObject_ = conditionBuilder_.build(); - } - } - result.lintObjectCase_ = lintObjectCase_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.LintPolicyRequest) { - return mergeFrom((com.google.iam.admin.v1.LintPolicyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.LintPolicyRequest other) { - if (other == com.google.iam.admin.v1.LintPolicyRequest.getDefaultInstance()) return this; - if (!other.getFullResourceName().isEmpty()) { - fullResourceName_ = other.fullResourceName_; - onChanged(); - } - switch (other.getLintObjectCase()) { - case CONDITION: { - mergeCondition(other.getCondition()); - break; - } - case LINTOBJECT_NOT_SET: { - break; - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.LintPolicyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.LintPolicyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int lintObjectCase_ = 0; - private java.lang.Object lintObject_; - public LintObjectCase - getLintObjectCase() { - return LintObjectCase.forNumber( - lintObjectCase_); - } - - public Builder clearLintObject() { - lintObjectCase_ = 0; - lintObject_ = null; - onChanged(); - return this; - } - - - private java.lang.Object fullResourceName_ = ""; - /** - *
    -     * The full resource name of the policy this lint request is about.
    -     * The name follows the Google Cloud Platform (GCP) resource format.
    -     * For example, a GCP project with ID `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * The resource name is not used to read the policy instance from the Cloud
    -     * IAM database. The candidate policy for lint has to be provided in the same
    -     * request object.
    -     * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The full resource name of the policy this lint request is about.
    -     * The name follows the Google Cloud Platform (GCP) resource format.
    -     * For example, a GCP project with ID `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * The resource name is not used to read the policy instance from the Cloud
    -     * IAM database. The candidate policy for lint has to be provided in the same
    -     * request object.
    -     * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The full resource name of the policy this lint request is about.
    -     * The name follows the Google Cloud Platform (GCP) resource format.
    -     * For example, a GCP project with ID `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * The resource name is not used to read the policy instance from the Cloud
    -     * IAM database. The candidate policy for lint has to be provided in the same
    -     * request object.
    -     * 
    - * - * string full_resource_name = 1; - * @param value The fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fullResourceName_ = value; - onChanged(); - return this; - } - /** - *
    -     * The full resource name of the policy this lint request is about.
    -     * The name follows the Google Cloud Platform (GCP) resource format.
    -     * For example, a GCP project with ID `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * The resource name is not used to read the policy instance from the Cloud
    -     * IAM database. The candidate policy for lint has to be provided in the same
    -     * request object.
    -     * 
    - * - * string full_resource_name = 1; - * @return This builder for chaining. - */ - public Builder clearFullResourceName() { - - fullResourceName_ = getDefaultInstance().getFullResourceName(); - onChanged(); - return this; - } - /** - *
    -     * The full resource name of the policy this lint request is about.
    -     * The name follows the Google Cloud Platform (GCP) resource format.
    -     * For example, a GCP project with ID `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * The resource name is not used to read the policy instance from the Cloud
    -     * IAM database. The candidate policy for lint has to be provided in the same
    -     * request object.
    -     * 
    - * - * string full_resource_name = 1; - * @param value The bytes for fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fullResourceName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> conditionBuilder_; - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - * @return Whether the condition field is set. - */ - @java.lang.Override - public boolean hasCondition() { - return lintObjectCase_ == 5; - } - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - * @return The condition. - */ - @java.lang.Override - public com.google.type.Expr getCondition() { - if (conditionBuilder_ == null) { - if (lintObjectCase_ == 5) { - return (com.google.type.Expr) lintObject_; - } - return com.google.type.Expr.getDefaultInstance(); - } else { - if (lintObjectCase_ == 5) { - return conditionBuilder_.getMessage(); - } - return com.google.type.Expr.getDefaultInstance(); - } - } - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - */ - public Builder setCondition(com.google.type.Expr value) { - if (conditionBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - lintObject_ = value; - onChanged(); - } else { - conditionBuilder_.setMessage(value); - } - lintObjectCase_ = 5; - return this; - } - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - */ - public Builder setCondition( - com.google.type.Expr.Builder builderForValue) { - if (conditionBuilder_ == null) { - lintObject_ = builderForValue.build(); - onChanged(); - } else { - conditionBuilder_.setMessage(builderForValue.build()); - } - lintObjectCase_ = 5; - return this; - } - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - */ - public Builder mergeCondition(com.google.type.Expr value) { - if (conditionBuilder_ == null) { - if (lintObjectCase_ == 5 && - lintObject_ != com.google.type.Expr.getDefaultInstance()) { - lintObject_ = com.google.type.Expr.newBuilder((com.google.type.Expr) lintObject_) - .mergeFrom(value).buildPartial(); - } else { - lintObject_ = value; - } - onChanged(); - } else { - if (lintObjectCase_ == 5) { - conditionBuilder_.mergeFrom(value); - } else { - conditionBuilder_.setMessage(value); - } - } - lintObjectCase_ = 5; - return this; - } - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - */ - public Builder clearCondition() { - if (conditionBuilder_ == null) { - if (lintObjectCase_ == 5) { - lintObjectCase_ = 0; - lintObject_ = null; - onChanged(); - } - } else { - if (lintObjectCase_ == 5) { - lintObjectCase_ = 0; - lintObject_ = null; - } - conditionBuilder_.clear(); - } - return this; - } - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - */ - public com.google.type.Expr.Builder getConditionBuilder() { - return getConditionFieldBuilder().getBuilder(); - } - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - */ - @java.lang.Override - public com.google.type.ExprOrBuilder getConditionOrBuilder() { - if ((lintObjectCase_ == 5) && (conditionBuilder_ != null)) { - return conditionBuilder_.getMessageOrBuilder(); - } else { - if (lintObjectCase_ == 5) { - return (com.google.type.Expr) lintObject_; - } - return com.google.type.Expr.getDefaultInstance(); - } - } - /** - *
    -     * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -     * 
    - * - * .google.type.Expr condition = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder> - getConditionFieldBuilder() { - if (conditionBuilder_ == null) { - if (!(lintObjectCase_ == 5)) { - lintObject_ = com.google.type.Expr.getDefaultInstance(); - } - conditionBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.type.Expr, com.google.type.Expr.Builder, com.google.type.ExprOrBuilder>( - (com.google.type.Expr) lintObject_, - getParentForChildren(), - isClean()); - lintObject_ = null; - } - lintObjectCase_ = 5; - onChanged();; - return conditionBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.LintPolicyRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.LintPolicyRequest) - private static final com.google.iam.admin.v1.LintPolicyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.LintPolicyRequest(); - } - - public static com.google.iam.admin.v1.LintPolicyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LintPolicyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LintPolicyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintPolicyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequestOrBuilder.java deleted file mode 100644 index 9d03dc5d483f..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface LintPolicyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.LintPolicyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The full resource name of the policy this lint request is about.
    -   * The name follows the Google Cloud Platform (GCP) resource format.
    -   * For example, a GCP project with ID `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * The resource name is not used to read the policy instance from the Cloud
    -   * IAM database. The candidate policy for lint has to be provided in the same
    -   * request object.
    -   * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - java.lang.String getFullResourceName(); - /** - *
    -   * The full resource name of the policy this lint request is about.
    -   * The name follows the Google Cloud Platform (GCP) resource format.
    -   * For example, a GCP project with ID `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * The resource name is not used to read the policy instance from the Cloud
    -   * IAM database. The candidate policy for lint has to be provided in the same
    -   * request object.
    -   * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); - - /** - *
    -   * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -   * 
    - * - * .google.type.Expr condition = 5; - * @return Whether the condition field is set. - */ - boolean hasCondition(); - /** - *
    -   * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -   * 
    - * - * .google.type.Expr condition = 5; - * @return The condition. - */ - com.google.type.Expr getCondition(); - /** - *
    -   * [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted.
    -   * 
    - * - * .google.type.Expr condition = 5; - */ - com.google.type.ExprOrBuilder getConditionOrBuilder(); - - public com.google.iam.admin.v1.LintPolicyRequest.LintObjectCase getLintObjectCase(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponse.java deleted file mode 100644 index 305bdb36d7f5..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponse.java +++ /dev/null @@ -1,874 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The response of a lint operation. An empty response indicates
    - * the operation was able to fully execute and no lint issue was found.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.LintPolicyResponse} - */ -public final class LintPolicyResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.LintPolicyResponse) - LintPolicyResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use LintPolicyResponse.newBuilder() to construct. - private LintPolicyResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LintPolicyResponse() { - lintResults_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LintPolicyResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LintPolicyResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - lintResults_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - lintResults_.add( - input.readMessage(com.google.iam.admin.v1.LintResult.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - lintResults_ = java.util.Collections.unmodifiableList(lintResults_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.LintPolicyResponse.class, com.google.iam.admin.v1.LintPolicyResponse.Builder.class); - } - - public static final int LINT_RESULTS_FIELD_NUMBER = 1; - private java.util.List lintResults_; - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - @java.lang.Override - public java.util.List getLintResultsList() { - return lintResults_; - } - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - @java.lang.Override - public java.util.List - getLintResultsOrBuilderList() { - return lintResults_; - } - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - @java.lang.Override - public int getLintResultsCount() { - return lintResults_.size(); - } - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.LintResult getLintResults(int index) { - return lintResults_.get(index); - } - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.LintResultOrBuilder getLintResultsOrBuilder( - int index) { - return lintResults_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < lintResults_.size(); i++) { - output.writeMessage(1, lintResults_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < lintResults_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, lintResults_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.LintPolicyResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.LintPolicyResponse other = (com.google.iam.admin.v1.LintPolicyResponse) obj; - - if (!getLintResultsList() - .equals(other.getLintResultsList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getLintResultsCount() > 0) { - hash = (37 * hash) + LINT_RESULTS_FIELD_NUMBER; - hash = (53 * hash) + getLintResultsList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintPolicyResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.LintPolicyResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The response of a lint operation. An empty response indicates
    -   * the operation was able to fully execute and no lint issue was found.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.LintPolicyResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.LintPolicyResponse) - com.google.iam.admin.v1.LintPolicyResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.LintPolicyResponse.class, com.google.iam.admin.v1.LintPolicyResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.LintPolicyResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getLintResultsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (lintResultsBuilder_ == null) { - lintResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - lintResultsBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintPolicyResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintPolicyResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.LintPolicyResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.LintPolicyResponse build() { - com.google.iam.admin.v1.LintPolicyResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintPolicyResponse buildPartial() { - com.google.iam.admin.v1.LintPolicyResponse result = new com.google.iam.admin.v1.LintPolicyResponse(this); - int from_bitField0_ = bitField0_; - if (lintResultsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - lintResults_ = java.util.Collections.unmodifiableList(lintResults_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.lintResults_ = lintResults_; - } else { - result.lintResults_ = lintResultsBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.LintPolicyResponse) { - return mergeFrom((com.google.iam.admin.v1.LintPolicyResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.LintPolicyResponse other) { - if (other == com.google.iam.admin.v1.LintPolicyResponse.getDefaultInstance()) return this; - if (lintResultsBuilder_ == null) { - if (!other.lintResults_.isEmpty()) { - if (lintResults_.isEmpty()) { - lintResults_ = other.lintResults_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureLintResultsIsMutable(); - lintResults_.addAll(other.lintResults_); - } - onChanged(); - } - } else { - if (!other.lintResults_.isEmpty()) { - if (lintResultsBuilder_.isEmpty()) { - lintResultsBuilder_.dispose(); - lintResultsBuilder_ = null; - lintResults_ = other.lintResults_; - bitField0_ = (bitField0_ & ~0x00000001); - lintResultsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getLintResultsFieldBuilder() : null; - } else { - lintResultsBuilder_.addAllMessages(other.lintResults_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.LintPolicyResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.LintPolicyResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List lintResults_ = - java.util.Collections.emptyList(); - private void ensureLintResultsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - lintResults_ = new java.util.ArrayList(lintResults_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.LintResult, com.google.iam.admin.v1.LintResult.Builder, com.google.iam.admin.v1.LintResultOrBuilder> lintResultsBuilder_; - - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public java.util.List getLintResultsList() { - if (lintResultsBuilder_ == null) { - return java.util.Collections.unmodifiableList(lintResults_); - } else { - return lintResultsBuilder_.getMessageList(); - } - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public int getLintResultsCount() { - if (lintResultsBuilder_ == null) { - return lintResults_.size(); - } else { - return lintResultsBuilder_.getCount(); - } - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public com.google.iam.admin.v1.LintResult getLintResults(int index) { - if (lintResultsBuilder_ == null) { - return lintResults_.get(index); - } else { - return lintResultsBuilder_.getMessage(index); - } - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder setLintResults( - int index, com.google.iam.admin.v1.LintResult value) { - if (lintResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLintResultsIsMutable(); - lintResults_.set(index, value); - onChanged(); - } else { - lintResultsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder setLintResults( - int index, com.google.iam.admin.v1.LintResult.Builder builderForValue) { - if (lintResultsBuilder_ == null) { - ensureLintResultsIsMutable(); - lintResults_.set(index, builderForValue.build()); - onChanged(); - } else { - lintResultsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder addLintResults(com.google.iam.admin.v1.LintResult value) { - if (lintResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLintResultsIsMutable(); - lintResults_.add(value); - onChanged(); - } else { - lintResultsBuilder_.addMessage(value); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder addLintResults( - int index, com.google.iam.admin.v1.LintResult value) { - if (lintResultsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureLintResultsIsMutable(); - lintResults_.add(index, value); - onChanged(); - } else { - lintResultsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder addLintResults( - com.google.iam.admin.v1.LintResult.Builder builderForValue) { - if (lintResultsBuilder_ == null) { - ensureLintResultsIsMutable(); - lintResults_.add(builderForValue.build()); - onChanged(); - } else { - lintResultsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder addLintResults( - int index, com.google.iam.admin.v1.LintResult.Builder builderForValue) { - if (lintResultsBuilder_ == null) { - ensureLintResultsIsMutable(); - lintResults_.add(index, builderForValue.build()); - onChanged(); - } else { - lintResultsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder addAllLintResults( - java.lang.Iterable values) { - if (lintResultsBuilder_ == null) { - ensureLintResultsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, lintResults_); - onChanged(); - } else { - lintResultsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder clearLintResults() { - if (lintResultsBuilder_ == null) { - lintResults_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - lintResultsBuilder_.clear(); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public Builder removeLintResults(int index) { - if (lintResultsBuilder_ == null) { - ensureLintResultsIsMutable(); - lintResults_.remove(index); - onChanged(); - } else { - lintResultsBuilder_.remove(index); - } - return this; - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public com.google.iam.admin.v1.LintResult.Builder getLintResultsBuilder( - int index) { - return getLintResultsFieldBuilder().getBuilder(index); - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public com.google.iam.admin.v1.LintResultOrBuilder getLintResultsOrBuilder( - int index) { - if (lintResultsBuilder_ == null) { - return lintResults_.get(index); } else { - return lintResultsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public java.util.List - getLintResultsOrBuilderList() { - if (lintResultsBuilder_ != null) { - return lintResultsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(lintResults_); - } - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public com.google.iam.admin.v1.LintResult.Builder addLintResultsBuilder() { - return getLintResultsFieldBuilder().addBuilder( - com.google.iam.admin.v1.LintResult.getDefaultInstance()); - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public com.google.iam.admin.v1.LintResult.Builder addLintResultsBuilder( - int index) { - return getLintResultsFieldBuilder().addBuilder( - index, com.google.iam.admin.v1.LintResult.getDefaultInstance()); - } - /** - *
    -     * List of lint results sorted by `severity` in descending order.
    -     * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - public java.util.List - getLintResultsBuilderList() { - return getLintResultsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.LintResult, com.google.iam.admin.v1.LintResult.Builder, com.google.iam.admin.v1.LintResultOrBuilder> - getLintResultsFieldBuilder() { - if (lintResultsBuilder_ == null) { - lintResultsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.LintResult, com.google.iam.admin.v1.LintResult.Builder, com.google.iam.admin.v1.LintResultOrBuilder>( - lintResults_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - lintResults_ = null; - } - return lintResultsBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.LintPolicyResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.LintPolicyResponse) - private static final com.google.iam.admin.v1.LintPolicyResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.LintPolicyResponse(); - } - - public static com.google.iam.admin.v1.LintPolicyResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LintPolicyResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LintPolicyResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintPolicyResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponseOrBuilder.java deleted file mode 100644 index f61d8b1c4784..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintPolicyResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface LintPolicyResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.LintPolicyResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - java.util.List - getLintResultsList(); - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - com.google.iam.admin.v1.LintResult getLintResults(int index); - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - int getLintResultsCount(); - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - java.util.List - getLintResultsOrBuilderList(); - /** - *
    -   * List of lint results sorted by `severity` in descending order.
    -   * 
    - * - * repeated .google.iam.admin.v1.LintResult lint_results = 1; - */ - com.google.iam.admin.v1.LintResultOrBuilder getLintResultsOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResult.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResult.java deleted file mode 100644 index fcd5a971af4c..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResult.java +++ /dev/null @@ -1,1660 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Structured response of a single validation unit.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.LintResult} - */ -public final class LintResult extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.LintResult) - LintResultOrBuilder { -private static final long serialVersionUID = 0L; - // Use LintResult.newBuilder() to construct. - private LintResult(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private LintResult() { - level_ = 0; - validationUnitName_ = ""; - severity_ = 0; - fieldName_ = ""; - debugMessage_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new LintResult(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private LintResult( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 8: { - int rawValue = input.readEnum(); - - level_ = rawValue; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - validationUnitName_ = s; - break; - } - case 24: { - int rawValue = input.readEnum(); - - severity_ = rawValue; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - fieldName_ = s; - break; - } - case 48: { - - locationOffset_ = input.readInt32(); - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - - debugMessage_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.LintResult.class, com.google.iam.admin.v1.LintResult.Builder.class); - } - - /** - *
    -   * Possible Level values of a validation unit corresponding to its domain
    -   * of discourse.
    -   * 
    - * - * Protobuf enum {@code google.iam.admin.v1.LintResult.Level} - */ - public enum Level - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -     * Level is unspecified.
    -     * 
    - * - * LEVEL_UNSPECIFIED = 0; - */ - LEVEL_UNSPECIFIED(0), - /** - *
    -     * A validation unit which operates on an individual condition within a
    -     * binding.
    -     * 
    - * - * CONDITION = 3; - */ - CONDITION(3), - UNRECOGNIZED(-1), - ; - - /** - *
    -     * Level is unspecified.
    -     * 
    - * - * LEVEL_UNSPECIFIED = 0; - */ - public static final int LEVEL_UNSPECIFIED_VALUE = 0; - /** - *
    -     * A validation unit which operates on an individual condition within a
    -     * binding.
    -     * 
    - * - * CONDITION = 3; - */ - public static final int CONDITION_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Level valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Level forNumber(int value) { - switch (value) { - case 0: return LEVEL_UNSPECIFIED; - case 3: return CONDITION; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Level> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Level findValueByNumber(int number) { - return Level.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.LintResult.getDescriptor().getEnumTypes().get(0); - } - - private static final Level[] VALUES = values(); - - public static Level valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Level(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.LintResult.Level) - } - - /** - *
    -   * Possible Severity values of an issued result.
    -   * 
    - * - * Protobuf enum {@code google.iam.admin.v1.LintResult.Severity} - */ - public enum Severity - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -     * Severity is unspecified.
    -     * 
    - * - * SEVERITY_UNSPECIFIED = 0; - */ - SEVERITY_UNSPECIFIED(0), - /** - *
    -     * A validation unit returns an error only for critical issues. If an
    -     * attempt is made to set the problematic policy without rectifying the
    -     * critical issue, it causes the `setPolicy` operation to fail.
    -     * 
    - * - * ERROR = 1; - */ - ERROR(1), - /** - *
    -     * Any issue which is severe enough but does not cause an error.
    -     * For example, suspicious constructs in the input object will not
    -     * necessarily fail `setPolicy`, but there is a high likelihood that they
    -     * won't behave as expected during policy evaluation in `checkPolicy`.
    -     * This includes the following common scenarios:
    -     * - Unsatisfiable condition: Expired timestamp in date/time condition.
    -     * - Ineffective condition: Condition on a <principal, role> pair which is
    -     *   granted unconditionally in another binding of the same policy.
    -     * 
    - * - * WARNING = 2; - */ - WARNING(2), - /** - *
    -     * Reserved for the issues that are not severe as `ERROR`/`WARNING`, but
    -     * need special handling. For instance, messages about skipped validation
    -     * units are issued as `NOTICE`.
    -     * 
    - * - * NOTICE = 3; - */ - NOTICE(3), - /** - *
    -     * Any informative statement which is not severe enough to raise
    -     * `ERROR`/`WARNING`/`NOTICE`, like auto-correction recommendations on the
    -     * input content. Note that current version of the linter does not utilize
    -     * `INFO`.
    -     * 
    - * - * INFO = 4; - */ - INFO(4), - /** - *
    -     * Deprecated severity level.
    -     * 
    - * - * DEPRECATED = 5; - */ - DEPRECATED(5), - UNRECOGNIZED(-1), - ; - - /** - *
    -     * Severity is unspecified.
    -     * 
    - * - * SEVERITY_UNSPECIFIED = 0; - */ - public static final int SEVERITY_UNSPECIFIED_VALUE = 0; - /** - *
    -     * A validation unit returns an error only for critical issues. If an
    -     * attempt is made to set the problematic policy without rectifying the
    -     * critical issue, it causes the `setPolicy` operation to fail.
    -     * 
    - * - * ERROR = 1; - */ - public static final int ERROR_VALUE = 1; - /** - *
    -     * Any issue which is severe enough but does not cause an error.
    -     * For example, suspicious constructs in the input object will not
    -     * necessarily fail `setPolicy`, but there is a high likelihood that they
    -     * won't behave as expected during policy evaluation in `checkPolicy`.
    -     * This includes the following common scenarios:
    -     * - Unsatisfiable condition: Expired timestamp in date/time condition.
    -     * - Ineffective condition: Condition on a <principal, role> pair which is
    -     *   granted unconditionally in another binding of the same policy.
    -     * 
    - * - * WARNING = 2; - */ - public static final int WARNING_VALUE = 2; - /** - *
    -     * Reserved for the issues that are not severe as `ERROR`/`WARNING`, but
    -     * need special handling. For instance, messages about skipped validation
    -     * units are issued as `NOTICE`.
    -     * 
    - * - * NOTICE = 3; - */ - public static final int NOTICE_VALUE = 3; - /** - *
    -     * Any informative statement which is not severe enough to raise
    -     * `ERROR`/`WARNING`/`NOTICE`, like auto-correction recommendations on the
    -     * input content. Note that current version of the linter does not utilize
    -     * `INFO`.
    -     * 
    - * - * INFO = 4; - */ - public static final int INFO_VALUE = 4; - /** - *
    -     * Deprecated severity level.
    -     * 
    - * - * DEPRECATED = 5; - */ - public static final int DEPRECATED_VALUE = 5; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static Severity valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static Severity forNumber(int value) { - switch (value) { - case 0: return SEVERITY_UNSPECIFIED; - case 1: return ERROR; - case 2: return WARNING; - case 3: return NOTICE; - case 4: return INFO; - case 5: return DEPRECATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - Severity> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public Severity findValueByNumber(int number) { - return Severity.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.LintResult.getDescriptor().getEnumTypes().get(1); - } - - private static final Severity[] VALUES = values(); - - public static Severity valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private Severity(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.LintResult.Severity) - } - - public static final int LEVEL_FIELD_NUMBER = 1; - private int level_; - /** - *
    -   * The validation unit level.
    -   * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @return The enum numeric value on the wire for level. - */ - @java.lang.Override public int getLevelValue() { - return level_; - } - /** - *
    -   * The validation unit level.
    -   * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @return The level. - */ - @java.lang.Override public com.google.iam.admin.v1.LintResult.Level getLevel() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.LintResult.Level result = com.google.iam.admin.v1.LintResult.Level.valueOf(level_); - return result == null ? com.google.iam.admin.v1.LintResult.Level.UNRECOGNIZED : result; - } - - public static final int VALIDATION_UNIT_NAME_FIELD_NUMBER = 2; - private volatile java.lang.Object validationUnitName_; - /** - *
    -   * The validation unit name, for instance
    -   * "lintValidationUnits/ConditionComplexityCheck".
    -   * 
    - * - * string validation_unit_name = 2; - * @return The validationUnitName. - */ - @java.lang.Override - public java.lang.String getValidationUnitName() { - java.lang.Object ref = validationUnitName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validationUnitName_ = s; - return s; - } - } - /** - *
    -   * The validation unit name, for instance
    -   * "lintValidationUnits/ConditionComplexityCheck".
    -   * 
    - * - * string validation_unit_name = 2; - * @return The bytes for validationUnitName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getValidationUnitNameBytes() { - java.lang.Object ref = validationUnitName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validationUnitName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SEVERITY_FIELD_NUMBER = 3; - private int severity_; - /** - *
    -   * The validation unit severity.
    -   * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @return The enum numeric value on the wire for severity. - */ - @java.lang.Override public int getSeverityValue() { - return severity_; - } - /** - *
    -   * The validation unit severity.
    -   * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @return The severity. - */ - @java.lang.Override public com.google.iam.admin.v1.LintResult.Severity getSeverity() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.LintResult.Severity result = com.google.iam.admin.v1.LintResult.Severity.valueOf(severity_); - return result == null ? com.google.iam.admin.v1.LintResult.Severity.UNRECOGNIZED : result; - } - - public static final int FIELD_NAME_FIELD_NUMBER = 5; - private volatile java.lang.Object fieldName_; - /** - *
    -   * The name of the field for which this lint result is about.
    -   * For nested messages `field_name` consists of names of the embedded fields
    -   * separated by period character. The top-level qualifier is the input object
    -   * to lint in the request. For example, the `field_name` value
    -   * `condition.expression` identifies a lint result for the `expression` field
    -   * of the provided condition.
    -   * 
    - * - * string field_name = 5; - * @return The fieldName. - */ - @java.lang.Override - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } - } - /** - *
    -   * The name of the field for which this lint result is about.
    -   * For nested messages `field_name` consists of names of the embedded fields
    -   * separated by period character. The top-level qualifier is the input object
    -   * to lint in the request. For example, the `field_name` value
    -   * `condition.expression` identifies a lint result for the `expression` field
    -   * of the provided condition.
    -   * 
    - * - * string field_name = 5; - * @return The bytes for fieldName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int LOCATION_OFFSET_FIELD_NUMBER = 6; - private int locationOffset_; - /** - *
    -   * 0-based character position of problematic construct within the object
    -   * identified by `field_name`. Currently, this is populated only for condition
    -   * expression.
    -   * 
    - * - * int32 location_offset = 6; - * @return The locationOffset. - */ - @java.lang.Override - public int getLocationOffset() { - return locationOffset_; - } - - public static final int DEBUG_MESSAGE_FIELD_NUMBER = 7; - private volatile java.lang.Object debugMessage_; - /** - *
    -   * Human readable debug message associated with the issue.
    -   * 
    - * - * string debug_message = 7; - * @return The debugMessage. - */ - @java.lang.Override - public java.lang.String getDebugMessage() { - java.lang.Object ref = debugMessage_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - debugMessage_ = s; - return s; - } - } - /** - *
    -   * Human readable debug message associated with the issue.
    -   * 
    - * - * string debug_message = 7; - * @return The bytes for debugMessage. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDebugMessageBytes() { - java.lang.Object ref = debugMessage_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debugMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (level_ != com.google.iam.admin.v1.LintResult.Level.LEVEL_UNSPECIFIED.getNumber()) { - output.writeEnum(1, level_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationUnitName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, validationUnitName_); - } - if (severity_ != com.google.iam.admin.v1.LintResult.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - output.writeEnum(3, severity_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, fieldName_); - } - if (locationOffset_ != 0) { - output.writeInt32(6, locationOffset_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(debugMessage_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, debugMessage_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (level_ != com.google.iam.admin.v1.LintResult.Level.LEVEL_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(1, level_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(validationUnitName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, validationUnitName_); - } - if (severity_ != com.google.iam.admin.v1.LintResult.Severity.SEVERITY_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(3, severity_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fieldName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, fieldName_); - } - if (locationOffset_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(6, locationOffset_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(debugMessage_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(7, debugMessage_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.LintResult)) { - return super.equals(obj); - } - com.google.iam.admin.v1.LintResult other = (com.google.iam.admin.v1.LintResult) obj; - - if (level_ != other.level_) return false; - if (!getValidationUnitName() - .equals(other.getValidationUnitName())) return false; - if (severity_ != other.severity_) return false; - if (!getFieldName() - .equals(other.getFieldName())) return false; - if (getLocationOffset() - != other.getLocationOffset()) return false; - if (!getDebugMessage() - .equals(other.getDebugMessage())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + LEVEL_FIELD_NUMBER; - hash = (53 * hash) + level_; - hash = (37 * hash) + VALIDATION_UNIT_NAME_FIELD_NUMBER; - hash = (53 * hash) + getValidationUnitName().hashCode(); - hash = (37 * hash) + SEVERITY_FIELD_NUMBER; - hash = (53 * hash) + severity_; - hash = (37 * hash) + FIELD_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFieldName().hashCode(); - hash = (37 * hash) + LOCATION_OFFSET_FIELD_NUMBER; - hash = (53 * hash) + getLocationOffset(); - hash = (37 * hash) + DEBUG_MESSAGE_FIELD_NUMBER; - hash = (53 * hash) + getDebugMessage().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.LintResult parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintResult parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintResult parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintResult parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintResult parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.LintResult parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.LintResult parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintResult parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.LintResult parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintResult parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.LintResult parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.LintResult parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.LintResult prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * Structured response of a single validation unit.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.LintResult} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.LintResult) - com.google.iam.admin.v1.LintResultOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintResult_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintResult_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.LintResult.class, com.google.iam.admin.v1.LintResult.Builder.class); - } - - // Construct using com.google.iam.admin.v1.LintResult.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - level_ = 0; - - validationUnitName_ = ""; - - severity_ = 0; - - fieldName_ = ""; - - locationOffset_ = 0; - - debugMessage_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_LintResult_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintResult getDefaultInstanceForType() { - return com.google.iam.admin.v1.LintResult.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.LintResult build() { - com.google.iam.admin.v1.LintResult result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintResult buildPartial() { - com.google.iam.admin.v1.LintResult result = new com.google.iam.admin.v1.LintResult(this); - result.level_ = level_; - result.validationUnitName_ = validationUnitName_; - result.severity_ = severity_; - result.fieldName_ = fieldName_; - result.locationOffset_ = locationOffset_; - result.debugMessage_ = debugMessage_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.LintResult) { - return mergeFrom((com.google.iam.admin.v1.LintResult)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.LintResult other) { - if (other == com.google.iam.admin.v1.LintResult.getDefaultInstance()) return this; - if (other.level_ != 0) { - setLevelValue(other.getLevelValue()); - } - if (!other.getValidationUnitName().isEmpty()) { - validationUnitName_ = other.validationUnitName_; - onChanged(); - } - if (other.severity_ != 0) { - setSeverityValue(other.getSeverityValue()); - } - if (!other.getFieldName().isEmpty()) { - fieldName_ = other.fieldName_; - onChanged(); - } - if (other.getLocationOffset() != 0) { - setLocationOffset(other.getLocationOffset()); - } - if (!other.getDebugMessage().isEmpty()) { - debugMessage_ = other.debugMessage_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.LintResult parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.LintResult) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private int level_ = 0; - /** - *
    -     * The validation unit level.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @return The enum numeric value on the wire for level. - */ - @java.lang.Override public int getLevelValue() { - return level_; - } - /** - *
    -     * The validation unit level.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @param value The enum numeric value on the wire for level to set. - * @return This builder for chaining. - */ - public Builder setLevelValue(int value) { - - level_ = value; - onChanged(); - return this; - } - /** - *
    -     * The validation unit level.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @return The level. - */ - @java.lang.Override - public com.google.iam.admin.v1.LintResult.Level getLevel() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.LintResult.Level result = com.google.iam.admin.v1.LintResult.Level.valueOf(level_); - return result == null ? com.google.iam.admin.v1.LintResult.Level.UNRECOGNIZED : result; - } - /** - *
    -     * The validation unit level.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @param value The level to set. - * @return This builder for chaining. - */ - public Builder setLevel(com.google.iam.admin.v1.LintResult.Level value) { - if (value == null) { - throw new NullPointerException(); - } - - level_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The validation unit level.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @return This builder for chaining. - */ - public Builder clearLevel() { - - level_ = 0; - onChanged(); - return this; - } - - private java.lang.Object validationUnitName_ = ""; - /** - *
    -     * The validation unit name, for instance
    -     * "lintValidationUnits/ConditionComplexityCheck".
    -     * 
    - * - * string validation_unit_name = 2; - * @return The validationUnitName. - */ - public java.lang.String getValidationUnitName() { - java.lang.Object ref = validationUnitName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - validationUnitName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The validation unit name, for instance
    -     * "lintValidationUnits/ConditionComplexityCheck".
    -     * 
    - * - * string validation_unit_name = 2; - * @return The bytes for validationUnitName. - */ - public com.google.protobuf.ByteString - getValidationUnitNameBytes() { - java.lang.Object ref = validationUnitName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - validationUnitName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The validation unit name, for instance
    -     * "lintValidationUnits/ConditionComplexityCheck".
    -     * 
    - * - * string validation_unit_name = 2; - * @param value The validationUnitName to set. - * @return This builder for chaining. - */ - public Builder setValidationUnitName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - validationUnitName_ = value; - onChanged(); - return this; - } - /** - *
    -     * The validation unit name, for instance
    -     * "lintValidationUnits/ConditionComplexityCheck".
    -     * 
    - * - * string validation_unit_name = 2; - * @return This builder for chaining. - */ - public Builder clearValidationUnitName() { - - validationUnitName_ = getDefaultInstance().getValidationUnitName(); - onChanged(); - return this; - } - /** - *
    -     * The validation unit name, for instance
    -     * "lintValidationUnits/ConditionComplexityCheck".
    -     * 
    - * - * string validation_unit_name = 2; - * @param value The bytes for validationUnitName to set. - * @return This builder for chaining. - */ - public Builder setValidationUnitNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - validationUnitName_ = value; - onChanged(); - return this; - } - - private int severity_ = 0; - /** - *
    -     * The validation unit severity.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @return The enum numeric value on the wire for severity. - */ - @java.lang.Override public int getSeverityValue() { - return severity_; - } - /** - *
    -     * The validation unit severity.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @param value The enum numeric value on the wire for severity to set. - * @return This builder for chaining. - */ - public Builder setSeverityValue(int value) { - - severity_ = value; - onChanged(); - return this; - } - /** - *
    -     * The validation unit severity.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @return The severity. - */ - @java.lang.Override - public com.google.iam.admin.v1.LintResult.Severity getSeverity() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.LintResult.Severity result = com.google.iam.admin.v1.LintResult.Severity.valueOf(severity_); - return result == null ? com.google.iam.admin.v1.LintResult.Severity.UNRECOGNIZED : result; - } - /** - *
    -     * The validation unit severity.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @param value The severity to set. - * @return This builder for chaining. - */ - public Builder setSeverity(com.google.iam.admin.v1.LintResult.Severity value) { - if (value == null) { - throw new NullPointerException(); - } - - severity_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The validation unit severity.
    -     * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @return This builder for chaining. - */ - public Builder clearSeverity() { - - severity_ = 0; - onChanged(); - return this; - } - - private java.lang.Object fieldName_ = ""; - /** - *
    -     * The name of the field for which this lint result is about.
    -     * For nested messages `field_name` consists of names of the embedded fields
    -     * separated by period character. The top-level qualifier is the input object
    -     * to lint in the request. For example, the `field_name` value
    -     * `condition.expression` identifies a lint result for the `expression` field
    -     * of the provided condition.
    -     * 
    - * - * string field_name = 5; - * @return The fieldName. - */ - public java.lang.String getFieldName() { - java.lang.Object ref = fieldName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fieldName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The name of the field for which this lint result is about.
    -     * For nested messages `field_name` consists of names of the embedded fields
    -     * separated by period character. The top-level qualifier is the input object
    -     * to lint in the request. For example, the `field_name` value
    -     * `condition.expression` identifies a lint result for the `expression` field
    -     * of the provided condition.
    -     * 
    - * - * string field_name = 5; - * @return The bytes for fieldName. - */ - public com.google.protobuf.ByteString - getFieldNameBytes() { - java.lang.Object ref = fieldName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fieldName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The name of the field for which this lint result is about.
    -     * For nested messages `field_name` consists of names of the embedded fields
    -     * separated by period character. The top-level qualifier is the input object
    -     * to lint in the request. For example, the `field_name` value
    -     * `condition.expression` identifies a lint result for the `expression` field
    -     * of the provided condition.
    -     * 
    - * - * string field_name = 5; - * @param value The fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fieldName_ = value; - onChanged(); - return this; - } - /** - *
    -     * The name of the field for which this lint result is about.
    -     * For nested messages `field_name` consists of names of the embedded fields
    -     * separated by period character. The top-level qualifier is the input object
    -     * to lint in the request. For example, the `field_name` value
    -     * `condition.expression` identifies a lint result for the `expression` field
    -     * of the provided condition.
    -     * 
    - * - * string field_name = 5; - * @return This builder for chaining. - */ - public Builder clearFieldName() { - - fieldName_ = getDefaultInstance().getFieldName(); - onChanged(); - return this; - } - /** - *
    -     * The name of the field for which this lint result is about.
    -     * For nested messages `field_name` consists of names of the embedded fields
    -     * separated by period character. The top-level qualifier is the input object
    -     * to lint in the request. For example, the `field_name` value
    -     * `condition.expression` identifies a lint result for the `expression` field
    -     * of the provided condition.
    -     * 
    - * - * string field_name = 5; - * @param value The bytes for fieldName to set. - * @return This builder for chaining. - */ - public Builder setFieldNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fieldName_ = value; - onChanged(); - return this; - } - - private int locationOffset_ ; - /** - *
    -     * 0-based character position of problematic construct within the object
    -     * identified by `field_name`. Currently, this is populated only for condition
    -     * expression.
    -     * 
    - * - * int32 location_offset = 6; - * @return The locationOffset. - */ - @java.lang.Override - public int getLocationOffset() { - return locationOffset_; - } - /** - *
    -     * 0-based character position of problematic construct within the object
    -     * identified by `field_name`. Currently, this is populated only for condition
    -     * expression.
    -     * 
    - * - * int32 location_offset = 6; - * @param value The locationOffset to set. - * @return This builder for chaining. - */ - public Builder setLocationOffset(int value) { - - locationOffset_ = value; - onChanged(); - return this; - } - /** - *
    -     * 0-based character position of problematic construct within the object
    -     * identified by `field_name`. Currently, this is populated only for condition
    -     * expression.
    -     * 
    - * - * int32 location_offset = 6; - * @return This builder for chaining. - */ - public Builder clearLocationOffset() { - - locationOffset_ = 0; - onChanged(); - return this; - } - - private java.lang.Object debugMessage_ = ""; - /** - *
    -     * Human readable debug message associated with the issue.
    -     * 
    - * - * string debug_message = 7; - * @return The debugMessage. - */ - public java.lang.String getDebugMessage() { - java.lang.Object ref = debugMessage_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - debugMessage_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Human readable debug message associated with the issue.
    -     * 
    - * - * string debug_message = 7; - * @return The bytes for debugMessage. - */ - public com.google.protobuf.ByteString - getDebugMessageBytes() { - java.lang.Object ref = debugMessage_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - debugMessage_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Human readable debug message associated with the issue.
    -     * 
    - * - * string debug_message = 7; - * @param value The debugMessage to set. - * @return This builder for chaining. - */ - public Builder setDebugMessage( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - debugMessage_ = value; - onChanged(); - return this; - } - /** - *
    -     * Human readable debug message associated with the issue.
    -     * 
    - * - * string debug_message = 7; - * @return This builder for chaining. - */ - public Builder clearDebugMessage() { - - debugMessage_ = getDefaultInstance().getDebugMessage(); - onChanged(); - return this; - } - /** - *
    -     * Human readable debug message associated with the issue.
    -     * 
    - * - * string debug_message = 7; - * @param value The bytes for debugMessage to set. - * @return This builder for chaining. - */ - public Builder setDebugMessageBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - debugMessage_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.LintResult) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.LintResult) - private static final com.google.iam.admin.v1.LintResult DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.LintResult(); - } - - public static com.google.iam.admin.v1.LintResult getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public LintResult parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new LintResult(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.LintResult getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResultOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResultOrBuilder.java deleted file mode 100644 index 86edc56e33fb..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/LintResultOrBuilder.java +++ /dev/null @@ -1,131 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface LintResultOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.LintResult) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The validation unit level.
    -   * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @return The enum numeric value on the wire for level. - */ - int getLevelValue(); - /** - *
    -   * The validation unit level.
    -   * 
    - * - * .google.iam.admin.v1.LintResult.Level level = 1; - * @return The level. - */ - com.google.iam.admin.v1.LintResult.Level getLevel(); - - /** - *
    -   * The validation unit name, for instance
    -   * "lintValidationUnits/ConditionComplexityCheck".
    -   * 
    - * - * string validation_unit_name = 2; - * @return The validationUnitName. - */ - java.lang.String getValidationUnitName(); - /** - *
    -   * The validation unit name, for instance
    -   * "lintValidationUnits/ConditionComplexityCheck".
    -   * 
    - * - * string validation_unit_name = 2; - * @return The bytes for validationUnitName. - */ - com.google.protobuf.ByteString - getValidationUnitNameBytes(); - - /** - *
    -   * The validation unit severity.
    -   * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @return The enum numeric value on the wire for severity. - */ - int getSeverityValue(); - /** - *
    -   * The validation unit severity.
    -   * 
    - * - * .google.iam.admin.v1.LintResult.Severity severity = 3; - * @return The severity. - */ - com.google.iam.admin.v1.LintResult.Severity getSeverity(); - - /** - *
    -   * The name of the field for which this lint result is about.
    -   * For nested messages `field_name` consists of names of the embedded fields
    -   * separated by period character. The top-level qualifier is the input object
    -   * to lint in the request. For example, the `field_name` value
    -   * `condition.expression` identifies a lint result for the `expression` field
    -   * of the provided condition.
    -   * 
    - * - * string field_name = 5; - * @return The fieldName. - */ - java.lang.String getFieldName(); - /** - *
    -   * The name of the field for which this lint result is about.
    -   * For nested messages `field_name` consists of names of the embedded fields
    -   * separated by period character. The top-level qualifier is the input object
    -   * to lint in the request. For example, the `field_name` value
    -   * `condition.expression` identifies a lint result for the `expression` field
    -   * of the provided condition.
    -   * 
    - * - * string field_name = 5; - * @return The bytes for fieldName. - */ - com.google.protobuf.ByteString - getFieldNameBytes(); - - /** - *
    -   * 0-based character position of problematic construct within the object
    -   * identified by `field_name`. Currently, this is populated only for condition
    -   * expression.
    -   * 
    - * - * int32 location_offset = 6; - * @return The locationOffset. - */ - int getLocationOffset(); - - /** - *
    -   * Human readable debug message associated with the issue.
    -   * 
    - * - * string debug_message = 7; - * @return The debugMessage. - */ - java.lang.String getDebugMessage(); - /** - *
    -   * Human readable debug message associated with the issue.
    -   * 
    - * - * string debug_message = 7; - * @return The bytes for debugMessage. - */ - com.google.protobuf.ByteString - getDebugMessageBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequest.java deleted file mode 100644 index 5a5c6b05ef9f..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequest.java +++ /dev/null @@ -1,1246 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The request to get all roles defined under a resource.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListRolesRequest} - */ -public final class ListRolesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.ListRolesRequest) - ListRolesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListRolesRequest.newBuilder() to construct. - private ListRolesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListRolesRequest() { - parent_ = ""; - pageToken_ = ""; - view_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListRolesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListRolesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - parent_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - case 32: { - int rawValue = input.readEnum(); - - view_ = rawValue; - break; - } - case 48: { - - showDeleted_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListRolesRequest.class, com.google.iam.admin.v1.ListRolesRequest.Builder.class); - } - - public static final int PARENT_FIELD_NUMBER = 1; - private volatile java.lang.Object parent_; - /** - *
    -   * The `parent` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `parent` value format is described below:
    -   * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -   *   This method doesn't require a resource; it simply returns all
    -   *   [predefined
    -   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -   *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -   * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -   *   `projects/{PROJECT_ID}`. This method lists all project-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -   *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -   *   organization-level [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The parent. - */ - @java.lang.Override - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } - } - /** - *
    -   * The `parent` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `parent` value format is described below:
    -   * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -   *   This method doesn't require a resource; it simply returns all
    -   *   [predefined
    -   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -   *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -   * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -   *   `projects/{PROJECT_ID}`. This method lists all project-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -   *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -   *   organization-level [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - *
    -   * Optional limit on the number of roles to include in the response.
    -   * The default is 300, and the maximum is 1,000.
    -   * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - *
    -   * Optional pagination token returned in an earlier ListRolesResponse.
    -   * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
    -   * Optional pagination token returned in an earlier ListRolesResponse.
    -   * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VIEW_FIELD_NUMBER = 4; - private int view_; - /** - *
    -   * Optional view for the returned Role objects. When `FULL` is specified,
    -   * the `includedPermissions` field is returned, which includes a list of all
    -   * permissions in the role. The default value is `BASIC`, which does not
    -   * return the `includedPermissions` field.
    -   * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override public int getViewValue() { - return view_; - } - /** - *
    -   * Optional view for the returned Role objects. When `FULL` is specified,
    -   * the `includedPermissions` field is returned, which includes a list of all
    -   * permissions in the role. The default value is `BASIC`, which does not
    -   * return the `includedPermissions` field.
    -   * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @return The view. - */ - @java.lang.Override public com.google.iam.admin.v1.RoleView getView() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.RoleView result = com.google.iam.admin.v1.RoleView.valueOf(view_); - return result == null ? com.google.iam.admin.v1.RoleView.UNRECOGNIZED : result; - } - - public static final int SHOW_DELETED_FIELD_NUMBER = 6; - private boolean showDeleted_; - /** - *
    -   * Include Roles that have been deleted.
    -   * 
    - * - * bool show_deleted = 6; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - if (view_ != com.google.iam.admin.v1.RoleView.BASIC.getNumber()) { - output.writeEnum(4, view_); - } - if (showDeleted_ != false) { - output.writeBool(6, showDeleted_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - if (view_ != com.google.iam.admin.v1.RoleView.BASIC.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(4, view_); - } - if (showDeleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(6, showDeleted_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.ListRolesRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.ListRolesRequest other = (com.google.iam.admin.v1.ListRolesRequest) obj; - - if (!getParent() - .equals(other.getParent())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (view_ != other.view_) return false; - if (getShowDeleted() - != other.getShowDeleted()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + PARENT_FIELD_NUMBER; - hash = (53 * hash) + getParent().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (37 * hash) + VIEW_FIELD_NUMBER; - hash = (53 * hash) + view_; - hash = (37 * hash) + SHOW_DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getShowDeleted()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.ListRolesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListRolesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListRolesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.ListRolesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The request to get all roles defined under a resource.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListRolesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListRolesRequest) - com.google.iam.admin.v1.ListRolesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListRolesRequest.class, com.google.iam.admin.v1.ListRolesRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.ListRolesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - parent_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - view_ = 0; - - showDeleted_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListRolesRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.ListRolesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.ListRolesRequest build() { - com.google.iam.admin.v1.ListRolesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListRolesRequest buildPartial() { - com.google.iam.admin.v1.ListRolesRequest result = new com.google.iam.admin.v1.ListRolesRequest(this); - result.parent_ = parent_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - result.view_ = view_; - result.showDeleted_ = showDeleted_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.ListRolesRequest) { - return mergeFrom((com.google.iam.admin.v1.ListRolesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.ListRolesRequest other) { - if (other == com.google.iam.admin.v1.ListRolesRequest.getDefaultInstance()) return this; - if (!other.getParent().isEmpty()) { - parent_ = other.parent_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - if (other.view_ != 0) { - setViewValue(other.getViewValue()); - } - if (other.getShowDeleted() != false) { - setShowDeleted(other.getShowDeleted()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.ListRolesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.ListRolesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object parent_ = ""; - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -     *   This method doesn't require a resource; it simply returns all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -     *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -     *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The parent. - */ - public java.lang.String getParent() { - java.lang.Object ref = parent_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - parent_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -     *   This method doesn't require a resource; it simply returns all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -     *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -     *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - public com.google.protobuf.ByteString - getParentBytes() { - java.lang.Object ref = parent_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - parent_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -     *   This method doesn't require a resource; it simply returns all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -     *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -     *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @param value The parent to set. - * @return This builder for chaining. - */ - public Builder setParent( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - parent_ = value; - onChanged(); - return this; - } - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -     *   This method doesn't require a resource; it simply returns all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -     *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -     *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearParent() { - - parent_ = getDefaultInstance().getParent(); - onChanged(); - return this; - } - /** - *
    -     * The `parent` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `parent` value format is described below:
    -     * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -     *   This method doesn't require a resource; it simply returns all
    -     *   [predefined
    -     *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -     *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -     * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -     *   `projects/{PROJECT_ID}`. This method lists all project-level
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -     * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -     *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -     *   organization-level [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -     *   Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for parent to set. - * @return This builder for chaining. - */ - public Builder setParentBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - parent_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
    -     * Optional limit on the number of roles to include in the response.
    -     * The default is 300, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
    -     * Optional limit on the number of roles to include in the response.
    -     * The default is 300, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional limit on the number of roles to include in the response.
    -     * The default is 300, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
    -     * Optional pagination token returned in an earlier ListRolesResponse.
    -     * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Optional pagination token returned in an earlier ListRolesResponse.
    -     * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Optional pagination token returned in an earlier ListRolesResponse.
    -     * 
    - * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional pagination token returned in an earlier ListRolesResponse.
    -     * 
    - * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
    -     * Optional pagination token returned in an earlier ListRolesResponse.
    -     * 
    - * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - - private int view_ = 0; - /** - *
    -     * Optional view for the returned Role objects. When `FULL` is specified,
    -     * the `includedPermissions` field is returned, which includes a list of all
    -     * permissions in the role. The default value is `BASIC`, which does not
    -     * return the `includedPermissions` field.
    -     * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override public int getViewValue() { - return view_; - } - /** - *
    -     * Optional view for the returned Role objects. When `FULL` is specified,
    -     * the `includedPermissions` field is returned, which includes a list of all
    -     * permissions in the role. The default value is `BASIC`, which does not
    -     * return the `includedPermissions` field.
    -     * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @param value The enum numeric value on the wire for view to set. - * @return This builder for chaining. - */ - public Builder setViewValue(int value) { - - view_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional view for the returned Role objects. When `FULL` is specified,
    -     * the `includedPermissions` field is returned, which includes a list of all
    -     * permissions in the role. The default value is `BASIC`, which does not
    -     * return the `includedPermissions` field.
    -     * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @return The view. - */ - @java.lang.Override - public com.google.iam.admin.v1.RoleView getView() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.RoleView result = com.google.iam.admin.v1.RoleView.valueOf(view_); - return result == null ? com.google.iam.admin.v1.RoleView.UNRECOGNIZED : result; - } - /** - *
    -     * Optional view for the returned Role objects. When `FULL` is specified,
    -     * the `includedPermissions` field is returned, which includes a list of all
    -     * permissions in the role. The default value is `BASIC`, which does not
    -     * return the `includedPermissions` field.
    -     * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @param value The view to set. - * @return This builder for chaining. - */ - public Builder setView(com.google.iam.admin.v1.RoleView value) { - if (value == null) { - throw new NullPointerException(); - } - - view_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * Optional view for the returned Role objects. When `FULL` is specified,
    -     * the `includedPermissions` field is returned, which includes a list of all
    -     * permissions in the role. The default value is `BASIC`, which does not
    -     * return the `includedPermissions` field.
    -     * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @return This builder for chaining. - */ - public Builder clearView() { - - view_ = 0; - onChanged(); - return this; - } - - private boolean showDeleted_ ; - /** - *
    -     * Include Roles that have been deleted.
    -     * 
    - * - * bool show_deleted = 6; - * @return The showDeleted. - */ - @java.lang.Override - public boolean getShowDeleted() { - return showDeleted_; - } - /** - *
    -     * Include Roles that have been deleted.
    -     * 
    - * - * bool show_deleted = 6; - * @param value The showDeleted to set. - * @return This builder for chaining. - */ - public Builder setShowDeleted(boolean value) { - - showDeleted_ = value; - onChanged(); - return this; - } - /** - *
    -     * Include Roles that have been deleted.
    -     * 
    - * - * bool show_deleted = 6; - * @return This builder for chaining. - */ - public Builder clearShowDeleted() { - - showDeleted_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.ListRolesRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.ListRolesRequest) - private static final com.google.iam.admin.v1.ListRolesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.ListRolesRequest(); - } - - public static com.google.iam.admin.v1.ListRolesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRolesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRolesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListRolesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequestOrBuilder.java deleted file mode 100644 index 7591c77ce060..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesRequestOrBuilder.java +++ /dev/null @@ -1,145 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface ListRolesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.ListRolesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The `parent` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `parent` value format is described below:
    -   * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -   *   This method doesn't require a resource; it simply returns all
    -   *   [predefined
    -   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -   *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -   * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -   *   `projects/{PROJECT_ID}`. This method lists all project-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -   *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -   *   organization-level [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The parent. - */ - java.lang.String getParent(); - /** - *
    -   * The `parent` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles),
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles),
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `parent` value format is described below:
    -   * * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string.
    -   *   This method doesn't require a resource; it simply returns all
    -   *   [predefined
    -   *   roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles)
    -   *   in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles`
    -   * * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list):
    -   *   `projects/{PROJECT_ID}`. This method lists all project-level
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles`
    -   * * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list):
    -   *   `organizations/{ORGANIZATION_ID}`. This method lists all
    -   *   organization-level [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles).
    -   *   Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string parent = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for parent. - */ - com.google.protobuf.ByteString - getParentBytes(); - - /** - *
    -   * Optional limit on the number of roles to include in the response.
    -   * The default is 300, and the maximum is 1,000.
    -   * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
    -   * Optional pagination token returned in an earlier ListRolesResponse.
    -   * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
    -   * Optional pagination token returned in an earlier ListRolesResponse.
    -   * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); - - /** - *
    -   * Optional view for the returned Role objects. When `FULL` is specified,
    -   * the `includedPermissions` field is returned, which includes a list of all
    -   * permissions in the role. The default value is `BASIC`, which does not
    -   * return the `includedPermissions` field.
    -   * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @return The enum numeric value on the wire for view. - */ - int getViewValue(); - /** - *
    -   * Optional view for the returned Role objects. When `FULL` is specified,
    -   * the `includedPermissions` field is returned, which includes a list of all
    -   * permissions in the role. The default value is `BASIC`, which does not
    -   * return the `includedPermissions` field.
    -   * 
    - * - * .google.iam.admin.v1.RoleView view = 4; - * @return The view. - */ - com.google.iam.admin.v1.RoleView getView(); - - /** - *
    -   * Include Roles that have been deleted.
    -   * 
    - * - * bool show_deleted = 6; - * @return The showDeleted. - */ - boolean getShowDeleted(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponse.java deleted file mode 100644 index 6fd3ce203e05..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponse.java +++ /dev/null @@ -1,1045 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The response containing the roles defined under a resource.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListRolesResponse} - */ -public final class ListRolesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.ListRolesResponse) - ListRolesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListRolesResponse.newBuilder() to construct. - private ListRolesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListRolesResponse() { - roles_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListRolesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListRolesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - roles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - roles_.add( - input.readMessage(com.google.iam.admin.v1.Role.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - roles_ = java.util.Collections.unmodifiableList(roles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListRolesResponse.class, com.google.iam.admin.v1.ListRolesResponse.Builder.class); - } - - public static final int ROLES_FIELD_NUMBER = 1; - private java.util.List roles_; - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public java.util.List getRolesList() { - return roles_; - } - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public java.util.List - getRolesOrBuilderList() { - return roles_; - } - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public int getRolesCount() { - return roles_.size(); - } - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.Role getRoles(int index) { - return roles_.get(index); - } - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.RoleOrBuilder getRolesOrBuilder( - int index) { - return roles_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
    -   * To retrieve the next page of results, set
    -   * `ListRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
    -   * To retrieve the next page of results, set
    -   * `ListRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < roles_.size(); i++) { - output.writeMessage(1, roles_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < roles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, roles_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.ListRolesResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.ListRolesResponse other = (com.google.iam.admin.v1.ListRolesResponse) obj; - - if (!getRolesList() - .equals(other.getRolesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRolesCount() > 0) { - hash = (37 * hash) + ROLES_FIELD_NUMBER; - hash = (53 * hash) + getRolesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.ListRolesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListRolesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListRolesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.ListRolesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The response containing the roles defined under a resource.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListRolesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListRolesResponse) - com.google.iam.admin.v1.ListRolesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListRolesResponse.class, com.google.iam.admin.v1.ListRolesResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.ListRolesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRolesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rolesBuilder_ == null) { - roles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rolesBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListRolesResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListRolesResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.ListRolesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.ListRolesResponse build() { - com.google.iam.admin.v1.ListRolesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListRolesResponse buildPartial() { - com.google.iam.admin.v1.ListRolesResponse result = new com.google.iam.admin.v1.ListRolesResponse(this); - int from_bitField0_ = bitField0_; - if (rolesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - roles_ = java.util.Collections.unmodifiableList(roles_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.roles_ = roles_; - } else { - result.roles_ = rolesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.ListRolesResponse) { - return mergeFrom((com.google.iam.admin.v1.ListRolesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.ListRolesResponse other) { - if (other == com.google.iam.admin.v1.ListRolesResponse.getDefaultInstance()) return this; - if (rolesBuilder_ == null) { - if (!other.roles_.isEmpty()) { - if (roles_.isEmpty()) { - roles_ = other.roles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRolesIsMutable(); - roles_.addAll(other.roles_); - } - onChanged(); - } - } else { - if (!other.roles_.isEmpty()) { - if (rolesBuilder_.isEmpty()) { - rolesBuilder_.dispose(); - rolesBuilder_ = null; - roles_ = other.roles_; - bitField0_ = (bitField0_ & ~0x00000001); - rolesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRolesFieldBuilder() : null; - } else { - rolesBuilder_.addAllMessages(other.roles_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.ListRolesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.ListRolesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List roles_ = - java.util.Collections.emptyList(); - private void ensureRolesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - roles_ = new java.util.ArrayList(roles_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder> rolesBuilder_; - - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public java.util.List getRolesList() { - if (rolesBuilder_ == null) { - return java.util.Collections.unmodifiableList(roles_); - } else { - return rolesBuilder_.getMessageList(); - } - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public int getRolesCount() { - if (rolesBuilder_ == null) { - return roles_.size(); - } else { - return rolesBuilder_.getCount(); - } - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.Role getRoles(int index) { - if (rolesBuilder_ == null) { - return roles_.get(index); - } else { - return rolesBuilder_.getMessage(index); - } - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder setRoles( - int index, com.google.iam.admin.v1.Role value) { - if (rolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.set(index, value); - onChanged(); - } else { - rolesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder setRoles( - int index, com.google.iam.admin.v1.Role.Builder builderForValue) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - roles_.set(index, builderForValue.build()); - onChanged(); - } else { - rolesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addRoles(com.google.iam.admin.v1.Role value) { - if (rolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.add(value); - onChanged(); - } else { - rolesBuilder_.addMessage(value); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addRoles( - int index, com.google.iam.admin.v1.Role value) { - if (rolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.add(index, value); - onChanged(); - } else { - rolesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addRoles( - com.google.iam.admin.v1.Role.Builder builderForValue) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - roles_.add(builderForValue.build()); - onChanged(); - } else { - rolesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addRoles( - int index, com.google.iam.admin.v1.Role.Builder builderForValue) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - roles_.add(index, builderForValue.build()); - onChanged(); - } else { - rolesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addAllRoles( - java.lang.Iterable values) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, roles_); - onChanged(); - } else { - rolesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder clearRoles() { - if (rolesBuilder_ == null) { - roles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rolesBuilder_.clear(); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder removeRoles(int index) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - roles_.remove(index); - onChanged(); - } else { - rolesBuilder_.remove(index); - } - return this; - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.Role.Builder getRolesBuilder( - int index) { - return getRolesFieldBuilder().getBuilder(index); - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.RoleOrBuilder getRolesOrBuilder( - int index) { - if (rolesBuilder_ == null) { - return roles_.get(index); } else { - return rolesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public java.util.List - getRolesOrBuilderList() { - if (rolesBuilder_ != null) { - return rolesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(roles_); - } - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.Role.Builder addRolesBuilder() { - return getRolesFieldBuilder().addBuilder( - com.google.iam.admin.v1.Role.getDefaultInstance()); - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.Role.Builder addRolesBuilder( - int index) { - return getRolesFieldBuilder().addBuilder( - index, com.google.iam.admin.v1.Role.getDefaultInstance()); - } - /** - *
    -     * The Roles defined on this resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public java.util.List - getRolesBuilderList() { - return getRolesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder> - getRolesFieldBuilder() { - if (rolesBuilder_ == null) { - rolesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder>( - roles_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - roles_ = null; - } - return rolesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
    -     * To retrieve the next page of results, set
    -     * `ListRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `ListRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `ListRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `ListRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `ListRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.ListRolesResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.ListRolesResponse) - private static final com.google.iam.admin.v1.ListRolesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.ListRolesResponse(); - } - - public static com.google.iam.admin.v1.ListRolesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListRolesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListRolesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListRolesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponseOrBuilder.java deleted file mode 100644 index 0b3162d7d22f..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListRolesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface ListRolesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.ListRolesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - java.util.List - getRolesList(); - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - com.google.iam.admin.v1.Role getRoles(int index); - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - int getRolesCount(); - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - java.util.List - getRolesOrBuilderList(); - /** - *
    -   * The Roles defined on this resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - com.google.iam.admin.v1.RoleOrBuilder getRolesOrBuilder( - int index); - - /** - *
    -   * To retrieve the next page of results, set
    -   * `ListRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
    -   * To retrieve the next page of results, set
    -   * `ListRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequest.java deleted file mode 100644 index 14e8fc6816ff..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequest.java +++ /dev/null @@ -1,1143 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account keys list request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListServiceAccountKeysRequest} - */ -public final class ListServiceAccountKeysRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.ListServiceAccountKeysRequest) - ListServiceAccountKeysRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListServiceAccountKeysRequest.newBuilder() to construct. - private ListServiceAccountKeysRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListServiceAccountKeysRequest() { - name_ = ""; - keyTypes_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListServiceAccountKeysRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListServiceAccountKeysRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keyTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keyTypes_.add(rawValue); - break; - } - case 18: { - int length = input.readRawVarint32(); - int oldLimit = input.pushLimit(length); - while(input.getBytesUntilLimit() > 0) { - int rawValue = input.readEnum(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keyTypes_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keyTypes_.add(rawValue); - } - input.popLimit(oldLimit); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - keyTypes_ = java.util.Collections.unmodifiableList(keyTypes_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListServiceAccountKeysRequest.class, com.google.iam.admin.v1.ListServiceAccountKeysRequest.Builder.class); - } - - /** - *
    -   * `KeyType` filters to selectively retrieve certain varieties
    -   * of keys.
    -   * 
    - * - * Protobuf enum {@code google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType} - */ - public enum KeyType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -     * Unspecified key type. The presence of this in the
    -     * message will immediately result in an error.
    -     * 
    - * - * KEY_TYPE_UNSPECIFIED = 0; - */ - KEY_TYPE_UNSPECIFIED(0), - /** - *
    -     * User-managed keys (managed and rotated by the user).
    -     * 
    - * - * USER_MANAGED = 1; - */ - USER_MANAGED(1), - /** - *
    -     * System-managed keys (managed and rotated by Google).
    -     * 
    - * - * SYSTEM_MANAGED = 2; - */ - SYSTEM_MANAGED(2), - UNRECOGNIZED(-1), - ; - - /** - *
    -     * Unspecified key type. The presence of this in the
    -     * message will immediately result in an error.
    -     * 
    - * - * KEY_TYPE_UNSPECIFIED = 0; - */ - public static final int KEY_TYPE_UNSPECIFIED_VALUE = 0; - /** - *
    -     * User-managed keys (managed and rotated by the user).
    -     * 
    - * - * USER_MANAGED = 1; - */ - public static final int USER_MANAGED_VALUE = 1; - /** - *
    -     * System-managed keys (managed and rotated by Google).
    -     * 
    - * - * SYSTEM_MANAGED = 2; - */ - public static final int SYSTEM_MANAGED_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static KeyType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static KeyType forNumber(int value) { - switch (value) { - case 0: return KEY_TYPE_UNSPECIFIED; - case 1: return USER_MANAGED; - case 2: return SYSTEM_MANAGED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - KeyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public KeyType findValueByNumber(int number) { - return KeyType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.ListServiceAccountKeysRequest.getDescriptor().getEnumTypes().get(0); - } - - private static final KeyType[] VALUES = values(); - - public static KeyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private KeyType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int KEY_TYPES_FIELD_NUMBER = 2; - private java.util.List keyTypes_; - private static final com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType> keyTypes_converter_ = - new com.google.protobuf.Internal.ListAdapter.Converter< - java.lang.Integer, com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType>() { - public com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType convert(java.lang.Integer from) { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType result = com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType.valueOf(from); - return result == null ? com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType.UNRECOGNIZED : result; - } - }; - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return A list containing the keyTypes. - */ - @java.lang.Override - public java.util.List getKeyTypesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType>(keyTypes_, keyTypes_converter_); - } - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return The count of keyTypes. - */ - @java.lang.Override - public int getKeyTypesCount() { - return keyTypes_.size(); - } - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param index The index of the element to return. - * @return The keyTypes at the given index. - */ - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType getKeyTypes(int index) { - return keyTypes_converter_.convert(keyTypes_.get(index)); - } - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return A list containing the enum numeric values on the wire for keyTypes. - */ - @java.lang.Override - public java.util.List - getKeyTypesValueList() { - return keyTypes_; - } - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of keyTypes at the given index. - */ - @java.lang.Override - public int getKeyTypesValue(int index) { - return keyTypes_.get(index); - } - private int keyTypesMemoizedSerializedSize; - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - getSerializedSize(); - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (getKeyTypesList().size() > 0) { - output.writeUInt32NoTag(18); - output.writeUInt32NoTag(keyTypesMemoizedSerializedSize); - } - for (int i = 0; i < keyTypes_.size(); i++) { - output.writeEnumNoTag(keyTypes_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - { - int dataSize = 0; - for (int i = 0; i < keyTypes_.size(); i++) { - dataSize += com.google.protobuf.CodedOutputStream - .computeEnumSizeNoTag(keyTypes_.get(i)); - } - size += dataSize; - if (!getKeyTypesList().isEmpty()) { size += 1; - size += com.google.protobuf.CodedOutputStream - .computeUInt32SizeNoTag(dataSize); - }keyTypesMemoizedSerializedSize = dataSize; - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.ListServiceAccountKeysRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.ListServiceAccountKeysRequest other = (com.google.iam.admin.v1.ListServiceAccountKeysRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!keyTypes_.equals(other.keyTypes_)) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (getKeyTypesCount() > 0) { - hash = (37 * hash) + KEY_TYPES_FIELD_NUMBER; - hash = (53 * hash) + keyTypes_.hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.ListServiceAccountKeysRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account keys list request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListServiceAccountKeysRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListServiceAccountKeysRequest) - com.google.iam.admin.v1.ListServiceAccountKeysRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListServiceAccountKeysRequest.class, com.google.iam.admin.v1.ListServiceAccountKeysRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.ListServiceAccountKeysRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - keyTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.ListServiceAccountKeysRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysRequest build() { - com.google.iam.admin.v1.ListServiceAccountKeysRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysRequest buildPartial() { - com.google.iam.admin.v1.ListServiceAccountKeysRequest result = new com.google.iam.admin.v1.ListServiceAccountKeysRequest(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - if (((bitField0_ & 0x00000001) != 0)) { - keyTypes_ = java.util.Collections.unmodifiableList(keyTypes_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keyTypes_ = keyTypes_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.ListServiceAccountKeysRequest) { - return mergeFrom((com.google.iam.admin.v1.ListServiceAccountKeysRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.ListServiceAccountKeysRequest other) { - if (other == com.google.iam.admin.v1.ListServiceAccountKeysRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.keyTypes_.isEmpty()) { - if (keyTypes_.isEmpty()) { - keyTypes_ = other.keyTypes_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeyTypesIsMutable(); - keyTypes_.addAll(other.keyTypes_); - } - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.ListServiceAccountKeysRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.ListServiceAccountKeysRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.util.List keyTypes_ = - java.util.Collections.emptyList(); - private void ensureKeyTypesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - keyTypes_ = new java.util.ArrayList(keyTypes_); - bitField0_ |= 0x00000001; - } - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return A list containing the keyTypes. - */ - public java.util.List getKeyTypesList() { - return new com.google.protobuf.Internal.ListAdapter< - java.lang.Integer, com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType>(keyTypes_, keyTypes_converter_); - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return The count of keyTypes. - */ - public int getKeyTypesCount() { - return keyTypes_.size(); - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param index The index of the element to return. - * @return The keyTypes at the given index. - */ - public com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType getKeyTypes(int index) { - return keyTypes_converter_.convert(keyTypes_.get(index)); - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param index The index to set the value at. - * @param value The keyTypes to set. - * @return This builder for chaining. - */ - public Builder setKeyTypes( - int index, com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyTypesIsMutable(); - keyTypes_.set(index, value.getNumber()); - onChanged(); - return this; - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param value The keyTypes to add. - * @return This builder for chaining. - */ - public Builder addKeyTypes(com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType value) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeyTypesIsMutable(); - keyTypes_.add(value.getNumber()); - onChanged(); - return this; - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param values The keyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllKeyTypes( - java.lang.Iterable values) { - ensureKeyTypesIsMutable(); - for (com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType value : values) { - keyTypes_.add(value.getNumber()); - } - onChanged(); - return this; - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return This builder for chaining. - */ - public Builder clearKeyTypes() { - keyTypes_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return A list containing the enum numeric values on the wire for keyTypes. - */ - public java.util.List - getKeyTypesValueList() { - return java.util.Collections.unmodifiableList(keyTypes_); - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of keyTypes at the given index. - */ - public int getKeyTypesValue(int index) { - return keyTypes_.get(index); - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param index The index to set the value at. - * @param value The enum numeric value on the wire for keyTypes to set. - * @return This builder for chaining. - */ - public Builder setKeyTypesValue( - int index, int value) { - ensureKeyTypesIsMutable(); - keyTypes_.set(index, value); - onChanged(); - return this; - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param value The enum numeric value on the wire for keyTypes to add. - * @return This builder for chaining. - */ - public Builder addKeyTypesValue(int value) { - ensureKeyTypesIsMutable(); - keyTypes_.add(value); - onChanged(); - return this; - } - /** - *
    -     * Filters the types of keys the user wants to include in the list
    -     * response. Duplicate key types are not allowed. If no key type
    -     * is provided, all keys are returned.
    -     * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param values The enum numeric values on the wire for keyTypes to add. - * @return This builder for chaining. - */ - public Builder addAllKeyTypesValue( - java.lang.Iterable values) { - ensureKeyTypesIsMutable(); - for (int value : values) { - keyTypes_.add(value); - } - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.ListServiceAccountKeysRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.ListServiceAccountKeysRequest) - private static final com.google.iam.admin.v1.ListServiceAccountKeysRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.ListServiceAccountKeysRequest(); - } - - public static com.google.iam.admin.v1.ListServiceAccountKeysRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServiceAccountKeysRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServiceAccountKeysRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequestOrBuilder.java deleted file mode 100644 index 3d0668111a55..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysRequestOrBuilder.java +++ /dev/null @@ -1,96 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface ListServiceAccountKeysRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.ListServiceAccountKeysRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return A list containing the keyTypes. - */ - java.util.List getKeyTypesList(); - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return The count of keyTypes. - */ - int getKeyTypesCount(); - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param index The index of the element to return. - * @return The keyTypes at the given index. - */ - com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType getKeyTypes(int index); - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @return A list containing the enum numeric values on the wire for keyTypes. - */ - java.util.List - getKeyTypesValueList(); - /** - *
    -   * Filters the types of keys the user wants to include in the list
    -   * response. Duplicate key types are not allowed. If no key type
    -   * is provided, all keys are returned.
    -   * 
    - * - * repeated .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_types = 2; - * @param index The index of the value to return. - * @return The enum numeric value on the wire of keyTypes at the given index. - */ - int getKeyTypesValue(int index); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponse.java deleted file mode 100644 index a98dab934b45..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponse.java +++ /dev/null @@ -1,872 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account keys list response.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListServiceAccountKeysResponse} - */ -public final class ListServiceAccountKeysResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.ListServiceAccountKeysResponse) - ListServiceAccountKeysResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListServiceAccountKeysResponse.newBuilder() to construct. - private ListServiceAccountKeysResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListServiceAccountKeysResponse() { - keys_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListServiceAccountKeysResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListServiceAccountKeysResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - keys_.add( - input.readMessage(com.google.iam.admin.v1.ServiceAccountKey.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListServiceAccountKeysResponse.class, com.google.iam.admin.v1.ListServiceAccountKeysResponse.Builder.class); - } - - public static final int KEYS_FIELD_NUMBER = 1; - private java.util.List keys_; - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - @java.lang.Override - public java.util.List getKeysList() { - return keys_; - } - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - @java.lang.Override - public java.util.List - getKeysOrBuilderList() { - return keys_; - } - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - @java.lang.Override - public int getKeysCount() { - return keys_.size(); - } - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKey getKeys(int index) { - return keys_.get(index); - } - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKeyOrBuilder getKeysOrBuilder( - int index) { - return keys_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < keys_.size(); i++) { - output.writeMessage(1, keys_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < keys_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, keys_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.ListServiceAccountKeysResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.ListServiceAccountKeysResponse other = (com.google.iam.admin.v1.ListServiceAccountKeysResponse) obj; - - if (!getKeysList() - .equals(other.getKeysList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getKeysCount() > 0) { - hash = (37 * hash) + KEYS_FIELD_NUMBER; - hash = (53 * hash) + getKeysList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.ListServiceAccountKeysResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account keys list response.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListServiceAccountKeysResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListServiceAccountKeysResponse) - com.google.iam.admin.v1.ListServiceAccountKeysResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListServiceAccountKeysResponse.class, com.google.iam.admin.v1.ListServiceAccountKeysResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.ListServiceAccountKeysResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getKeysFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - keysBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountKeysResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.ListServiceAccountKeysResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysResponse build() { - com.google.iam.admin.v1.ListServiceAccountKeysResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysResponse buildPartial() { - com.google.iam.admin.v1.ListServiceAccountKeysResponse result = new com.google.iam.admin.v1.ListServiceAccountKeysResponse(this); - int from_bitField0_ = bitField0_; - if (keysBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - keys_ = java.util.Collections.unmodifiableList(keys_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.keys_ = keys_; - } else { - result.keys_ = keysBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.ListServiceAccountKeysResponse) { - return mergeFrom((com.google.iam.admin.v1.ListServiceAccountKeysResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.ListServiceAccountKeysResponse other) { - if (other == com.google.iam.admin.v1.ListServiceAccountKeysResponse.getDefaultInstance()) return this; - if (keysBuilder_ == null) { - if (!other.keys_.isEmpty()) { - if (keys_.isEmpty()) { - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureKeysIsMutable(); - keys_.addAll(other.keys_); - } - onChanged(); - } - } else { - if (!other.keys_.isEmpty()) { - if (keysBuilder_.isEmpty()) { - keysBuilder_.dispose(); - keysBuilder_ = null; - keys_ = other.keys_; - bitField0_ = (bitField0_ & ~0x00000001); - keysBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getKeysFieldBuilder() : null; - } else { - keysBuilder_.addAllMessages(other.keys_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.ListServiceAccountKeysResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.ListServiceAccountKeysResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List keys_ = - java.util.Collections.emptyList(); - private void ensureKeysIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - keys_ = new java.util.ArrayList(keys_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccountKey, com.google.iam.admin.v1.ServiceAccountKey.Builder, com.google.iam.admin.v1.ServiceAccountKeyOrBuilder> keysBuilder_; - - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public java.util.List getKeysList() { - if (keysBuilder_ == null) { - return java.util.Collections.unmodifiableList(keys_); - } else { - return keysBuilder_.getMessageList(); - } - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public int getKeysCount() { - if (keysBuilder_ == null) { - return keys_.size(); - } else { - return keysBuilder_.getCount(); - } - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public com.google.iam.admin.v1.ServiceAccountKey getKeys(int index) { - if (keysBuilder_ == null) { - return keys_.get(index); - } else { - return keysBuilder_.getMessage(index); - } - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder setKeys( - int index, com.google.iam.admin.v1.ServiceAccountKey value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.set(index, value); - onChanged(); - } else { - keysBuilder_.setMessage(index, value); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder setKeys( - int index, com.google.iam.admin.v1.ServiceAccountKey.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.set(index, builderForValue.build()); - onChanged(); - } else { - keysBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder addKeys(com.google.iam.admin.v1.ServiceAccountKey value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(value); - onChanged(); - } else { - keysBuilder_.addMessage(value); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder addKeys( - int index, com.google.iam.admin.v1.ServiceAccountKey value) { - if (keysBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureKeysIsMutable(); - keys_.add(index, value); - onChanged(); - } else { - keysBuilder_.addMessage(index, value); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder addKeys( - com.google.iam.admin.v1.ServiceAccountKey.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(builderForValue.build()); - onChanged(); - } else { - keysBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder addKeys( - int index, com.google.iam.admin.v1.ServiceAccountKey.Builder builderForValue) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.add(index, builderForValue.build()); - onChanged(); - } else { - keysBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder addAllKeys( - java.lang.Iterable values) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, keys_); - onChanged(); - } else { - keysBuilder_.addAllMessages(values); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder clearKeys() { - if (keysBuilder_ == null) { - keys_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - keysBuilder_.clear(); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public Builder removeKeys(int index) { - if (keysBuilder_ == null) { - ensureKeysIsMutable(); - keys_.remove(index); - onChanged(); - } else { - keysBuilder_.remove(index); - } - return this; - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public com.google.iam.admin.v1.ServiceAccountKey.Builder getKeysBuilder( - int index) { - return getKeysFieldBuilder().getBuilder(index); - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public com.google.iam.admin.v1.ServiceAccountKeyOrBuilder getKeysOrBuilder( - int index) { - if (keysBuilder_ == null) { - return keys_.get(index); } else { - return keysBuilder_.getMessageOrBuilder(index); - } - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public java.util.List - getKeysOrBuilderList() { - if (keysBuilder_ != null) { - return keysBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(keys_); - } - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public com.google.iam.admin.v1.ServiceAccountKey.Builder addKeysBuilder() { - return getKeysFieldBuilder().addBuilder( - com.google.iam.admin.v1.ServiceAccountKey.getDefaultInstance()); - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public com.google.iam.admin.v1.ServiceAccountKey.Builder addKeysBuilder( - int index) { - return getKeysFieldBuilder().addBuilder( - index, com.google.iam.admin.v1.ServiceAccountKey.getDefaultInstance()); - } - /** - *
    -     * The public keys for the service account.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - public java.util.List - getKeysBuilderList() { - return getKeysFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccountKey, com.google.iam.admin.v1.ServiceAccountKey.Builder, com.google.iam.admin.v1.ServiceAccountKeyOrBuilder> - getKeysFieldBuilder() { - if (keysBuilder_ == null) { - keysBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccountKey, com.google.iam.admin.v1.ServiceAccountKey.Builder, com.google.iam.admin.v1.ServiceAccountKeyOrBuilder>( - keys_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - keys_ = null; - } - return keysBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.ListServiceAccountKeysResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.ListServiceAccountKeysResponse) - private static final com.google.iam.admin.v1.ListServiceAccountKeysResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.ListServiceAccountKeysResponse(); - } - - public static com.google.iam.admin.v1.ListServiceAccountKeysResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServiceAccountKeysResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServiceAccountKeysResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponseOrBuilder.java deleted file mode 100644 index 7f8f1c30b220..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountKeysResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface ListServiceAccountKeysResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.ListServiceAccountKeysResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - java.util.List - getKeysList(); - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - com.google.iam.admin.v1.ServiceAccountKey getKeys(int index); - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - int getKeysCount(); - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - java.util.List - getKeysOrBuilderList(); - /** - *
    -   * The public keys for the service account.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccountKey keys = 1; - */ - com.google.iam.admin.v1.ServiceAccountKeyOrBuilder getKeysOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequest.java deleted file mode 100644 index 4961fa72bbbd..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequest.java +++ /dev/null @@ -1,871 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account list request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListServiceAccountsRequest} - */ -public final class ListServiceAccountsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.ListServiceAccountsRequest) - ListServiceAccountsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListServiceAccountsRequest.newBuilder() to construct. - private ListServiceAccountsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListServiceAccountsRequest() { - name_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListServiceAccountsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListServiceAccountsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListServiceAccountsRequest.class, com.google.iam.admin.v1.ListServiceAccountsRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. The resource name of the project associated with the service
    -   * accounts, such as `projects/my-project-123`.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. The resource name of the project associated with the service
    -   * accounts, such as `projects/my-project-123`.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - *
    -   * Optional limit on the number of service accounts to include in the
    -   * response. Further accounts can subsequently be obtained by including the
    -   * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token]
    -   * in a subsequent request.
    -   * The default is 20, and the maximum is 100.
    -   * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - *
    -   * Optional pagination token returned in an earlier
    -   * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -   * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
    -   * Optional pagination token returned in an earlier
    -   * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -   * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.ListServiceAccountsRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.ListServiceAccountsRequest other = (com.google.iam.admin.v1.ListServiceAccountsRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.ListServiceAccountsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account list request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListServiceAccountsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListServiceAccountsRequest) - com.google.iam.admin.v1.ListServiceAccountsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListServiceAccountsRequest.class, com.google.iam.admin.v1.ListServiceAccountsRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.ListServiceAccountsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountsRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.ListServiceAccountsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountsRequest build() { - com.google.iam.admin.v1.ListServiceAccountsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountsRequest buildPartial() { - com.google.iam.admin.v1.ListServiceAccountsRequest result = new com.google.iam.admin.v1.ListServiceAccountsRequest(this); - result.name_ = name_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.ListServiceAccountsRequest) { - return mergeFrom((com.google.iam.admin.v1.ListServiceAccountsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.ListServiceAccountsRequest other) { - if (other == com.google.iam.admin.v1.ListServiceAccountsRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.ListServiceAccountsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.ListServiceAccountsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The resource name of the project associated with the service
    -     * accounts, such as `projects/my-project-123`.
    -     * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
    -     * Optional limit on the number of service accounts to include in the
    -     * response. Further accounts can subsequently be obtained by including the
    -     * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token]
    -     * in a subsequent request.
    -     * The default is 20, and the maximum is 100.
    -     * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
    -     * Optional limit on the number of service accounts to include in the
    -     * response. Further accounts can subsequently be obtained by including the
    -     * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token]
    -     * in a subsequent request.
    -     * The default is 20, and the maximum is 100.
    -     * 
    - * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional limit on the number of service accounts to include in the
    -     * response. Further accounts can subsequently be obtained by including the
    -     * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token]
    -     * in a subsequent request.
    -     * The default is 20, and the maximum is 100.
    -     * 
    - * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
    -     * Optional pagination token returned in an earlier
    -     * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -     * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -     * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -     * 
    - * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -     * 
    - * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -     * 
    - * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.ListServiceAccountsRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.ListServiceAccountsRequest) - private static final com.google.iam.admin.v1.ListServiceAccountsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.ListServiceAccountsRequest(); - } - - public static com.google.iam.admin.v1.ListServiceAccountsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServiceAccountsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServiceAccountsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequestOrBuilder.java deleted file mode 100644 index 6ef750b19ec8..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsRequestOrBuilder.java +++ /dev/null @@ -1,67 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface ListServiceAccountsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.ListServiceAccountsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The resource name of the project associated with the service
    -   * accounts, such as `projects/my-project-123`.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * Required. The resource name of the project associated with the service
    -   * accounts, such as `projects/my-project-123`.
    -   * 
    - * - * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Optional limit on the number of service accounts to include in the
    -   * response. Further accounts can subsequently be obtained by including the
    -   * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token]
    -   * in a subsequent request.
    -   * The default is 20, and the maximum is 100.
    -   * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
    -   * Optional pagination token returned in an earlier
    -   * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -   * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
    -   * Optional pagination token returned in an earlier
    -   * [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token].
    -   * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponse.java deleted file mode 100644 index 1faf7e7d21b0..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponse.java +++ /dev/null @@ -1,1052 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account list response.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListServiceAccountsResponse} - */ -public final class ListServiceAccountsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.ListServiceAccountsResponse) - ListServiceAccountsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use ListServiceAccountsResponse.newBuilder() to construct. - private ListServiceAccountsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ListServiceAccountsResponse() { - accounts_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ListServiceAccountsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ListServiceAccountsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - accounts_.add( - input.readMessage(com.google.iam.admin.v1.ServiceAccount.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListServiceAccountsResponse.class, com.google.iam.admin.v1.ListServiceAccountsResponse.Builder.class); - } - - public static final int ACCOUNTS_FIELD_NUMBER = 1; - private java.util.List accounts_; - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - @java.lang.Override - public java.util.List getAccountsList() { - return accounts_; - } - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - @java.lang.Override - public java.util.List - getAccountsOrBuilderList() { - return accounts_; - } - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - @java.lang.Override - public int getAccountsCount() { - return accounts_.size(); - } - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccount getAccounts(int index) { - return accounts_.get(index); - } - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountOrBuilder getAccountsOrBuilder( - int index) { - return accounts_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
    -   * To retrieve the next page of results, set
    -   * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -   * to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
    -   * To retrieve the next page of results, set
    -   * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -   * to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < accounts_.size(); i++) { - output.writeMessage(1, accounts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < accounts_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, accounts_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.ListServiceAccountsResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.ListServiceAccountsResponse other = (com.google.iam.admin.v1.ListServiceAccountsResponse) obj; - - if (!getAccountsList() - .equals(other.getAccountsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getAccountsCount() > 0) { - hash = (37 * hash) + ACCOUNTS_FIELD_NUMBER; - hash = (53 * hash) + getAccountsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ListServiceAccountsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.ListServiceAccountsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account list response.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.ListServiceAccountsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ListServiceAccountsResponse) - com.google.iam.admin.v1.ListServiceAccountsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ListServiceAccountsResponse.class, com.google.iam.admin.v1.ListServiceAccountsResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.ListServiceAccountsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getAccountsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - accountsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ListServiceAccountsResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountsResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.ListServiceAccountsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountsResponse build() { - com.google.iam.admin.v1.ListServiceAccountsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountsResponse buildPartial() { - com.google.iam.admin.v1.ListServiceAccountsResponse result = new com.google.iam.admin.v1.ListServiceAccountsResponse(this); - int from_bitField0_ = bitField0_; - if (accountsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - accounts_ = java.util.Collections.unmodifiableList(accounts_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.accounts_ = accounts_; - } else { - result.accounts_ = accountsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.ListServiceAccountsResponse) { - return mergeFrom((com.google.iam.admin.v1.ListServiceAccountsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.ListServiceAccountsResponse other) { - if (other == com.google.iam.admin.v1.ListServiceAccountsResponse.getDefaultInstance()) return this; - if (accountsBuilder_ == null) { - if (!other.accounts_.isEmpty()) { - if (accounts_.isEmpty()) { - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureAccountsIsMutable(); - accounts_.addAll(other.accounts_); - } - onChanged(); - } - } else { - if (!other.accounts_.isEmpty()) { - if (accountsBuilder_.isEmpty()) { - accountsBuilder_.dispose(); - accountsBuilder_ = null; - accounts_ = other.accounts_; - bitField0_ = (bitField0_ & ~0x00000001); - accountsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getAccountsFieldBuilder() : null; - } else { - accountsBuilder_.addAllMessages(other.accounts_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.ListServiceAccountsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.ListServiceAccountsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List accounts_ = - java.util.Collections.emptyList(); - private void ensureAccountsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - accounts_ = new java.util.ArrayList(accounts_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder> accountsBuilder_; - - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public java.util.List getAccountsList() { - if (accountsBuilder_ == null) { - return java.util.Collections.unmodifiableList(accounts_); - } else { - return accountsBuilder_.getMessageList(); - } - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public int getAccountsCount() { - if (accountsBuilder_ == null) { - return accounts_.size(); - } else { - return accountsBuilder_.getCount(); - } - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public com.google.iam.admin.v1.ServiceAccount getAccounts(int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); - } else { - return accountsBuilder_.getMessage(index); - } - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder setAccounts( - int index, com.google.iam.admin.v1.ServiceAccount value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.set(index, value); - onChanged(); - } else { - accountsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder setAccounts( - int index, com.google.iam.admin.v1.ServiceAccount.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.set(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder addAccounts(com.google.iam.admin.v1.ServiceAccount value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(value); - onChanged(); - } else { - accountsBuilder_.addMessage(value); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder addAccounts( - int index, com.google.iam.admin.v1.ServiceAccount value) { - if (accountsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureAccountsIsMutable(); - accounts_.add(index, value); - onChanged(); - } else { - accountsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder addAccounts( - com.google.iam.admin.v1.ServiceAccount.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder addAccounts( - int index, com.google.iam.admin.v1.ServiceAccount.Builder builderForValue) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.add(index, builderForValue.build()); - onChanged(); - } else { - accountsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder addAllAccounts( - java.lang.Iterable values) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, accounts_); - onChanged(); - } else { - accountsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder clearAccounts() { - if (accountsBuilder_ == null) { - accounts_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - accountsBuilder_.clear(); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public Builder removeAccounts(int index) { - if (accountsBuilder_ == null) { - ensureAccountsIsMutable(); - accounts_.remove(index); - onChanged(); - } else { - accountsBuilder_.remove(index); - } - return this; - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public com.google.iam.admin.v1.ServiceAccount.Builder getAccountsBuilder( - int index) { - return getAccountsFieldBuilder().getBuilder(index); - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public com.google.iam.admin.v1.ServiceAccountOrBuilder getAccountsOrBuilder( - int index) { - if (accountsBuilder_ == null) { - return accounts_.get(index); } else { - return accountsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public java.util.List - getAccountsOrBuilderList() { - if (accountsBuilder_ != null) { - return accountsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(accounts_); - } - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public com.google.iam.admin.v1.ServiceAccount.Builder addAccountsBuilder() { - return getAccountsFieldBuilder().addBuilder( - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance()); - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public com.google.iam.admin.v1.ServiceAccount.Builder addAccountsBuilder( - int index) { - return getAccountsFieldBuilder().addBuilder( - index, com.google.iam.admin.v1.ServiceAccount.getDefaultInstance()); - } - /** - *
    -     * The list of matching service accounts.
    -     * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - public java.util.List - getAccountsBuilderList() { - return getAccountsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder> - getAccountsFieldBuilder() { - if (accountsBuilder_ == null) { - accountsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder>( - accounts_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - accounts_ = null; - } - return accountsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
    -     * To retrieve the next page of results, set
    -     * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -     * to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * To retrieve the next page of results, set
    -     * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -     * to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * To retrieve the next page of results, set
    -     * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -     * to this value.
    -     * 
    - * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - *
    -     * To retrieve the next page of results, set
    -     * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -     * to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
    -     * To retrieve the next page of results, set
    -     * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -     * to this value.
    -     * 
    - * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.ListServiceAccountsResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.ListServiceAccountsResponse) - private static final com.google.iam.admin.v1.ListServiceAccountsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.ListServiceAccountsResponse(); - } - - public static com.google.iam.admin.v1.ListServiceAccountsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ListServiceAccountsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ListServiceAccountsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponseOrBuilder.java deleted file mode 100644 index 4ba2df59a827..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ListServiceAccountsResponseOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface ListServiceAccountsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.ListServiceAccountsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - java.util.List - getAccountsList(); - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - com.google.iam.admin.v1.ServiceAccount getAccounts(int index); - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - int getAccountsCount(); - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - java.util.List - getAccountsOrBuilderList(); - /** - *
    -   * The list of matching service accounts.
    -   * 
    - * - * repeated .google.iam.admin.v1.ServiceAccount accounts = 1; - */ - com.google.iam.admin.v1.ServiceAccountOrBuilder getAccountsOrBuilder( - int index); - - /** - *
    -   * To retrieve the next page of results, set
    -   * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -   * to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
    -   * To retrieve the next page of results, set
    -   * [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token]
    -   * to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequest.java deleted file mode 100644 index c57a6c6ad20c..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequest.java +++ /dev/null @@ -1,813 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account patch request.
    - * You can patch only the `display_name` and `description` fields. You must use
    - * the `update_mask` field to specify which of these fields you want to patch.
    - * Only the fields specified in the request are guaranteed to be returned in
    - * the response. Other fields may be empty in the response.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.PatchServiceAccountRequest} - */ -public final class PatchServiceAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.PatchServiceAccountRequest) - PatchServiceAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use PatchServiceAccountRequest.newBuilder() to construct. - private PatchServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private PatchServiceAccountRequest() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new PatchServiceAccountRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private PatchServiceAccountRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.iam.admin.v1.ServiceAccount.Builder subBuilder = null; - if (serviceAccount_ != null) { - subBuilder = serviceAccount_.toBuilder(); - } - serviceAccount_ = input.readMessage(com.google.iam.admin.v1.ServiceAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(serviceAccount_); - serviceAccount_ = subBuilder.buildPartial(); - } - - break; - } - case 18: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_PatchServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.PatchServiceAccountRequest.class, com.google.iam.admin.v1.PatchServiceAccountRequest.Builder.class); - } - - public static final int SERVICE_ACCOUNT_FIELD_NUMBER = 1; - private com.google.iam.admin.v1.ServiceAccount serviceAccount_; - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - * @return Whether the serviceAccount field is set. - */ - @java.lang.Override - public boolean hasServiceAccount() { - return serviceAccount_ != null; - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - * @return The serviceAccount. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccount getServiceAccount() { - return serviceAccount_ == null ? com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder() { - return getServiceAccount(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 2; - private com.google.protobuf.FieldMask updateMask_; - /** - * .google.protobuf.FieldMask update_mask = 2; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - * .google.protobuf.FieldMask update_mask = 2; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (serviceAccount_ != null) { - output.writeMessage(1, getServiceAccount()); - } - if (updateMask_ != null) { - output.writeMessage(2, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (serviceAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getServiceAccount()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.PatchServiceAccountRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.PatchServiceAccountRequest other = (com.google.iam.admin.v1.PatchServiceAccountRequest) obj; - - if (hasServiceAccount() != other.hasServiceAccount()) return false; - if (hasServiceAccount()) { - if (!getServiceAccount() - .equals(other.getServiceAccount())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasServiceAccount()) { - hash = (37 * hash) + SERVICE_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getServiceAccount().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.PatchServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.PatchServiceAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account patch request.
    -   * You can patch only the `display_name` and `description` fields. You must use
    -   * the `update_mask` field to specify which of these fields you want to patch.
    -   * Only the fields specified in the request are guaranteed to be returned in
    -   * the response. Other fields may be empty in the response.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.PatchServiceAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.PatchServiceAccountRequest) - com.google.iam.admin.v1.PatchServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_PatchServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.PatchServiceAccountRequest.class, com.google.iam.admin.v1.PatchServiceAccountRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.PatchServiceAccountRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (serviceAccountBuilder_ == null) { - serviceAccount_ = null; - } else { - serviceAccount_ = null; - serviceAccountBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_PatchServiceAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.PatchServiceAccountRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.PatchServiceAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.PatchServiceAccountRequest build() { - com.google.iam.admin.v1.PatchServiceAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.PatchServiceAccountRequest buildPartial() { - com.google.iam.admin.v1.PatchServiceAccountRequest result = new com.google.iam.admin.v1.PatchServiceAccountRequest(this); - if (serviceAccountBuilder_ == null) { - result.serviceAccount_ = serviceAccount_; - } else { - result.serviceAccount_ = serviceAccountBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.PatchServiceAccountRequest) { - return mergeFrom((com.google.iam.admin.v1.PatchServiceAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.PatchServiceAccountRequest other) { - if (other == com.google.iam.admin.v1.PatchServiceAccountRequest.getDefaultInstance()) return this; - if (other.hasServiceAccount()) { - mergeServiceAccount(other.getServiceAccount()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.PatchServiceAccountRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.PatchServiceAccountRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.iam.admin.v1.ServiceAccount serviceAccount_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder> serviceAccountBuilder_; - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - * @return Whether the serviceAccount field is set. - */ - public boolean hasServiceAccount() { - return serviceAccountBuilder_ != null || serviceAccount_ != null; - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - * @return The serviceAccount. - */ - public com.google.iam.admin.v1.ServiceAccount getServiceAccount() { - if (serviceAccountBuilder_ == null) { - return serviceAccount_ == null ? com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; - } else { - return serviceAccountBuilder_.getMessage(); - } - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - public Builder setServiceAccount(com.google.iam.admin.v1.ServiceAccount value) { - if (serviceAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - serviceAccount_ = value; - onChanged(); - } else { - serviceAccountBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - public Builder setServiceAccount( - com.google.iam.admin.v1.ServiceAccount.Builder builderForValue) { - if (serviceAccountBuilder_ == null) { - serviceAccount_ = builderForValue.build(); - onChanged(); - } else { - serviceAccountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - public Builder mergeServiceAccount(com.google.iam.admin.v1.ServiceAccount value) { - if (serviceAccountBuilder_ == null) { - if (serviceAccount_ != null) { - serviceAccount_ = - com.google.iam.admin.v1.ServiceAccount.newBuilder(serviceAccount_).mergeFrom(value).buildPartial(); - } else { - serviceAccount_ = value; - } - onChanged(); - } else { - serviceAccountBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - public Builder clearServiceAccount() { - if (serviceAccountBuilder_ == null) { - serviceAccount_ = null; - onChanged(); - } else { - serviceAccount_ = null; - serviceAccountBuilder_ = null; - } - - return this; - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - public com.google.iam.admin.v1.ServiceAccount.Builder getServiceAccountBuilder() { - - onChanged(); - return getServiceAccountFieldBuilder().getBuilder(); - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - public com.google.iam.admin.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder() { - if (serviceAccountBuilder_ != null) { - return serviceAccountBuilder_.getMessageOrBuilder(); - } else { - return serviceAccount_ == null ? - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : serviceAccount_; - } - } - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder> - getServiceAccountFieldBuilder() { - if (serviceAccountBuilder_ == null) { - serviceAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder>( - getServiceAccount(), - getParentForChildren(), - isClean()); - serviceAccount_ = null; - } - return serviceAccountBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - * .google.protobuf.FieldMask update_mask = 2; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - * .google.protobuf.FieldMask update_mask = 2; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.PatchServiceAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.PatchServiceAccountRequest) - private static final com.google.iam.admin.v1.PatchServiceAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.PatchServiceAccountRequest(); - } - - public static com.google.iam.admin.v1.PatchServiceAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public PatchServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new PatchServiceAccountRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.PatchServiceAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequestOrBuilder.java deleted file mode 100644 index b1a5b04b4a4f..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PatchServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,39 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface PatchServiceAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.PatchServiceAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - * @return Whether the serviceAccount field is set. - */ - boolean hasServiceAccount(); - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - * @return The serviceAccount. - */ - com.google.iam.admin.v1.ServiceAccount getServiceAccount(); - /** - * .google.iam.admin.v1.ServiceAccount service_account = 1; - */ - com.google.iam.admin.v1.ServiceAccountOrBuilder getServiceAccountOrBuilder(); - - /** - * .google.protobuf.FieldMask update_mask = 2; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - * .google.protobuf.FieldMask update_mask = 2; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - * .google.protobuf.FieldMask update_mask = 2; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Permission.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Permission.java deleted file mode 100644 index bbb71d93a554..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Permission.java +++ /dev/null @@ -1,1816 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * A permission which can be included by a role.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.Permission} - */ -public final class Permission extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.Permission) - PermissionOrBuilder { -private static final long serialVersionUID = 0L; - // Use Permission.newBuilder() to construct. - private Permission(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Permission() { - name_ = ""; - title_ = ""; - description_ = ""; - stage_ = 0; - customRolesSupportLevel_ = 0; - primaryPermission_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Permission(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Permission( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 32: { - - onlyInPredefinedRoles_ = input.readBool(); - break; - } - case 40: { - int rawValue = input.readEnum(); - - stage_ = rawValue; - break; - } - case 48: { - int rawValue = input.readEnum(); - - customRolesSupportLevel_ = rawValue; - break; - } - case 56: { - - apiDisabled_ = input.readBool(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - primaryPermission_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Permission_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Permission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.Permission.class, com.google.iam.admin.v1.Permission.Builder.class); - } - - /** - *
    -   * A stage representing a permission's lifecycle phase.
    -   * 
    - * - * Protobuf enum {@code google.iam.admin.v1.Permission.PermissionLaunchStage} - */ - public enum PermissionLaunchStage - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -     * The permission is currently in an alpha phase.
    -     * 
    - * - * ALPHA = 0; - */ - ALPHA(0), - /** - *
    -     * The permission is currently in a beta phase.
    -     * 
    - * - * BETA = 1; - */ - BETA(1), - /** - *
    -     * The permission is generally available.
    -     * 
    - * - * GA = 2; - */ - GA(2), - /** - *
    -     * The permission is being deprecated.
    -     * 
    - * - * DEPRECATED = 3; - */ - DEPRECATED(3), - UNRECOGNIZED(-1), - ; - - /** - *
    -     * The permission is currently in an alpha phase.
    -     * 
    - * - * ALPHA = 0; - */ - public static final int ALPHA_VALUE = 0; - /** - *
    -     * The permission is currently in a beta phase.
    -     * 
    - * - * BETA = 1; - */ - public static final int BETA_VALUE = 1; - /** - *
    -     * The permission is generally available.
    -     * 
    - * - * GA = 2; - */ - public static final int GA_VALUE = 2; - /** - *
    -     * The permission is being deprecated.
    -     * 
    - * - * DEPRECATED = 3; - */ - public static final int DEPRECATED_VALUE = 3; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static PermissionLaunchStage valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static PermissionLaunchStage forNumber(int value) { - switch (value) { - case 0: return ALPHA; - case 1: return BETA; - case 2: return GA; - case 3: return DEPRECATED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - PermissionLaunchStage> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public PermissionLaunchStage findValueByNumber(int number) { - return PermissionLaunchStage.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.Permission.getDescriptor().getEnumTypes().get(0); - } - - private static final PermissionLaunchStage[] VALUES = values(); - - public static PermissionLaunchStage valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private PermissionLaunchStage(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.Permission.PermissionLaunchStage) - } - - /** - *
    -   * The state of the permission with regards to custom roles.
    -   * 
    - * - * Protobuf enum {@code google.iam.admin.v1.Permission.CustomRolesSupportLevel} - */ - public enum CustomRolesSupportLevel - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -     * Default state. Permission is fully supported for custom role use.
    -     * 
    - * - * SUPPORTED = 0; - */ - SUPPORTED(0), - /** - *
    -     * Permission is being tested to check custom role compatibility.
    -     * 
    - * - * TESTING = 1; - */ - TESTING(1), - /** - *
    -     * Permission is not supported for custom role use.
    -     * 
    - * - * NOT_SUPPORTED = 2; - */ - NOT_SUPPORTED(2), - UNRECOGNIZED(-1), - ; - - /** - *
    -     * Default state. Permission is fully supported for custom role use.
    -     * 
    - * - * SUPPORTED = 0; - */ - public static final int SUPPORTED_VALUE = 0; - /** - *
    -     * Permission is being tested to check custom role compatibility.
    -     * 
    - * - * TESTING = 1; - */ - public static final int TESTING_VALUE = 1; - /** - *
    -     * Permission is not supported for custom role use.
    -     * 
    - * - * NOT_SUPPORTED = 2; - */ - public static final int NOT_SUPPORTED_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static CustomRolesSupportLevel valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static CustomRolesSupportLevel forNumber(int value) { - switch (value) { - case 0: return SUPPORTED; - case 1: return TESTING; - case 2: return NOT_SUPPORTED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - CustomRolesSupportLevel> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public CustomRolesSupportLevel findValueByNumber(int number) { - return CustomRolesSupportLevel.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.Permission.getDescriptor().getEnumTypes().get(1); - } - - private static final CustomRolesSupportLevel[] VALUES = values(); - - public static CustomRolesSupportLevel valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private CustomRolesSupportLevel(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.Permission.CustomRolesSupportLevel) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The name of this Permission.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The name of this Permission.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TITLE_FIELD_NUMBER = 2; - private volatile java.lang.Object title_; - /** - *
    -   * The title of this Permission.
    -   * 
    - * - * string title = 2; - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - *
    -   * The title of this Permission.
    -   * 
    - * - * string title = 2; - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - *
    -   * A brief description of what this Permission is used for.
    -   * This permission can ONLY be used in predefined roles.
    -   * 
    - * - * string description = 3; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
    -   * A brief description of what this Permission is used for.
    -   * This permission can ONLY be used in predefined roles.
    -   * 
    - * - * string description = 3; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ONLY_IN_PREDEFINED_ROLES_FIELD_NUMBER = 4; - private boolean onlyInPredefinedRoles_; - /** - * bool only_in_predefined_roles = 4 [deprecated = true]; - * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. - * See google/iam/admin/v1/iam.proto;l=1450 - * @return The onlyInPredefinedRoles. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getOnlyInPredefinedRoles() { - return onlyInPredefinedRoles_; - } - - public static final int STAGE_FIELD_NUMBER = 5; - private int stage_; - /** - *
    -   * The current launch stage of the permission.
    -   * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @return The enum numeric value on the wire for stage. - */ - @java.lang.Override public int getStageValue() { - return stage_; - } - /** - *
    -   * The current launch stage of the permission.
    -   * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @return The stage. - */ - @java.lang.Override public com.google.iam.admin.v1.Permission.PermissionLaunchStage getStage() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.Permission.PermissionLaunchStage result = com.google.iam.admin.v1.Permission.PermissionLaunchStage.valueOf(stage_); - return result == null ? com.google.iam.admin.v1.Permission.PermissionLaunchStage.UNRECOGNIZED : result; - } - - public static final int CUSTOM_ROLES_SUPPORT_LEVEL_FIELD_NUMBER = 6; - private int customRolesSupportLevel_; - /** - *
    -   * The current custom role support level.
    -   * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @return The enum numeric value on the wire for customRolesSupportLevel. - */ - @java.lang.Override public int getCustomRolesSupportLevelValue() { - return customRolesSupportLevel_; - } - /** - *
    -   * The current custom role support level.
    -   * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @return The customRolesSupportLevel. - */ - @java.lang.Override public com.google.iam.admin.v1.Permission.CustomRolesSupportLevel getCustomRolesSupportLevel() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.Permission.CustomRolesSupportLevel result = com.google.iam.admin.v1.Permission.CustomRolesSupportLevel.valueOf(customRolesSupportLevel_); - return result == null ? com.google.iam.admin.v1.Permission.CustomRolesSupportLevel.UNRECOGNIZED : result; - } - - public static final int API_DISABLED_FIELD_NUMBER = 7; - private boolean apiDisabled_; - /** - *
    -   * The service API associated with the permission is not enabled.
    -   * 
    - * - * bool api_disabled = 7; - * @return The apiDisabled. - */ - @java.lang.Override - public boolean getApiDisabled() { - return apiDisabled_; - } - - public static final int PRIMARY_PERMISSION_FIELD_NUMBER = 8; - private volatile java.lang.Object primaryPermission_; - /** - *
    -   * The preferred name for this permission. If present, then this permission is
    -   * an alias of, and equivalent to, the listed primary_permission.
    -   * 
    - * - * string primary_permission = 8; - * @return The primaryPermission. - */ - @java.lang.Override - public java.lang.String getPrimaryPermission() { - java.lang.Object ref = primaryPermission_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - primaryPermission_ = s; - return s; - } - } - /** - *
    -   * The preferred name for this permission. If present, then this permission is
    -   * an alias of, and equivalent to, the listed primary_permission.
    -   * 
    - * - * string primary_permission = 8; - * @return The bytes for primaryPermission. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPrimaryPermissionBytes() { - java.lang.Object ref = primaryPermission_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primaryPermission_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - if (onlyInPredefinedRoles_ != false) { - output.writeBool(4, onlyInPredefinedRoles_); - } - if (stage_ != com.google.iam.admin.v1.Permission.PermissionLaunchStage.ALPHA.getNumber()) { - output.writeEnum(5, stage_); - } - if (customRolesSupportLevel_ != com.google.iam.admin.v1.Permission.CustomRolesSupportLevel.SUPPORTED.getNumber()) { - output.writeEnum(6, customRolesSupportLevel_); - } - if (apiDisabled_ != false) { - output.writeBool(7, apiDisabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryPermission_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, primaryPermission_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - if (onlyInPredefinedRoles_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(4, onlyInPredefinedRoles_); - } - if (stage_ != com.google.iam.admin.v1.Permission.PermissionLaunchStage.ALPHA.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(5, stage_); - } - if (customRolesSupportLevel_ != com.google.iam.admin.v1.Permission.CustomRolesSupportLevel.SUPPORTED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(6, customRolesSupportLevel_); - } - if (apiDisabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(7, apiDisabled_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(primaryPermission_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, primaryPermission_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.Permission)) { - return super.equals(obj); - } - com.google.iam.admin.v1.Permission other = (com.google.iam.admin.v1.Permission) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (getOnlyInPredefinedRoles() - != other.getOnlyInPredefinedRoles()) return false; - if (stage_ != other.stage_) return false; - if (customRolesSupportLevel_ != other.customRolesSupportLevel_) return false; - if (getApiDisabled() - != other.getApiDisabled()) return false; - if (!getPrimaryPermission() - .equals(other.getPrimaryPermission())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + ONLY_IN_PREDEFINED_ROLES_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getOnlyInPredefinedRoles()); - hash = (37 * hash) + STAGE_FIELD_NUMBER; - hash = (53 * hash) + stage_; - hash = (37 * hash) + CUSTOM_ROLES_SUPPORT_LEVEL_FIELD_NUMBER; - hash = (53 * hash) + customRolesSupportLevel_; - hash = (37 * hash) + API_DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getApiDisabled()); - hash = (37 * hash) + PRIMARY_PERMISSION_FIELD_NUMBER; - hash = (53 * hash) + getPrimaryPermission().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.Permission parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.Permission parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.Permission parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.Permission parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.Permission parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.Permission parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.Permission parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.Permission parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.Permission parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.Permission parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.Permission parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.Permission parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.Permission prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * A permission which can be included by a role.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.Permission} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.Permission) - com.google.iam.admin.v1.PermissionOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Permission_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Permission_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.Permission.class, com.google.iam.admin.v1.Permission.Builder.class); - } - - // Construct using com.google.iam.admin.v1.Permission.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - title_ = ""; - - description_ = ""; - - onlyInPredefinedRoles_ = false; - - stage_ = 0; - - customRolesSupportLevel_ = 0; - - apiDisabled_ = false; - - primaryPermission_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Permission_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.Permission getDefaultInstanceForType() { - return com.google.iam.admin.v1.Permission.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.Permission build() { - com.google.iam.admin.v1.Permission result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.Permission buildPartial() { - com.google.iam.admin.v1.Permission result = new com.google.iam.admin.v1.Permission(this); - result.name_ = name_; - result.title_ = title_; - result.description_ = description_; - result.onlyInPredefinedRoles_ = onlyInPredefinedRoles_; - result.stage_ = stage_; - result.customRolesSupportLevel_ = customRolesSupportLevel_; - result.apiDisabled_ = apiDisabled_; - result.primaryPermission_ = primaryPermission_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.Permission) { - return mergeFrom((com.google.iam.admin.v1.Permission)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.Permission other) { - if (other == com.google.iam.admin.v1.Permission.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (other.getOnlyInPredefinedRoles() != false) { - setOnlyInPredefinedRoles(other.getOnlyInPredefinedRoles()); - } - if (other.stage_ != 0) { - setStageValue(other.getStageValue()); - } - if (other.customRolesSupportLevel_ != 0) { - setCustomRolesSupportLevelValue(other.getCustomRolesSupportLevelValue()); - } - if (other.getApiDisabled() != false) { - setApiDisabled(other.getApiDisabled()); - } - if (!other.getPrimaryPermission().isEmpty()) { - primaryPermission_ = other.primaryPermission_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.Permission parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.Permission) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The name of this Permission.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The name of this Permission.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The name of this Permission.
    -     * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The name of this Permission.
    -     * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The name of this Permission.
    -     * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - *
    -     * The title of this Permission.
    -     * 
    - * - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The title of this Permission.
    -     * 
    - * - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The title of this Permission.
    -     * 
    - * - * string title = 2; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - *
    -     * The title of this Permission.
    -     * 
    - * - * string title = 2; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - *
    -     * The title of this Permission.
    -     * 
    - * - * string title = 2; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
    -     * A brief description of what this Permission is used for.
    -     * This permission can ONLY be used in predefined roles.
    -     * 
    - * - * string description = 3; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * A brief description of what this Permission is used for.
    -     * This permission can ONLY be used in predefined roles.
    -     * 
    - * - * string description = 3; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * A brief description of what this Permission is used for.
    -     * This permission can ONLY be used in predefined roles.
    -     * 
    - * - * string description = 3; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
    -     * A brief description of what this Permission is used for.
    -     * This permission can ONLY be used in predefined roles.
    -     * 
    - * - * string description = 3; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
    -     * A brief description of what this Permission is used for.
    -     * This permission can ONLY be used in predefined roles.
    -     * 
    - * - * string description = 3; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private boolean onlyInPredefinedRoles_ ; - /** - * bool only_in_predefined_roles = 4 [deprecated = true]; - * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. - * See google/iam/admin/v1/iam.proto;l=1450 - * @return The onlyInPredefinedRoles. - */ - @java.lang.Override - @java.lang.Deprecated public boolean getOnlyInPredefinedRoles() { - return onlyInPredefinedRoles_; - } - /** - * bool only_in_predefined_roles = 4 [deprecated = true]; - * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. - * See google/iam/admin/v1/iam.proto;l=1450 - * @param value The onlyInPredefinedRoles to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setOnlyInPredefinedRoles(boolean value) { - - onlyInPredefinedRoles_ = value; - onChanged(); - return this; - } - /** - * bool only_in_predefined_roles = 4 [deprecated = true]; - * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. - * See google/iam/admin/v1/iam.proto;l=1450 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearOnlyInPredefinedRoles() { - - onlyInPredefinedRoles_ = false; - onChanged(); - return this; - } - - private int stage_ = 0; - /** - *
    -     * The current launch stage of the permission.
    -     * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @return The enum numeric value on the wire for stage. - */ - @java.lang.Override public int getStageValue() { - return stage_; - } - /** - *
    -     * The current launch stage of the permission.
    -     * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @param value The enum numeric value on the wire for stage to set. - * @return This builder for chaining. - */ - public Builder setStageValue(int value) { - - stage_ = value; - onChanged(); - return this; - } - /** - *
    -     * The current launch stage of the permission.
    -     * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @return The stage. - */ - @java.lang.Override - public com.google.iam.admin.v1.Permission.PermissionLaunchStage getStage() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.Permission.PermissionLaunchStage result = com.google.iam.admin.v1.Permission.PermissionLaunchStage.valueOf(stage_); - return result == null ? com.google.iam.admin.v1.Permission.PermissionLaunchStage.UNRECOGNIZED : result; - } - /** - *
    -     * The current launch stage of the permission.
    -     * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @param value The stage to set. - * @return This builder for chaining. - */ - public Builder setStage(com.google.iam.admin.v1.Permission.PermissionLaunchStage value) { - if (value == null) { - throw new NullPointerException(); - } - - stage_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The current launch stage of the permission.
    -     * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @return This builder for chaining. - */ - public Builder clearStage() { - - stage_ = 0; - onChanged(); - return this; - } - - private int customRolesSupportLevel_ = 0; - /** - *
    -     * The current custom role support level.
    -     * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @return The enum numeric value on the wire for customRolesSupportLevel. - */ - @java.lang.Override public int getCustomRolesSupportLevelValue() { - return customRolesSupportLevel_; - } - /** - *
    -     * The current custom role support level.
    -     * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @param value The enum numeric value on the wire for customRolesSupportLevel to set. - * @return This builder for chaining. - */ - public Builder setCustomRolesSupportLevelValue(int value) { - - customRolesSupportLevel_ = value; - onChanged(); - return this; - } - /** - *
    -     * The current custom role support level.
    -     * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @return The customRolesSupportLevel. - */ - @java.lang.Override - public com.google.iam.admin.v1.Permission.CustomRolesSupportLevel getCustomRolesSupportLevel() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.Permission.CustomRolesSupportLevel result = com.google.iam.admin.v1.Permission.CustomRolesSupportLevel.valueOf(customRolesSupportLevel_); - return result == null ? com.google.iam.admin.v1.Permission.CustomRolesSupportLevel.UNRECOGNIZED : result; - } - /** - *
    -     * The current custom role support level.
    -     * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @param value The customRolesSupportLevel to set. - * @return This builder for chaining. - */ - public Builder setCustomRolesSupportLevel(com.google.iam.admin.v1.Permission.CustomRolesSupportLevel value) { - if (value == null) { - throw new NullPointerException(); - } - - customRolesSupportLevel_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The current custom role support level.
    -     * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @return This builder for chaining. - */ - public Builder clearCustomRolesSupportLevel() { - - customRolesSupportLevel_ = 0; - onChanged(); - return this; - } - - private boolean apiDisabled_ ; - /** - *
    -     * The service API associated with the permission is not enabled.
    -     * 
    - * - * bool api_disabled = 7; - * @return The apiDisabled. - */ - @java.lang.Override - public boolean getApiDisabled() { - return apiDisabled_; - } - /** - *
    -     * The service API associated with the permission is not enabled.
    -     * 
    - * - * bool api_disabled = 7; - * @param value The apiDisabled to set. - * @return This builder for chaining. - */ - public Builder setApiDisabled(boolean value) { - - apiDisabled_ = value; - onChanged(); - return this; - } - /** - *
    -     * The service API associated with the permission is not enabled.
    -     * 
    - * - * bool api_disabled = 7; - * @return This builder for chaining. - */ - public Builder clearApiDisabled() { - - apiDisabled_ = false; - onChanged(); - return this; - } - - private java.lang.Object primaryPermission_ = ""; - /** - *
    -     * The preferred name for this permission. If present, then this permission is
    -     * an alias of, and equivalent to, the listed primary_permission.
    -     * 
    - * - * string primary_permission = 8; - * @return The primaryPermission. - */ - public java.lang.String getPrimaryPermission() { - java.lang.Object ref = primaryPermission_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - primaryPermission_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The preferred name for this permission. If present, then this permission is
    -     * an alias of, and equivalent to, the listed primary_permission.
    -     * 
    - * - * string primary_permission = 8; - * @return The bytes for primaryPermission. - */ - public com.google.protobuf.ByteString - getPrimaryPermissionBytes() { - java.lang.Object ref = primaryPermission_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - primaryPermission_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The preferred name for this permission. If present, then this permission is
    -     * an alias of, and equivalent to, the listed primary_permission.
    -     * 
    - * - * string primary_permission = 8; - * @param value The primaryPermission to set. - * @return This builder for chaining. - */ - public Builder setPrimaryPermission( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - primaryPermission_ = value; - onChanged(); - return this; - } - /** - *
    -     * The preferred name for this permission. If present, then this permission is
    -     * an alias of, and equivalent to, the listed primary_permission.
    -     * 
    - * - * string primary_permission = 8; - * @return This builder for chaining. - */ - public Builder clearPrimaryPermission() { - - primaryPermission_ = getDefaultInstance().getPrimaryPermission(); - onChanged(); - return this; - } - /** - *
    -     * The preferred name for this permission. If present, then this permission is
    -     * an alias of, and equivalent to, the listed primary_permission.
    -     * 
    - * - * string primary_permission = 8; - * @param value The bytes for primaryPermission to set. - * @return This builder for chaining. - */ - public Builder setPrimaryPermissionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - primaryPermission_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.Permission) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.Permission) - private static final com.google.iam.admin.v1.Permission DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.Permission(); - } - - public static com.google.iam.admin.v1.Permission getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Permission parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Permission(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.Permission getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PermissionOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PermissionOrBuilder.java deleted file mode 100644 index 7f4cfa1bcc11..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/PermissionOrBuilder.java +++ /dev/null @@ -1,149 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface PermissionOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.Permission) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The name of this Permission.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The name of this Permission.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * The title of this Permission.
    -   * 
    - * - * string title = 2; - * @return The title. - */ - java.lang.String getTitle(); - /** - *
    -   * The title of this Permission.
    -   * 
    - * - * string title = 2; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - *
    -   * A brief description of what this Permission is used for.
    -   * This permission can ONLY be used in predefined roles.
    -   * 
    - * - * string description = 3; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
    -   * A brief description of what this Permission is used for.
    -   * This permission can ONLY be used in predefined roles.
    -   * 
    - * - * string description = 3; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - * bool only_in_predefined_roles = 4 [deprecated = true]; - * @deprecated google.iam.admin.v1.Permission.only_in_predefined_roles is deprecated. - * See google/iam/admin/v1/iam.proto;l=1450 - * @return The onlyInPredefinedRoles. - */ - @java.lang.Deprecated boolean getOnlyInPredefinedRoles(); - - /** - *
    -   * The current launch stage of the permission.
    -   * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @return The enum numeric value on the wire for stage. - */ - int getStageValue(); - /** - *
    -   * The current launch stage of the permission.
    -   * 
    - * - * .google.iam.admin.v1.Permission.PermissionLaunchStage stage = 5; - * @return The stage. - */ - com.google.iam.admin.v1.Permission.PermissionLaunchStage getStage(); - - /** - *
    -   * The current custom role support level.
    -   * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @return The enum numeric value on the wire for customRolesSupportLevel. - */ - int getCustomRolesSupportLevelValue(); - /** - *
    -   * The current custom role support level.
    -   * 
    - * - * .google.iam.admin.v1.Permission.CustomRolesSupportLevel custom_roles_support_level = 6; - * @return The customRolesSupportLevel. - */ - com.google.iam.admin.v1.Permission.CustomRolesSupportLevel getCustomRolesSupportLevel(); - - /** - *
    -   * The service API associated with the permission is not enabled.
    -   * 
    - * - * bool api_disabled = 7; - * @return The apiDisabled. - */ - boolean getApiDisabled(); - - /** - *
    -   * The preferred name for this permission. If present, then this permission is
    -   * an alias of, and equivalent to, the listed primary_permission.
    -   * 
    - * - * string primary_permission = 8; - * @return The primaryPermission. - */ - java.lang.String getPrimaryPermission(); - /** - *
    -   * The preferred name for this permission. If present, then this permission is
    -   * an alias of, and equivalent to, the listed primary_permission.
    -   * 
    - * - * string primary_permission = 8; - * @return The bytes for primaryPermission. - */ - com.google.protobuf.ByteString - getPrimaryPermissionBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ProjectName.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ProjectName.java deleted file mode 100644 index b4e72c51546f..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ProjectName.java +++ /dev/null @@ -1,168 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.iam.admin.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ProjectName implements ResourceName { - private static final PathTemplate PROJECT = - PathTemplate.createWithoutUrlEncoding("projects/{project}"); - private volatile Map fieldValuesMap; - private final String project; - - @Deprecated - protected ProjectName() { - project = null; - } - - private ProjectName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - } - - public String getProject() { - return project; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ProjectName of(String project) { - return newBuilder().setProject(project).build(); - } - - public static String format(String project) { - return newBuilder().setProject(project).build().toString(); - } - - public static ProjectName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT.validatedMatch( - formattedString, "ProjectName.parse: formattedString not in valid format"); - return of(matchMap.get("project")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ProjectName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT.instantiate("project", project); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ProjectName that = ((ProjectName) o); - return Objects.equals(this.project, that.project); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - return h; - } - - /** Builder for projects/{project}. */ - public static class Builder { - private String project; - - protected Builder() {} - - public String getProject() { - return project; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - private Builder(ProjectName projectName) { - this.project = projectName.project; - } - - public ProjectName build() { - return new ProjectName(this); - } - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequest.java deleted file mode 100644 index a9eefe26f84b..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequest.java +++ /dev/null @@ -1,623 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * A request to get the list of auditable services for a resource.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryAuditableServicesRequest} - */ -public final class QueryAuditableServicesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.QueryAuditableServicesRequest) - QueryAuditableServicesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAuditableServicesRequest.newBuilder() to construct. - private QueryAuditableServicesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAuditableServicesRequest() { - fullResourceName_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryAuditableServicesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAuditableServicesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - fullResourceName_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryAuditableServicesRequest.class, com.google.iam.admin.v1.QueryAuditableServicesRequest.Builder.class); - } - - public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fullResourceName_; - /** - *
    -   * Required. The full resource name to query from the list of auditable
    -   * services.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - @java.lang.Override - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } - } - /** - *
    -   * Required. The full resource name to query from the list of auditable
    -   * services.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.QueryAuditableServicesRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.QueryAuditableServicesRequest other = (com.google.iam.admin.v1.QueryAuditableServicesRequest) obj; - - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullResourceName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.QueryAuditableServicesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * A request to get the list of auditable services for a resource.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryAuditableServicesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryAuditableServicesRequest) - com.google.iam.admin.v1.QueryAuditableServicesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryAuditableServicesRequest.class, com.google.iam.admin.v1.QueryAuditableServicesRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.QueryAuditableServicesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fullResourceName_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.QueryAuditableServicesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesRequest build() { - com.google.iam.admin.v1.QueryAuditableServicesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesRequest buildPartial() { - com.google.iam.admin.v1.QueryAuditableServicesRequest result = new com.google.iam.admin.v1.QueryAuditableServicesRequest(this); - result.fullResourceName_ = fullResourceName_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.QueryAuditableServicesRequest) { - return mergeFrom((com.google.iam.admin.v1.QueryAuditableServicesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.QueryAuditableServicesRequest other) { - if (other == com.google.iam.admin.v1.QueryAuditableServicesRequest.getDefaultInstance()) return this; - if (!other.getFullResourceName().isEmpty()) { - fullResourceName_ = other.fullResourceName_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.QueryAuditableServicesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.QueryAuditableServicesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object fullResourceName_ = ""; - /** - *
    -     * Required. The full resource name to query from the list of auditable
    -     * services.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The full resource name to query from the list of auditable
    -     * services.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The full resource name to query from the list of auditable
    -     * services.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @param value The fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fullResourceName_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The full resource name to query from the list of auditable
    -     * services.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @return This builder for chaining. - */ - public Builder clearFullResourceName() { - - fullResourceName_ = getDefaultInstance().getFullResourceName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The full resource name to query from the list of auditable
    -     * services.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @param value The bytes for fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fullResourceName_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.QueryAuditableServicesRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.QueryAuditableServicesRequest) - private static final com.google.iam.admin.v1.QueryAuditableServicesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.QueryAuditableServicesRequest(); - } - - public static com.google.iam.admin.v1.QueryAuditableServicesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAuditableServicesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAuditableServicesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequestOrBuilder.java deleted file mode 100644 index 61f16a92506b..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesRequestOrBuilder.java +++ /dev/null @@ -1,37 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface QueryAuditableServicesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.QueryAuditableServicesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The full resource name to query from the list of auditable
    -   * services.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - java.lang.String getFullResourceName(); - /** - *
    -   * Required. The full resource name to query from the list of auditable
    -   * services.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponse.java deleted file mode 100644 index 03cfd667c17f..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponse.java +++ /dev/null @@ -1,1495 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * A response containing a list of auditable services for a resource.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryAuditableServicesResponse} - */ -public final class QueryAuditableServicesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.QueryAuditableServicesResponse) - QueryAuditableServicesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryAuditableServicesResponse.newBuilder() to construct. - private QueryAuditableServicesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryAuditableServicesResponse() { - services_ = java.util.Collections.emptyList(); - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryAuditableServicesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryAuditableServicesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - services_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - services_.add( - input.readMessage(com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.parser(), extensionRegistry)); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - services_ = java.util.Collections.unmodifiableList(services_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryAuditableServicesResponse.class, com.google.iam.admin.v1.QueryAuditableServicesResponse.Builder.class); - } - - public interface AuditableServiceOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -     * Public name of the service.
    -     * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -     * Public name of the service.
    -     * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - } - /** - *
    -   * Contains information about an auditable service.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService} - */ - public static final class AuditableService extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) - AuditableServiceOrBuilder { - private static final long serialVersionUID = 0L; - // Use AuditableService.newBuilder() to construct. - private AuditableService(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private AuditableService() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new AuditableService(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private AuditableService( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.class, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -     * Public name of the service.
    -     * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -     * Public name of the service.
    -     * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService)) { - return super.equals(obj); - } - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService other = (com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -     * Contains information about an auditable service.
    -     * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableServiceOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.class, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder.class); - } - - // Construct using com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_AuditableService_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService getDefaultInstanceForType() { - return com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService build() { - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService buildPartial() { - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService result = new com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) { - return mergeFrom((com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService other) { - if (other == com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -       * Public name of the service.
    -       * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -       * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -       * Public name of the service.
    -       * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -       * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -       * Public name of the service.
    -       * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -       * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -       * Public name of the service.
    -       * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -       * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -       * Public name of the service.
    -       * For example, the service name for Cloud IAM is 'iam.googleapis.com'.
    -       * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService) - private static final com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService(); - } - - public static com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public AuditableService parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new AuditableService(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - - } - - public static final int SERVICES_FIELD_NUMBER = 1; - private java.util.List services_; - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - @java.lang.Override - public java.util.List getServicesList() { - return services_; - } - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - @java.lang.Override - public java.util.List - getServicesOrBuilderList() { - return services_; - } - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - @java.lang.Override - public int getServicesCount() { - return services_.size(); - } - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService getServices(int index) { - return services_.get(index); - } - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableServiceOrBuilder getServicesOrBuilder( - int index) { - return services_.get(index); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < services_.size(); i++) { - output.writeMessage(1, services_.get(i)); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < services_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, services_.get(i)); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.QueryAuditableServicesResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.QueryAuditableServicesResponse other = (com.google.iam.admin.v1.QueryAuditableServicesResponse) obj; - - if (!getServicesList() - .equals(other.getServicesList())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getServicesCount() > 0) { - hash = (37 * hash) + SERVICES_FIELD_NUMBER; - hash = (53 * hash) + getServicesList().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryAuditableServicesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.QueryAuditableServicesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * A response containing a list of auditable services for a resource.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryAuditableServicesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryAuditableServicesResponse) - com.google.iam.admin.v1.QueryAuditableServicesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryAuditableServicesResponse.class, com.google.iam.admin.v1.QueryAuditableServicesResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.QueryAuditableServicesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getServicesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (servicesBuilder_ == null) { - services_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - servicesBuilder_.clear(); - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryAuditableServicesResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.QueryAuditableServicesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse build() { - com.google.iam.admin.v1.QueryAuditableServicesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse buildPartial() { - com.google.iam.admin.v1.QueryAuditableServicesResponse result = new com.google.iam.admin.v1.QueryAuditableServicesResponse(this); - int from_bitField0_ = bitField0_; - if (servicesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - services_ = java.util.Collections.unmodifiableList(services_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.services_ = services_; - } else { - result.services_ = servicesBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.QueryAuditableServicesResponse) { - return mergeFrom((com.google.iam.admin.v1.QueryAuditableServicesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.QueryAuditableServicesResponse other) { - if (other == com.google.iam.admin.v1.QueryAuditableServicesResponse.getDefaultInstance()) return this; - if (servicesBuilder_ == null) { - if (!other.services_.isEmpty()) { - if (services_.isEmpty()) { - services_ = other.services_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureServicesIsMutable(); - services_.addAll(other.services_); - } - onChanged(); - } - } else { - if (!other.services_.isEmpty()) { - if (servicesBuilder_.isEmpty()) { - servicesBuilder_.dispose(); - servicesBuilder_ = null; - services_ = other.services_; - bitField0_ = (bitField0_ & ~0x00000001); - servicesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getServicesFieldBuilder() : null; - } else { - servicesBuilder_.addAllMessages(other.services_); - } - } - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.QueryAuditableServicesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.QueryAuditableServicesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List services_ = - java.util.Collections.emptyList(); - private void ensureServicesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - services_ = new java.util.ArrayList(services_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableServiceOrBuilder> servicesBuilder_; - - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public java.util.List getServicesList() { - if (servicesBuilder_ == null) { - return java.util.Collections.unmodifiableList(services_); - } else { - return servicesBuilder_.getMessageList(); - } - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public int getServicesCount() { - if (servicesBuilder_ == null) { - return services_.size(); - } else { - return servicesBuilder_.getCount(); - } - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService getServices(int index) { - if (servicesBuilder_ == null) { - return services_.get(index); - } else { - return servicesBuilder_.getMessage(index); - } - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder setServices( - int index, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.set(index, value); - onChanged(); - } else { - servicesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder setServices( - int index, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.set(index, builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder addServices(com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.add(value); - onChanged(); - } else { - servicesBuilder_.addMessage(value); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder addServices( - int index, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService value) { - if (servicesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureServicesIsMutable(); - services_.add(index, value); - onChanged(); - } else { - servicesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder addServices( - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder addServices( - int index, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder builderForValue) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.add(index, builderForValue.build()); - onChanged(); - } else { - servicesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder addAllServices( - java.lang.Iterable values) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, services_); - onChanged(); - } else { - servicesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder clearServices() { - if (servicesBuilder_ == null) { - services_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - servicesBuilder_.clear(); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public Builder removeServices(int index) { - if (servicesBuilder_ == null) { - ensureServicesIsMutable(); - services_.remove(index); - onChanged(); - } else { - servicesBuilder_.remove(index); - } - return this; - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder getServicesBuilder( - int index) { - return getServicesFieldBuilder().getBuilder(index); - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableServiceOrBuilder getServicesOrBuilder( - int index) { - if (servicesBuilder_ == null) { - return services_.get(index); } else { - return servicesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public java.util.List - getServicesOrBuilderList() { - if (servicesBuilder_ != null) { - return servicesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(services_); - } - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder addServicesBuilder() { - return getServicesFieldBuilder().addBuilder( - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.getDefaultInstance()); - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder addServicesBuilder( - int index) { - return getServicesFieldBuilder().addBuilder( - index, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.getDefaultInstance()); - } - /** - *
    -     * The auditable services for a resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - public java.util.List - getServicesBuilderList() { - return getServicesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableServiceOrBuilder> - getServicesFieldBuilder() { - if (servicesBuilder_ == null) { - servicesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService.Builder, com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableServiceOrBuilder>( - services_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - services_ = null; - } - return servicesBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.QueryAuditableServicesResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.QueryAuditableServicesResponse) - private static final com.google.iam.admin.v1.QueryAuditableServicesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.QueryAuditableServicesResponse(); - } - - public static com.google.iam.admin.v1.QueryAuditableServicesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryAuditableServicesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryAuditableServicesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryAuditableServicesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponseOrBuilder.java deleted file mode 100644 index dd88a70089a1..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryAuditableServicesResponseOrBuilder.java +++ /dev/null @@ -1,53 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface QueryAuditableServicesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.QueryAuditableServicesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - java.util.List - getServicesList(); - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService getServices(int index); - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - int getServicesCount(); - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - java.util.List - getServicesOrBuilderList(); - /** - *
    -   * The auditable services for a resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.QueryAuditableServicesResponse.AuditableService services = 1; - */ - com.google.iam.admin.v1.QueryAuditableServicesResponse.AuditableServiceOrBuilder getServicesOrBuilder( - int index); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequest.java deleted file mode 100644 index 7c1c126dee7f..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequest.java +++ /dev/null @@ -1,969 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The grantable role query request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryGrantableRolesRequest} - */ -public final class QueryGrantableRolesRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.QueryGrantableRolesRequest) - QueryGrantableRolesRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryGrantableRolesRequest.newBuilder() to construct. - private QueryGrantableRolesRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryGrantableRolesRequest() { - fullResourceName_ = ""; - view_ = 0; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryGrantableRolesRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryGrantableRolesRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - fullResourceName_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - view_ = rawValue; - break; - } - case 24: { - - pageSize_ = input.readInt32(); - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryGrantableRolesRequest.class, com.google.iam.admin.v1.QueryGrantableRolesRequest.Builder.class); - } - - public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fullResourceName_; - /** - *
    -   * Required. The full resource name to query from the list of grantable roles.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fullResourceName. - */ - @java.lang.Override - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } - } - /** - *
    -   * Required. The full resource name to query from the list of grantable roles.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fullResourceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int VIEW_FIELD_NUMBER = 2; - private int view_; - /** - * .google.iam.admin.v1.RoleView view = 2; - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override public int getViewValue() { - return view_; - } - /** - * .google.iam.admin.v1.RoleView view = 2; - * @return The view. - */ - @java.lang.Override public com.google.iam.admin.v1.RoleView getView() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.RoleView result = com.google.iam.admin.v1.RoleView.valueOf(view_); - return result == null ? com.google.iam.admin.v1.RoleView.UNRECOGNIZED : result; - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 3; - private int pageSize_; - /** - *
    -   * Optional limit on the number of roles to include in the response.
    -   * The default is 300, and the maximum is 1,000.
    -   * 
    - * - * int32 page_size = 3; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 4; - private volatile java.lang.Object pageToken_; - /** - *
    -   * Optional pagination token returned in an earlier
    -   * QueryGrantableRolesResponse.
    -   * 
    - * - * string page_token = 4; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
    -   * Optional pagination token returned in an earlier
    -   * QueryGrantableRolesResponse.
    -   * 
    - * - * string page_token = 4; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); - } - if (view_ != com.google.iam.admin.v1.RoleView.BASIC.getNumber()) { - output.writeEnum(2, view_); - } - if (pageSize_ != 0) { - output.writeInt32(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); - } - if (view_ != com.google.iam.admin.v1.RoleView.BASIC.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, view_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(3, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.QueryGrantableRolesRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.QueryGrantableRolesRequest other = (com.google.iam.admin.v1.QueryGrantableRolesRequest) obj; - - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; - if (view_ != other.view_) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullResourceName().hashCode(); - hash = (37 * hash) + VIEW_FIELD_NUMBER; - hash = (53 * hash) + view_; - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryGrantableRolesRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.QueryGrantableRolesRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The grantable role query request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryGrantableRolesRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryGrantableRolesRequest) - com.google.iam.admin.v1.QueryGrantableRolesRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryGrantableRolesRequest.class, com.google.iam.admin.v1.QueryGrantableRolesRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.QueryGrantableRolesRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fullResourceName_ = ""; - - view_ = 0; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryGrantableRolesRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.QueryGrantableRolesRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryGrantableRolesRequest build() { - com.google.iam.admin.v1.QueryGrantableRolesRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryGrantableRolesRequest buildPartial() { - com.google.iam.admin.v1.QueryGrantableRolesRequest result = new com.google.iam.admin.v1.QueryGrantableRolesRequest(this); - result.fullResourceName_ = fullResourceName_; - result.view_ = view_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.QueryGrantableRolesRequest) { - return mergeFrom((com.google.iam.admin.v1.QueryGrantableRolesRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.QueryGrantableRolesRequest other) { - if (other == com.google.iam.admin.v1.QueryGrantableRolesRequest.getDefaultInstance()) return this; - if (!other.getFullResourceName().isEmpty()) { - fullResourceName_ = other.fullResourceName_; - onChanged(); - } - if (other.view_ != 0) { - setViewValue(other.getViewValue()); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.QueryGrantableRolesRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.QueryGrantableRolesRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object fullResourceName_ = ""; - /** - *
    -     * Required. The full resource name to query from the list of grantable roles.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fullResourceName. - */ - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The full resource name to query from the list of grantable roles.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fullResourceName. - */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The full resource name to query from the list of grantable roles.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fullResourceName_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The full resource name to query from the list of grantable roles.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return This builder for chaining. - */ - public Builder clearFullResourceName() { - - fullResourceName_ = getDefaultInstance().getFullResourceName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The full resource name to query from the list of grantable roles.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @param value The bytes for fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fullResourceName_ = value; - onChanged(); - return this; - } - - private int view_ = 0; - /** - * .google.iam.admin.v1.RoleView view = 2; - * @return The enum numeric value on the wire for view. - */ - @java.lang.Override public int getViewValue() { - return view_; - } - /** - * .google.iam.admin.v1.RoleView view = 2; - * @param value The enum numeric value on the wire for view to set. - * @return This builder for chaining. - */ - public Builder setViewValue(int value) { - - view_ = value; - onChanged(); - return this; - } - /** - * .google.iam.admin.v1.RoleView view = 2; - * @return The view. - */ - @java.lang.Override - public com.google.iam.admin.v1.RoleView getView() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.RoleView result = com.google.iam.admin.v1.RoleView.valueOf(view_); - return result == null ? com.google.iam.admin.v1.RoleView.UNRECOGNIZED : result; - } - /** - * .google.iam.admin.v1.RoleView view = 2; - * @param value The view to set. - * @return This builder for chaining. - */ - public Builder setView(com.google.iam.admin.v1.RoleView value) { - if (value == null) { - throw new NullPointerException(); - } - - view_ = value.getNumber(); - onChanged(); - return this; - } - /** - * .google.iam.admin.v1.RoleView view = 2; - * @return This builder for chaining. - */ - public Builder clearView() { - - view_ = 0; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
    -     * Optional limit on the number of roles to include in the response.
    -     * The default is 300, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 3; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
    -     * Optional limit on the number of roles to include in the response.
    -     * The default is 300, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 3; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional limit on the number of roles to include in the response.
    -     * The default is 300, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 3; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryGrantableRolesResponse.
    -     * 
    - * - * string page_token = 4; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryGrantableRolesResponse.
    -     * 
    - * - * string page_token = 4; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryGrantableRolesResponse.
    -     * 
    - * - * string page_token = 4; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryGrantableRolesResponse.
    -     * 
    - * - * string page_token = 4; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryGrantableRolesResponse.
    -     * 
    - * - * string page_token = 4; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.QueryGrantableRolesRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.QueryGrantableRolesRequest) - private static final com.google.iam.admin.v1.QueryGrantableRolesRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.QueryGrantableRolesRequest(); - } - - public static com.google.iam.admin.v1.QueryGrantableRolesRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryGrantableRolesRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryGrantableRolesRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryGrantableRolesRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequestOrBuilder.java deleted file mode 100644 index fc93d3eadb85..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesRequestOrBuilder.java +++ /dev/null @@ -1,79 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface QueryGrantableRolesRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.QueryGrantableRolesRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The full resource name to query from the list of grantable roles.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The fullResourceName. - */ - java.lang.String getFullResourceName(); - /** - *
    -   * Required. The full resource name to query from the list of grantable roles.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1 [(.google.api.field_behavior) = REQUIRED]; - * @return The bytes for fullResourceName. - */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); - - /** - * .google.iam.admin.v1.RoleView view = 2; - * @return The enum numeric value on the wire for view. - */ - int getViewValue(); - /** - * .google.iam.admin.v1.RoleView view = 2; - * @return The view. - */ - com.google.iam.admin.v1.RoleView getView(); - - /** - *
    -   * Optional limit on the number of roles to include in the response.
    -   * The default is 300, and the maximum is 1,000.
    -   * 
    - * - * int32 page_size = 3; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
    -   * Optional pagination token returned in an earlier
    -   * QueryGrantableRolesResponse.
    -   * 
    - * - * string page_token = 4; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
    -   * Optional pagination token returned in an earlier
    -   * QueryGrantableRolesResponse.
    -   * 
    - * - * string page_token = 4; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponse.java deleted file mode 100644 index 5519b412ab83..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponse.java +++ /dev/null @@ -1,1045 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The grantable role query response.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryGrantableRolesResponse} - */ -public final class QueryGrantableRolesResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.QueryGrantableRolesResponse) - QueryGrantableRolesResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryGrantableRolesResponse.newBuilder() to construct. - private QueryGrantableRolesResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryGrantableRolesResponse() { - roles_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryGrantableRolesResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryGrantableRolesResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - roles_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - roles_.add( - input.readMessage(com.google.iam.admin.v1.Role.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - roles_ = java.util.Collections.unmodifiableList(roles_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryGrantableRolesResponse.class, com.google.iam.admin.v1.QueryGrantableRolesResponse.Builder.class); - } - - public static final int ROLES_FIELD_NUMBER = 1; - private java.util.List roles_; - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public java.util.List getRolesList() { - return roles_; - } - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public java.util.List - getRolesOrBuilderList() { - return roles_; - } - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public int getRolesCount() { - return roles_.size(); - } - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.Role getRoles(int index) { - return roles_.get(index); - } - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.RoleOrBuilder getRolesOrBuilder( - int index) { - return roles_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
    -   * To retrieve the next page of results, set
    -   * `QueryGrantableRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
    -   * To retrieve the next page of results, set
    -   * `QueryGrantableRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < roles_.size(); i++) { - output.writeMessage(1, roles_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < roles_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, roles_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.QueryGrantableRolesResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.QueryGrantableRolesResponse other = (com.google.iam.admin.v1.QueryGrantableRolesResponse) obj; - - if (!getRolesList() - .equals(other.getRolesList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getRolesCount() > 0) { - hash = (37 * hash) + ROLES_FIELD_NUMBER; - hash = (53 * hash) + getRolesList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryGrantableRolesResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.QueryGrantableRolesResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The grantable role query response.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryGrantableRolesResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryGrantableRolesResponse) - com.google.iam.admin.v1.QueryGrantableRolesResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryGrantableRolesResponse.class, com.google.iam.admin.v1.QueryGrantableRolesResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.QueryGrantableRolesResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getRolesFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (rolesBuilder_ == null) { - roles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - rolesBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryGrantableRolesResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryGrantableRolesResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.QueryGrantableRolesResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryGrantableRolesResponse build() { - com.google.iam.admin.v1.QueryGrantableRolesResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryGrantableRolesResponse buildPartial() { - com.google.iam.admin.v1.QueryGrantableRolesResponse result = new com.google.iam.admin.v1.QueryGrantableRolesResponse(this); - int from_bitField0_ = bitField0_; - if (rolesBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - roles_ = java.util.Collections.unmodifiableList(roles_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.roles_ = roles_; - } else { - result.roles_ = rolesBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.QueryGrantableRolesResponse) { - return mergeFrom((com.google.iam.admin.v1.QueryGrantableRolesResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.QueryGrantableRolesResponse other) { - if (other == com.google.iam.admin.v1.QueryGrantableRolesResponse.getDefaultInstance()) return this; - if (rolesBuilder_ == null) { - if (!other.roles_.isEmpty()) { - if (roles_.isEmpty()) { - roles_ = other.roles_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureRolesIsMutable(); - roles_.addAll(other.roles_); - } - onChanged(); - } - } else { - if (!other.roles_.isEmpty()) { - if (rolesBuilder_.isEmpty()) { - rolesBuilder_.dispose(); - rolesBuilder_ = null; - roles_ = other.roles_; - bitField0_ = (bitField0_ & ~0x00000001); - rolesBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getRolesFieldBuilder() : null; - } else { - rolesBuilder_.addAllMessages(other.roles_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.QueryGrantableRolesResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.QueryGrantableRolesResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List roles_ = - java.util.Collections.emptyList(); - private void ensureRolesIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - roles_ = new java.util.ArrayList(roles_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder> rolesBuilder_; - - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public java.util.List getRolesList() { - if (rolesBuilder_ == null) { - return java.util.Collections.unmodifiableList(roles_); - } else { - return rolesBuilder_.getMessageList(); - } - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public int getRolesCount() { - if (rolesBuilder_ == null) { - return roles_.size(); - } else { - return rolesBuilder_.getCount(); - } - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.Role getRoles(int index) { - if (rolesBuilder_ == null) { - return roles_.get(index); - } else { - return rolesBuilder_.getMessage(index); - } - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder setRoles( - int index, com.google.iam.admin.v1.Role value) { - if (rolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.set(index, value); - onChanged(); - } else { - rolesBuilder_.setMessage(index, value); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder setRoles( - int index, com.google.iam.admin.v1.Role.Builder builderForValue) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - roles_.set(index, builderForValue.build()); - onChanged(); - } else { - rolesBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addRoles(com.google.iam.admin.v1.Role value) { - if (rolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.add(value); - onChanged(); - } else { - rolesBuilder_.addMessage(value); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addRoles( - int index, com.google.iam.admin.v1.Role value) { - if (rolesBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensureRolesIsMutable(); - roles_.add(index, value); - onChanged(); - } else { - rolesBuilder_.addMessage(index, value); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addRoles( - com.google.iam.admin.v1.Role.Builder builderForValue) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - roles_.add(builderForValue.build()); - onChanged(); - } else { - rolesBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addRoles( - int index, com.google.iam.admin.v1.Role.Builder builderForValue) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - roles_.add(index, builderForValue.build()); - onChanged(); - } else { - rolesBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder addAllRoles( - java.lang.Iterable values) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, roles_); - onChanged(); - } else { - rolesBuilder_.addAllMessages(values); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder clearRoles() { - if (rolesBuilder_ == null) { - roles_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - rolesBuilder_.clear(); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public Builder removeRoles(int index) { - if (rolesBuilder_ == null) { - ensureRolesIsMutable(); - roles_.remove(index); - onChanged(); - } else { - rolesBuilder_.remove(index); - } - return this; - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.Role.Builder getRolesBuilder( - int index) { - return getRolesFieldBuilder().getBuilder(index); - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.RoleOrBuilder getRolesOrBuilder( - int index) { - if (rolesBuilder_ == null) { - return roles_.get(index); } else { - return rolesBuilder_.getMessageOrBuilder(index); - } - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public java.util.List - getRolesOrBuilderList() { - if (rolesBuilder_ != null) { - return rolesBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(roles_); - } - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.Role.Builder addRolesBuilder() { - return getRolesFieldBuilder().addBuilder( - com.google.iam.admin.v1.Role.getDefaultInstance()); - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public com.google.iam.admin.v1.Role.Builder addRolesBuilder( - int index) { - return getRolesFieldBuilder().addBuilder( - index, com.google.iam.admin.v1.Role.getDefaultInstance()); - } - /** - *
    -     * The list of matching roles.
    -     * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - public java.util.List - getRolesBuilderList() { - return getRolesFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder> - getRolesFieldBuilder() { - if (rolesBuilder_ == null) { - rolesBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder>( - roles_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - roles_ = null; - } - return rolesBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryGrantableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryGrantableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryGrantableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryGrantableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryGrantableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.QueryGrantableRolesResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.QueryGrantableRolesResponse) - private static final com.google.iam.admin.v1.QueryGrantableRolesResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.QueryGrantableRolesResponse(); - } - - public static com.google.iam.admin.v1.QueryGrantableRolesResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryGrantableRolesResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryGrantableRolesResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryGrantableRolesResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponseOrBuilder.java deleted file mode 100644 index 0428ece3752a..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryGrantableRolesResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface QueryGrantableRolesResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.QueryGrantableRolesResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - java.util.List - getRolesList(); - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - com.google.iam.admin.v1.Role getRoles(int index); - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - int getRolesCount(); - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - java.util.List - getRolesOrBuilderList(); - /** - *
    -   * The list of matching roles.
    -   * 
    - * - * repeated .google.iam.admin.v1.Role roles = 1; - */ - com.google.iam.admin.v1.RoleOrBuilder getRolesOrBuilder( - int index); - - /** - *
    -   * To retrieve the next page of results, set
    -   * `QueryGrantableRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
    -   * To retrieve the next page of results, set
    -   * `QueryGrantableRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequest.java deleted file mode 100644 index 66bd443b142c..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequest.java +++ /dev/null @@ -1,880 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * A request to get permissions which can be tested on a resource.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryTestablePermissionsRequest} - */ -public final class QueryTestablePermissionsRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.QueryTestablePermissionsRequest) - QueryTestablePermissionsRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTestablePermissionsRequest.newBuilder() to construct. - private QueryTestablePermissionsRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTestablePermissionsRequest() { - fullResourceName_ = ""; - pageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryTestablePermissionsRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTestablePermissionsRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - fullResourceName_ = s; - break; - } - case 16: { - - pageSize_ = input.readInt32(); - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - pageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryTestablePermissionsRequest.class, com.google.iam.admin.v1.QueryTestablePermissionsRequest.Builder.class); - } - - public static final int FULL_RESOURCE_NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object fullResourceName_; - /** - *
    -   * Required. The full resource name to query from the list of testable
    -   * permissions.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - @java.lang.Override - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } - } - /** - *
    -   * Required. The full resource name to query from the list of testable
    -   * permissions.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAGE_SIZE_FIELD_NUMBER = 2; - private int pageSize_; - /** - *
    -   * Optional limit on the number of permissions to include in the response.
    -   * The default is 100, and the maximum is 1,000.
    -   * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - - public static final int PAGE_TOKEN_FIELD_NUMBER = 3; - private volatile java.lang.Object pageToken_; - /** - *
    -   * Optional pagination token returned in an earlier
    -   * QueryTestablePermissionsRequest.
    -   * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - @java.lang.Override - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } - } - /** - *
    -   * Optional pagination token returned in an earlier
    -   * QueryTestablePermissionsRequest.
    -   * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, fullResourceName_); - } - if (pageSize_ != 0) { - output.writeInt32(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, pageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(fullResourceName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, fullResourceName_); - } - if (pageSize_ != 0) { - size += com.google.protobuf.CodedOutputStream - .computeInt32Size(2, pageSize_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(pageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, pageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.QueryTestablePermissionsRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.QueryTestablePermissionsRequest other = (com.google.iam.admin.v1.QueryTestablePermissionsRequest) obj; - - if (!getFullResourceName() - .equals(other.getFullResourceName())) return false; - if (getPageSize() - != other.getPageSize()) return false; - if (!getPageToken() - .equals(other.getPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + FULL_RESOURCE_NAME_FIELD_NUMBER; - hash = (53 * hash) + getFullResourceName().hashCode(); - hash = (37 * hash) + PAGE_SIZE_FIELD_NUMBER; - hash = (53 * hash) + getPageSize(); - hash = (37 * hash) + PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.QueryTestablePermissionsRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * A request to get permissions which can be tested on a resource.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryTestablePermissionsRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryTestablePermissionsRequest) - com.google.iam.admin.v1.QueryTestablePermissionsRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryTestablePermissionsRequest.class, com.google.iam.admin.v1.QueryTestablePermissionsRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.QueryTestablePermissionsRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - fullResourceName_ = ""; - - pageSize_ = 0; - - pageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryTestablePermissionsRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.QueryTestablePermissionsRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryTestablePermissionsRequest build() { - com.google.iam.admin.v1.QueryTestablePermissionsRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryTestablePermissionsRequest buildPartial() { - com.google.iam.admin.v1.QueryTestablePermissionsRequest result = new com.google.iam.admin.v1.QueryTestablePermissionsRequest(this); - result.fullResourceName_ = fullResourceName_; - result.pageSize_ = pageSize_; - result.pageToken_ = pageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.QueryTestablePermissionsRequest) { - return mergeFrom((com.google.iam.admin.v1.QueryTestablePermissionsRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.QueryTestablePermissionsRequest other) { - if (other == com.google.iam.admin.v1.QueryTestablePermissionsRequest.getDefaultInstance()) return this; - if (!other.getFullResourceName().isEmpty()) { - fullResourceName_ = other.fullResourceName_; - onChanged(); - } - if (other.getPageSize() != 0) { - setPageSize(other.getPageSize()); - } - if (!other.getPageToken().isEmpty()) { - pageToken_ = other.pageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.QueryTestablePermissionsRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.QueryTestablePermissionsRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object fullResourceName_ = ""; - /** - *
    -     * Required. The full resource name to query from the list of testable
    -     * permissions.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - public java.lang.String getFullResourceName() { - java.lang.Object ref = fullResourceName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - fullResourceName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. The full resource name to query from the list of testable
    -     * permissions.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - public com.google.protobuf.ByteString - getFullResourceNameBytes() { - java.lang.Object ref = fullResourceName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - fullResourceName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. The full resource name to query from the list of testable
    -     * permissions.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @param value The fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - fullResourceName_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. The full resource name to query from the list of testable
    -     * permissions.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @return This builder for chaining. - */ - public Builder clearFullResourceName() { - - fullResourceName_ = getDefaultInstance().getFullResourceName(); - onChanged(); - return this; - } - /** - *
    -     * Required. The full resource name to query from the list of testable
    -     * permissions.
    -     * The name follows the Google Cloud Platform resource format.
    -     * For example, a Cloud Platform project with id `my-project` will be named
    -     * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -     * 
    - * - * string full_resource_name = 1; - * @param value The bytes for fullResourceName to set. - * @return This builder for chaining. - */ - public Builder setFullResourceNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - fullResourceName_ = value; - onChanged(); - return this; - } - - private int pageSize_ ; - /** - *
    -     * Optional limit on the number of permissions to include in the response.
    -     * The default is 100, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - @java.lang.Override - public int getPageSize() { - return pageSize_; - } - /** - *
    -     * Optional limit on the number of permissions to include in the response.
    -     * The default is 100, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 2; - * @param value The pageSize to set. - * @return This builder for chaining. - */ - public Builder setPageSize(int value) { - - pageSize_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional limit on the number of permissions to include in the response.
    -     * The default is 100, and the maximum is 1,000.
    -     * 
    - * - * int32 page_size = 2; - * @return This builder for chaining. - */ - public Builder clearPageSize() { - - pageSize_ = 0; - onChanged(); - return this; - } - - private java.lang.Object pageToken_ = ""; - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryTestablePermissionsRequest.
    -     * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - public java.lang.String getPageToken() { - java.lang.Object ref = pageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - pageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryTestablePermissionsRequest.
    -     * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - public com.google.protobuf.ByteString - getPageTokenBytes() { - java.lang.Object ref = pageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - pageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryTestablePermissionsRequest.
    -     * 
    - * - * string page_token = 3; - * @param value The pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - pageToken_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryTestablePermissionsRequest.
    -     * 
    - * - * string page_token = 3; - * @return This builder for chaining. - */ - public Builder clearPageToken() { - - pageToken_ = getDefaultInstance().getPageToken(); - onChanged(); - return this; - } - /** - *
    -     * Optional pagination token returned in an earlier
    -     * QueryTestablePermissionsRequest.
    -     * 
    - * - * string page_token = 3; - * @param value The bytes for pageToken to set. - * @return This builder for chaining. - */ - public Builder setPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - pageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.QueryTestablePermissionsRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.QueryTestablePermissionsRequest) - private static final com.google.iam.admin.v1.QueryTestablePermissionsRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.QueryTestablePermissionsRequest(); - } - - public static com.google.iam.admin.v1.QueryTestablePermissionsRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTestablePermissionsRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTestablePermissionsRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryTestablePermissionsRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequestOrBuilder.java deleted file mode 100644 index c031c4d92a94..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsRequestOrBuilder.java +++ /dev/null @@ -1,70 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface QueryTestablePermissionsRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.QueryTestablePermissionsRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. The full resource name to query from the list of testable
    -   * permissions.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1; - * @return The fullResourceName. - */ - java.lang.String getFullResourceName(); - /** - *
    -   * Required. The full resource name to query from the list of testable
    -   * permissions.
    -   * The name follows the Google Cloud Platform resource format.
    -   * For example, a Cloud Platform project with id `my-project` will be named
    -   * `//cloudresourcemanager.googleapis.com/projects/my-project`.
    -   * 
    - * - * string full_resource_name = 1; - * @return The bytes for fullResourceName. - */ - com.google.protobuf.ByteString - getFullResourceNameBytes(); - - /** - *
    -   * Optional limit on the number of permissions to include in the response.
    -   * The default is 100, and the maximum is 1,000.
    -   * 
    - * - * int32 page_size = 2; - * @return The pageSize. - */ - int getPageSize(); - - /** - *
    -   * Optional pagination token returned in an earlier
    -   * QueryTestablePermissionsRequest.
    -   * 
    - * - * string page_token = 3; - * @return The pageToken. - */ - java.lang.String getPageToken(); - /** - *
    -   * Optional pagination token returned in an earlier
    -   * QueryTestablePermissionsRequest.
    -   * 
    - * - * string page_token = 3; - * @return The bytes for pageToken. - */ - com.google.protobuf.ByteString - getPageTokenBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponse.java deleted file mode 100644 index 9ae8197325eb..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponse.java +++ /dev/null @@ -1,1045 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The response containing permissions which can be tested on a resource.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryTestablePermissionsResponse} - */ -public final class QueryTestablePermissionsResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.QueryTestablePermissionsResponse) - QueryTestablePermissionsResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use QueryTestablePermissionsResponse.newBuilder() to construct. - private QueryTestablePermissionsResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private QueryTestablePermissionsResponse() { - permissions_ = java.util.Collections.emptyList(); - nextPageToken_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new QueryTestablePermissionsResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private QueryTestablePermissionsResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = new java.util.ArrayList(); - mutable_bitField0_ |= 0x00000001; - } - permissions_.add( - input.readMessage(com.google.iam.admin.v1.Permission.parser(), extensionRegistry)); - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - nextPageToken_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryTestablePermissionsResponse.class, com.google.iam.admin.v1.QueryTestablePermissionsResponse.Builder.class); - } - - public static final int PERMISSIONS_FIELD_NUMBER = 1; - private java.util.List permissions_; - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - @java.lang.Override - public java.util.List getPermissionsList() { - return permissions_; - } - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - @java.lang.Override - public java.util.List - getPermissionsOrBuilderList() { - return permissions_; - } - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - @java.lang.Override - public int getPermissionsCount() { - return permissions_.size(); - } - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.Permission getPermissions(int index) { - return permissions_.get(index); - } - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - return permissions_.get(index); - } - - public static final int NEXT_PAGE_TOKEN_FIELD_NUMBER = 2; - private volatile java.lang.Object nextPageToken_; - /** - *
    -   * To retrieve the next page of results, set
    -   * `QueryTestableRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - @java.lang.Override - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } - } - /** - *
    -   * To retrieve the next page of results, set
    -   * `QueryTestableRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - for (int i = 0; i < permissions_.size(); i++) { - output.writeMessage(1, permissions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, nextPageToken_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - for (int i = 0; i < permissions_.size(); i++) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, permissions_.get(i)); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(nextPageToken_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, nextPageToken_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.QueryTestablePermissionsResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.QueryTestablePermissionsResponse other = (com.google.iam.admin.v1.QueryTestablePermissionsResponse) obj; - - if (!getPermissionsList() - .equals(other.getPermissionsList())) return false; - if (!getNextPageToken() - .equals(other.getNextPageToken())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (getPermissionsCount() > 0) { - hash = (37 * hash) + PERMISSIONS_FIELD_NUMBER; - hash = (53 * hash) + getPermissionsList().hashCode(); - } - hash = (37 * hash) + NEXT_PAGE_TOKEN_FIELD_NUMBER; - hash = (53 * hash) + getNextPageToken().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.QueryTestablePermissionsResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The response containing permissions which can be tested on a resource.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.QueryTestablePermissionsResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.QueryTestablePermissionsResponse) - com.google.iam.admin.v1.QueryTestablePermissionsResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.QueryTestablePermissionsResponse.class, com.google.iam.admin.v1.QueryTestablePermissionsResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.QueryTestablePermissionsResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - getPermissionsFieldBuilder(); - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - } else { - permissionsBuilder_.clear(); - } - nextPageToken_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_QueryTestablePermissionsResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryTestablePermissionsResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.QueryTestablePermissionsResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryTestablePermissionsResponse build() { - com.google.iam.admin.v1.QueryTestablePermissionsResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryTestablePermissionsResponse buildPartial() { - com.google.iam.admin.v1.QueryTestablePermissionsResponse result = new com.google.iam.admin.v1.QueryTestablePermissionsResponse(this); - int from_bitField0_ = bitField0_; - if (permissionsBuilder_ == null) { - if (((bitField0_ & 0x00000001) != 0)) { - permissions_ = java.util.Collections.unmodifiableList(permissions_); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.permissions_ = permissions_; - } else { - result.permissions_ = permissionsBuilder_.build(); - } - result.nextPageToken_ = nextPageToken_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.QueryTestablePermissionsResponse) { - return mergeFrom((com.google.iam.admin.v1.QueryTestablePermissionsResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.QueryTestablePermissionsResponse other) { - if (other == com.google.iam.admin.v1.QueryTestablePermissionsResponse.getDefaultInstance()) return this; - if (permissionsBuilder_ == null) { - if (!other.permissions_.isEmpty()) { - if (permissions_.isEmpty()) { - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensurePermissionsIsMutable(); - permissions_.addAll(other.permissions_); - } - onChanged(); - } - } else { - if (!other.permissions_.isEmpty()) { - if (permissionsBuilder_.isEmpty()) { - permissionsBuilder_.dispose(); - permissionsBuilder_ = null; - permissions_ = other.permissions_; - bitField0_ = (bitField0_ & ~0x00000001); - permissionsBuilder_ = - com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders ? - getPermissionsFieldBuilder() : null; - } else { - permissionsBuilder_.addAllMessages(other.permissions_); - } - } - } - if (!other.getNextPageToken().isEmpty()) { - nextPageToken_ = other.nextPageToken_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.QueryTestablePermissionsResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.QueryTestablePermissionsResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.util.List permissions_ = - java.util.Collections.emptyList(); - private void ensurePermissionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - permissions_ = new java.util.ArrayList(permissions_); - bitField0_ |= 0x00000001; - } - } - - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Permission, com.google.iam.admin.v1.Permission.Builder, com.google.iam.admin.v1.PermissionOrBuilder> permissionsBuilder_; - - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public java.util.List getPermissionsList() { - if (permissionsBuilder_ == null) { - return java.util.Collections.unmodifiableList(permissions_); - } else { - return permissionsBuilder_.getMessageList(); - } - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public int getPermissionsCount() { - if (permissionsBuilder_ == null) { - return permissions_.size(); - } else { - return permissionsBuilder_.getCount(); - } - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public com.google.iam.admin.v1.Permission getPermissions(int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); - } else { - return permissionsBuilder_.getMessage(index); - } - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder setPermissions( - int index, com.google.iam.admin.v1.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.set(index, value); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, value); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder setPermissions( - int index, com.google.iam.admin.v1.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.set(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.setMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder addPermissions(com.google.iam.admin.v1.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(value); - onChanged(); - } else { - permissionsBuilder_.addMessage(value); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder addPermissions( - int index, com.google.iam.admin.v1.Permission value) { - if (permissionsBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - ensurePermissionsIsMutable(); - permissions_.add(index, value); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, value); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder addPermissions( - com.google.iam.admin.v1.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(builderForValue.build()); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder addPermissions( - int index, com.google.iam.admin.v1.Permission.Builder builderForValue) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.add(index, builderForValue.build()); - onChanged(); - } else { - permissionsBuilder_.addMessage(index, builderForValue.build()); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder addAllPermissions( - java.lang.Iterable values) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, permissions_); - onChanged(); - } else { - permissionsBuilder_.addAllMessages(values); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder clearPermissions() { - if (permissionsBuilder_ == null) { - permissions_ = java.util.Collections.emptyList(); - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - } else { - permissionsBuilder_.clear(); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public Builder removePermissions(int index) { - if (permissionsBuilder_ == null) { - ensurePermissionsIsMutable(); - permissions_.remove(index); - onChanged(); - } else { - permissionsBuilder_.remove(index); - } - return this; - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public com.google.iam.admin.v1.Permission.Builder getPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().getBuilder(index); - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public com.google.iam.admin.v1.PermissionOrBuilder getPermissionsOrBuilder( - int index) { - if (permissionsBuilder_ == null) { - return permissions_.get(index); } else { - return permissionsBuilder_.getMessageOrBuilder(index); - } - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public java.util.List - getPermissionsOrBuilderList() { - if (permissionsBuilder_ != null) { - return permissionsBuilder_.getMessageOrBuilderList(); - } else { - return java.util.Collections.unmodifiableList(permissions_); - } - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public com.google.iam.admin.v1.Permission.Builder addPermissionsBuilder() { - return getPermissionsFieldBuilder().addBuilder( - com.google.iam.admin.v1.Permission.getDefaultInstance()); - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public com.google.iam.admin.v1.Permission.Builder addPermissionsBuilder( - int index) { - return getPermissionsFieldBuilder().addBuilder( - index, com.google.iam.admin.v1.Permission.getDefaultInstance()); - } - /** - *
    -     * The Permissions testable on the requested resource.
    -     * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - public java.util.List - getPermissionsBuilderList() { - return getPermissionsFieldBuilder().getBuilderList(); - } - private com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Permission, com.google.iam.admin.v1.Permission.Builder, com.google.iam.admin.v1.PermissionOrBuilder> - getPermissionsFieldBuilder() { - if (permissionsBuilder_ == null) { - permissionsBuilder_ = new com.google.protobuf.RepeatedFieldBuilderV3< - com.google.iam.admin.v1.Permission, com.google.iam.admin.v1.Permission.Builder, com.google.iam.admin.v1.PermissionOrBuilder>( - permissions_, - ((bitField0_ & 0x00000001) != 0), - getParentForChildren(), - isClean()); - permissions_ = null; - } - return permissionsBuilder_; - } - - private java.lang.Object nextPageToken_ = ""; - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryTestableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - public java.lang.String getNextPageToken() { - java.lang.Object ref = nextPageToken_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - nextPageToken_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryTestableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - public com.google.protobuf.ByteString - getNextPageTokenBytes() { - java.lang.Object ref = nextPageToken_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - nextPageToken_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryTestableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @param value The nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageToken( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - nextPageToken_ = value; - onChanged(); - return this; - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryTestableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @return This builder for chaining. - */ - public Builder clearNextPageToken() { - - nextPageToken_ = getDefaultInstance().getNextPageToken(); - onChanged(); - return this; - } - /** - *
    -     * To retrieve the next page of results, set
    -     * `QueryTestableRolesRequest.page_token` to this value.
    -     * 
    - * - * string next_page_token = 2; - * @param value The bytes for nextPageToken to set. - * @return This builder for chaining. - */ - public Builder setNextPageTokenBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - nextPageToken_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.QueryTestablePermissionsResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.QueryTestablePermissionsResponse) - private static final com.google.iam.admin.v1.QueryTestablePermissionsResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.QueryTestablePermissionsResponse(); - } - - public static com.google.iam.admin.v1.QueryTestablePermissionsResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public QueryTestablePermissionsResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new QueryTestablePermissionsResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.QueryTestablePermissionsResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponseOrBuilder.java deleted file mode 100644 index 3b22a49a1abe..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/QueryTestablePermissionsResponseOrBuilder.java +++ /dev/null @@ -1,75 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface QueryTestablePermissionsResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.QueryTestablePermissionsResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - java.util.List - getPermissionsList(); - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - com.google.iam.admin.v1.Permission getPermissions(int index); - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - int getPermissionsCount(); - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - java.util.List - getPermissionsOrBuilderList(); - /** - *
    -   * The Permissions testable on the requested resource.
    -   * 
    - * - * repeated .google.iam.admin.v1.Permission permissions = 1; - */ - com.google.iam.admin.v1.PermissionOrBuilder getPermissionsOrBuilder( - int index); - - /** - *
    -   * To retrieve the next page of results, set
    -   * `QueryTestableRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The nextPageToken. - */ - java.lang.String getNextPageToken(); - /** - *
    -   * To retrieve the next page of results, set
    -   * `QueryTestableRolesRequest.page_token` to this value.
    -   * 
    - * - * string next_page_token = 2; - * @return The bytes for nextPageToken. - */ - com.google.protobuf.ByteString - getNextPageTokenBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Role.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Role.java deleted file mode 100644 index 8b72f7281b9e..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/Role.java +++ /dev/null @@ -1,1718 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * A role in the Identity and Access Management API.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.Role} - */ -public final class Role extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.Role) - RoleOrBuilder { -private static final long serialVersionUID = 0L; - // Use Role.newBuilder() to construct. - private Role(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private Role() { - name_ = ""; - title_ = ""; - description_ = ""; - includedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - stage_ = 0; - etag_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new Role(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private Role( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - int mutable_bitField0_ = 0; - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - title_ = s; - break; - } - case 26: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 58: { - java.lang.String s = input.readStringRequireUtf8(); - if (!((mutable_bitField0_ & 0x00000001) != 0)) { - includedPermissions_ = new com.google.protobuf.LazyStringArrayList(); - mutable_bitField0_ |= 0x00000001; - } - includedPermissions_.add(s); - break; - } - case 64: { - int rawValue = input.readEnum(); - - stage_ = rawValue; - break; - } - case 74: { - - etag_ = input.readBytes(); - break; - } - case 88: { - - deleted_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - if (((mutable_bitField0_ & 0x00000001) != 0)) { - includedPermissions_ = includedPermissions_.getUnmodifiableView(); - } - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.Role.class, com.google.iam.admin.v1.Role.Builder.class); - } - - /** - *
    -   * A stage representing a role's lifecycle phase.
    -   * 
    - * - * Protobuf enum {@code google.iam.admin.v1.Role.RoleLaunchStage} - */ - public enum RoleLaunchStage - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -     * The user has indicated this role is currently in an Alpha phase. If this
    -     * launch stage is selected, the `stage` field will not be included when
    -     * requesting the definition for a given role.
    -     * 
    - * - * ALPHA = 0; - */ - ALPHA(0), - /** - *
    -     * The user has indicated this role is currently in a Beta phase.
    -     * 
    - * - * BETA = 1; - */ - BETA(1), - /** - *
    -     * The user has indicated this role is generally available.
    -     * 
    - * - * GA = 2; - */ - GA(2), - /** - *
    -     * The user has indicated this role is being deprecated.
    -     * 
    - * - * DEPRECATED = 4; - */ - DEPRECATED(4), - /** - *
    -     * This role is disabled and will not contribute permissions to any
    -     * principals it is granted to in policies.
    -     * 
    - * - * DISABLED = 5; - */ - DISABLED(5), - /** - *
    -     * The user has indicated this role is currently in an EAP phase.
    -     * 
    - * - * EAP = 6; - */ - EAP(6), - UNRECOGNIZED(-1), - ; - - /** - *
    -     * The user has indicated this role is currently in an Alpha phase. If this
    -     * launch stage is selected, the `stage` field will not be included when
    -     * requesting the definition for a given role.
    -     * 
    - * - * ALPHA = 0; - */ - public static final int ALPHA_VALUE = 0; - /** - *
    -     * The user has indicated this role is currently in a Beta phase.
    -     * 
    - * - * BETA = 1; - */ - public static final int BETA_VALUE = 1; - /** - *
    -     * The user has indicated this role is generally available.
    -     * 
    - * - * GA = 2; - */ - public static final int GA_VALUE = 2; - /** - *
    -     * The user has indicated this role is being deprecated.
    -     * 
    - * - * DEPRECATED = 4; - */ - public static final int DEPRECATED_VALUE = 4; - /** - *
    -     * This role is disabled and will not contribute permissions to any
    -     * principals it is granted to in policies.
    -     * 
    - * - * DISABLED = 5; - */ - public static final int DISABLED_VALUE = 5; - /** - *
    -     * The user has indicated this role is currently in an EAP phase.
    -     * 
    - * - * EAP = 6; - */ - public static final int EAP_VALUE = 6; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RoleLaunchStage valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RoleLaunchStage forNumber(int value) { - switch (value) { - case 0: return ALPHA; - case 1: return BETA; - case 2: return GA; - case 4: return DEPRECATED; - case 5: return DISABLED; - case 6: return EAP; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RoleLaunchStage> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RoleLaunchStage findValueByNumber(int number) { - return RoleLaunchStage.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.Role.getDescriptor().getEnumTypes().get(0); - } - - private static final RoleLaunchStage[] VALUES = values(); - - public static RoleLaunchStage valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RoleLaunchStage(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.Role.RoleLaunchStage) - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The name of the role.
    -   * When Role is used in CreateRole, the role name must not be set.
    -   * When Role is used in output and other input such as UpdateRole, the role
    -   * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -   * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The name of the role.
    -   * When Role is used in CreateRole, the role name must not be set.
    -   * When Role is used in output and other input such as UpdateRole, the role
    -   * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -   * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int TITLE_FIELD_NUMBER = 2; - private volatile java.lang.Object title_; - /** - *
    -   * Optional. A human-readable title for the role.  Typically this
    -   * is limited to 100 UTF-8 bytes.
    -   * 
    - * - * string title = 2; - * @return The title. - */ - @java.lang.Override - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } - } - /** - *
    -   * Optional. A human-readable title for the role.  Typically this
    -   * is limited to 100 UTF-8 bytes.
    -   * 
    - * - * string title = 2; - * @return The bytes for title. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DESCRIPTION_FIELD_NUMBER = 3; - private volatile java.lang.Object description_; - /** - *
    -   * Optional. A human-readable description for the role.
    -   * 
    - * - * string description = 3; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
    -   * Optional. A human-readable description for the role.
    -   * 
    - * - * string description = 3; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int INCLUDED_PERMISSIONS_FIELD_NUMBER = 7; - private com.google.protobuf.LazyStringList includedPermissions_; - /** - *
    -   * The names of the permissions this role grants when bound in an IAM policy.
    -   * 
    - * - * repeated string included_permissions = 7; - * @return A list containing the includedPermissions. - */ - public com.google.protobuf.ProtocolStringList - getIncludedPermissionsList() { - return includedPermissions_; - } - /** - *
    -   * The names of the permissions this role grants when bound in an IAM policy.
    -   * 
    - * - * repeated string included_permissions = 7; - * @return The count of includedPermissions. - */ - public int getIncludedPermissionsCount() { - return includedPermissions_.size(); - } - /** - *
    -   * The names of the permissions this role grants when bound in an IAM policy.
    -   * 
    - * - * repeated string included_permissions = 7; - * @param index The index of the element to return. - * @return The includedPermissions at the given index. - */ - public java.lang.String getIncludedPermissions(int index) { - return includedPermissions_.get(index); - } - /** - *
    -   * The names of the permissions this role grants when bound in an IAM policy.
    -   * 
    - * - * repeated string included_permissions = 7; - * @param index The index of the value to return. - * @return The bytes of the includedPermissions at the given index. - */ - public com.google.protobuf.ByteString - getIncludedPermissionsBytes(int index) { - return includedPermissions_.getByteString(index); - } - - public static final int STAGE_FIELD_NUMBER = 8; - private int stage_; - /** - *
    -   * The current launch stage of the role. If the `ALPHA` launch stage has been
    -   * selected for a role, the `stage` field will not be included in the
    -   * returned definition for the role.
    -   * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @return The enum numeric value on the wire for stage. - */ - @java.lang.Override public int getStageValue() { - return stage_; - } - /** - *
    -   * The current launch stage of the role. If the `ALPHA` launch stage has been
    -   * selected for a role, the `stage` field will not be included in the
    -   * returned definition for the role.
    -   * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @return The stage. - */ - @java.lang.Override public com.google.iam.admin.v1.Role.RoleLaunchStage getStage() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.Role.RoleLaunchStage result = com.google.iam.admin.v1.Role.RoleLaunchStage.valueOf(stage_); - return result == null ? com.google.iam.admin.v1.Role.RoleLaunchStage.UNRECOGNIZED : result; - } - - public static final int ETAG_FIELD_NUMBER = 9; - private com.google.protobuf.ByteString etag_; - /** - *
    -   * Used to perform a consistent read-modify-write.
    -   * 
    - * - * bytes etag = 9; - * @return The etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtag() { - return etag_; - } - - public static final int DELETED_FIELD_NUMBER = 11; - private boolean deleted_; - /** - *
    -   * The current deleted state of the role. This field is read only.
    -   * It will be ignored in calls to CreateRole and UpdateRole.
    -   * 
    - * - * bool deleted = 11; - * @return The deleted. - */ - @java.lang.Override - public boolean getDeleted() { - return deleted_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, title_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 3, description_); - } - for (int i = 0; i < includedPermissions_.size(); i++) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 7, includedPermissions_.getRaw(i)); - } - if (stage_ != com.google.iam.admin.v1.Role.RoleLaunchStage.ALPHA.getNumber()) { - output.writeEnum(8, stage_); - } - if (!etag_.isEmpty()) { - output.writeBytes(9, etag_); - } - if (deleted_ != false) { - output.writeBool(11, deleted_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(title_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, title_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, description_); - } - { - int dataSize = 0; - for (int i = 0; i < includedPermissions_.size(); i++) { - dataSize += computeStringSizeNoTag(includedPermissions_.getRaw(i)); - } - size += dataSize; - size += 1 * getIncludedPermissionsList().size(); - } - if (stage_ != com.google.iam.admin.v1.Role.RoleLaunchStage.ALPHA.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, stage_); - } - if (!etag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(9, etag_); - } - if (deleted_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, deleted_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.Role)) { - return super.equals(obj); - } - com.google.iam.admin.v1.Role other = (com.google.iam.admin.v1.Role) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getTitle() - .equals(other.getTitle())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getIncludedPermissionsList() - .equals(other.getIncludedPermissionsList())) return false; - if (stage_ != other.stage_) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (getDeleted() - != other.getDeleted()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + TITLE_FIELD_NUMBER; - hash = (53 * hash) + getTitle().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - if (getIncludedPermissionsCount() > 0) { - hash = (37 * hash) + INCLUDED_PERMISSIONS_FIELD_NUMBER; - hash = (53 * hash) + getIncludedPermissionsList().hashCode(); - } - hash = (37 * hash) + STAGE_FIELD_NUMBER; - hash = (53 * hash) + stage_; - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (37 * hash) + DELETED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDeleted()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.Role parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.Role parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.Role parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.Role parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.Role parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.Role parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.Role parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.Role parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.Role parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.Role parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.Role parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.Role parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.Role prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * A role in the Identity and Access Management API.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.Role} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.Role) - com.google.iam.admin.v1.RoleOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.Role.class, com.google.iam.admin.v1.Role.Builder.class); - } - - // Construct using com.google.iam.admin.v1.Role.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - title_ = ""; - - description_ = ""; - - includedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - stage_ = 0; - - etag_ = com.google.protobuf.ByteString.EMPTY; - - deleted_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_Role_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.Role getDefaultInstanceForType() { - return com.google.iam.admin.v1.Role.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.Role build() { - com.google.iam.admin.v1.Role result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.Role buildPartial() { - com.google.iam.admin.v1.Role result = new com.google.iam.admin.v1.Role(this); - int from_bitField0_ = bitField0_; - result.name_ = name_; - result.title_ = title_; - result.description_ = description_; - if (((bitField0_ & 0x00000001) != 0)) { - includedPermissions_ = includedPermissions_.getUnmodifiableView(); - bitField0_ = (bitField0_ & ~0x00000001); - } - result.includedPermissions_ = includedPermissions_; - result.stage_ = stage_; - result.etag_ = etag_; - result.deleted_ = deleted_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.Role) { - return mergeFrom((com.google.iam.admin.v1.Role)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.Role other) { - if (other == com.google.iam.admin.v1.Role.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getTitle().isEmpty()) { - title_ = other.title_; - onChanged(); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.includedPermissions_.isEmpty()) { - if (includedPermissions_.isEmpty()) { - includedPermissions_ = other.includedPermissions_; - bitField0_ = (bitField0_ & ~0x00000001); - } else { - ensureIncludedPermissionsIsMutable(); - includedPermissions_.addAll(other.includedPermissions_); - } - onChanged(); - } - if (other.stage_ != 0) { - setStageValue(other.getStageValue()); - } - if (other.getEtag() != com.google.protobuf.ByteString.EMPTY) { - setEtag(other.getEtag()); - } - if (other.getDeleted() != false) { - setDeleted(other.getDeleted()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.Role parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.Role) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - private int bitField0_; - - private java.lang.Object name_ = ""; - /** - *
    -     * The name of the role.
    -     * When Role is used in CreateRole, the role name must not be set.
    -     * When Role is used in output and other input such as UpdateRole, the role
    -     * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -     * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The name of the role.
    -     * When Role is used in CreateRole, the role name must not be set.
    -     * When Role is used in output and other input such as UpdateRole, the role
    -     * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -     * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The name of the role.
    -     * When Role is used in CreateRole, the role name must not be set.
    -     * When Role is used in output and other input such as UpdateRole, the role
    -     * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -     * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -     * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The name of the role.
    -     * When Role is used in CreateRole, the role name must not be set.
    -     * When Role is used in output and other input such as UpdateRole, the role
    -     * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -     * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -     * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The name of the role.
    -     * When Role is used in CreateRole, the role name must not be set.
    -     * When Role is used in output and other input such as UpdateRole, the role
    -     * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -     * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -     * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object title_ = ""; - /** - *
    -     * Optional. A human-readable title for the role.  Typically this
    -     * is limited to 100 UTF-8 bytes.
    -     * 
    - * - * string title = 2; - * @return The title. - */ - public java.lang.String getTitle() { - java.lang.Object ref = title_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - title_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Optional. A human-readable title for the role.  Typically this
    -     * is limited to 100 UTF-8 bytes.
    -     * 
    - * - * string title = 2; - * @return The bytes for title. - */ - public com.google.protobuf.ByteString - getTitleBytes() { - java.lang.Object ref = title_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - title_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Optional. A human-readable title for the role.  Typically this
    -     * is limited to 100 UTF-8 bytes.
    -     * 
    - * - * string title = 2; - * @param value The title to set. - * @return This builder for chaining. - */ - public Builder setTitle( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - title_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional. A human-readable title for the role.  Typically this
    -     * is limited to 100 UTF-8 bytes.
    -     * 
    - * - * string title = 2; - * @return This builder for chaining. - */ - public Builder clearTitle() { - - title_ = getDefaultInstance().getTitle(); - onChanged(); - return this; - } - /** - *
    -     * Optional. A human-readable title for the role.  Typically this
    -     * is limited to 100 UTF-8 bytes.
    -     * 
    - * - * string title = 2; - * @param value The bytes for title to set. - * @return This builder for chaining. - */ - public Builder setTitleBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - title_ = value; - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
    -     * Optional. A human-readable description for the role.
    -     * 
    - * - * string description = 3; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Optional. A human-readable description for the role.
    -     * 
    - * - * string description = 3; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Optional. A human-readable description for the role.
    -     * 
    - * - * string description = 3; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional. A human-readable description for the role.
    -     * 
    - * - * string description = 3; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
    -     * Optional. A human-readable description for the role.
    -     * 
    - * - * string description = 3; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.LazyStringList includedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - private void ensureIncludedPermissionsIsMutable() { - if (!((bitField0_ & 0x00000001) != 0)) { - includedPermissions_ = new com.google.protobuf.LazyStringArrayList(includedPermissions_); - bitField0_ |= 0x00000001; - } - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @return A list containing the includedPermissions. - */ - public com.google.protobuf.ProtocolStringList - getIncludedPermissionsList() { - return includedPermissions_.getUnmodifiableView(); - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @return The count of includedPermissions. - */ - public int getIncludedPermissionsCount() { - return includedPermissions_.size(); - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @param index The index of the element to return. - * @return The includedPermissions at the given index. - */ - public java.lang.String getIncludedPermissions(int index) { - return includedPermissions_.get(index); - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @param index The index of the value to return. - * @return The bytes of the includedPermissions at the given index. - */ - public com.google.protobuf.ByteString - getIncludedPermissionsBytes(int index) { - return includedPermissions_.getByteString(index); - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @param index The index to set the value at. - * @param value The includedPermissions to set. - * @return This builder for chaining. - */ - public Builder setIncludedPermissions( - int index, java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludedPermissionsIsMutable(); - includedPermissions_.set(index, value); - onChanged(); - return this; - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @param value The includedPermissions to add. - * @return This builder for chaining. - */ - public Builder addIncludedPermissions( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - ensureIncludedPermissionsIsMutable(); - includedPermissions_.add(value); - onChanged(); - return this; - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @param values The includedPermissions to add. - * @return This builder for chaining. - */ - public Builder addAllIncludedPermissions( - java.lang.Iterable values) { - ensureIncludedPermissionsIsMutable(); - com.google.protobuf.AbstractMessageLite.Builder.addAll( - values, includedPermissions_); - onChanged(); - return this; - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @return This builder for chaining. - */ - public Builder clearIncludedPermissions() { - includedPermissions_ = com.google.protobuf.LazyStringArrayList.EMPTY; - bitField0_ = (bitField0_ & ~0x00000001); - onChanged(); - return this; - } - /** - *
    -     * The names of the permissions this role grants when bound in an IAM policy.
    -     * 
    - * - * repeated string included_permissions = 7; - * @param value The bytes of the includedPermissions to add. - * @return This builder for chaining. - */ - public Builder addIncludedPermissionsBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - ensureIncludedPermissionsIsMutable(); - includedPermissions_.add(value); - onChanged(); - return this; - } - - private int stage_ = 0; - /** - *
    -     * The current launch stage of the role. If the `ALPHA` launch stage has been
    -     * selected for a role, the `stage` field will not be included in the
    -     * returned definition for the role.
    -     * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @return The enum numeric value on the wire for stage. - */ - @java.lang.Override public int getStageValue() { - return stage_; - } - /** - *
    -     * The current launch stage of the role. If the `ALPHA` launch stage has been
    -     * selected for a role, the `stage` field will not be included in the
    -     * returned definition for the role.
    -     * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @param value The enum numeric value on the wire for stage to set. - * @return This builder for chaining. - */ - public Builder setStageValue(int value) { - - stage_ = value; - onChanged(); - return this; - } - /** - *
    -     * The current launch stage of the role. If the `ALPHA` launch stage has been
    -     * selected for a role, the `stage` field will not be included in the
    -     * returned definition for the role.
    -     * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @return The stage. - */ - @java.lang.Override - public com.google.iam.admin.v1.Role.RoleLaunchStage getStage() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.Role.RoleLaunchStage result = com.google.iam.admin.v1.Role.RoleLaunchStage.valueOf(stage_); - return result == null ? com.google.iam.admin.v1.Role.RoleLaunchStage.UNRECOGNIZED : result; - } - /** - *
    -     * The current launch stage of the role. If the `ALPHA` launch stage has been
    -     * selected for a role, the `stage` field will not be included in the
    -     * returned definition for the role.
    -     * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @param value The stage to set. - * @return This builder for chaining. - */ - public Builder setStage(com.google.iam.admin.v1.Role.RoleLaunchStage value) { - if (value == null) { - throw new NullPointerException(); - } - - stage_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The current launch stage of the role. If the `ALPHA` launch stage has been
    -     * selected for a role, the `stage` field will not be included in the
    -     * returned definition for the role.
    -     * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @return This builder for chaining. - */ - public Builder clearStage() { - - stage_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 9; - * @return The etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtag() { - return etag_; - } - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 9; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 9; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - - private boolean deleted_ ; - /** - *
    -     * The current deleted state of the role. This field is read only.
    -     * It will be ignored in calls to CreateRole and UpdateRole.
    -     * 
    - * - * bool deleted = 11; - * @return The deleted. - */ - @java.lang.Override - public boolean getDeleted() { - return deleted_; - } - /** - *
    -     * The current deleted state of the role. This field is read only.
    -     * It will be ignored in calls to CreateRole and UpdateRole.
    -     * 
    - * - * bool deleted = 11; - * @param value The deleted to set. - * @return This builder for chaining. - */ - public Builder setDeleted(boolean value) { - - deleted_ = value; - onChanged(); - return this; - } - /** - *
    -     * The current deleted state of the role. This field is read only.
    -     * It will be ignored in calls to CreateRole and UpdateRole.
    -     * 
    - * - * bool deleted = 11; - * @return This builder for chaining. - */ - public Builder clearDeleted() { - - deleted_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.Role) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.Role) - private static final com.google.iam.admin.v1.Role DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.Role(); - } - - public static com.google.iam.admin.v1.Role getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public Role parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new Role(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.Role getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleOrBuilder.java deleted file mode 100644 index b9787467b9b7..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleOrBuilder.java +++ /dev/null @@ -1,164 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface RoleOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.Role) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The name of the role.
    -   * When Role is used in CreateRole, the role name must not be set.
    -   * When Role is used in output and other input such as UpdateRole, the role
    -   * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -   * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The name of the role.
    -   * When Role is used in CreateRole, the role name must not be set.
    -   * When Role is used in output and other input such as UpdateRole, the role
    -   * name is the complete path, e.g., roles/logging.viewer for predefined roles
    -   * and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Optional. A human-readable title for the role.  Typically this
    -   * is limited to 100 UTF-8 bytes.
    -   * 
    - * - * string title = 2; - * @return The title. - */ - java.lang.String getTitle(); - /** - *
    -   * Optional. A human-readable title for the role.  Typically this
    -   * is limited to 100 UTF-8 bytes.
    -   * 
    - * - * string title = 2; - * @return The bytes for title. - */ - com.google.protobuf.ByteString - getTitleBytes(); - - /** - *
    -   * Optional. A human-readable description for the role.
    -   * 
    - * - * string description = 3; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
    -   * Optional. A human-readable description for the role.
    -   * 
    - * - * string description = 3; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
    -   * The names of the permissions this role grants when bound in an IAM policy.
    -   * 
    - * - * repeated string included_permissions = 7; - * @return A list containing the includedPermissions. - */ - java.util.List - getIncludedPermissionsList(); - /** - *
    -   * The names of the permissions this role grants when bound in an IAM policy.
    -   * 
    - * - * repeated string included_permissions = 7; - * @return The count of includedPermissions. - */ - int getIncludedPermissionsCount(); - /** - *
    -   * The names of the permissions this role grants when bound in an IAM policy.
    -   * 
    - * - * repeated string included_permissions = 7; - * @param index The index of the element to return. - * @return The includedPermissions at the given index. - */ - java.lang.String getIncludedPermissions(int index); - /** - *
    -   * The names of the permissions this role grants when bound in an IAM policy.
    -   * 
    - * - * repeated string included_permissions = 7; - * @param index The index of the value to return. - * @return The bytes of the includedPermissions at the given index. - */ - com.google.protobuf.ByteString - getIncludedPermissionsBytes(int index); - - /** - *
    -   * The current launch stage of the role. If the `ALPHA` launch stage has been
    -   * selected for a role, the `stage` field will not be included in the
    -   * returned definition for the role.
    -   * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @return The enum numeric value on the wire for stage. - */ - int getStageValue(); - /** - *
    -   * The current launch stage of the role. If the `ALPHA` launch stage has been
    -   * selected for a role, the `stage` field will not be included in the
    -   * returned definition for the role.
    -   * 
    - * - * .google.iam.admin.v1.Role.RoleLaunchStage stage = 8; - * @return The stage. - */ - com.google.iam.admin.v1.Role.RoleLaunchStage getStage(); - - /** - *
    -   * Used to perform a consistent read-modify-write.
    -   * 
    - * - * bytes etag = 9; - * @return The etag. - */ - com.google.protobuf.ByteString getEtag(); - - /** - *
    -   * The current deleted state of the role. This field is read only.
    -   * It will be ignored in calls to CreateRole and UpdateRole.
    -   * 
    - * - * bool deleted = 11; - * @return The deleted. - */ - boolean getDeleted(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleView.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleView.java deleted file mode 100644 index 57adaec0043b..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/RoleView.java +++ /dev/null @@ -1,135 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * A view for Role objects.
    - * 
    - * - * Protobuf enum {@code google.iam.admin.v1.RoleView} - */ -public enum RoleView - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -   * Omits the `included_permissions` field.
    -   * This is the default value.
    -   * 
    - * - * BASIC = 0; - */ - BASIC(0), - /** - *
    -   * Returns all fields.
    -   * 
    - * - * FULL = 1; - */ - FULL(1), - UNRECOGNIZED(-1), - ; - - /** - *
    -   * Omits the `included_permissions` field.
    -   * This is the default value.
    -   * 
    - * - * BASIC = 0; - */ - public static final int BASIC_VALUE = 0; - /** - *
    -   * Returns all fields.
    -   * 
    - * - * FULL = 1; - */ - public static final int FULL_VALUE = 1; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static RoleView valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static RoleView forNumber(int value) { - switch (value) { - case 0: return BASIC; - case 1: return FULL; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - RoleView> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public RoleView findValueByNumber(int number) { - return RoleView.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(4); - } - - private static final RoleView[] VALUES = values(); - - public static RoleView valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private RoleView(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.RoleView) -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccount.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccount.java deleted file mode 100644 index 8fed15780de2..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccount.java +++ /dev/null @@ -1,1913 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * An IAM service account.
    - * A service account is an account for an application or a virtual machine (VM)
    - * instance, not a person. You can use a service account to call Google APIs. To
    - * learn more, read the [overview of service
    - * accounts](https://cloud.google.com/iam/help/service-accounts/overview).
    - * When you create a service account, you specify the project ID that owns the
    - * service account, as well as a name that must be unique within the project.
    - * IAM uses these values to create an email address that identifies the service
    - * account.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.ServiceAccount} - */ -public final class ServiceAccount extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.ServiceAccount) - ServiceAccountOrBuilder { -private static final long serialVersionUID = 0L; - // Use ServiceAccount.newBuilder() to construct. - private ServiceAccount(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServiceAccount() { - name_ = ""; - projectId_ = ""; - uniqueId_ = ""; - email_ = ""; - displayName_ = ""; - etag_ = com.google.protobuf.ByteString.EMPTY; - description_ = ""; - oauth2ClientId_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServiceAccount(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServiceAccount( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - projectId_ = s; - break; - } - case 34: { - java.lang.String s = input.readStringRequireUtf8(); - - uniqueId_ = s; - break; - } - case 42: { - java.lang.String s = input.readStringRequireUtf8(); - - email_ = s; - break; - } - case 50: { - java.lang.String s = input.readStringRequireUtf8(); - - displayName_ = s; - break; - } - case 58: { - - etag_ = input.readBytes(); - break; - } - case 66: { - java.lang.String s = input.readStringRequireUtf8(); - - description_ = s; - break; - } - case 74: { - java.lang.String s = input.readStringRequireUtf8(); - - oauth2ClientId_ = s; - break; - } - case 88: { - - disabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ServiceAccount.class, com.google.iam.admin.v1.ServiceAccount.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The resource name of the service account.
    -   * Use one of the following formats:
    -   * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -   * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -   * As an alternative, you can use the `-` wildcard character instead of the
    -   * project ID:
    -   * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -   * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -   * When possible, avoid using the `-` wildcard character, because it can cause
    -   * response messages to contain misleading error codes. For example, if you
    -   * try to get the service account
    -   * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -   * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -   * Found` error.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The resource name of the service account.
    -   * Use one of the following formats:
    -   * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -   * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -   * As an alternative, you can use the `-` wildcard character instead of the
    -   * project ID:
    -   * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -   * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -   * When possible, avoid using the `-` wildcard character, because it can cause
    -   * response messages to contain misleading error codes. For example, if you
    -   * try to get the service account
    -   * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -   * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -   * Found` error.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PROJECT_ID_FIELD_NUMBER = 2; - private volatile java.lang.Object projectId_; - /** - *
    -   * Output only. The ID of the project that owns the service account.
    -   * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The projectId. - */ - @java.lang.Override - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } - } - /** - *
    -   * Output only. The ID of the project that owns the service account.
    -   * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for projectId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int UNIQUE_ID_FIELD_NUMBER = 4; - private volatile java.lang.Object uniqueId_; - /** - *
    -   * Output only. The unique, stable numeric ID for the service account.
    -   * Each service account retains its unique ID even if you delete the service
    -   * account. For example, if you delete a service account, then create a new
    -   * service account with the same name, the new service account has a different
    -   * unique ID than the deleted service account.
    -   * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uniqueId. - */ - @java.lang.Override - public java.lang.String getUniqueId() { - java.lang.Object ref = uniqueId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uniqueId_ = s; - return s; - } - } - /** - *
    -   * Output only. The unique, stable numeric ID for the service account.
    -   * Each service account retains its unique ID even if you delete the service
    -   * account. For example, if you delete a service account, then create a new
    -   * service account with the same name, the new service account has a different
    -   * unique ID than the deleted service account.
    -   * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uniqueId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getUniqueIdBytes() { - java.lang.Object ref = uniqueId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uniqueId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int EMAIL_FIELD_NUMBER = 5; - private volatile java.lang.Object email_; - /** - *
    -   * Output only. The email address of the service account.
    -   * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The email. - */ - @java.lang.Override - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } - } - /** - *
    -   * Output only. The email address of the service account.
    -   * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for email. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISPLAY_NAME_FIELD_NUMBER = 6; - private volatile java.lang.Object displayName_; - /** - *
    -   * Optional. A user-specified, human-readable name for the service account. The maximum
    -   * length is 100 UTF-8 bytes.
    -   * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The displayName. - */ - @java.lang.Override - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } - } - /** - *
    -   * Optional. A user-specified, human-readable name for the service account. The maximum
    -   * length is 100 UTF-8 bytes.
    -   * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for displayName. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ETAG_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString etag_; - /** - *
    -   * Deprecated. Do not use.
    -   * 
    - * - * bytes etag = 7 [deprecated = true]; - * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. - * See google/iam/admin/v1/iam.proto;l=538 - * @return The etag. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getEtag() { - return etag_; - } - - public static final int DESCRIPTION_FIELD_NUMBER = 8; - private volatile java.lang.Object description_; - /** - *
    -   * Optional. A user-specified, human-readable description of the service account. The
    -   * maximum length is 256 UTF-8 bytes.
    -   * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - @java.lang.Override - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } - } - /** - *
    -   * Optional. A user-specified, human-readable description of the service account. The
    -   * maximum length is 256 UTF-8 bytes.
    -   * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int OAUTH2_CLIENT_ID_FIELD_NUMBER = 9; - private volatile java.lang.Object oauth2ClientId_; - /** - *
    -   * Output only. The OAuth 2.0 client ID for the service account.
    -   * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The oauth2ClientId. - */ - @java.lang.Override - public java.lang.String getOauth2ClientId() { - java.lang.Object ref = oauth2ClientId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - oauth2ClientId_ = s; - return s; - } - } - /** - *
    -   * Output only. The OAuth 2.0 client ID for the service account.
    -   * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for oauth2ClientId. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getOauth2ClientIdBytes() { - java.lang.Object ref = oauth2ClientId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oauth2ClientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int DISABLED_FIELD_NUMBER = 11; - private boolean disabled_; - /** - *
    -   * Output only. Whether the service account is disabled.
    -   * 
    - * - * bool disabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 4, uniqueId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 5, email_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 6, displayName_); - } - if (!etag_.isEmpty()) { - output.writeBytes(7, etag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 8, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2ClientId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 9, oauth2ClientId_); - } - if (disabled_ != false) { - output.writeBool(11, disabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(projectId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, projectId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(uniqueId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, uniqueId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(email_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(5, email_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(displayName_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(6, displayName_); - } - if (!etag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, etag_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(description_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(8, description_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(oauth2ClientId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(9, oauth2ClientId_); - } - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, disabled_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.ServiceAccount)) { - return super.equals(obj); - } - com.google.iam.admin.v1.ServiceAccount other = (com.google.iam.admin.v1.ServiceAccount) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getProjectId() - .equals(other.getProjectId())) return false; - if (!getUniqueId() - .equals(other.getUniqueId())) return false; - if (!getEmail() - .equals(other.getEmail())) return false; - if (!getDisplayName() - .equals(other.getDisplayName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!getDescription() - .equals(other.getDescription())) return false; - if (!getOauth2ClientId() - .equals(other.getOauth2ClientId())) return false; - if (getDisabled() - != other.getDisabled()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PROJECT_ID_FIELD_NUMBER; - hash = (53 * hash) + getProjectId().hashCode(); - hash = (37 * hash) + UNIQUE_ID_FIELD_NUMBER; - hash = (53 * hash) + getUniqueId().hashCode(); - hash = (37 * hash) + EMAIL_FIELD_NUMBER; - hash = (53 * hash) + getEmail().hashCode(); - hash = (37 * hash) + DISPLAY_NAME_FIELD_NUMBER; - hash = (53 * hash) + getDisplayName().hashCode(); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (37 * hash) + DESCRIPTION_FIELD_NUMBER; - hash = (53 * hash) + getDescription().hashCode(); - hash = (37 * hash) + OAUTH2_CLIENT_ID_FIELD_NUMBER; - hash = (53 * hash) + getOauth2ClientId().hashCode(); - hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.ServiceAccount parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccount parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ServiceAccount parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ServiceAccount parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.ServiceAccount prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * An IAM service account.
    -   * A service account is an account for an application or a virtual machine (VM)
    -   * instance, not a person. You can use a service account to call Google APIs. To
    -   * learn more, read the [overview of service
    -   * accounts](https://cloud.google.com/iam/help/service-accounts/overview).
    -   * When you create a service account, you specify the project ID that owns the
    -   * service account, as well as a name that must be unique within the project.
    -   * IAM uses these values to create an email address that identifies the service
    -   * account.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.ServiceAccount} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ServiceAccount) - com.google.iam.admin.v1.ServiceAccountOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccount_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccount_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ServiceAccount.class, com.google.iam.admin.v1.ServiceAccount.Builder.class); - } - - // Construct using com.google.iam.admin.v1.ServiceAccount.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - projectId_ = ""; - - uniqueId_ = ""; - - email_ = ""; - - displayName_ = ""; - - etag_ = com.google.protobuf.ByteString.EMPTY; - - description_ = ""; - - oauth2ClientId_ = ""; - - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccount_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccount getDefaultInstanceForType() { - return com.google.iam.admin.v1.ServiceAccount.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccount build() { - com.google.iam.admin.v1.ServiceAccount result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccount buildPartial() { - com.google.iam.admin.v1.ServiceAccount result = new com.google.iam.admin.v1.ServiceAccount(this); - result.name_ = name_; - result.projectId_ = projectId_; - result.uniqueId_ = uniqueId_; - result.email_ = email_; - result.displayName_ = displayName_; - result.etag_ = etag_; - result.description_ = description_; - result.oauth2ClientId_ = oauth2ClientId_; - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.ServiceAccount) { - return mergeFrom((com.google.iam.admin.v1.ServiceAccount)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.ServiceAccount other) { - if (other == com.google.iam.admin.v1.ServiceAccount.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getProjectId().isEmpty()) { - projectId_ = other.projectId_; - onChanged(); - } - if (!other.getUniqueId().isEmpty()) { - uniqueId_ = other.uniqueId_; - onChanged(); - } - if (!other.getEmail().isEmpty()) { - email_ = other.email_; - onChanged(); - } - if (!other.getDisplayName().isEmpty()) { - displayName_ = other.displayName_; - onChanged(); - } - if (other.getEtag() != com.google.protobuf.ByteString.EMPTY) { - setEtag(other.getEtag()); - } - if (!other.getDescription().isEmpty()) { - description_ = other.description_; - onChanged(); - } - if (!other.getOauth2ClientId().isEmpty()) { - oauth2ClientId_ = other.oauth2ClientId_; - onChanged(); - } - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.ServiceAccount parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.ServiceAccount) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The resource name of the service account.
    -     * Use one of the following formats:
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -     * As an alternative, you can use the `-` wildcard character instead of the
    -     * project ID:
    -     * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -     * When possible, avoid using the `-` wildcard character, because it can cause
    -     * response messages to contain misleading error codes. For example, if you
    -     * try to get the service account
    -     * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -     * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -     * Found` error.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The resource name of the service account.
    -     * Use one of the following formats:
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -     * As an alternative, you can use the `-` wildcard character instead of the
    -     * project ID:
    -     * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -     * When possible, avoid using the `-` wildcard character, because it can cause
    -     * response messages to contain misleading error codes. For example, if you
    -     * try to get the service account
    -     * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -     * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -     * Found` error.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The resource name of the service account.
    -     * Use one of the following formats:
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -     * As an alternative, you can use the `-` wildcard character instead of the
    -     * project ID:
    -     * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -     * When possible, avoid using the `-` wildcard character, because it can cause
    -     * response messages to contain misleading error codes. For example, if you
    -     * try to get the service account
    -     * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -     * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -     * Found` error.
    -     * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account.
    -     * Use one of the following formats:
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -     * As an alternative, you can use the `-` wildcard character instead of the
    -     * project ID:
    -     * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -     * When possible, avoid using the `-` wildcard character, because it can cause
    -     * response messages to contain misleading error codes. For example, if you
    -     * try to get the service account
    -     * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -     * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -     * Found` error.
    -     * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account.
    -     * Use one of the following formats:
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -     * As an alternative, you can use the `-` wildcard character instead of the
    -     * project ID:
    -     * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -     * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -     * When possible, avoid using the `-` wildcard character, because it can cause
    -     * response messages to contain misleading error codes. For example, if you
    -     * try to get the service account
    -     * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -     * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -     * Found` error.
    -     * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object projectId_ = ""; - /** - *
    -     * Output only. The ID of the project that owns the service account.
    -     * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The projectId. - */ - public java.lang.String getProjectId() { - java.lang.Object ref = projectId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - projectId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Output only. The ID of the project that owns the service account.
    -     * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for projectId. - */ - public com.google.protobuf.ByteString - getProjectIdBytes() { - java.lang.Object ref = projectId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - projectId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Output only. The ID of the project that owns the service account.
    -     * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - projectId_ = value; - onChanged(); - return this; - } - /** - *
    -     * Output only. The ID of the project that owns the service account.
    -     * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearProjectId() { - - projectId_ = getDefaultInstance().getProjectId(); - onChanged(); - return this; - } - /** - *
    -     * Output only. The ID of the project that owns the service account.
    -     * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for projectId to set. - * @return This builder for chaining. - */ - public Builder setProjectIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - projectId_ = value; - onChanged(); - return this; - } - - private java.lang.Object uniqueId_ = ""; - /** - *
    -     * Output only. The unique, stable numeric ID for the service account.
    -     * Each service account retains its unique ID even if you delete the service
    -     * account. For example, if you delete a service account, then create a new
    -     * service account with the same name, the new service account has a different
    -     * unique ID than the deleted service account.
    -     * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uniqueId. - */ - public java.lang.String getUniqueId() { - java.lang.Object ref = uniqueId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - uniqueId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Output only. The unique, stable numeric ID for the service account.
    -     * Each service account retains its unique ID even if you delete the service
    -     * account. For example, if you delete a service account, then create a new
    -     * service account with the same name, the new service account has a different
    -     * unique ID than the deleted service account.
    -     * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uniqueId. - */ - public com.google.protobuf.ByteString - getUniqueIdBytes() { - java.lang.Object ref = uniqueId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - uniqueId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Output only. The unique, stable numeric ID for the service account.
    -     * Each service account retains its unique ID even if you delete the service
    -     * account. For example, if you delete a service account, then create a new
    -     * service account with the same name, the new service account has a different
    -     * unique ID than the deleted service account.
    -     * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The uniqueId to set. - * @return This builder for chaining. - */ - public Builder setUniqueId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - uniqueId_ = value; - onChanged(); - return this; - } - /** - *
    -     * Output only. The unique, stable numeric ID for the service account.
    -     * Each service account retains its unique ID even if you delete the service
    -     * account. For example, if you delete a service account, then create a new
    -     * service account with the same name, the new service account has a different
    -     * unique ID than the deleted service account.
    -     * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearUniqueId() { - - uniqueId_ = getDefaultInstance().getUniqueId(); - onChanged(); - return this; - } - /** - *
    -     * Output only. The unique, stable numeric ID for the service account.
    -     * Each service account retains its unique ID even if you delete the service
    -     * account. For example, if you delete a service account, then create a new
    -     * service account with the same name, the new service account has a different
    -     * unique ID than the deleted service account.
    -     * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for uniqueId to set. - * @return This builder for chaining. - */ - public Builder setUniqueIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - uniqueId_ = value; - onChanged(); - return this; - } - - private java.lang.Object email_ = ""; - /** - *
    -     * Output only. The email address of the service account.
    -     * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The email. - */ - public java.lang.String getEmail() { - java.lang.Object ref = email_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - email_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Output only. The email address of the service account.
    -     * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for email. - */ - public com.google.protobuf.ByteString - getEmailBytes() { - java.lang.Object ref = email_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - email_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Output only. The email address of the service account.
    -     * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The email to set. - * @return This builder for chaining. - */ - public Builder setEmail( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - email_ = value; - onChanged(); - return this; - } - /** - *
    -     * Output only. The email address of the service account.
    -     * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearEmail() { - - email_ = getDefaultInstance().getEmail(); - onChanged(); - return this; - } - /** - *
    -     * Output only. The email address of the service account.
    -     * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for email to set. - * @return This builder for chaining. - */ - public Builder setEmailBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - email_ = value; - onChanged(); - return this; - } - - private java.lang.Object displayName_ = ""; - /** - *
    -     * Optional. A user-specified, human-readable name for the service account. The maximum
    -     * length is 100 UTF-8 bytes.
    -     * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The displayName. - */ - public java.lang.String getDisplayName() { - java.lang.Object ref = displayName_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - displayName_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Optional. A user-specified, human-readable name for the service account. The maximum
    -     * length is 100 UTF-8 bytes.
    -     * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for displayName. - */ - public com.google.protobuf.ByteString - getDisplayNameBytes() { - java.lang.Object ref = displayName_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - displayName_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Optional. A user-specified, human-readable name for the service account. The maximum
    -     * length is 100 UTF-8 bytes.
    -     * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - displayName_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional. A user-specified, human-readable name for the service account. The maximum
    -     * length is 100 UTF-8 bytes.
    -     * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDisplayName() { - - displayName_ = getDefaultInstance().getDisplayName(); - onChanged(); - return this; - } - /** - *
    -     * Optional. A user-specified, human-readable name for the service account. The maximum
    -     * length is 100 UTF-8 bytes.
    -     * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for displayName to set. - * @return This builder for chaining. - */ - public Builder setDisplayNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - displayName_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * Deprecated. Do not use.
    -     * 
    - * - * bytes etag = 7 [deprecated = true]; - * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. - * See google/iam/admin/v1/iam.proto;l=538 - * @return The etag. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getEtag() { - return etag_; - } - /** - *
    -     * Deprecated. Do not use.
    -     * 
    - * - * bytes etag = 7 [deprecated = true]; - * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. - * See google/iam/admin/v1/iam.proto;l=538 - * @param value The etag to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setEtag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
    -     * Deprecated. Do not use.
    -     * 
    - * - * bytes etag = 7 [deprecated = true]; - * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. - * See google/iam/admin/v1/iam.proto;l=538 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - - private java.lang.Object description_ = ""; - /** - *
    -     * Optional. A user-specified, human-readable description of the service account. The
    -     * maximum length is 256 UTF-8 bytes.
    -     * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - public java.lang.String getDescription() { - java.lang.Object ref = description_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - description_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Optional. A user-specified, human-readable description of the service account. The
    -     * maximum length is 256 UTF-8 bytes.
    -     * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - public com.google.protobuf.ByteString - getDescriptionBytes() { - java.lang.Object ref = description_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - description_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Optional. A user-specified, human-readable description of the service account. The
    -     * maximum length is 256 UTF-8 bytes.
    -     * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The description to set. - * @return This builder for chaining. - */ - public Builder setDescription( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - description_ = value; - onChanged(); - return this; - } - /** - *
    -     * Optional. A user-specified, human-readable description of the service account. The
    -     * maximum length is 256 UTF-8 bytes.
    -     * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return This builder for chaining. - */ - public Builder clearDescription() { - - description_ = getDefaultInstance().getDescription(); - onChanged(); - return this; - } - /** - *
    -     * Optional. A user-specified, human-readable description of the service account. The
    -     * maximum length is 256 UTF-8 bytes.
    -     * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @param value The bytes for description to set. - * @return This builder for chaining. - */ - public Builder setDescriptionBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - description_ = value; - onChanged(); - return this; - } - - private java.lang.Object oauth2ClientId_ = ""; - /** - *
    -     * Output only. The OAuth 2.0 client ID for the service account.
    -     * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The oauth2ClientId. - */ - public java.lang.String getOauth2ClientId() { - java.lang.Object ref = oauth2ClientId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - oauth2ClientId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Output only. The OAuth 2.0 client ID for the service account.
    -     * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for oauth2ClientId. - */ - public com.google.protobuf.ByteString - getOauth2ClientIdBytes() { - java.lang.Object ref = oauth2ClientId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - oauth2ClientId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Output only. The OAuth 2.0 client ID for the service account.
    -     * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The oauth2ClientId to set. - * @return This builder for chaining. - */ - public Builder setOauth2ClientId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - oauth2ClientId_ = value; - onChanged(); - return this; - } - /** - *
    -     * Output only. The OAuth 2.0 client ID for the service account.
    -     * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearOauth2ClientId() { - - oauth2ClientId_ = getDefaultInstance().getOauth2ClientId(); - onChanged(); - return this; - } - /** - *
    -     * Output only. The OAuth 2.0 client ID for the service account.
    -     * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The bytes for oauth2ClientId to set. - * @return This builder for chaining. - */ - public Builder setOauth2ClientIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - oauth2ClientId_ = value; - onChanged(); - return this; - } - - private boolean disabled_ ; - /** - *
    -     * Output only. Whether the service account is disabled.
    -     * 
    - * - * bool disabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
    -     * Output only. Whether the service account is disabled.
    -     * 
    - * - * bool disabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
    -     * Output only. Whether the service account is disabled.
    -     * 
    - * - * bool disabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.ServiceAccount) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.ServiceAccount) - private static final com.google.iam.admin.v1.ServiceAccount DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.ServiceAccount(); - } - - public static com.google.iam.admin.v1.ServiceAccount getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceAccount parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceAccount(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccount getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKey.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKey.java deleted file mode 100644 index b1cad3b98494..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKey.java +++ /dev/null @@ -1,1943 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Represents a service account key.
    - * A service account has two sets of key-pairs: user-managed, and
    - * system-managed.
    - * User-managed key-pairs can be created and deleted by users.  Users are
    - * responsible for rotating these keys periodically to ensure security of
    - * their service accounts.  Users retain the private key of these key-pairs,
    - * and Google retains ONLY the public key.
    - * System-managed keys are automatically rotated by Google, and are used for
    - * signing for a maximum of two weeks. The rotation process is probabilistic,
    - * and usage of the new key will gradually ramp up and down over the key's
    - * lifetime.
    - * If you cache the public key set for a service account, we recommend that you
    - * update the cache every 15 minutes. User-managed keys can be added and removed
    - * at any time, so it is important to update the cache frequently. For
    - * Google-managed keys, Google will publish a key at least 6 hours before it is
    - * first used for signing and will keep publishing it for at least 6 hours after
    - * it was last used for signing.
    - * Public keys for all service accounts are also published at the OAuth2
    - * Service Account API.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.ServiceAccountKey} - */ -public final class ServiceAccountKey extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.ServiceAccountKey) - ServiceAccountKeyOrBuilder { -private static final long serialVersionUID = 0L; - // Use ServiceAccountKey.newBuilder() to construct. - private ServiceAccountKey(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private ServiceAccountKey() { - name_ = ""; - privateKeyType_ = 0; - keyAlgorithm_ = 0; - privateKeyData_ = com.google.protobuf.ByteString.EMPTY; - publicKeyData_ = com.google.protobuf.ByteString.EMPTY; - keyOrigin_ = 0; - keyType_ = 0; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new ServiceAccountKey(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private ServiceAccountKey( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 16: { - int rawValue = input.readEnum(); - - privateKeyType_ = rawValue; - break; - } - case 26: { - - privateKeyData_ = input.readBytes(); - break; - } - case 34: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (validAfterTime_ != null) { - subBuilder = validAfterTime_.toBuilder(); - } - validAfterTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validAfterTime_); - validAfterTime_ = subBuilder.buildPartial(); - } - - break; - } - case 42: { - com.google.protobuf.Timestamp.Builder subBuilder = null; - if (validBeforeTime_ != null) { - subBuilder = validBeforeTime_.toBuilder(); - } - validBeforeTime_ = input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(validBeforeTime_); - validBeforeTime_ = subBuilder.buildPartial(); - } - - break; - } - case 58: { - - publicKeyData_ = input.readBytes(); - break; - } - case 64: { - int rawValue = input.readEnum(); - - keyAlgorithm_ = rawValue; - break; - } - case 72: { - int rawValue = input.readEnum(); - - keyOrigin_ = rawValue; - break; - } - case 80: { - int rawValue = input.readEnum(); - - keyType_ = rawValue; - break; - } - case 88: { - - disabled_ = input.readBool(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccountKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ServiceAccountKey.class, com.google.iam.admin.v1.ServiceAccountKey.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The resource name of the service account key in the following format
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The resource name of the service account key in the following format
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PRIVATE_KEY_TYPE_FIELD_NUMBER = 2; - private int privateKeyType_; - /** - *
    -   * The output format for the private key.
    -   * Only provided in `CreateServiceAccountKey` responses, not
    -   * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -   * Google never exposes system-managed private keys, and never retains
    -   * user-managed private keys.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The enum numeric value on the wire for privateKeyType. - */ - @java.lang.Override public int getPrivateKeyTypeValue() { - return privateKeyType_; - } - /** - *
    -   * The output format for the private key.
    -   * Only provided in `CreateServiceAccountKey` responses, not
    -   * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -   * Google never exposes system-managed private keys, and never retains
    -   * user-managed private keys.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The privateKeyType. - */ - @java.lang.Override public com.google.iam.admin.v1.ServiceAccountPrivateKeyType getPrivateKeyType() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountPrivateKeyType result = com.google.iam.admin.v1.ServiceAccountPrivateKeyType.valueOf(privateKeyType_); - return result == null ? com.google.iam.admin.v1.ServiceAccountPrivateKeyType.UNRECOGNIZED : result; - } - - public static final int KEY_ALGORITHM_FIELD_NUMBER = 8; - private int keyAlgorithm_; - /** - *
    -   * Specifies the algorithm (and possibly key size) for the key.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @return The enum numeric value on the wire for keyAlgorithm. - */ - @java.lang.Override public int getKeyAlgorithmValue() { - return keyAlgorithm_; - } - /** - *
    -   * Specifies the algorithm (and possibly key size) for the key.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @return The keyAlgorithm. - */ - @java.lang.Override public com.google.iam.admin.v1.ServiceAccountKeyAlgorithm getKeyAlgorithm() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountKeyAlgorithm result = com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.valueOf(keyAlgorithm_); - return result == null ? com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.UNRECOGNIZED : result; - } - - public static final int PRIVATE_KEY_DATA_FIELD_NUMBER = 3; - private com.google.protobuf.ByteString privateKeyData_; - /** - *
    -   * The private key data. Only provided in `CreateServiceAccountKey`
    -   * responses. Make sure to keep the private key data secure because it
    -   * allows for the assertion of the service account identity.
    -   * When base64 decoded, the private key data can be used to authenticate with
    -   * Google API client libraries and with
    -   * <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud
    -   * auth activate-service-account</a>.
    -   * 
    - * - * bytes private_key_data = 3; - * @return The privateKeyData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrivateKeyData() { - return privateKeyData_; - } - - public static final int PUBLIC_KEY_DATA_FIELD_NUMBER = 7; - private com.google.protobuf.ByteString publicKeyData_; - /** - *
    -   * The public key data. Only provided in `GetServiceAccountKey` responses.
    -   * 
    - * - * bytes public_key_data = 7; - * @return The publicKeyData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPublicKeyData() { - return publicKeyData_; - } - - public static final int VALID_AFTER_TIME_FIELD_NUMBER = 4; - private com.google.protobuf.Timestamp validAfterTime_; - /** - *
    -   * The key can be used after this timestamp.
    -   * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - * @return Whether the validAfterTime field is set. - */ - @java.lang.Override - public boolean hasValidAfterTime() { - return validAfterTime_ != null; - } - /** - *
    -   * The key can be used after this timestamp.
    -   * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - * @return The validAfterTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getValidAfterTime() { - return validAfterTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validAfterTime_; - } - /** - *
    -   * The key can be used after this timestamp.
    -   * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder() { - return getValidAfterTime(); - } - - public static final int VALID_BEFORE_TIME_FIELD_NUMBER = 5; - private com.google.protobuf.Timestamp validBeforeTime_; - /** - *
    -   * The key can be used before this timestamp.
    -   * For system-managed key pairs, this timestamp is the end time for the
    -   * private key signing operation. The public key could still be used
    -   * for verification for a few hours after this time.
    -   * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - * @return Whether the validBeforeTime field is set. - */ - @java.lang.Override - public boolean hasValidBeforeTime() { - return validBeforeTime_ != null; - } - /** - *
    -   * The key can be used before this timestamp.
    -   * For system-managed key pairs, this timestamp is the end time for the
    -   * private key signing operation. The public key could still be used
    -   * for verification for a few hours after this time.
    -   * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - * @return The validBeforeTime. - */ - @java.lang.Override - public com.google.protobuf.Timestamp getValidBeforeTime() { - return validBeforeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validBeforeTime_; - } - /** - *
    -   * The key can be used before this timestamp.
    -   * For system-managed key pairs, this timestamp is the end time for the
    -   * private key signing operation. The public key could still be used
    -   * for verification for a few hours after this time.
    -   * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - @java.lang.Override - public com.google.protobuf.TimestampOrBuilder getValidBeforeTimeOrBuilder() { - return getValidBeforeTime(); - } - - public static final int KEY_ORIGIN_FIELD_NUMBER = 9; - private int keyOrigin_; - /** - *
    -   * The key origin.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @return The enum numeric value on the wire for keyOrigin. - */ - @java.lang.Override public int getKeyOriginValue() { - return keyOrigin_; - } - /** - *
    -   * The key origin.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @return The keyOrigin. - */ - @java.lang.Override public com.google.iam.admin.v1.ServiceAccountKeyOrigin getKeyOrigin() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountKeyOrigin result = com.google.iam.admin.v1.ServiceAccountKeyOrigin.valueOf(keyOrigin_); - return result == null ? com.google.iam.admin.v1.ServiceAccountKeyOrigin.UNRECOGNIZED : result; - } - - public static final int KEY_TYPE_FIELD_NUMBER = 10; - private int keyType_; - /** - *
    -   * The key type.
    -   * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @return The enum numeric value on the wire for keyType. - */ - @java.lang.Override public int getKeyTypeValue() { - return keyType_; - } - /** - *
    -   * The key type.
    -   * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @return The keyType. - */ - @java.lang.Override public com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType getKeyType() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType result = com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType.valueOf(keyType_); - return result == null ? com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType.UNRECOGNIZED : result; - } - - public static final int DISABLED_FIELD_NUMBER = 11; - private boolean disabled_; - /** - *
    -   * The key status.
    -   * 
    - * - * bool disabled = 11; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (privateKeyType_ != com.google.iam.admin.v1.ServiceAccountPrivateKeyType.TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(2, privateKeyType_); - } - if (!privateKeyData_.isEmpty()) { - output.writeBytes(3, privateKeyData_); - } - if (validAfterTime_ != null) { - output.writeMessage(4, getValidAfterTime()); - } - if (validBeforeTime_ != null) { - output.writeMessage(5, getValidBeforeTime()); - } - if (!publicKeyData_.isEmpty()) { - output.writeBytes(7, publicKeyData_); - } - if (keyAlgorithm_ != com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.KEY_ALG_UNSPECIFIED.getNumber()) { - output.writeEnum(8, keyAlgorithm_); - } - if (keyOrigin_ != com.google.iam.admin.v1.ServiceAccountKeyOrigin.ORIGIN_UNSPECIFIED.getNumber()) { - output.writeEnum(9, keyOrigin_); - } - if (keyType_ != com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType.KEY_TYPE_UNSPECIFIED.getNumber()) { - output.writeEnum(10, keyType_); - } - if (disabled_ != false) { - output.writeBool(11, disabled_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (privateKeyType_ != com.google.iam.admin.v1.ServiceAccountPrivateKeyType.TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(2, privateKeyType_); - } - if (!privateKeyData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(3, privateKeyData_); - } - if (validAfterTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(4, getValidAfterTime()); - } - if (validBeforeTime_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(5, getValidBeforeTime()); - } - if (!publicKeyData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(7, publicKeyData_); - } - if (keyAlgorithm_ != com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.KEY_ALG_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(8, keyAlgorithm_); - } - if (keyOrigin_ != com.google.iam.admin.v1.ServiceAccountKeyOrigin.ORIGIN_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(9, keyOrigin_); - } - if (keyType_ != com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType.KEY_TYPE_UNSPECIFIED.getNumber()) { - size += com.google.protobuf.CodedOutputStream - .computeEnumSize(10, keyType_); - } - if (disabled_ != false) { - size += com.google.protobuf.CodedOutputStream - .computeBoolSize(11, disabled_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.ServiceAccountKey)) { - return super.equals(obj); - } - com.google.iam.admin.v1.ServiceAccountKey other = (com.google.iam.admin.v1.ServiceAccountKey) obj; - - if (!getName() - .equals(other.getName())) return false; - if (privateKeyType_ != other.privateKeyType_) return false; - if (keyAlgorithm_ != other.keyAlgorithm_) return false; - if (!getPrivateKeyData() - .equals(other.getPrivateKeyData())) return false; - if (!getPublicKeyData() - .equals(other.getPublicKeyData())) return false; - if (hasValidAfterTime() != other.hasValidAfterTime()) return false; - if (hasValidAfterTime()) { - if (!getValidAfterTime() - .equals(other.getValidAfterTime())) return false; - } - if (hasValidBeforeTime() != other.hasValidBeforeTime()) return false; - if (hasValidBeforeTime()) { - if (!getValidBeforeTime() - .equals(other.getValidBeforeTime())) return false; - } - if (keyOrigin_ != other.keyOrigin_) return false; - if (keyType_ != other.keyType_) return false; - if (getDisabled() - != other.getDisabled()) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PRIVATE_KEY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + privateKeyType_; - hash = (37 * hash) + KEY_ALGORITHM_FIELD_NUMBER; - hash = (53 * hash) + keyAlgorithm_; - hash = (37 * hash) + PRIVATE_KEY_DATA_FIELD_NUMBER; - hash = (53 * hash) + getPrivateKeyData().hashCode(); - hash = (37 * hash) + PUBLIC_KEY_DATA_FIELD_NUMBER; - hash = (53 * hash) + getPublicKeyData().hashCode(); - if (hasValidAfterTime()) { - hash = (37 * hash) + VALID_AFTER_TIME_FIELD_NUMBER; - hash = (53 * hash) + getValidAfterTime().hashCode(); - } - if (hasValidBeforeTime()) { - hash = (37 * hash) + VALID_BEFORE_TIME_FIELD_NUMBER; - hash = (53 * hash) + getValidBeforeTime().hashCode(); - } - hash = (37 * hash) + KEY_ORIGIN_FIELD_NUMBER; - hash = (53 * hash) + keyOrigin_; - hash = (37 * hash) + KEY_TYPE_FIELD_NUMBER; - hash = (53 * hash) + keyType_; - hash = (37 * hash) + DISABLED_FIELD_NUMBER; - hash = (53 * hash) + com.google.protobuf.Internal.hashBoolean( - getDisabled()); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.ServiceAccountKey parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.ServiceAccountKey prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * Represents a service account key.
    -   * A service account has two sets of key-pairs: user-managed, and
    -   * system-managed.
    -   * User-managed key-pairs can be created and deleted by users.  Users are
    -   * responsible for rotating these keys periodically to ensure security of
    -   * their service accounts.  Users retain the private key of these key-pairs,
    -   * and Google retains ONLY the public key.
    -   * System-managed keys are automatically rotated by Google, and are used for
    -   * signing for a maximum of two weeks. The rotation process is probabilistic,
    -   * and usage of the new key will gradually ramp up and down over the key's
    -   * lifetime.
    -   * If you cache the public key set for a service account, we recommend that you
    -   * update the cache every 15 minutes. User-managed keys can be added and removed
    -   * at any time, so it is important to update the cache frequently. For
    -   * Google-managed keys, Google will publish a key at least 6 hours before it is
    -   * first used for signing and will keep publishing it for at least 6 hours after
    -   * it was last used for signing.
    -   * Public keys for all service accounts are also published at the OAuth2
    -   * Service Account API.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.ServiceAccountKey} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.ServiceAccountKey) - com.google.iam.admin.v1.ServiceAccountKeyOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccountKey_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.ServiceAccountKey.class, com.google.iam.admin.v1.ServiceAccountKey.Builder.class); - } - - // Construct using com.google.iam.admin.v1.ServiceAccountKey.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - privateKeyType_ = 0; - - keyAlgorithm_ = 0; - - privateKeyData_ = com.google.protobuf.ByteString.EMPTY; - - publicKeyData_ = com.google.protobuf.ByteString.EMPTY; - - if (validAfterTimeBuilder_ == null) { - validAfterTime_ = null; - } else { - validAfterTime_ = null; - validAfterTimeBuilder_ = null; - } - if (validBeforeTimeBuilder_ == null) { - validBeforeTime_ = null; - } else { - validBeforeTime_ = null; - validBeforeTimeBuilder_ = null; - } - keyOrigin_ = 0; - - keyType_ = 0; - - disabled_ = false; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_ServiceAccountKey_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKey getDefaultInstanceForType() { - return com.google.iam.admin.v1.ServiceAccountKey.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKey build() { - com.google.iam.admin.v1.ServiceAccountKey result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKey buildPartial() { - com.google.iam.admin.v1.ServiceAccountKey result = new com.google.iam.admin.v1.ServiceAccountKey(this); - result.name_ = name_; - result.privateKeyType_ = privateKeyType_; - result.keyAlgorithm_ = keyAlgorithm_; - result.privateKeyData_ = privateKeyData_; - result.publicKeyData_ = publicKeyData_; - if (validAfterTimeBuilder_ == null) { - result.validAfterTime_ = validAfterTime_; - } else { - result.validAfterTime_ = validAfterTimeBuilder_.build(); - } - if (validBeforeTimeBuilder_ == null) { - result.validBeforeTime_ = validBeforeTime_; - } else { - result.validBeforeTime_ = validBeforeTimeBuilder_.build(); - } - result.keyOrigin_ = keyOrigin_; - result.keyType_ = keyType_; - result.disabled_ = disabled_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.ServiceAccountKey) { - return mergeFrom((com.google.iam.admin.v1.ServiceAccountKey)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.ServiceAccountKey other) { - if (other == com.google.iam.admin.v1.ServiceAccountKey.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.privateKeyType_ != 0) { - setPrivateKeyTypeValue(other.getPrivateKeyTypeValue()); - } - if (other.keyAlgorithm_ != 0) { - setKeyAlgorithmValue(other.getKeyAlgorithmValue()); - } - if (other.getPrivateKeyData() != com.google.protobuf.ByteString.EMPTY) { - setPrivateKeyData(other.getPrivateKeyData()); - } - if (other.getPublicKeyData() != com.google.protobuf.ByteString.EMPTY) { - setPublicKeyData(other.getPublicKeyData()); - } - if (other.hasValidAfterTime()) { - mergeValidAfterTime(other.getValidAfterTime()); - } - if (other.hasValidBeforeTime()) { - mergeValidBeforeTime(other.getValidBeforeTime()); - } - if (other.keyOrigin_ != 0) { - setKeyOriginValue(other.getKeyOriginValue()); - } - if (other.keyType_ != 0) { - setKeyTypeValue(other.getKeyTypeValue()); - } - if (other.getDisabled() != false) { - setDisabled(other.getDisabled()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.ServiceAccountKey parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.ServiceAccountKey) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The resource name of the service account key in the following format
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The resource name of the service account key in the following format
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The resource name of the service account key in the following format
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account key in the following format
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account key in the following format
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -     * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private int privateKeyType_ = 0; - /** - *
    -     * The output format for the private key.
    -     * Only provided in `CreateServiceAccountKey` responses, not
    -     * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -     * Google never exposes system-managed private keys, and never retains
    -     * user-managed private keys.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The enum numeric value on the wire for privateKeyType. - */ - @java.lang.Override public int getPrivateKeyTypeValue() { - return privateKeyType_; - } - /** - *
    -     * The output format for the private key.
    -     * Only provided in `CreateServiceAccountKey` responses, not
    -     * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -     * Google never exposes system-managed private keys, and never retains
    -     * user-managed private keys.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @param value The enum numeric value on the wire for privateKeyType to set. - * @return This builder for chaining. - */ - public Builder setPrivateKeyTypeValue(int value) { - - privateKeyType_ = value; - onChanged(); - return this; - } - /** - *
    -     * The output format for the private key.
    -     * Only provided in `CreateServiceAccountKey` responses, not
    -     * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -     * Google never exposes system-managed private keys, and never retains
    -     * user-managed private keys.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The privateKeyType. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountPrivateKeyType getPrivateKeyType() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountPrivateKeyType result = com.google.iam.admin.v1.ServiceAccountPrivateKeyType.valueOf(privateKeyType_); - return result == null ? com.google.iam.admin.v1.ServiceAccountPrivateKeyType.UNRECOGNIZED : result; - } - /** - *
    -     * The output format for the private key.
    -     * Only provided in `CreateServiceAccountKey` responses, not
    -     * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -     * Google never exposes system-managed private keys, and never retains
    -     * user-managed private keys.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @param value The privateKeyType to set. - * @return This builder for chaining. - */ - public Builder setPrivateKeyType(com.google.iam.admin.v1.ServiceAccountPrivateKeyType value) { - if (value == null) { - throw new NullPointerException(); - } - - privateKeyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The output format for the private key.
    -     * Only provided in `CreateServiceAccountKey` responses, not
    -     * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -     * Google never exposes system-managed private keys, and never retains
    -     * user-managed private keys.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return This builder for chaining. - */ - public Builder clearPrivateKeyType() { - - privateKeyType_ = 0; - onChanged(); - return this; - } - - private int keyAlgorithm_ = 0; - /** - *
    -     * Specifies the algorithm (and possibly key size) for the key.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @return The enum numeric value on the wire for keyAlgorithm. - */ - @java.lang.Override public int getKeyAlgorithmValue() { - return keyAlgorithm_; - } - /** - *
    -     * Specifies the algorithm (and possibly key size) for the key.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @param value The enum numeric value on the wire for keyAlgorithm to set. - * @return This builder for chaining. - */ - public Builder setKeyAlgorithmValue(int value) { - - keyAlgorithm_ = value; - onChanged(); - return this; - } - /** - *
    -     * Specifies the algorithm (and possibly key size) for the key.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @return The keyAlgorithm. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKeyAlgorithm getKeyAlgorithm() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountKeyAlgorithm result = com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.valueOf(keyAlgorithm_); - return result == null ? com.google.iam.admin.v1.ServiceAccountKeyAlgorithm.UNRECOGNIZED : result; - } - /** - *
    -     * Specifies the algorithm (and possibly key size) for the key.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @param value The keyAlgorithm to set. - * @return This builder for chaining. - */ - public Builder setKeyAlgorithm(com.google.iam.admin.v1.ServiceAccountKeyAlgorithm value) { - if (value == null) { - throw new NullPointerException(); - } - - keyAlgorithm_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * Specifies the algorithm (and possibly key size) for the key.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @return This builder for chaining. - */ - public Builder clearKeyAlgorithm() { - - keyAlgorithm_ = 0; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString privateKeyData_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * The private key data. Only provided in `CreateServiceAccountKey`
    -     * responses. Make sure to keep the private key data secure because it
    -     * allows for the assertion of the service account identity.
    -     * When base64 decoded, the private key data can be used to authenticate with
    -     * Google API client libraries and with
    -     * <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud
    -     * auth activate-service-account</a>.
    -     * 
    - * - * bytes private_key_data = 3; - * @return The privateKeyData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPrivateKeyData() { - return privateKeyData_; - } - /** - *
    -     * The private key data. Only provided in `CreateServiceAccountKey`
    -     * responses. Make sure to keep the private key data secure because it
    -     * allows for the assertion of the service account identity.
    -     * When base64 decoded, the private key data can be used to authenticate with
    -     * Google API client libraries and with
    -     * <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud
    -     * auth activate-service-account</a>.
    -     * 
    - * - * bytes private_key_data = 3; - * @param value The privateKeyData to set. - * @return This builder for chaining. - */ - public Builder setPrivateKeyData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - privateKeyData_ = value; - onChanged(); - return this; - } - /** - *
    -     * The private key data. Only provided in `CreateServiceAccountKey`
    -     * responses. Make sure to keep the private key data secure because it
    -     * allows for the assertion of the service account identity.
    -     * When base64 decoded, the private key data can be used to authenticate with
    -     * Google API client libraries and with
    -     * <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud
    -     * auth activate-service-account</a>.
    -     * 
    - * - * bytes private_key_data = 3; - * @return This builder for chaining. - */ - public Builder clearPrivateKeyData() { - - privateKeyData_ = getDefaultInstance().getPrivateKeyData(); - onChanged(); - return this; - } - - private com.google.protobuf.ByteString publicKeyData_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * The public key data. Only provided in `GetServiceAccountKey` responses.
    -     * 
    - * - * bytes public_key_data = 7; - * @return The publicKeyData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPublicKeyData() { - return publicKeyData_; - } - /** - *
    -     * The public key data. Only provided in `GetServiceAccountKey` responses.
    -     * 
    - * - * bytes public_key_data = 7; - * @param value The publicKeyData to set. - * @return This builder for chaining. - */ - public Builder setPublicKeyData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - publicKeyData_ = value; - onChanged(); - return this; - } - /** - *
    -     * The public key data. Only provided in `GetServiceAccountKey` responses.
    -     * 
    - * - * bytes public_key_data = 7; - * @return This builder for chaining. - */ - public Builder clearPublicKeyData() { - - publicKeyData_ = getDefaultInstance().getPublicKeyData(); - onChanged(); - return this; - } - - private com.google.protobuf.Timestamp validAfterTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> validAfterTimeBuilder_; - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - * @return Whether the validAfterTime field is set. - */ - public boolean hasValidAfterTime() { - return validAfterTimeBuilder_ != null || validAfterTime_ != null; - } - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - * @return The validAfterTime. - */ - public com.google.protobuf.Timestamp getValidAfterTime() { - if (validAfterTimeBuilder_ == null) { - return validAfterTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validAfterTime_; - } else { - return validAfterTimeBuilder_.getMessage(); - } - } - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - public Builder setValidAfterTime(com.google.protobuf.Timestamp value) { - if (validAfterTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validAfterTime_ = value; - onChanged(); - } else { - validAfterTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - public Builder setValidAfterTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (validAfterTimeBuilder_ == null) { - validAfterTime_ = builderForValue.build(); - onChanged(); - } else { - validAfterTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - public Builder mergeValidAfterTime(com.google.protobuf.Timestamp value) { - if (validAfterTimeBuilder_ == null) { - if (validAfterTime_ != null) { - validAfterTime_ = - com.google.protobuf.Timestamp.newBuilder(validAfterTime_).mergeFrom(value).buildPartial(); - } else { - validAfterTime_ = value; - } - onChanged(); - } else { - validAfterTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - public Builder clearValidAfterTime() { - if (validAfterTimeBuilder_ == null) { - validAfterTime_ = null; - onChanged(); - } else { - validAfterTime_ = null; - validAfterTimeBuilder_ = null; - } - - return this; - } - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - public com.google.protobuf.Timestamp.Builder getValidAfterTimeBuilder() { - - onChanged(); - return getValidAfterTimeFieldBuilder().getBuilder(); - } - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - public com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder() { - if (validAfterTimeBuilder_ != null) { - return validAfterTimeBuilder_.getMessageOrBuilder(); - } else { - return validAfterTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : validAfterTime_; - } - } - /** - *
    -     * The key can be used after this timestamp.
    -     * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getValidAfterTimeFieldBuilder() { - if (validAfterTimeBuilder_ == null) { - validAfterTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getValidAfterTime(), - getParentForChildren(), - isClean()); - validAfterTime_ = null; - } - return validAfterTimeBuilder_; - } - - private com.google.protobuf.Timestamp validBeforeTime_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> validBeforeTimeBuilder_; - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - * @return Whether the validBeforeTime field is set. - */ - public boolean hasValidBeforeTime() { - return validBeforeTimeBuilder_ != null || validBeforeTime_ != null; - } - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - * @return The validBeforeTime. - */ - public com.google.protobuf.Timestamp getValidBeforeTime() { - if (validBeforeTimeBuilder_ == null) { - return validBeforeTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : validBeforeTime_; - } else { - return validBeforeTimeBuilder_.getMessage(); - } - } - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - public Builder setValidBeforeTime(com.google.protobuf.Timestamp value) { - if (validBeforeTimeBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - validBeforeTime_ = value; - onChanged(); - } else { - validBeforeTimeBuilder_.setMessage(value); - } - - return this; - } - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - public Builder setValidBeforeTime( - com.google.protobuf.Timestamp.Builder builderForValue) { - if (validBeforeTimeBuilder_ == null) { - validBeforeTime_ = builderForValue.build(); - onChanged(); - } else { - validBeforeTimeBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - public Builder mergeValidBeforeTime(com.google.protobuf.Timestamp value) { - if (validBeforeTimeBuilder_ == null) { - if (validBeforeTime_ != null) { - validBeforeTime_ = - com.google.protobuf.Timestamp.newBuilder(validBeforeTime_).mergeFrom(value).buildPartial(); - } else { - validBeforeTime_ = value; - } - onChanged(); - } else { - validBeforeTimeBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - public Builder clearValidBeforeTime() { - if (validBeforeTimeBuilder_ == null) { - validBeforeTime_ = null; - onChanged(); - } else { - validBeforeTime_ = null; - validBeforeTimeBuilder_ = null; - } - - return this; - } - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - public com.google.protobuf.Timestamp.Builder getValidBeforeTimeBuilder() { - - onChanged(); - return getValidBeforeTimeFieldBuilder().getBuilder(); - } - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - public com.google.protobuf.TimestampOrBuilder getValidBeforeTimeOrBuilder() { - if (validBeforeTimeBuilder_ != null) { - return validBeforeTimeBuilder_.getMessageOrBuilder(); - } else { - return validBeforeTime_ == null ? - com.google.protobuf.Timestamp.getDefaultInstance() : validBeforeTime_; - } - } - /** - *
    -     * The key can be used before this timestamp.
    -     * For system-managed key pairs, this timestamp is the end time for the
    -     * private key signing operation. The public key could still be used
    -     * for verification for a few hours after this time.
    -     * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder> - getValidBeforeTimeFieldBuilder() { - if (validBeforeTimeBuilder_ == null) { - validBeforeTimeBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.Timestamp, com.google.protobuf.Timestamp.Builder, com.google.protobuf.TimestampOrBuilder>( - getValidBeforeTime(), - getParentForChildren(), - isClean()); - validBeforeTime_ = null; - } - return validBeforeTimeBuilder_; - } - - private int keyOrigin_ = 0; - /** - *
    -     * The key origin.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @return The enum numeric value on the wire for keyOrigin. - */ - @java.lang.Override public int getKeyOriginValue() { - return keyOrigin_; - } - /** - *
    -     * The key origin.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @param value The enum numeric value on the wire for keyOrigin to set. - * @return This builder for chaining. - */ - public Builder setKeyOriginValue(int value) { - - keyOrigin_ = value; - onChanged(); - return this; - } - /** - *
    -     * The key origin.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @return The keyOrigin. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKeyOrigin getKeyOrigin() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ServiceAccountKeyOrigin result = com.google.iam.admin.v1.ServiceAccountKeyOrigin.valueOf(keyOrigin_); - return result == null ? com.google.iam.admin.v1.ServiceAccountKeyOrigin.UNRECOGNIZED : result; - } - /** - *
    -     * The key origin.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @param value The keyOrigin to set. - * @return This builder for chaining. - */ - public Builder setKeyOrigin(com.google.iam.admin.v1.ServiceAccountKeyOrigin value) { - if (value == null) { - throw new NullPointerException(); - } - - keyOrigin_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The key origin.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @return This builder for chaining. - */ - public Builder clearKeyOrigin() { - - keyOrigin_ = 0; - onChanged(); - return this; - } - - private int keyType_ = 0; - /** - *
    -     * The key type.
    -     * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @return The enum numeric value on the wire for keyType. - */ - @java.lang.Override public int getKeyTypeValue() { - return keyType_; - } - /** - *
    -     * The key type.
    -     * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @param value The enum numeric value on the wire for keyType to set. - * @return This builder for chaining. - */ - public Builder setKeyTypeValue(int value) { - - keyType_ = value; - onChanged(); - return this; - } - /** - *
    -     * The key type.
    -     * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @return The keyType. - */ - @java.lang.Override - public com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType getKeyType() { - @SuppressWarnings("deprecation") - com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType result = com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType.valueOf(keyType_); - return result == null ? com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType.UNRECOGNIZED : result; - } - /** - *
    -     * The key type.
    -     * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @param value The keyType to set. - * @return This builder for chaining. - */ - public Builder setKeyType(com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType value) { - if (value == null) { - throw new NullPointerException(); - } - - keyType_ = value.getNumber(); - onChanged(); - return this; - } - /** - *
    -     * The key type.
    -     * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @return This builder for chaining. - */ - public Builder clearKeyType() { - - keyType_ = 0; - onChanged(); - return this; - } - - private boolean disabled_ ; - /** - *
    -     * The key status.
    -     * 
    - * - * bool disabled = 11; - * @return The disabled. - */ - @java.lang.Override - public boolean getDisabled() { - return disabled_; - } - /** - *
    -     * The key status.
    -     * 
    - * - * bool disabled = 11; - * @param value The disabled to set. - * @return This builder for chaining. - */ - public Builder setDisabled(boolean value) { - - disabled_ = value; - onChanged(); - return this; - } - /** - *
    -     * The key status.
    -     * 
    - * - * bool disabled = 11; - * @return This builder for chaining. - */ - public Builder clearDisabled() { - - disabled_ = false; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.ServiceAccountKey) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.ServiceAccountKey) - private static final com.google.iam.admin.v1.ServiceAccountKey DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.ServiceAccountKey(); - } - - public static com.google.iam.admin.v1.ServiceAccountKey getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public ServiceAccountKey parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new ServiceAccountKey(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountKey getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyAlgorithm.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyAlgorithm.java deleted file mode 100644 index 2db97beeb931..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyAlgorithm.java +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Supported key algorithms.
    - * 
    - * - * Protobuf enum {@code google.iam.admin.v1.ServiceAccountKeyAlgorithm} - */ -public enum ServiceAccountKeyAlgorithm - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -   * An unspecified key algorithm.
    -   * 
    - * - * KEY_ALG_UNSPECIFIED = 0; - */ - KEY_ALG_UNSPECIFIED(0), - /** - *
    -   * 1k RSA Key.
    -   * 
    - * - * KEY_ALG_RSA_1024 = 1; - */ - KEY_ALG_RSA_1024(1), - /** - *
    -   * 2k RSA Key.
    -   * 
    - * - * KEY_ALG_RSA_2048 = 2; - */ - KEY_ALG_RSA_2048(2), - UNRECOGNIZED(-1), - ; - - /** - *
    -   * An unspecified key algorithm.
    -   * 
    - * - * KEY_ALG_UNSPECIFIED = 0; - */ - public static final int KEY_ALG_UNSPECIFIED_VALUE = 0; - /** - *
    -   * 1k RSA Key.
    -   * 
    - * - * KEY_ALG_RSA_1024 = 1; - */ - public static final int KEY_ALG_RSA_1024_VALUE = 1; - /** - *
    -   * 2k RSA Key.
    -   * 
    - * - * KEY_ALG_RSA_2048 = 2; - */ - public static final int KEY_ALG_RSA_2048_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ServiceAccountKeyAlgorithm valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ServiceAccountKeyAlgorithm forNumber(int value) { - switch (value) { - case 0: return KEY_ALG_UNSPECIFIED; - case 1: return KEY_ALG_RSA_1024; - case 2: return KEY_ALG_RSA_2048; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ServiceAccountKeyAlgorithm> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ServiceAccountKeyAlgorithm findValueByNumber(int number) { - return ServiceAccountKeyAlgorithm.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(0); - } - - private static final ServiceAccountKeyAlgorithm[] VALUES = values(); - - public static ServiceAccountKeyAlgorithm valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ServiceAccountKeyAlgorithm(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.ServiceAccountKeyAlgorithm) -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrBuilder.java deleted file mode 100644 index 8a6499b06b38..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrBuilder.java +++ /dev/null @@ -1,214 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface ServiceAccountKeyOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.ServiceAccountKey) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The resource name of the service account key in the following format
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The resource name of the service account key in the following format
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * The output format for the private key.
    -   * Only provided in `CreateServiceAccountKey` responses, not
    -   * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -   * Google never exposes system-managed private keys, and never retains
    -   * user-managed private keys.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The enum numeric value on the wire for privateKeyType. - */ - int getPrivateKeyTypeValue(); - /** - *
    -   * The output format for the private key.
    -   * Only provided in `CreateServiceAccountKey` responses, not
    -   * in `GetServiceAccountKey` or `ListServiceAccountKey` responses.
    -   * Google never exposes system-managed private keys, and never retains
    -   * user-managed private keys.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2; - * @return The privateKeyType. - */ - com.google.iam.admin.v1.ServiceAccountPrivateKeyType getPrivateKeyType(); - - /** - *
    -   * Specifies the algorithm (and possibly key size) for the key.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @return The enum numeric value on the wire for keyAlgorithm. - */ - int getKeyAlgorithmValue(); - /** - *
    -   * Specifies the algorithm (and possibly key size) for the key.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8; - * @return The keyAlgorithm. - */ - com.google.iam.admin.v1.ServiceAccountKeyAlgorithm getKeyAlgorithm(); - - /** - *
    -   * The private key data. Only provided in `CreateServiceAccountKey`
    -   * responses. Make sure to keep the private key data secure because it
    -   * allows for the assertion of the service account identity.
    -   * When base64 decoded, the private key data can be used to authenticate with
    -   * Google API client libraries and with
    -   * <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud
    -   * auth activate-service-account</a>.
    -   * 
    - * - * bytes private_key_data = 3; - * @return The privateKeyData. - */ - com.google.protobuf.ByteString getPrivateKeyData(); - - /** - *
    -   * The public key data. Only provided in `GetServiceAccountKey` responses.
    -   * 
    - * - * bytes public_key_data = 7; - * @return The publicKeyData. - */ - com.google.protobuf.ByteString getPublicKeyData(); - - /** - *
    -   * The key can be used after this timestamp.
    -   * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - * @return Whether the validAfterTime field is set. - */ - boolean hasValidAfterTime(); - /** - *
    -   * The key can be used after this timestamp.
    -   * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - * @return The validAfterTime. - */ - com.google.protobuf.Timestamp getValidAfterTime(); - /** - *
    -   * The key can be used after this timestamp.
    -   * 
    - * - * .google.protobuf.Timestamp valid_after_time = 4; - */ - com.google.protobuf.TimestampOrBuilder getValidAfterTimeOrBuilder(); - - /** - *
    -   * The key can be used before this timestamp.
    -   * For system-managed key pairs, this timestamp is the end time for the
    -   * private key signing operation. The public key could still be used
    -   * for verification for a few hours after this time.
    -   * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - * @return Whether the validBeforeTime field is set. - */ - boolean hasValidBeforeTime(); - /** - *
    -   * The key can be used before this timestamp.
    -   * For system-managed key pairs, this timestamp is the end time for the
    -   * private key signing operation. The public key could still be used
    -   * for verification for a few hours after this time.
    -   * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - * @return The validBeforeTime. - */ - com.google.protobuf.Timestamp getValidBeforeTime(); - /** - *
    -   * The key can be used before this timestamp.
    -   * For system-managed key pairs, this timestamp is the end time for the
    -   * private key signing operation. The public key could still be used
    -   * for verification for a few hours after this time.
    -   * 
    - * - * .google.protobuf.Timestamp valid_before_time = 5; - */ - com.google.protobuf.TimestampOrBuilder getValidBeforeTimeOrBuilder(); - - /** - *
    -   * The key origin.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @return The enum numeric value on the wire for keyOrigin. - */ - int getKeyOriginValue(); - /** - *
    -   * The key origin.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9; - * @return The keyOrigin. - */ - com.google.iam.admin.v1.ServiceAccountKeyOrigin getKeyOrigin(); - - /** - *
    -   * The key type.
    -   * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @return The enum numeric value on the wire for keyType. - */ - int getKeyTypeValue(); - /** - *
    -   * The key type.
    -   * 
    - * - * .google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10; - * @return The keyType. - */ - com.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType getKeyType(); - - /** - *
    -   * The key status.
    -   * 
    - * - * bool disabled = 11; - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrigin.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrigin.java deleted file mode 100644 index e04fe9e98798..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountKeyOrigin.java +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Service Account Key Origin.
    - * 
    - * - * Protobuf enum {@code google.iam.admin.v1.ServiceAccountKeyOrigin} - */ -public enum ServiceAccountKeyOrigin - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -   * Unspecified key origin.
    -   * 
    - * - * ORIGIN_UNSPECIFIED = 0; - */ - ORIGIN_UNSPECIFIED(0), - /** - *
    -   * Key is provided by user.
    -   * 
    - * - * USER_PROVIDED = 1; - */ - USER_PROVIDED(1), - /** - *
    -   * Key is provided by Google.
    -   * 
    - * - * GOOGLE_PROVIDED = 2; - */ - GOOGLE_PROVIDED(2), - UNRECOGNIZED(-1), - ; - - /** - *
    -   * Unspecified key origin.
    -   * 
    - * - * ORIGIN_UNSPECIFIED = 0; - */ - public static final int ORIGIN_UNSPECIFIED_VALUE = 0; - /** - *
    -   * Key is provided by user.
    -   * 
    - * - * USER_PROVIDED = 1; - */ - public static final int USER_PROVIDED_VALUE = 1; - /** - *
    -   * Key is provided by Google.
    -   * 
    - * - * GOOGLE_PROVIDED = 2; - */ - public static final int GOOGLE_PROVIDED_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ServiceAccountKeyOrigin valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ServiceAccountKeyOrigin forNumber(int value) { - switch (value) { - case 0: return ORIGIN_UNSPECIFIED; - case 1: return USER_PROVIDED; - case 2: return GOOGLE_PROVIDED; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ServiceAccountKeyOrigin> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ServiceAccountKeyOrigin findValueByNumber(int number) { - return ServiceAccountKeyOrigin.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(3); - } - - private static final ServiceAccountKeyOrigin[] VALUES = values(); - - public static ServiceAccountKeyOrigin valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ServiceAccountKeyOrigin(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.ServiceAccountKeyOrigin) -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountName.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountName.java deleted file mode 100644 index 83126f90254b..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountName.java +++ /dev/null @@ -1,193 +0,0 @@ -/* - * Copyright 2022 Google LLC - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * https://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -package com.google.iam.admin.v1; - -import com.google.api.pathtemplate.PathTemplate; -import com.google.api.resourcenames.ResourceName; -import com.google.common.base.Preconditions; -import com.google.common.collect.ImmutableMap; -import java.util.ArrayList; -import java.util.List; -import java.util.Map; -import java.util.Objects; -import javax.annotation.Generated; - -// AUTO-GENERATED DOCUMENTATION AND CLASS. -@Generated("by gapic-generator-java") -public class ServiceAccountName implements ResourceName { - private static final PathTemplate PROJECT_SERVICE_ACCOUNT = - PathTemplate.createWithoutUrlEncoding("projects/{project}/serviceAccounts/{service_account}"); - private volatile Map fieldValuesMap; - private final String project; - private final String serviceAccount; - - @Deprecated - protected ServiceAccountName() { - project = null; - serviceAccount = null; - } - - private ServiceAccountName(Builder builder) { - project = Preconditions.checkNotNull(builder.getProject()); - serviceAccount = Preconditions.checkNotNull(builder.getServiceAccount()); - } - - public String getProject() { - return project; - } - - public String getServiceAccount() { - return serviceAccount; - } - - public static Builder newBuilder() { - return new Builder(); - } - - public Builder toBuilder() { - return new Builder(this); - } - - public static ServiceAccountName of(String project, String serviceAccount) { - return newBuilder().setProject(project).setServiceAccount(serviceAccount).build(); - } - - public static String format(String project, String serviceAccount) { - return newBuilder().setProject(project).setServiceAccount(serviceAccount).build().toString(); - } - - public static ServiceAccountName parse(String formattedString) { - if (formattedString.isEmpty()) { - return null; - } - Map matchMap = - PROJECT_SERVICE_ACCOUNT.validatedMatch( - formattedString, "ServiceAccountName.parse: formattedString not in valid format"); - return of(matchMap.get("project"), matchMap.get("service_account")); - } - - public static List parseList(List formattedStrings) { - List list = new ArrayList<>(formattedStrings.size()); - for (String formattedString : formattedStrings) { - list.add(parse(formattedString)); - } - return list; - } - - public static List toStringList(List values) { - List list = new ArrayList<>(values.size()); - for (ServiceAccountName value : values) { - if (value == null) { - list.add(""); - } else { - list.add(value.toString()); - } - } - return list; - } - - public static boolean isParsableFrom(String formattedString) { - return PROJECT_SERVICE_ACCOUNT.matches(formattedString); - } - - @Override - public Map getFieldValuesMap() { - if (fieldValuesMap == null) { - synchronized (this) { - if (fieldValuesMap == null) { - ImmutableMap.Builder fieldMapBuilder = ImmutableMap.builder(); - if (project != null) { - fieldMapBuilder.put("project", project); - } - if (serviceAccount != null) { - fieldMapBuilder.put("service_account", serviceAccount); - } - fieldValuesMap = fieldMapBuilder.build(); - } - } - } - return fieldValuesMap; - } - - public String getFieldValue(String fieldName) { - return getFieldValuesMap().get(fieldName); - } - - @Override - public String toString() { - return PROJECT_SERVICE_ACCOUNT.instantiate( - "project", project, "service_account", serviceAccount); - } - - @Override - public boolean equals(Object o) { - if (o == this) { - return true; - } - if (o != null || getClass() == o.getClass()) { - ServiceAccountName that = ((ServiceAccountName) o); - return Objects.equals(this.project, that.project) - && Objects.equals(this.serviceAccount, that.serviceAccount); - } - return false; - } - - @Override - public int hashCode() { - int h = 1; - h *= 1000003; - h ^= Objects.hashCode(project); - h *= 1000003; - h ^= Objects.hashCode(serviceAccount); - return h; - } - - /** Builder for projects/{project}/serviceAccounts/{service_account}. */ - public static class Builder { - private String project; - private String serviceAccount; - - protected Builder() {} - - public String getProject() { - return project; - } - - public String getServiceAccount() { - return serviceAccount; - } - - public Builder setProject(String project) { - this.project = project; - return this; - } - - public Builder setServiceAccount(String serviceAccount) { - this.serviceAccount = serviceAccount; - return this; - } - - private Builder(ServiceAccountName serviceAccountName) { - this.project = serviceAccountName.project; - this.serviceAccount = serviceAccountName.serviceAccount; - } - - public ServiceAccountName build() { - return new ServiceAccountName(this); - } - } -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountOrBuilder.java deleted file mode 100644 index c68d9ae99a20..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountOrBuilder.java +++ /dev/null @@ -1,209 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface ServiceAccountOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.ServiceAccount) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The resource name of the service account.
    -   * Use one of the following formats:
    -   * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -   * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -   * As an alternative, you can use the `-` wildcard character instead of the
    -   * project ID:
    -   * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -   * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -   * When possible, avoid using the `-` wildcard character, because it can cause
    -   * response messages to contain misleading error codes. For example, if you
    -   * try to get the service account
    -   * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -   * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -   * Found` error.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The resource name of the service account.
    -   * Use one of the following formats:
    -   * * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}`
    -   * * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}`
    -   * As an alternative, you can use the `-` wildcard character instead of the
    -   * project ID:
    -   * * `projects/-/serviceAccounts/{EMAIL_ADDRESS}`
    -   * * `projects/-/serviceAccounts/{UNIQUE_ID}`
    -   * When possible, avoid using the `-` wildcard character, because it can cause
    -   * response messages to contain misleading error codes. For example, if you
    -   * try to get the service account
    -   * `projects/-/serviceAccounts/fake@example.com`, which does not exist, the
    -   * response contains an HTTP `403 Forbidden` error instead of a `404 Not
    -   * Found` error.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Output only. The ID of the project that owns the service account.
    -   * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The projectId. - */ - java.lang.String getProjectId(); - /** - *
    -   * Output only. The ID of the project that owns the service account.
    -   * 
    - * - * string project_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for projectId. - */ - com.google.protobuf.ByteString - getProjectIdBytes(); - - /** - *
    -   * Output only. The unique, stable numeric ID for the service account.
    -   * Each service account retains its unique ID even if you delete the service
    -   * account. For example, if you delete a service account, then create a new
    -   * service account with the same name, the new service account has a different
    -   * unique ID than the deleted service account.
    -   * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The uniqueId. - */ - java.lang.String getUniqueId(); - /** - *
    -   * Output only. The unique, stable numeric ID for the service account.
    -   * Each service account retains its unique ID even if you delete the service
    -   * account. For example, if you delete a service account, then create a new
    -   * service account with the same name, the new service account has a different
    -   * unique ID than the deleted service account.
    -   * 
    - * - * string unique_id = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for uniqueId. - */ - com.google.protobuf.ByteString - getUniqueIdBytes(); - - /** - *
    -   * Output only. The email address of the service account.
    -   * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The email. - */ - java.lang.String getEmail(); - /** - *
    -   * Output only. The email address of the service account.
    -   * 
    - * - * string email = 5 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for email. - */ - com.google.protobuf.ByteString - getEmailBytes(); - - /** - *
    -   * Optional. A user-specified, human-readable name for the service account. The maximum
    -   * length is 100 UTF-8 bytes.
    -   * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The displayName. - */ - java.lang.String getDisplayName(); - /** - *
    -   * Optional. A user-specified, human-readable name for the service account. The maximum
    -   * length is 100 UTF-8 bytes.
    -   * 
    - * - * string display_name = 6 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for displayName. - */ - com.google.protobuf.ByteString - getDisplayNameBytes(); - - /** - *
    -   * Deprecated. Do not use.
    -   * 
    - * - * bytes etag = 7 [deprecated = true]; - * @deprecated google.iam.admin.v1.ServiceAccount.etag is deprecated. - * See google/iam/admin/v1/iam.proto;l=538 - * @return The etag. - */ - @java.lang.Deprecated com.google.protobuf.ByteString getEtag(); - - /** - *
    -   * Optional. A user-specified, human-readable description of the service account. The
    -   * maximum length is 256 UTF-8 bytes.
    -   * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The description. - */ - java.lang.String getDescription(); - /** - *
    -   * Optional. A user-specified, human-readable description of the service account. The
    -   * maximum length is 256 UTF-8 bytes.
    -   * 
    - * - * string description = 8 [(.google.api.field_behavior) = OPTIONAL]; - * @return The bytes for description. - */ - com.google.protobuf.ByteString - getDescriptionBytes(); - - /** - *
    -   * Output only. The OAuth 2.0 client ID for the service account.
    -   * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The oauth2ClientId. - */ - java.lang.String getOauth2ClientId(); - /** - *
    -   * Output only. The OAuth 2.0 client ID for the service account.
    -   * 
    - * - * string oauth2_client_id = 9 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The bytes for oauth2ClientId. - */ - com.google.protobuf.ByteString - getOauth2ClientIdBytes(); - - /** - *
    -   * Output only. Whether the service account is disabled.
    -   * 
    - * - * bool disabled = 11 [(.google.api.field_behavior) = OUTPUT_ONLY]; - * @return The disabled. - */ - boolean getDisabled(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPrivateKeyType.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPrivateKeyType.java deleted file mode 100644 index 6c2a5967939b..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPrivateKeyType.java +++ /dev/null @@ -1,154 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Supported private key output formats.
    - * 
    - * - * Protobuf enum {@code google.iam.admin.v1.ServiceAccountPrivateKeyType} - */ -public enum ServiceAccountPrivateKeyType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -   * Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`.
    -   * 
    - * - * TYPE_UNSPECIFIED = 0; - */ - TYPE_UNSPECIFIED(0), - /** - *
    -   * PKCS12 format.
    -   * The password for the PKCS12 file is `notasecret`.
    -   * For more information, see https://tools.ietf.org/html/rfc7292.
    -   * 
    - * - * TYPE_PKCS12_FILE = 1; - */ - TYPE_PKCS12_FILE(1), - /** - *
    -   * Google Credentials File format.
    -   * 
    - * - * TYPE_GOOGLE_CREDENTIALS_FILE = 2; - */ - TYPE_GOOGLE_CREDENTIALS_FILE(2), - UNRECOGNIZED(-1), - ; - - /** - *
    -   * Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`.
    -   * 
    - * - * TYPE_UNSPECIFIED = 0; - */ - public static final int TYPE_UNSPECIFIED_VALUE = 0; - /** - *
    -   * PKCS12 format.
    -   * The password for the PKCS12 file is `notasecret`.
    -   * For more information, see https://tools.ietf.org/html/rfc7292.
    -   * 
    - * - * TYPE_PKCS12_FILE = 1; - */ - public static final int TYPE_PKCS12_FILE_VALUE = 1; - /** - *
    -   * Google Credentials File format.
    -   * 
    - * - * TYPE_GOOGLE_CREDENTIALS_FILE = 2; - */ - public static final int TYPE_GOOGLE_CREDENTIALS_FILE_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ServiceAccountPrivateKeyType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ServiceAccountPrivateKeyType forNumber(int value) { - switch (value) { - case 0: return TYPE_UNSPECIFIED; - case 1: return TYPE_PKCS12_FILE; - case 2: return TYPE_GOOGLE_CREDENTIALS_FILE; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ServiceAccountPrivateKeyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ServiceAccountPrivateKeyType findValueByNumber(int number) { - return ServiceAccountPrivateKeyType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(1); - } - - private static final ServiceAccountPrivateKeyType[] VALUES = values(); - - public static ServiceAccountPrivateKeyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ServiceAccountPrivateKeyType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.ServiceAccountPrivateKeyType) -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPublicKeyType.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPublicKeyType.java deleted file mode 100644 index 31dfeec72b5e..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/ServiceAccountPublicKeyType.java +++ /dev/null @@ -1,150 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Supported public key output formats.
    - * 
    - * - * Protobuf enum {@code google.iam.admin.v1.ServiceAccountPublicKeyType} - */ -public enum ServiceAccountPublicKeyType - implements com.google.protobuf.ProtocolMessageEnum { - /** - *
    -   * Do not return the public key.
    -   * 
    - * - * TYPE_NONE = 0; - */ - TYPE_NONE(0), - /** - *
    -   * X509 PEM format.
    -   * 
    - * - * TYPE_X509_PEM_FILE = 1; - */ - TYPE_X509_PEM_FILE(1), - /** - *
    -   * Raw public key.
    -   * 
    - * - * TYPE_RAW_PUBLIC_KEY = 2; - */ - TYPE_RAW_PUBLIC_KEY(2), - UNRECOGNIZED(-1), - ; - - /** - *
    -   * Do not return the public key.
    -   * 
    - * - * TYPE_NONE = 0; - */ - public static final int TYPE_NONE_VALUE = 0; - /** - *
    -   * X509 PEM format.
    -   * 
    - * - * TYPE_X509_PEM_FILE = 1; - */ - public static final int TYPE_X509_PEM_FILE_VALUE = 1; - /** - *
    -   * Raw public key.
    -   * 
    - * - * TYPE_RAW_PUBLIC_KEY = 2; - */ - public static final int TYPE_RAW_PUBLIC_KEY_VALUE = 2; - - - public final int getNumber() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalArgumentException( - "Can't get the number of an unknown enum value."); - } - return value; - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - * @deprecated Use {@link #forNumber(int)} instead. - */ - @java.lang.Deprecated - public static ServiceAccountPublicKeyType valueOf(int value) { - return forNumber(value); - } - - /** - * @param value The numeric wire value of the corresponding enum entry. - * @return The enum associated with the given numeric wire value. - */ - public static ServiceAccountPublicKeyType forNumber(int value) { - switch (value) { - case 0: return TYPE_NONE; - case 1: return TYPE_X509_PEM_FILE; - case 2: return TYPE_RAW_PUBLIC_KEY; - default: return null; - } - } - - public static com.google.protobuf.Internal.EnumLiteMap - internalGetValueMap() { - return internalValueMap; - } - private static final com.google.protobuf.Internal.EnumLiteMap< - ServiceAccountPublicKeyType> internalValueMap = - new com.google.protobuf.Internal.EnumLiteMap() { - public ServiceAccountPublicKeyType findValueByNumber(int number) { - return ServiceAccountPublicKeyType.forNumber(number); - } - }; - - public final com.google.protobuf.Descriptors.EnumValueDescriptor - getValueDescriptor() { - if (this == UNRECOGNIZED) { - throw new java.lang.IllegalStateException( - "Can't get the descriptor of an unrecognized enum value."); - } - return getDescriptor().getValues().get(ordinal()); - } - public final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptorForType() { - return getDescriptor(); - } - public static final com.google.protobuf.Descriptors.EnumDescriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.getDescriptor().getEnumTypes().get(2); - } - - private static final ServiceAccountPublicKeyType[] VALUES = values(); - - public static ServiceAccountPublicKeyType valueOf( - com.google.protobuf.Descriptors.EnumValueDescriptor desc) { - if (desc.getType() != getDescriptor()) { - throw new java.lang.IllegalArgumentException( - "EnumValueDescriptor is not for this type."); - } - if (desc.getIndex() == -1) { - return UNRECOGNIZED; - } - return VALUES[desc.getIndex()]; - } - - private final int value; - - private ServiceAccountPublicKeyType(int value) { - this.value = value; - } - - // @@protoc_insertion_point(enum_scope:google.iam.admin.v1.ServiceAccountPublicKeyType) -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequest.java deleted file mode 100644 index 2be14a1ebbd2..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequest.java +++ /dev/null @@ -1,755 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Deprecated. [Migrate to Service Account Credentials
    - * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    - * The service account sign blob request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.SignBlobRequest} - */ -public final class SignBlobRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.SignBlobRequest) - SignBlobRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignBlobRequest.newBuilder() to construct. - private SignBlobRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignBlobRequest() { - name_ = ""; - bytesToSign_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignBlobRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignBlobRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - - bytesToSign_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.SignBlobRequest.class, com.google.iam.admin.v1.SignBlobRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @return The name. - */ - @java.lang.Override - @java.lang.Deprecated public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @return The bytes for name. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int BYTES_TO_SIGN_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString bytesToSign_; - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The bytes to sign.
    -   * 
    - * - * bytes bytes_to_sign = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. - * See google/iam/admin/v1/iam.proto;l=986 - * @return The bytesToSign. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getBytesToSign() { - return bytesToSign_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!bytesToSign_.isEmpty()) { - output.writeBytes(2, bytesToSign_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!bytesToSign_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, bytesToSign_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.SignBlobRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.SignBlobRequest other = (com.google.iam.admin.v1.SignBlobRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getBytesToSign() - .equals(other.getBytesToSign())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + BYTES_TO_SIGN_FIELD_NUMBER; - hash = (53 * hash) + getBytesToSign().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.SignBlobRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignBlobRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignBlobRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.SignBlobRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The service account sign blob request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.SignBlobRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.SignBlobRequest) - com.google.iam.admin.v1.SignBlobRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.SignBlobRequest.class, com.google.iam.admin.v1.SignBlobRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.SignBlobRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - bytesToSign_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignBlobRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.SignBlobRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.SignBlobRequest build() { - com.google.iam.admin.v1.SignBlobRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignBlobRequest buildPartial() { - com.google.iam.admin.v1.SignBlobRequest result = new com.google.iam.admin.v1.SignBlobRequest(this); - result.name_ = name_; - result.bytesToSign_ = bytesToSign_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.SignBlobRequest) { - return mergeFrom((com.google.iam.admin.v1.SignBlobRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.SignBlobRequest other) { - if (other == com.google.iam.admin.v1.SignBlobRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getBytesToSign() != com.google.protobuf.ByteString.EMPTY) { - setBytesToSign(other.getBytesToSign()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.SignBlobRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.SignBlobRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @return The name. - */ - @java.lang.Deprecated public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @return The bytes for name. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @param value The name to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString bytesToSign_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The bytes to sign.
    -     * 
    - * - * bytes bytes_to_sign = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. - * See google/iam/admin/v1/iam.proto;l=986 - * @return The bytesToSign. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getBytesToSign() { - return bytesToSign_; - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The bytes to sign.
    -     * 
    - * - * bytes bytes_to_sign = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. - * See google/iam/admin/v1/iam.proto;l=986 - * @param value The bytesToSign to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setBytesToSign(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - bytesToSign_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The bytes to sign.
    -     * 
    - * - * bytes bytes_to_sign = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. - * See google/iam/admin/v1/iam.proto;l=986 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearBytesToSign() { - - bytesToSign_ = getDefaultInstance().getBytesToSign(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.SignBlobRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.SignBlobRequest) - private static final com.google.iam.admin.v1.SignBlobRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.SignBlobRequest(); - } - - public static com.google.iam.admin.v1.SignBlobRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignBlobRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignBlobRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignBlobRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequestOrBuilder.java deleted file mode 100644 index 57a4d166f523..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobRequestOrBuilder.java +++ /dev/null @@ -1,59 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface SignBlobRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.SignBlobRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @return The name. - */ - @java.lang.Deprecated java.lang.String getName(); - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignBlobRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=974 - * @return The bytes for name. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The bytes to sign.
    -   * 
    - * - * bytes bytes_to_sign = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignBlobRequest.bytes_to_sign is deprecated. - * See google/iam/admin/v1/iam.proto;l=986 - * @return The bytesToSign. - */ - @java.lang.Deprecated com.google.protobuf.ByteString getBytesToSign(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponse.java deleted file mode 100644 index b6571ae5348d..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponse.java +++ /dev/null @@ -1,727 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Deprecated. [Migrate to Service Account Credentials
    - * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    - * The service account sign blob response.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.SignBlobResponse} - */ -public final class SignBlobResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.SignBlobResponse) - SignBlobResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignBlobResponse.newBuilder() to construct. - private SignBlobResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignBlobResponse() { - keyId_ = ""; - signature_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignBlobResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignBlobResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - keyId_ = s; - break; - } - case 18: { - - signature_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.SignBlobResponse.class, com.google.iam.admin.v1.SignBlobResponse.Builder.class); - } - - public static final int KEY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object keyId_; - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The id of the key used to sign the blob.
    -   * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @return The keyId. - */ - @java.lang.Override - @java.lang.Deprecated public java.lang.String getKeyId() { - java.lang.Object ref = keyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyId_ = s; - return s; - } - } - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The id of the key used to sign the blob.
    -   * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @return The bytes for keyId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getKeyIdBytes() { - java.lang.Object ref = keyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - keyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNATURE_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString signature_; - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The signed blob.
    -   * 
    - * - * bytes signature = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. - * See google/iam/admin/v1/iam.proto;l=1007 - * @return The signature. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getSignature() { - return signature_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_); - } - if (!signature_.isEmpty()) { - output.writeBytes(2, signature_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyId_); - } - if (!signature_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, signature_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.SignBlobResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.SignBlobResponse other = (com.google.iam.admin.v1.SignBlobResponse) obj; - - if (!getKeyId() - .equals(other.getKeyId())) return false; - if (!getSignature() - .equals(other.getSignature())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_ID_FIELD_NUMBER; - hash = (53 * hash) + getKeyId().hashCode(); - hash = (37 * hash) + SIGNATURE_FIELD_NUMBER; - hash = (53 * hash) + getSignature().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.SignBlobResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignBlobResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignBlobResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.SignBlobResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The service account sign blob response.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.SignBlobResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.SignBlobResponse) - com.google.iam.admin.v1.SignBlobResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.SignBlobResponse.class, com.google.iam.admin.v1.SignBlobResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.SignBlobResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - keyId_ = ""; - - signature_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignBlobResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignBlobResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.SignBlobResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.SignBlobResponse build() { - com.google.iam.admin.v1.SignBlobResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignBlobResponse buildPartial() { - com.google.iam.admin.v1.SignBlobResponse result = new com.google.iam.admin.v1.SignBlobResponse(this); - result.keyId_ = keyId_; - result.signature_ = signature_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.SignBlobResponse) { - return mergeFrom((com.google.iam.admin.v1.SignBlobResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.SignBlobResponse other) { - if (other == com.google.iam.admin.v1.SignBlobResponse.getDefaultInstance()) return this; - if (!other.getKeyId().isEmpty()) { - keyId_ = other.keyId_; - onChanged(); - } - if (other.getSignature() != com.google.protobuf.ByteString.EMPTY) { - setSignature(other.getSignature()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.SignBlobResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.SignBlobResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object keyId_ = ""; - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the blob.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @return The keyId. - */ - @java.lang.Deprecated public java.lang.String getKeyId() { - java.lang.Object ref = keyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the blob.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @return The bytes for keyId. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getKeyIdBytes() { - java.lang.Object ref = keyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - keyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the blob.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @param value The keyId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setKeyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keyId_ = value; - onChanged(); - return this; - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the blob.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearKeyId() { - - keyId_ = getDefaultInstance().getKeyId(); - onChanged(); - return this; - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the blob.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @param value The bytes for keyId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setKeyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keyId_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString signature_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The signed blob.
    -     * 
    - * - * bytes signature = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. - * See google/iam/admin/v1/iam.proto;l=1007 - * @return The signature. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString getSignature() { - return signature_; - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The signed blob.
    -     * 
    - * - * bytes signature = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. - * See google/iam/admin/v1/iam.proto;l=1007 - * @param value The signature to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setSignature(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - signature_ = value; - onChanged(); - return this; - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The signed blob.
    -     * 
    - * - * bytes signature = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. - * See google/iam/admin/v1/iam.proto;l=1007 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearSignature() { - - signature_ = getDefaultInstance().getSignature(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.SignBlobResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.SignBlobResponse) - private static final com.google.iam.admin.v1.SignBlobResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.SignBlobResponse(); - } - - public static com.google.iam.admin.v1.SignBlobResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignBlobResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignBlobResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignBlobResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponseOrBuilder.java deleted file mode 100644 index ba2b0d42ecea..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignBlobResponseOrBuilder.java +++ /dev/null @@ -1,51 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface SignBlobResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.SignBlobResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The id of the key used to sign the blob.
    -   * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @return The keyId. - */ - @java.lang.Deprecated java.lang.String getKeyId(); - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The id of the key used to sign the blob.
    -   * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1001 - * @return The bytes for keyId. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getKeyIdBytes(); - - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The signed blob.
    -   * 
    - * - * bytes signature = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignBlobResponse.signature is deprecated. - * See google/iam/admin/v1/iam.proto;l=1007 - * @return The signature. - */ - @java.lang.Deprecated com.google.protobuf.ByteString getSignature(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequest.java deleted file mode 100644 index 7a1dc1dd7465..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequest.java +++ /dev/null @@ -1,898 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Deprecated. [Migrate to Service Account Credentials
    - * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    - * The service account sign JWT request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.SignJwtRequest} - */ -public final class SignJwtRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.SignJwtRequest) - SignJwtRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignJwtRequest.newBuilder() to construct. - private SignJwtRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignJwtRequest() { - name_ = ""; - payload_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignJwtRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignJwtRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - payload_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.SignJwtRequest.class, com.google.iam.admin.v1.SignJwtRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @return The name. - */ - @java.lang.Override - @java.lang.Deprecated public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @return The bytes for name. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PAYLOAD_FIELD_NUMBER = 2; - private volatile java.lang.Object payload_; - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The JWT payload to sign. Must be a serialized JSON object that contains a
    -   * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -   * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -   * an integer timestamp that is not in the past and no more than 12 hours in
    -   * the future.
    -   * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -   * this claim is added automatically, with a timestamp that is 1 hour in the
    -   * future.
    -   * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @return The payload. - */ - @java.lang.Override - @java.lang.Deprecated public java.lang.String getPayload() { - java.lang.Object ref = payload_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payload_ = s; - return s; - } - } - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The JWT payload to sign. Must be a serialized JSON object that contains a
    -   * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -   * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -   * an integer timestamp that is not in the past and no more than 12 hours in
    -   * the future.
    -   * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -   * this claim is added automatically, with a timestamp that is 1 hour in the
    -   * future.
    -   * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @return The bytes for payload. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getPayloadBytes() { - java.lang.Object ref = payload_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payload_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payload_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, payload_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(payload_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, payload_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.SignJwtRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.SignJwtRequest other = (com.google.iam.admin.v1.SignJwtRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getPayload() - .equals(other.getPayload())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PAYLOAD_FIELD_NUMBER; - hash = (53 * hash) + getPayload().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.SignJwtRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignJwtRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignJwtRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.SignJwtRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The service account sign JWT request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.SignJwtRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.SignJwtRequest) - com.google.iam.admin.v1.SignJwtRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.SignJwtRequest.class, com.google.iam.admin.v1.SignJwtRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.SignJwtRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - payload_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignJwtRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.SignJwtRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.SignJwtRequest build() { - com.google.iam.admin.v1.SignJwtRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignJwtRequest buildPartial() { - com.google.iam.admin.v1.SignJwtRequest result = new com.google.iam.admin.v1.SignJwtRequest(this); - result.name_ = name_; - result.payload_ = payload_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.SignJwtRequest) { - return mergeFrom((com.google.iam.admin.v1.SignJwtRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.SignJwtRequest other) { - if (other == com.google.iam.admin.v1.SignJwtRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (!other.getPayload().isEmpty()) { - payload_ = other.payload_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.SignJwtRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.SignJwtRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @return The name. - */ - @java.lang.Deprecated public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @return The bytes for name. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @param value The name to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private java.lang.Object payload_ = ""; - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The JWT payload to sign. Must be a serialized JSON object that contains a
    -     * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -     * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -     * an integer timestamp that is not in the past and no more than 12 hours in
    -     * the future.
    -     * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -     * this claim is added automatically, with a timestamp that is 1 hour in the
    -     * future.
    -     * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @return The payload. - */ - @java.lang.Deprecated public java.lang.String getPayload() { - java.lang.Object ref = payload_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - payload_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The JWT payload to sign. Must be a serialized JSON object that contains a
    -     * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -     * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -     * an integer timestamp that is not in the past and no more than 12 hours in
    -     * the future.
    -     * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -     * this claim is added automatically, with a timestamp that is 1 hour in the
    -     * future.
    -     * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @return The bytes for payload. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getPayloadBytes() { - java.lang.Object ref = payload_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - payload_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The JWT payload to sign. Must be a serialized JSON object that contains a
    -     * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -     * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -     * an integer timestamp that is not in the past and no more than 12 hours in
    -     * the future.
    -     * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -     * this claim is added automatically, with a timestamp that is 1 hour in the
    -     * future.
    -     * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @param value The payload to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setPayload( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - payload_ = value; - onChanged(); - return this; - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The JWT payload to sign. Must be a serialized JSON object that contains a
    -     * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -     * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -     * an integer timestamp that is not in the past and no more than 12 hours in
    -     * the future.
    -     * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -     * this claim is added automatically, with a timestamp that is 1 hour in the
    -     * future.
    -     * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearPayload() { - - payload_ = getDefaultInstance().getPayload(); - onChanged(); - return this; - } - /** - *
    -     * Required. Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The JWT payload to sign. Must be a serialized JSON object that contains a
    -     * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -     * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -     * an integer timestamp that is not in the past and no more than 12 hours in
    -     * the future.
    -     * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -     * this claim is added automatically, with a timestamp that is 1 hour in the
    -     * future.
    -     * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @param value The bytes for payload to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setPayloadBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - payload_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.SignJwtRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.SignJwtRequest) - private static final com.google.iam.admin.v1.SignJwtRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.SignJwtRequest(); - } - - public static com.google.iam.admin.v1.SignJwtRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignJwtRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignJwtRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignJwtRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequestOrBuilder.java deleted file mode 100644 index f487b6979853..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtRequestOrBuilder.java +++ /dev/null @@ -1,87 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface SignJwtRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.SignJwtRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @return The name. - */ - @java.lang.Deprecated java.lang.String getName(); - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1 [deprecated = true, (.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } - * @deprecated google.iam.admin.v1.SignJwtRequest.name is deprecated. - * See google/iam/admin/v1/iam.proto;l=1023 - * @return The bytes for name. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The JWT payload to sign. Must be a serialized JSON object that contains a
    -   * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -   * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -   * an integer timestamp that is not in the past and no more than 12 hours in
    -   * the future.
    -   * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -   * this claim is added automatically, with a timestamp that is 1 hour in the
    -   * future.
    -   * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @return The payload. - */ - @java.lang.Deprecated java.lang.String getPayload(); - /** - *
    -   * Required. Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The JWT payload to sign. Must be a serialized JSON object that contains a
    -   * JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}`
    -   * If the JWT Claims Set contains an expiration time (`exp`) claim, it must be
    -   * an integer timestamp that is not in the past and no more than 12 hours in
    -   * the future.
    -   * If the JWT Claims Set does not contain an expiration time (`exp`) claim,
    -   * this claim is added automatically, with a timestamp that is 1 hour in the
    -   * future.
    -   * 
    - * - * string payload = 2 [deprecated = true, (.google.api.field_behavior) = REQUIRED]; - * @deprecated google.iam.admin.v1.SignJwtRequest.payload is deprecated. - * See google/iam/admin/v1/iam.proto;l=1044 - * @return The bytes for payload. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getPayloadBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponse.java deleted file mode 100644 index 60f330215bea..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponse.java +++ /dev/null @@ -1,821 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * Deprecated. [Migrate to Service Account Credentials
    - * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    - * The service account sign JWT response.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.SignJwtResponse} - */ -public final class SignJwtResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.SignJwtResponse) - SignJwtResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use SignJwtResponse.newBuilder() to construct. - private SignJwtResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private SignJwtResponse() { - keyId_ = ""; - signedJwt_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new SignJwtResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private SignJwtResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - keyId_ = s; - break; - } - case 18: { - java.lang.String s = input.readStringRequireUtf8(); - - signedJwt_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.SignJwtResponse.class, com.google.iam.admin.v1.SignJwtResponse.Builder.class); - } - - public static final int KEY_ID_FIELD_NUMBER = 1; - private volatile java.lang.Object keyId_; - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The id of the key used to sign the JWT.
    -   * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @return The keyId. - */ - @java.lang.Override - @java.lang.Deprecated public java.lang.String getKeyId() { - java.lang.Object ref = keyId_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyId_ = s; - return s; - } - } - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The id of the key used to sign the JWT.
    -   * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @return The bytes for keyId. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getKeyIdBytes() { - java.lang.Object ref = keyId_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - keyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int SIGNED_JWT_FIELD_NUMBER = 2; - private volatile java.lang.Object signedJwt_; - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The signed JWT.
    -   * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @return The signedJwt. - */ - @java.lang.Override - @java.lang.Deprecated public java.lang.String getSignedJwt() { - java.lang.Object ref = signedJwt_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signedJwt_ = s; - return s; - } - } - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The signed JWT.
    -   * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @return The bytes for signedJwt. - */ - @java.lang.Override - @java.lang.Deprecated public com.google.protobuf.ByteString - getSignedJwtBytes() { - java.lang.Object ref = signedJwt_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signedJwt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, keyId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signedJwt_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 2, signedJwt_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(keyId_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, keyId_); - } - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(signedJwt_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, signedJwt_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.SignJwtResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.SignJwtResponse other = (com.google.iam.admin.v1.SignJwtResponse) obj; - - if (!getKeyId() - .equals(other.getKeyId())) return false; - if (!getSignedJwt() - .equals(other.getSignedJwt())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + KEY_ID_FIELD_NUMBER; - hash = (53 * hash) + getKeyId().hashCode(); - hash = (37 * hash) + SIGNED_JWT_FIELD_NUMBER; - hash = (53 * hash) + getSignedJwt().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.SignJwtResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignJwtResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.SignJwtResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.SignJwtResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The service account sign JWT response.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.SignJwtResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.SignJwtResponse) - com.google.iam.admin.v1.SignJwtResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.SignJwtResponse.class, com.google.iam.admin.v1.SignJwtResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.SignJwtResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - keyId_ = ""; - - signedJwt_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_SignJwtResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignJwtResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.SignJwtResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.SignJwtResponse build() { - com.google.iam.admin.v1.SignJwtResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignJwtResponse buildPartial() { - com.google.iam.admin.v1.SignJwtResponse result = new com.google.iam.admin.v1.SignJwtResponse(this); - result.keyId_ = keyId_; - result.signedJwt_ = signedJwt_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.SignJwtResponse) { - return mergeFrom((com.google.iam.admin.v1.SignJwtResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.SignJwtResponse other) { - if (other == com.google.iam.admin.v1.SignJwtResponse.getDefaultInstance()) return this; - if (!other.getKeyId().isEmpty()) { - keyId_ = other.keyId_; - onChanged(); - } - if (!other.getSignedJwt().isEmpty()) { - signedJwt_ = other.signedJwt_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.SignJwtResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.SignJwtResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object keyId_ = ""; - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the JWT.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @return The keyId. - */ - @java.lang.Deprecated public java.lang.String getKeyId() { - java.lang.Object ref = keyId_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - keyId_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the JWT.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @return The bytes for keyId. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getKeyIdBytes() { - java.lang.Object ref = keyId_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - keyId_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the JWT.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @param value The keyId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setKeyId( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - keyId_ = value; - onChanged(); - return this; - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the JWT.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearKeyId() { - - keyId_ = getDefaultInstance().getKeyId(); - onChanged(); - return this; - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The id of the key used to sign the JWT.
    -     * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @param value The bytes for keyId to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setKeyIdBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - keyId_ = value; - onChanged(); - return this; - } - - private java.lang.Object signedJwt_ = ""; - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The signed JWT.
    -     * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @return The signedJwt. - */ - @java.lang.Deprecated public java.lang.String getSignedJwt() { - java.lang.Object ref = signedJwt_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - signedJwt_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The signed JWT.
    -     * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @return The bytes for signedJwt. - */ - @java.lang.Deprecated public com.google.protobuf.ByteString - getSignedJwtBytes() { - java.lang.Object ref = signedJwt_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - signedJwt_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The signed JWT.
    -     * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @param value The signedJwt to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setSignedJwt( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - signedJwt_ = value; - onChanged(); - return this; - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The signed JWT.
    -     * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder clearSignedJwt() { - - signedJwt_ = getDefaultInstance().getSignedJwt(); - onChanged(); - return this; - } - /** - *
    -     * Deprecated. [Migrate to Service Account Credentials
    -     * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -     * The signed JWT.
    -     * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @param value The bytes for signedJwt to set. - * @return This builder for chaining. - */ - @java.lang.Deprecated public Builder setSignedJwtBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - signedJwt_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.SignJwtResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.SignJwtResponse) - private static final com.google.iam.admin.v1.SignJwtResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.SignJwtResponse(); - } - - public static com.google.iam.admin.v1.SignJwtResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public SignJwtResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new SignJwtResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.SignJwtResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponseOrBuilder.java deleted file mode 100644 index cf3419515345..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/SignJwtResponseOrBuilder.java +++ /dev/null @@ -1,65 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface SignJwtResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.SignJwtResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The id of the key used to sign the JWT.
    -   * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @return The keyId. - */ - @java.lang.Deprecated java.lang.String getKeyId(); - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The id of the key used to sign the JWT.
    -   * 
    - * - * string key_id = 1 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.key_id is deprecated. - * See google/iam/admin/v1/iam.proto;l=1059 - * @return The bytes for keyId. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getKeyIdBytes(); - - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The signed JWT.
    -   * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @return The signedJwt. - */ - @java.lang.Deprecated java.lang.String getSignedJwt(); - /** - *
    -   * Deprecated. [Migrate to Service Account Credentials
    -   * API](https://cloud.google.com/iam/help/credentials/migrate-api).
    -   * The signed JWT.
    -   * 
    - * - * string signed_jwt = 2 [deprecated = true]; - * @deprecated google.iam.admin.v1.SignJwtResponse.signed_jwt is deprecated. - * See google/iam/admin/v1/iam.proto;l=1065 - * @return The bytes for signedJwt. - */ - @java.lang.Deprecated com.google.protobuf.ByteString - getSignedJwtBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequest.java deleted file mode 100644 index 525663eac861..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequest.java +++ /dev/null @@ -1,812 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The request to undelete an existing role.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.UndeleteRoleRequest} - */ -public final class UndeleteRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.UndeleteRoleRequest) - UndeleteRoleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UndeleteRoleRequest.newBuilder() to construct. - private UndeleteRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UndeleteRoleRequest() { - name_ = ""; - etag_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UndeleteRoleRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UndeleteRoleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - - etag_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UndeleteRoleRequest.class, com.google.iam.admin.v1.UndeleteRoleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -   *   only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   undeletes only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -   *   only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   undeletes only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ETAG_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString etag_; - /** - *
    -   * Used to perform a consistent read-modify-write.
    -   * 
    - * - * bytes etag = 2; - * @return The etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtag() { - return etag_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!etag_.isEmpty()) { - output.writeBytes(2, etag_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!etag_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, etag_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.UndeleteRoleRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.UndeleteRoleRequest other = (com.google.iam.admin.v1.UndeleteRoleRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getEtag() - .equals(other.getEtag())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + ETAG_FIELD_NUMBER; - hash = (53 * hash) + getEtag().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.UndeleteRoleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The request to undelete an existing role.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.UndeleteRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UndeleteRoleRequest) - com.google.iam.admin.v1.UndeleteRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UndeleteRoleRequest.class, com.google.iam.admin.v1.UndeleteRoleRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.UndeleteRoleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - etag_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteRoleRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteRoleRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.UndeleteRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteRoleRequest build() { - com.google.iam.admin.v1.UndeleteRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteRoleRequest buildPartial() { - com.google.iam.admin.v1.UndeleteRoleRequest result = new com.google.iam.admin.v1.UndeleteRoleRequest(this); - result.name_ = name_; - result.etag_ = etag_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.UndeleteRoleRequest) { - return mergeFrom((com.google.iam.admin.v1.UndeleteRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.UndeleteRoleRequest other) { - if (other == com.google.iam.admin.v1.UndeleteRoleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getEtag() != com.google.protobuf.ByteString.EMPTY) { - setEtag(other.getEtag()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.UndeleteRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.UndeleteRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -     *   only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   undeletes only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString etag_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 2; - * @return The etag. - */ - @java.lang.Override - public com.google.protobuf.ByteString getEtag() { - return etag_; - } - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 2; - * @param value The etag to set. - * @return This builder for chaining. - */ - public Builder setEtag(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - etag_ = value; - onChanged(); - return this; - } - /** - *
    -     * Used to perform a consistent read-modify-write.
    -     * 
    - * - * bytes etag = 2; - * @return This builder for chaining. - */ - public Builder clearEtag() { - - etag_ = getDefaultInstance().getEtag(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.UndeleteRoleRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.UndeleteRoleRequest) - private static final com.google.iam.admin.v1.UndeleteRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.UndeleteRoleRequest(); - } - - public static com.google.iam.admin.v1.UndeleteRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeleteRoleRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequestOrBuilder.java deleted file mode 100644 index ec667659e675..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteRoleRequestOrBuilder.java +++ /dev/null @@ -1,77 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface UndeleteRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.UndeleteRoleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -   *   only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   undeletes only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes
    -   *   only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   undeletes only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * Used to perform a consistent read-modify-write.
    -   * 
    - * - * bytes etag = 2; - * @return The etag. - */ - com.google.protobuf.ByteString getEtag(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequest.java deleted file mode 100644 index 5526bc4c1adf..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequest.java +++ /dev/null @@ -1,616 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account undelete request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.UndeleteServiceAccountRequest} - */ -public final class UndeleteServiceAccountRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.UndeleteServiceAccountRequest) - UndeleteServiceAccountRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UndeleteServiceAccountRequest.newBuilder() to construct. - private UndeleteServiceAccountRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UndeleteServiceAccountRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UndeleteServiceAccountRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UndeleteServiceAccountRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UndeleteServiceAccountRequest.class, com.google.iam.admin.v1.UndeleteServiceAccountRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.UndeleteServiceAccountRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.UndeleteServiceAccountRequest other = (com.google.iam.admin.v1.UndeleteServiceAccountRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.UndeleteServiceAccountRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account undelete request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.UndeleteServiceAccountRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UndeleteServiceAccountRequest) - com.google.iam.admin.v1.UndeleteServiceAccountRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UndeleteServiceAccountRequest.class, com.google.iam.admin.v1.UndeleteServiceAccountRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.UndeleteServiceAccountRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteServiceAccountRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.UndeleteServiceAccountRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteServiceAccountRequest build() { - com.google.iam.admin.v1.UndeleteServiceAccountRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteServiceAccountRequest buildPartial() { - com.google.iam.admin.v1.UndeleteServiceAccountRequest result = new com.google.iam.admin.v1.UndeleteServiceAccountRequest(this); - result.name_ = name_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.UndeleteServiceAccountRequest) { - return mergeFrom((com.google.iam.admin.v1.UndeleteServiceAccountRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.UndeleteServiceAccountRequest other) { - if (other == com.google.iam.admin.v1.UndeleteServiceAccountRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.UndeleteServiceAccountRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.UndeleteServiceAccountRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account.
    -     * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account.
    -     * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account.
    -     * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.UndeleteServiceAccountRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.UndeleteServiceAccountRequest) - private static final com.google.iam.admin.v1.UndeleteServiceAccountRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.UndeleteServiceAccountRequest(); - } - - public static com.google.iam.admin.v1.UndeleteServiceAccountRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteServiceAccountRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeleteServiceAccountRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteServiceAccountRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequestOrBuilder.java deleted file mode 100644 index ada3f55d42e0..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountRequestOrBuilder.java +++ /dev/null @@ -1,35 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface UndeleteServiceAccountRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.UndeleteServiceAccountRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponse.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponse.java deleted file mode 100644 index cb1d5bc1ec42..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponse.java +++ /dev/null @@ -1,657 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - * Protobuf type {@code google.iam.admin.v1.UndeleteServiceAccountResponse} - */ -public final class UndeleteServiceAccountResponse extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.UndeleteServiceAccountResponse) - UndeleteServiceAccountResponseOrBuilder { -private static final long serialVersionUID = 0L; - // Use UndeleteServiceAccountResponse.newBuilder() to construct. - private UndeleteServiceAccountResponse(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UndeleteServiceAccountResponse() { - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UndeleteServiceAccountResponse(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UndeleteServiceAccountResponse( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - com.google.iam.admin.v1.ServiceAccount.Builder subBuilder = null; - if (restoredAccount_ != null) { - subBuilder = restoredAccount_.toBuilder(); - } - restoredAccount_ = input.readMessage(com.google.iam.admin.v1.ServiceAccount.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(restoredAccount_); - restoredAccount_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UndeleteServiceAccountResponse.class, com.google.iam.admin.v1.UndeleteServiceAccountResponse.Builder.class); - } - - public static final int RESTORED_ACCOUNT_FIELD_NUMBER = 1; - private com.google.iam.admin.v1.ServiceAccount restoredAccount_; - /** - *
    -   * Metadata for the restored service account.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - * @return Whether the restoredAccount field is set. - */ - @java.lang.Override - public boolean hasRestoredAccount() { - return restoredAccount_ != null; - } - /** - *
    -   * Metadata for the restored service account.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - * @return The restoredAccount. - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccount getRestoredAccount() { - return restoredAccount_ == null ? com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : restoredAccount_; - } - /** - *
    -   * Metadata for the restored service account.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - @java.lang.Override - public com.google.iam.admin.v1.ServiceAccountOrBuilder getRestoredAccountOrBuilder() { - return getRestoredAccount(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (restoredAccount_ != null) { - output.writeMessage(1, getRestoredAccount()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (restoredAccount_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(1, getRestoredAccount()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.UndeleteServiceAccountResponse)) { - return super.equals(obj); - } - com.google.iam.admin.v1.UndeleteServiceAccountResponse other = (com.google.iam.admin.v1.UndeleteServiceAccountResponse) obj; - - if (hasRestoredAccount() != other.hasRestoredAccount()) return false; - if (hasRestoredAccount()) { - if (!getRestoredAccount() - .equals(other.getRestoredAccount())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - if (hasRestoredAccount()) { - hash = (37 * hash) + RESTORED_ACCOUNT_FIELD_NUMBER; - hash = (53 * hash) + getRestoredAccount().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.UndeleteServiceAccountResponse prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - * Protobuf type {@code google.iam.admin.v1.UndeleteServiceAccountResponse} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UndeleteServiceAccountResponse) - com.google.iam.admin.v1.UndeleteServiceAccountResponseOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UndeleteServiceAccountResponse.class, com.google.iam.admin.v1.UndeleteServiceAccountResponse.Builder.class); - } - - // Construct using com.google.iam.admin.v1.UndeleteServiceAccountResponse.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - if (restoredAccountBuilder_ == null) { - restoredAccount_ = null; - } else { - restoredAccount_ = null; - restoredAccountBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UndeleteServiceAccountResponse_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteServiceAccountResponse getDefaultInstanceForType() { - return com.google.iam.admin.v1.UndeleteServiceAccountResponse.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteServiceAccountResponse build() { - com.google.iam.admin.v1.UndeleteServiceAccountResponse result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteServiceAccountResponse buildPartial() { - com.google.iam.admin.v1.UndeleteServiceAccountResponse result = new com.google.iam.admin.v1.UndeleteServiceAccountResponse(this); - if (restoredAccountBuilder_ == null) { - result.restoredAccount_ = restoredAccount_; - } else { - result.restoredAccount_ = restoredAccountBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.UndeleteServiceAccountResponse) { - return mergeFrom((com.google.iam.admin.v1.UndeleteServiceAccountResponse)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.UndeleteServiceAccountResponse other) { - if (other == com.google.iam.admin.v1.UndeleteServiceAccountResponse.getDefaultInstance()) return this; - if (other.hasRestoredAccount()) { - mergeRestoredAccount(other.getRestoredAccount()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.UndeleteServiceAccountResponse parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.UndeleteServiceAccountResponse) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private com.google.iam.admin.v1.ServiceAccount restoredAccount_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder> restoredAccountBuilder_; - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - * @return Whether the restoredAccount field is set. - */ - public boolean hasRestoredAccount() { - return restoredAccountBuilder_ != null || restoredAccount_ != null; - } - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - * @return The restoredAccount. - */ - public com.google.iam.admin.v1.ServiceAccount getRestoredAccount() { - if (restoredAccountBuilder_ == null) { - return restoredAccount_ == null ? com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : restoredAccount_; - } else { - return restoredAccountBuilder_.getMessage(); - } - } - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - public Builder setRestoredAccount(com.google.iam.admin.v1.ServiceAccount value) { - if (restoredAccountBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - restoredAccount_ = value; - onChanged(); - } else { - restoredAccountBuilder_.setMessage(value); - } - - return this; - } - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - public Builder setRestoredAccount( - com.google.iam.admin.v1.ServiceAccount.Builder builderForValue) { - if (restoredAccountBuilder_ == null) { - restoredAccount_ = builderForValue.build(); - onChanged(); - } else { - restoredAccountBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - public Builder mergeRestoredAccount(com.google.iam.admin.v1.ServiceAccount value) { - if (restoredAccountBuilder_ == null) { - if (restoredAccount_ != null) { - restoredAccount_ = - com.google.iam.admin.v1.ServiceAccount.newBuilder(restoredAccount_).mergeFrom(value).buildPartial(); - } else { - restoredAccount_ = value; - } - onChanged(); - } else { - restoredAccountBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - public Builder clearRestoredAccount() { - if (restoredAccountBuilder_ == null) { - restoredAccount_ = null; - onChanged(); - } else { - restoredAccount_ = null; - restoredAccountBuilder_ = null; - } - - return this; - } - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - public com.google.iam.admin.v1.ServiceAccount.Builder getRestoredAccountBuilder() { - - onChanged(); - return getRestoredAccountFieldBuilder().getBuilder(); - } - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - public com.google.iam.admin.v1.ServiceAccountOrBuilder getRestoredAccountOrBuilder() { - if (restoredAccountBuilder_ != null) { - return restoredAccountBuilder_.getMessageOrBuilder(); - } else { - return restoredAccount_ == null ? - com.google.iam.admin.v1.ServiceAccount.getDefaultInstance() : restoredAccount_; - } - } - /** - *
    -     * Metadata for the restored service account.
    -     * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder> - getRestoredAccountFieldBuilder() { - if (restoredAccountBuilder_ == null) { - restoredAccountBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.ServiceAccount, com.google.iam.admin.v1.ServiceAccount.Builder, com.google.iam.admin.v1.ServiceAccountOrBuilder>( - getRestoredAccount(), - getParentForChildren(), - isClean()); - restoredAccount_ = null; - } - return restoredAccountBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.UndeleteServiceAccountResponse) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.UndeleteServiceAccountResponse) - private static final com.google.iam.admin.v1.UndeleteServiceAccountResponse DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.UndeleteServiceAccountResponse(); - } - - public static com.google.iam.admin.v1.UndeleteServiceAccountResponse getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UndeleteServiceAccountResponse parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UndeleteServiceAccountResponse(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.UndeleteServiceAccountResponse getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponseOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponseOrBuilder.java deleted file mode 100644 index 40a12df5169b..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UndeleteServiceAccountResponseOrBuilder.java +++ /dev/null @@ -1,36 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface UndeleteServiceAccountResponseOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.UndeleteServiceAccountResponse) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * Metadata for the restored service account.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - * @return Whether the restoredAccount field is set. - */ - boolean hasRestoredAccount(); - /** - *
    -   * Metadata for the restored service account.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - * @return The restoredAccount. - */ - com.google.iam.admin.v1.ServiceAccount getRestoredAccount(); - /** - *
    -   * Metadata for the restored service account.
    -   * 
    - * - * .google.iam.admin.v1.ServiceAccount restored_account = 1; - */ - com.google.iam.admin.v1.ServiceAccountOrBuilder getRestoredAccountOrBuilder(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequest.java deleted file mode 100644 index f0b6d76349c3..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequest.java +++ /dev/null @@ -1,1200 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The request to update a role.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.UpdateRoleRequest} - */ -public final class UpdateRoleRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.UpdateRoleRequest) - UpdateRoleRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UpdateRoleRequest.newBuilder() to construct. - private UpdateRoleRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UpdateRoleRequest() { - name_ = ""; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UpdateRoleRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UpdateRoleRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - com.google.iam.admin.v1.Role.Builder subBuilder = null; - if (role_ != null) { - subBuilder = role_.toBuilder(); - } - role_ = input.readMessage(com.google.iam.admin.v1.Role.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(role_); - role_ = subBuilder.buildPartial(); - } - - break; - } - case 26: { - com.google.protobuf.FieldMask.Builder subBuilder = null; - if (updateMask_ != null) { - subBuilder = updateMask_.toBuilder(); - } - updateMask_ = input.readMessage(com.google.protobuf.FieldMask.parser(), extensionRegistry); - if (subBuilder != null) { - subBuilder.mergeFrom(updateMask_); - updateMask_ = subBuilder.buildPartial(); - } - - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UpdateRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UpdateRoleRequest.class, com.google.iam.admin.v1.UpdateRoleRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   updates only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   updates only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int ROLE_FIELD_NUMBER = 2; - private com.google.iam.admin.v1.Role role_; - /** - *
    -   * The updated role.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 2; - * @return Whether the role field is set. - */ - @java.lang.Override - public boolean hasRole() { - return role_ != null; - } - /** - *
    -   * The updated role.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 2; - * @return The role. - */ - @java.lang.Override - public com.google.iam.admin.v1.Role getRole() { - return role_ == null ? com.google.iam.admin.v1.Role.getDefaultInstance() : role_; - } - /** - *
    -   * The updated role.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - @java.lang.Override - public com.google.iam.admin.v1.RoleOrBuilder getRoleOrBuilder() { - return getRole(); - } - - public static final int UPDATE_MASK_FIELD_NUMBER = 3; - private com.google.protobuf.FieldMask updateMask_; - /** - *
    -   * A mask describing which fields in the Role have changed.
    -   * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - * @return Whether the updateMask field is set. - */ - @java.lang.Override - public boolean hasUpdateMask() { - return updateMask_ != null; - } - /** - *
    -   * A mask describing which fields in the Role have changed.
    -   * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - * @return The updateMask. - */ - @java.lang.Override - public com.google.protobuf.FieldMask getUpdateMask() { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - /** - *
    -   * A mask describing which fields in the Role have changed.
    -   * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - @java.lang.Override - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - return getUpdateMask(); - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (role_ != null) { - output.writeMessage(2, getRole()); - } - if (updateMask_ != null) { - output.writeMessage(3, getUpdateMask()); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (role_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(2, getRole()); - } - if (updateMask_ != null) { - size += com.google.protobuf.CodedOutputStream - .computeMessageSize(3, getUpdateMask()); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.UpdateRoleRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.UpdateRoleRequest other = (com.google.iam.admin.v1.UpdateRoleRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (hasRole() != other.hasRole()) return false; - if (hasRole()) { - if (!getRole() - .equals(other.getRole())) return false; - } - if (hasUpdateMask() != other.hasUpdateMask()) return false; - if (hasUpdateMask()) { - if (!getUpdateMask() - .equals(other.getUpdateMask())) return false; - } - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - if (hasRole()) { - hash = (37 * hash) + ROLE_FIELD_NUMBER; - hash = (53 * hash) + getRole().hashCode(); - } - if (hasUpdateMask()) { - hash = (37 * hash) + UPDATE_MASK_FIELD_NUMBER; - hash = (53 * hash) + getUpdateMask().hashCode(); - } - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UpdateRoleRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.UpdateRoleRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The request to update a role.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.UpdateRoleRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UpdateRoleRequest) - com.google.iam.admin.v1.UpdateRoleRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UpdateRoleRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UpdateRoleRequest.class, com.google.iam.admin.v1.UpdateRoleRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.UpdateRoleRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - if (roleBuilder_ == null) { - role_ = null; - } else { - role_ = null; - roleBuilder_ = null; - } - if (updateMaskBuilder_ == null) { - updateMask_ = null; - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UpdateRoleRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.UpdateRoleRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.UpdateRoleRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.UpdateRoleRequest build() { - com.google.iam.admin.v1.UpdateRoleRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.UpdateRoleRequest buildPartial() { - com.google.iam.admin.v1.UpdateRoleRequest result = new com.google.iam.admin.v1.UpdateRoleRequest(this); - result.name_ = name_; - if (roleBuilder_ == null) { - result.role_ = role_; - } else { - result.role_ = roleBuilder_.build(); - } - if (updateMaskBuilder_ == null) { - result.updateMask_ = updateMask_; - } else { - result.updateMask_ = updateMaskBuilder_.build(); - } - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.UpdateRoleRequest) { - return mergeFrom((com.google.iam.admin.v1.UpdateRoleRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.UpdateRoleRequest other) { - if (other == com.google.iam.admin.v1.UpdateRoleRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.hasRole()) { - mergeRole(other.getRole()); - } - if (other.hasUpdateMask()) { - mergeUpdateMask(other.getUpdateMask()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.UpdateRoleRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.UpdateRoleRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The `name` parameter's value depends on the target resource for the
    -     * request, namely
    -     * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -     * or
    -     * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -     * Each resource type's `name` value format is described below:
    -     * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -     *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -     *   [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the project level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -     *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -     *   updates only [custom
    -     *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -     *   have been created at the organization level. Example request URL:
    -     *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -     * Note: Wildcard (*) values are invalid; you must specify a complete project
    -     * ID or organization ID.
    -     * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.iam.admin.v1.Role role_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder> roleBuilder_; - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - * @return Whether the role field is set. - */ - public boolean hasRole() { - return roleBuilder_ != null || role_ != null; - } - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - * @return The role. - */ - public com.google.iam.admin.v1.Role getRole() { - if (roleBuilder_ == null) { - return role_ == null ? com.google.iam.admin.v1.Role.getDefaultInstance() : role_; - } else { - return roleBuilder_.getMessage(); - } - } - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - public Builder setRole(com.google.iam.admin.v1.Role value) { - if (roleBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - role_ = value; - onChanged(); - } else { - roleBuilder_.setMessage(value); - } - - return this; - } - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - public Builder setRole( - com.google.iam.admin.v1.Role.Builder builderForValue) { - if (roleBuilder_ == null) { - role_ = builderForValue.build(); - onChanged(); - } else { - roleBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - public Builder mergeRole(com.google.iam.admin.v1.Role value) { - if (roleBuilder_ == null) { - if (role_ != null) { - role_ = - com.google.iam.admin.v1.Role.newBuilder(role_).mergeFrom(value).buildPartial(); - } else { - role_ = value; - } - onChanged(); - } else { - roleBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - public Builder clearRole() { - if (roleBuilder_ == null) { - role_ = null; - onChanged(); - } else { - role_ = null; - roleBuilder_ = null; - } - - return this; - } - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - public com.google.iam.admin.v1.Role.Builder getRoleBuilder() { - - onChanged(); - return getRoleFieldBuilder().getBuilder(); - } - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - public com.google.iam.admin.v1.RoleOrBuilder getRoleOrBuilder() { - if (roleBuilder_ != null) { - return roleBuilder_.getMessageOrBuilder(); - } else { - return role_ == null ? - com.google.iam.admin.v1.Role.getDefaultInstance() : role_; - } - } - /** - *
    -     * The updated role.
    -     * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder> - getRoleFieldBuilder() { - if (roleBuilder_ == null) { - roleBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.iam.admin.v1.Role, com.google.iam.admin.v1.Role.Builder, com.google.iam.admin.v1.RoleOrBuilder>( - getRole(), - getParentForChildren(), - isClean()); - role_ = null; - } - return roleBuilder_; - } - - private com.google.protobuf.FieldMask updateMask_; - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> updateMaskBuilder_; - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - * @return Whether the updateMask field is set. - */ - public boolean hasUpdateMask() { - return updateMaskBuilder_ != null || updateMask_ != null; - } - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - * @return The updateMask. - */ - public com.google.protobuf.FieldMask getUpdateMask() { - if (updateMaskBuilder_ == null) { - return updateMask_ == null ? com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } else { - return updateMaskBuilder_.getMessage(); - } - } - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - public Builder setUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (value == null) { - throw new NullPointerException(); - } - updateMask_ = value; - onChanged(); - } else { - updateMaskBuilder_.setMessage(value); - } - - return this; - } - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - public Builder setUpdateMask( - com.google.protobuf.FieldMask.Builder builderForValue) { - if (updateMaskBuilder_ == null) { - updateMask_ = builderForValue.build(); - onChanged(); - } else { - updateMaskBuilder_.setMessage(builderForValue.build()); - } - - return this; - } - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - public Builder mergeUpdateMask(com.google.protobuf.FieldMask value) { - if (updateMaskBuilder_ == null) { - if (updateMask_ != null) { - updateMask_ = - com.google.protobuf.FieldMask.newBuilder(updateMask_).mergeFrom(value).buildPartial(); - } else { - updateMask_ = value; - } - onChanged(); - } else { - updateMaskBuilder_.mergeFrom(value); - } - - return this; - } - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - public Builder clearUpdateMask() { - if (updateMaskBuilder_ == null) { - updateMask_ = null; - onChanged(); - } else { - updateMask_ = null; - updateMaskBuilder_ = null; - } - - return this; - } - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - public com.google.protobuf.FieldMask.Builder getUpdateMaskBuilder() { - - onChanged(); - return getUpdateMaskFieldBuilder().getBuilder(); - } - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - public com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder() { - if (updateMaskBuilder_ != null) { - return updateMaskBuilder_.getMessageOrBuilder(); - } else { - return updateMask_ == null ? - com.google.protobuf.FieldMask.getDefaultInstance() : updateMask_; - } - } - /** - *
    -     * A mask describing which fields in the Role have changed.
    -     * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - private com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder> - getUpdateMaskFieldBuilder() { - if (updateMaskBuilder_ == null) { - updateMaskBuilder_ = new com.google.protobuf.SingleFieldBuilderV3< - com.google.protobuf.FieldMask, com.google.protobuf.FieldMask.Builder, com.google.protobuf.FieldMaskOrBuilder>( - getUpdateMask(), - getParentForChildren(), - isClean()); - updateMask_ = null; - } - return updateMaskBuilder_; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.UpdateRoleRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.UpdateRoleRequest) - private static final com.google.iam.admin.v1.UpdateRoleRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.UpdateRoleRequest(); - } - - public static com.google.iam.admin.v1.UpdateRoleRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UpdateRoleRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UpdateRoleRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.UpdateRoleRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequestOrBuilder.java deleted file mode 100644 index 0675d0a619f2..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UpdateRoleRequestOrBuilder.java +++ /dev/null @@ -1,121 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface UpdateRoleRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.UpdateRoleRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   updates only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The `name` parameter's value depends on the target resource for the
    -   * request, namely
    -   * [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles)
    -   * or
    -   * [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles).
    -   * Each resource type's `name` value format is described below:
    -   * * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch):
    -   *   `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only
    -   *   [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the project level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch):
    -   *   `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method
    -   *   updates only [custom
    -   *   roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that
    -   *   have been created at the organization level. Example request URL:
    -   *   `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`
    -   * Note: Wildcard (*) values are invalid; you must specify a complete project
    -   * ID or organization ID.
    -   * 
    - * - * string name = 1 [(.google.api.resource_reference) = { ... } - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * The updated role.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 2; - * @return Whether the role field is set. - */ - boolean hasRole(); - /** - *
    -   * The updated role.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 2; - * @return The role. - */ - com.google.iam.admin.v1.Role getRole(); - /** - *
    -   * The updated role.
    -   * 
    - * - * .google.iam.admin.v1.Role role = 2; - */ - com.google.iam.admin.v1.RoleOrBuilder getRoleOrBuilder(); - - /** - *
    -   * A mask describing which fields in the Role have changed.
    -   * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - * @return Whether the updateMask field is set. - */ - boolean hasUpdateMask(); - /** - *
    -   * A mask describing which fields in the Role have changed.
    -   * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - * @return The updateMask. - */ - com.google.protobuf.FieldMask getUpdateMask(); - /** - *
    -   * A mask describing which fields in the Role have changed.
    -   * 
    - * - * .google.protobuf.FieldMask update_mask = 3; - */ - com.google.protobuf.FieldMaskOrBuilder getUpdateMaskOrBuilder(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequest.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequest.java deleted file mode 100644 index 97bb50f2d226..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequest.java +++ /dev/null @@ -1,719 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -/** - *
    - * The service account key upload request.
    - * 
    - * - * Protobuf type {@code google.iam.admin.v1.UploadServiceAccountKeyRequest} - */ -public final class UploadServiceAccountKeyRequest extends - com.google.protobuf.GeneratedMessageV3 implements - // @@protoc_insertion_point(message_implements:google.iam.admin.v1.UploadServiceAccountKeyRequest) - UploadServiceAccountKeyRequestOrBuilder { -private static final long serialVersionUID = 0L; - // Use UploadServiceAccountKeyRequest.newBuilder() to construct. - private UploadServiceAccountKeyRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { - super(builder); - } - private UploadServiceAccountKeyRequest() { - name_ = ""; - publicKeyData_ = com.google.protobuf.ByteString.EMPTY; - } - - @java.lang.Override - @SuppressWarnings({"unused"}) - protected java.lang.Object newInstance( - UnusedPrivateParameter unused) { - return new UploadServiceAccountKeyRequest(); - } - - @java.lang.Override - public final com.google.protobuf.UnknownFieldSet - getUnknownFields() { - return this.unknownFields; - } - private UploadServiceAccountKeyRequest( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - this(); - if (extensionRegistry == null) { - throw new java.lang.NullPointerException(); - } - com.google.protobuf.UnknownFieldSet.Builder unknownFields = - com.google.protobuf.UnknownFieldSet.newBuilder(); - try { - boolean done = false; - while (!done) { - int tag = input.readTag(); - switch (tag) { - case 0: - done = true; - break; - case 10: { - java.lang.String s = input.readStringRequireUtf8(); - - name_ = s; - break; - } - case 18: { - - publicKeyData_ = input.readBytes(); - break; - } - default: { - if (!parseUnknownField( - input, unknownFields, extensionRegistry, tag)) { - done = true; - } - break; - } - } - } - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - throw e.setUnfinishedMessage(this); - } catch (com.google.protobuf.UninitializedMessageException e) { - throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); - } catch (java.io.IOException e) { - throw new com.google.protobuf.InvalidProtocolBufferException( - e).setUnfinishedMessage(this); - } finally { - this.unknownFields = unknownFields.build(); - makeExtensionsImmutable(); - } - } - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UploadServiceAccountKeyRequest.class, com.google.iam.admin.v1.UploadServiceAccountKeyRequest.Builder.class); - } - - public static final int NAME_FIELD_NUMBER = 1; - private volatile java.lang.Object name_; - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - @java.lang.Override - public java.lang.String getName() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - return (java.lang.String) ref; - } else { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } - } - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - @java.lang.Override - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof java.lang.String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - - public static final int PUBLIC_KEY_DATA_FIELD_NUMBER = 2; - private com.google.protobuf.ByteString publicKeyData_; - /** - *
    -   * The public key to associate with the service account. Must be an RSA public
    -   * key that is wrapped in an X.509 v3 certificate. Include the first line,
    -   * `-----BEGIN CERTIFICATE-----`, and the last line,
    -   * `-----END CERTIFICATE-----`.
    -   * 
    - * - * bytes public_key_data = 2; - * @return The publicKeyData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPublicKeyData() { - return publicKeyData_; - } - - private byte memoizedIsInitialized = -1; - @java.lang.Override - public final boolean isInitialized() { - byte isInitialized = memoizedIsInitialized; - if (isInitialized == 1) return true; - if (isInitialized == 0) return false; - - memoizedIsInitialized = 1; - return true; - } - - @java.lang.Override - public void writeTo(com.google.protobuf.CodedOutputStream output) - throws java.io.IOException { - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); - } - if (!publicKeyData_.isEmpty()) { - output.writeBytes(2, publicKeyData_); - } - unknownFields.writeTo(output); - } - - @java.lang.Override - public int getSerializedSize() { - int size = memoizedSize; - if (size != -1) return size; - - size = 0; - if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { - size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); - } - if (!publicKeyData_.isEmpty()) { - size += com.google.protobuf.CodedOutputStream - .computeBytesSize(2, publicKeyData_); - } - size += unknownFields.getSerializedSize(); - memoizedSize = size; - return size; - } - - @java.lang.Override - public boolean equals(final java.lang.Object obj) { - if (obj == this) { - return true; - } - if (!(obj instanceof com.google.iam.admin.v1.UploadServiceAccountKeyRequest)) { - return super.equals(obj); - } - com.google.iam.admin.v1.UploadServiceAccountKeyRequest other = (com.google.iam.admin.v1.UploadServiceAccountKeyRequest) obj; - - if (!getName() - .equals(other.getName())) return false; - if (!getPublicKeyData() - .equals(other.getPublicKeyData())) return false; - if (!unknownFields.equals(other.unknownFields)) return false; - return true; - } - - @java.lang.Override - public int hashCode() { - if (memoizedHashCode != 0) { - return memoizedHashCode; - } - int hash = 41; - hash = (19 * hash) + getDescriptor().hashCode(); - hash = (37 * hash) + NAME_FIELD_NUMBER; - hash = (53 * hash) + getName().hashCode(); - hash = (37 * hash) + PUBLIC_KEY_DATA_FIELD_NUMBER; - hash = (53 * hash) + getPublicKeyData().hashCode(); - hash = (29 * hash) + unknownFields.hashCode(); - memoizedHashCode = hash; - return hash; - } - - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom( - java.nio.ByteBuffer data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom( - com.google.protobuf.ByteString data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom( - com.google.protobuf.ByteString data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom(byte[] data) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom( - byte[] data, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return PARSER.parseFrom(data, extensionRegistry); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseDelimitedFrom(java.io.InputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseDelimitedFrom( - java.io.InputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseDelimitedWithIOException(PARSER, input, extensionRegistry); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input); - } - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest parseFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - return com.google.protobuf.GeneratedMessageV3 - .parseWithIOException(PARSER, input, extensionRegistry); - } - - @java.lang.Override - public Builder newBuilderForType() { return newBuilder(); } - public static Builder newBuilder() { - return DEFAULT_INSTANCE.toBuilder(); - } - public static Builder newBuilder(com.google.iam.admin.v1.UploadServiceAccountKeyRequest prototype) { - return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); - } - @java.lang.Override - public Builder toBuilder() { - return this == DEFAULT_INSTANCE - ? new Builder() : new Builder().mergeFrom(this); - } - - @java.lang.Override - protected Builder newBuilderForType( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - Builder builder = new Builder(parent); - return builder; - } - /** - *
    -   * The service account key upload request.
    -   * 
    - * - * Protobuf type {@code google.iam.admin.v1.UploadServiceAccountKeyRequest} - */ - public static final class Builder extends - com.google.protobuf.GeneratedMessageV3.Builder implements - // @@protoc_insertion_point(builder_implements:google.iam.admin.v1.UploadServiceAccountKeyRequest) - com.google.iam.admin.v1.UploadServiceAccountKeyRequestOrBuilder { - public static final com.google.protobuf.Descriptors.Descriptor - getDescriptor() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable - internalGetFieldAccessorTable() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_fieldAccessorTable - .ensureFieldAccessorsInitialized( - com.google.iam.admin.v1.UploadServiceAccountKeyRequest.class, com.google.iam.admin.v1.UploadServiceAccountKeyRequest.Builder.class); - } - - // Construct using com.google.iam.admin.v1.UploadServiceAccountKeyRequest.newBuilder() - private Builder() { - maybeForceBuilderInitialization(); - } - - private Builder( - com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { - super(parent); - maybeForceBuilderInitialization(); - } - private void maybeForceBuilderInitialization() { - if (com.google.protobuf.GeneratedMessageV3 - .alwaysUseFieldBuilders) { - } - } - @java.lang.Override - public Builder clear() { - super.clear(); - name_ = ""; - - publicKeyData_ = com.google.protobuf.ByteString.EMPTY; - - return this; - } - - @java.lang.Override - public com.google.protobuf.Descriptors.Descriptor - getDescriptorForType() { - return com.google.iam.admin.v1.Iam.internal_static_google_iam_admin_v1_UploadServiceAccountKeyRequest_descriptor; - } - - @java.lang.Override - public com.google.iam.admin.v1.UploadServiceAccountKeyRequest getDefaultInstanceForType() { - return com.google.iam.admin.v1.UploadServiceAccountKeyRequest.getDefaultInstance(); - } - - @java.lang.Override - public com.google.iam.admin.v1.UploadServiceAccountKeyRequest build() { - com.google.iam.admin.v1.UploadServiceAccountKeyRequest result = buildPartial(); - if (!result.isInitialized()) { - throw newUninitializedMessageException(result); - } - return result; - } - - @java.lang.Override - public com.google.iam.admin.v1.UploadServiceAccountKeyRequest buildPartial() { - com.google.iam.admin.v1.UploadServiceAccountKeyRequest result = new com.google.iam.admin.v1.UploadServiceAccountKeyRequest(this); - result.name_ = name_; - result.publicKeyData_ = publicKeyData_; - onBuilt(); - return result; - } - - @java.lang.Override - public Builder clone() { - return super.clone(); - } - @java.lang.Override - public Builder setField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.setField(field, value); - } - @java.lang.Override - public Builder clearField( - com.google.protobuf.Descriptors.FieldDescriptor field) { - return super.clearField(field); - } - @java.lang.Override - public Builder clearOneof( - com.google.protobuf.Descriptors.OneofDescriptor oneof) { - return super.clearOneof(oneof); - } - @java.lang.Override - public Builder setRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - int index, java.lang.Object value) { - return super.setRepeatedField(field, index, value); - } - @java.lang.Override - public Builder addRepeatedField( - com.google.protobuf.Descriptors.FieldDescriptor field, - java.lang.Object value) { - return super.addRepeatedField(field, value); - } - @java.lang.Override - public Builder mergeFrom(com.google.protobuf.Message other) { - if (other instanceof com.google.iam.admin.v1.UploadServiceAccountKeyRequest) { - return mergeFrom((com.google.iam.admin.v1.UploadServiceAccountKeyRequest)other); - } else { - super.mergeFrom(other); - return this; - } - } - - public Builder mergeFrom(com.google.iam.admin.v1.UploadServiceAccountKeyRequest other) { - if (other == com.google.iam.admin.v1.UploadServiceAccountKeyRequest.getDefaultInstance()) return this; - if (!other.getName().isEmpty()) { - name_ = other.name_; - onChanged(); - } - if (other.getPublicKeyData() != com.google.protobuf.ByteString.EMPTY) { - setPublicKeyData(other.getPublicKeyData()); - } - this.mergeUnknownFields(other.unknownFields); - onChanged(); - return this; - } - - @java.lang.Override - public final boolean isInitialized() { - return true; - } - - @java.lang.Override - public Builder mergeFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws java.io.IOException { - com.google.iam.admin.v1.UploadServiceAccountKeyRequest parsedMessage = null; - try { - parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); - } catch (com.google.protobuf.InvalidProtocolBufferException e) { - parsedMessage = (com.google.iam.admin.v1.UploadServiceAccountKeyRequest) e.getUnfinishedMessage(); - throw e.unwrapIOException(); - } finally { - if (parsedMessage != null) { - mergeFrom(parsedMessage); - } - } - return this; - } - - private java.lang.Object name_ = ""; - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return The name. - */ - public java.lang.String getName() { - java.lang.Object ref = name_; - if (!(ref instanceof java.lang.String)) { - com.google.protobuf.ByteString bs = - (com.google.protobuf.ByteString) ref; - java.lang.String s = bs.toStringUtf8(); - name_ = s; - return s; - } else { - return (java.lang.String) ref; - } - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return The bytes for name. - */ - public com.google.protobuf.ByteString - getNameBytes() { - java.lang.Object ref = name_; - if (ref instanceof String) { - com.google.protobuf.ByteString b = - com.google.protobuf.ByteString.copyFromUtf8( - (java.lang.String) ref); - name_ = b; - return b; - } else { - return (com.google.protobuf.ByteString) ref; - } - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @param value The name to set. - * @return This builder for chaining. - */ - public Builder setName( - java.lang.String value) { - if (value == null) { - throw new NullPointerException(); - } - - name_ = value; - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @return This builder for chaining. - */ - public Builder clearName() { - - name_ = getDefaultInstance().getName(); - onChanged(); - return this; - } - /** - *
    -     * The resource name of the service account in the following format:
    -     * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -     * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -     * the account. The `ACCOUNT` value can be the `email` address or the
    -     * `unique_id` of the service account.
    -     * 
    - * - * string name = 1; - * @param value The bytes for name to set. - * @return This builder for chaining. - */ - public Builder setNameBytes( - com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - checkByteStringIsUtf8(value); - - name_ = value; - onChanged(); - return this; - } - - private com.google.protobuf.ByteString publicKeyData_ = com.google.protobuf.ByteString.EMPTY; - /** - *
    -     * The public key to associate with the service account. Must be an RSA public
    -     * key that is wrapped in an X.509 v3 certificate. Include the first line,
    -     * `-----BEGIN CERTIFICATE-----`, and the last line,
    -     * `-----END CERTIFICATE-----`.
    -     * 
    - * - * bytes public_key_data = 2; - * @return The publicKeyData. - */ - @java.lang.Override - public com.google.protobuf.ByteString getPublicKeyData() { - return publicKeyData_; - } - /** - *
    -     * The public key to associate with the service account. Must be an RSA public
    -     * key that is wrapped in an X.509 v3 certificate. Include the first line,
    -     * `-----BEGIN CERTIFICATE-----`, and the last line,
    -     * `-----END CERTIFICATE-----`.
    -     * 
    - * - * bytes public_key_data = 2; - * @param value The publicKeyData to set. - * @return This builder for chaining. - */ - public Builder setPublicKeyData(com.google.protobuf.ByteString value) { - if (value == null) { - throw new NullPointerException(); - } - - publicKeyData_ = value; - onChanged(); - return this; - } - /** - *
    -     * The public key to associate with the service account. Must be an RSA public
    -     * key that is wrapped in an X.509 v3 certificate. Include the first line,
    -     * `-----BEGIN CERTIFICATE-----`, and the last line,
    -     * `-----END CERTIFICATE-----`.
    -     * 
    - * - * bytes public_key_data = 2; - * @return This builder for chaining. - */ - public Builder clearPublicKeyData() { - - publicKeyData_ = getDefaultInstance().getPublicKeyData(); - onChanged(); - return this; - } - @java.lang.Override - public final Builder setUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.setUnknownFields(unknownFields); - } - - @java.lang.Override - public final Builder mergeUnknownFields( - final com.google.protobuf.UnknownFieldSet unknownFields) { - return super.mergeUnknownFields(unknownFields); - } - - - // @@protoc_insertion_point(builder_scope:google.iam.admin.v1.UploadServiceAccountKeyRequest) - } - - // @@protoc_insertion_point(class_scope:google.iam.admin.v1.UploadServiceAccountKeyRequest) - private static final com.google.iam.admin.v1.UploadServiceAccountKeyRequest DEFAULT_INSTANCE; - static { - DEFAULT_INSTANCE = new com.google.iam.admin.v1.UploadServiceAccountKeyRequest(); - } - - public static com.google.iam.admin.v1.UploadServiceAccountKeyRequest getDefaultInstance() { - return DEFAULT_INSTANCE; - } - - private static final com.google.protobuf.Parser - PARSER = new com.google.protobuf.AbstractParser() { - @java.lang.Override - public UploadServiceAccountKeyRequest parsePartialFrom( - com.google.protobuf.CodedInputStream input, - com.google.protobuf.ExtensionRegistryLite extensionRegistry) - throws com.google.protobuf.InvalidProtocolBufferException { - return new UploadServiceAccountKeyRequest(input, extensionRegistry); - } - }; - - public static com.google.protobuf.Parser parser() { - return PARSER; - } - - @java.lang.Override - public com.google.protobuf.Parser getParserForType() { - return PARSER; - } - - @java.lang.Override - public com.google.iam.admin.v1.UploadServiceAccountKeyRequest getDefaultInstanceForType() { - return DEFAULT_INSTANCE; - } - -} - diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequestOrBuilder.java b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequestOrBuilder.java deleted file mode 100644 index 3a51405537d6..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/java/com/google/iam/admin/v1/UploadServiceAccountKeyRequestOrBuilder.java +++ /dev/null @@ -1,50 +0,0 @@ -// Generated by the protocol buffer compiler. DO NOT EDIT! -// source: google/iam/admin/v1/iam.proto - -package com.google.iam.admin.v1; - -public interface UploadServiceAccountKeyRequestOrBuilder extends - // @@protoc_insertion_point(interface_extends:google.iam.admin.v1.UploadServiceAccountKeyRequest) - com.google.protobuf.MessageOrBuilder { - - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The name. - */ - java.lang.String getName(); - /** - *
    -   * The resource name of the service account in the following format:
    -   * `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`.
    -   * Using `-` as a wildcard for the `PROJECT_ID` will infer the project from
    -   * the account. The `ACCOUNT` value can be the `email` address or the
    -   * `unique_id` of the service account.
    -   * 
    - * - * string name = 1; - * @return The bytes for name. - */ - com.google.protobuf.ByteString - getNameBytes(); - - /** - *
    -   * The public key to associate with the service account. Must be an RSA public
    -   * key that is wrapped in an X.509 v3 certificate. Include the first line,
    -   * `-----BEGIN CERTIFICATE-----`, and the last line,
    -   * `-----END CERTIFICATE-----`.
    -   * 
    - * - * bytes public_key_data = 2; - * @return The publicKeyData. - */ - com.google.protobuf.ByteString getPublicKeyData(); -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/audit_data.proto b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/audit_data.proto deleted file mode 100644 index b5b6eec0c0c7..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/audit_data.proto +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.iam.admin.v1; - -option csharp_namespace = "Google.Cloud.Iam.Admin.V1"; -option go_package = "google.golang.org/genproto/googleapis/iam/admin/v1;admin"; -option java_multiple_files = true; -option java_outer_classname = "AuditDataProto"; -option java_package = "com.google.iam.admin.v1"; -option php_namespace = "Google\\Cloud\\Iam\\Admin\\V1"; - -// Audit log information specific to Cloud IAM admin APIs. This message is -// serialized as an `Any` type in the `ServiceData` message of an -// `AuditLog` message. -message AuditData { - // A PermissionDelta message to record the added_permissions and - // removed_permissions inside a role. - message PermissionDelta { - // Added permissions. - repeated string added_permissions = 1; - - // Removed permissions. - repeated string removed_permissions = 2; - } - - // The permission_delta when when creating or updating a Role. - PermissionDelta permission_delta = 1; -} diff --git a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/iam.proto b/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/iam.proto deleted file mode 100644 index a93382362aea..000000000000 --- a/owl-bot-staging/java-iam-admin/v1/proto-google-iam-admin-v1/src/main/proto/google/iam/admin/v1/iam.proto +++ /dev/null @@ -1,1623 +0,0 @@ -// Copyright 2022 Google LLC -// -// Licensed under the Apache License, Version 2.0 (the "License"); -// you may not use this file except in compliance with the License. -// You may obtain a copy of the License at -// -// http://www.apache.org/licenses/LICENSE-2.0 -// -// Unless required by applicable law or agreed to in writing, software -// distributed under the License is distributed on an "AS IS" BASIS, -// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. -// See the License for the specific language governing permissions and -// limitations under the License. - -syntax = "proto3"; - -package google.iam.admin.v1; - -import "google/api/annotations.proto"; -import "google/api/client.proto"; -import "google/api/field_behavior.proto"; -import "google/api/resource.proto"; -import "google/iam/v1/iam_policy.proto"; -import "google/iam/v1/policy.proto"; -import "google/protobuf/empty.proto"; -import "google/protobuf/field_mask.proto"; -import "google/protobuf/timestamp.proto"; -import "google/type/expr.proto"; - -option cc_enable_arenas = true; -option csharp_namespace = "Google.Cloud.Iam.Admin.V1"; -option go_package = "google.golang.org/genproto/googleapis/iam/admin/v1;admin"; -option java_multiple_files = true; -option java_package = "com.google.iam.admin.v1"; -option php_namespace = "Google\\Cloud\\Iam\\Admin\\V1"; - -// Creates and manages Identity and Access Management (IAM) resources. -// -// You can use this service to work with all of the following resources: -// -// * **Service accounts**, which identify an application or a virtual machine -// (VM) instance rather than a person -// * **Service account keys**, which service accounts use to authenticate with -// Google APIs -// * **IAM policies for service accounts**, which specify the roles that a -// principal has for the service account -// * **IAM custom roles**, which help you limit the number of permissions that -// you grant to principals -// -// In addition, you can use this service to complete the following tasks, among -// others: -// -// * Test whether a service account can use specific permissions -// * Check which roles you can grant for a specific resource -// * Lint, or validate, condition expressions in an IAM policy -// -// When you read data from the IAM API, each read is eventually consistent. In -// other words, if you write data with the IAM API, then immediately read that -// data, the read operation might return an older version of the data. To deal -// with this behavior, your application can retry the request with truncated -// exponential backoff. -// -// In contrast, writing data to the IAM API is sequentially consistent. In other -// words, write operations are always processed in the order in which they were -// received. -service IAM { - option (google.api.default_host) = "iam.googleapis.com"; - option (google.api.oauth_scopes) = "https://www.googleapis.com/auth/cloud-platform"; - - // Lists every [ServiceAccount][google.iam.admin.v1.ServiceAccount] that belongs to a specific project. - rpc ListServiceAccounts(ListServiceAccountsRequest) returns (ListServiceAccountsResponse) { - option (google.api.http) = { - get: "/v1/{name=projects/*}/serviceAccounts" - }; - option (google.api.method_signature) = "name"; - } - - // Gets a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - rpc GetServiceAccount(GetServiceAccountRequest) returns (ServiceAccount) { - option (google.api.http) = { - get: "/v1/{name=projects/*/serviceAccounts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Creates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - rpc CreateServiceAccount(CreateServiceAccountRequest) returns (ServiceAccount) { - option (google.api.http) = { - post: "/v1/{name=projects/*}/serviceAccounts" - body: "*" - }; - option (google.api.method_signature) = "name,account_id,service_account"; - } - - // **Note:** We are in the process of deprecating this method. Use - // [PatchServiceAccount][google.iam.admin.v1.IAM.PatchServiceAccount] instead. - // - // Updates a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - // - // You can update only the `display_name` field. - rpc UpdateServiceAccount(ServiceAccount) returns (ServiceAccount) { - option (google.api.http) = { - put: "/v1/{name=projects/*/serviceAccounts/*}" - body: "*" - }; - } - - // Patches a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - rpc PatchServiceAccount(PatchServiceAccountRequest) returns (ServiceAccount) { - option (google.api.http) = { - patch: "/v1/{service_account.name=projects/*/serviceAccounts/*}" - body: "*" - }; - } - - // Deletes a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - // - // **Warning:** After you delete a service account, you might not be able to - // undelete it. If you know that you need to re-enable the service account in - // the future, use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] instead. - // - // If you delete a service account, IAM permanently removes the service - // account 30 days later. Google Cloud cannot recover the service account - // after it is permanently removed, even if you file a support request. - // - // To help avoid unplanned outages, we recommend that you disable the service - // account before you delete it. Use [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount] to disable the - // service account, then wait at least 24 hours and watch for unintended - // consequences. If there are no unintended consequences, you can delete the - // service account. - rpc DeleteServiceAccount(DeleteServiceAccountRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/serviceAccounts/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Restores a deleted [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - // - // **Important:** It is not always possible to restore a deleted service - // account. Use this method only as a last resort. - // - // After you delete a service account, IAM permanently removes the service - // account 30 days later. There is no way to restore a deleted service account - // that has been permanently removed. - rpc UndeleteServiceAccount(UndeleteServiceAccountRequest) returns (UndeleteServiceAccountResponse) { - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*}:undelete" - body: "*" - }; - } - - // Enables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] that was disabled by - // [DisableServiceAccount][google.iam.admin.v1.IAM.DisableServiceAccount]. - // - // If the service account is already enabled, then this method has no effect. - // - // If the service account was disabled by other means—for example, if Google - // disabled the service account because it was compromised—you cannot use this - // method to enable the service account. - rpc EnableServiceAccount(EnableServiceAccountRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*}:enable" - body: "*" - }; - } - - // Disables a [ServiceAccount][google.iam.admin.v1.ServiceAccount] immediately. - // - // If an application uses the service account to authenticate, that - // application can no longer call Google APIs or access Google Cloud - // resources. Existing access tokens for the service account are rejected, and - // requests for new access tokens will fail. - // - // To re-enable the service account, use [EnableServiceAccount][google.iam.admin.v1.IAM.EnableServiceAccount]. After you - // re-enable the service account, its existing access tokens will be accepted, - // and you can request new access tokens. - // - // To help avoid unplanned outages, we recommend that you disable the service - // account before you delete it. Use this method to disable the service - // account, then wait at least 24 hours and watch for unintended consequences. - // If there are no unintended consequences, you can delete the service account - // with [DeleteServiceAccount][google.iam.admin.v1.IAM.DeleteServiceAccount]. - rpc DisableServiceAccount(DisableServiceAccountRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*}:disable" - body: "*" - }; - } - - // Lists every [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey] for a service account. - rpc ListServiceAccountKeys(ListServiceAccountKeysRequest) returns (ListServiceAccountKeysResponse) { - option (google.api.http) = { - get: "/v1/{name=projects/*/serviceAccounts/*}/keys" - }; - option (google.api.method_signature) = "name,key_types"; - } - - // Gets a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - rpc GetServiceAccountKey(GetServiceAccountKeyRequest) returns (ServiceAccountKey) { - option (google.api.http) = { - get: "/v1/{name=projects/*/serviceAccounts/*/keys/*}" - }; - option (google.api.method_signature) = "name,public_key_type"; - } - - // Creates a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - rpc CreateServiceAccountKey(CreateServiceAccountKeyRequest) returns (ServiceAccountKey) { - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*}/keys" - body: "*" - }; - option (google.api.method_signature) = "name,private_key_type,key_algorithm"; - } - - // Uploads the public key portion of a key pair that you manage, and - // associates the public key with a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - // - // After you upload the public key, you can use the private key from the key - // pair as a service account key. - rpc UploadServiceAccountKey(UploadServiceAccountKeyRequest) returns (ServiceAccountKey) { - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*}/keys:upload" - body: "*" - }; - } - - // Deletes a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. Deleting a service account key does not - // revoke short-lived credentials that have been issued based on the service - // account key. - rpc DeleteServiceAccountKey(DeleteServiceAccountKeyRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - delete: "/v1/{name=projects/*/serviceAccounts/*/keys/*}" - }; - option (google.api.method_signature) = "name"; - } - - // Disable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. A disabled service account key can be - // re-enabled with [EnableServiceAccountKey][google.iam.admin.v1.IAM.EnableServiceAccountKey]. - rpc DisableServiceAccountKey(DisableServiceAccountKeyRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*/keys/*}:disable" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // Enable a [ServiceAccountKey][google.iam.admin.v1.ServiceAccountKey]. - rpc EnableServiceAccountKey(EnableServiceAccountKeyRequest) returns (google.protobuf.Empty) { - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*/keys/*}:enable" - body: "*" - }; - option (google.api.method_signature) = "name"; - } - - // **Note:** This method is deprecated. Use the - // [`signBlob`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signBlob) - // method in the IAM Service Account Credentials API instead. If you currently - // use this method, see the [migration - // guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - // instructions. - // - // Signs a blob using the system-managed private key for a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - rpc SignBlob(SignBlobRequest) returns (SignBlobResponse) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*}:signBlob" - body: "*" - }; - option (google.api.method_signature) = "name,bytes_to_sign"; - } - - // **Note:** This method is deprecated. Use the - // [`signJwt`](https://cloud.google.com/iam/help/rest-credentials/v1/projects.serviceAccounts/signJwt) - // method in the IAM Service Account Credentials API instead. If you currently - // use this method, see the [migration - // guide](https://cloud.google.com/iam/help/credentials/migrate-api) for - // instructions. - // - // Signs a JSON Web Token (JWT) using the system-managed private key for a - // [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - rpc SignJwt(SignJwtRequest) returns (SignJwtResponse) { - option deprecated = true; - option (google.api.http) = { - post: "/v1/{name=projects/*/serviceAccounts/*}:signJwt" - body: "*" - }; - option (google.api.method_signature) = "name,payload"; - } - - // Gets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. This IAM - // policy specifies which principals have access to the service account. - // - // This method does not tell you whether the service account has been granted - // any roles on other resources. To check whether a service account has role - // grants on a resource, use the `getIamPolicy` method for that resource. For - // example, to view the role grants for a project, call the Resource Manager - // API's - // [`projects.getIamPolicy`](https://cloud.google.com/resource-manager/reference/rest/v1/projects/getIamPolicy) - // method. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v1/{resource=projects/*/serviceAccounts/*}:getIamPolicy" - }; - option (google.api.method_signature) = "resource"; - } - - // Sets the IAM policy that is attached to a [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - // - // Use this method to grant or revoke access to the service account. For - // example, you could grant a principal the ability to impersonate the service - // account. - // - // This method does not enable the service account to access other resources. - // To grant roles to a service account on a resource, follow these steps: - // - // 1. Call the resource's `getIamPolicy` method to get its current IAM policy. - // 2. Edit the policy so that it binds the service account to an IAM role for - // the resource. - // 3. Call the resource's `setIamPolicy` method to update its IAM policy. - // - // For detailed instructions, see - // [Manage access to project, folders, and - // organizations](https://cloud.google.com/iam/help/service-accounts/granting-access-to-service-accounts) - // or [Manage access to other - // resources](https://cloud.google.com/iam/help/access/manage-other-resources). - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { - option (google.api.http) = { - post: "/v1/{resource=projects/*/serviceAccounts/*}:setIamPolicy" - body: "*" - }; - option (google.api.method_signature) = "resource,policy"; - } - - // Tests whether the caller has the specified permissions on a - // [ServiceAccount][google.iam.admin.v1.ServiceAccount]. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { - option (google.api.http) = { - post: "/v1/{resource=projects/*/serviceAccounts/*}:testIamPermissions" - body: "*" - }; - option (google.api.method_signature) = "resource,permissions"; - } - - // Lists roles that can be granted on a Google Cloud resource. A role is - // grantable if the IAM policy for the resource can contain bindings to the - // role. - rpc QueryGrantableRoles(QueryGrantableRolesRequest) returns (QueryGrantableRolesResponse) { - option (google.api.http) = { - post: "/v1/roles:queryGrantableRoles" - body: "*" - }; - option (google.api.method_signature) = "full_resource_name"; - } - - // Lists every predefined [Role][google.iam.admin.v1.Role] that IAM supports, or every custom role - // that is defined for an organization or project. - rpc ListRoles(ListRolesRequest) returns (ListRolesResponse) { - option (google.api.http) = { - get: "/v1/roles" - additional_bindings { - get: "/v1/{parent=organizations/*}/roles" - } - additional_bindings { - get: "/v1/{parent=projects/*}/roles" - } - }; - } - - // Gets the definition of a [Role][google.iam.admin.v1.Role]. - rpc GetRole(GetRoleRequest) returns (Role) { - option (google.api.http) = { - get: "/v1/{name=roles/*}" - additional_bindings { - get: "/v1/{name=organizations/*/roles/*}" - } - additional_bindings { - get: "/v1/{name=projects/*/roles/*}" - } - }; - } - - // Creates a new custom [Role][google.iam.admin.v1.Role]. - rpc CreateRole(CreateRoleRequest) returns (Role) { - option (google.api.http) = { - post: "/v1/{parent=organizations/*}/roles" - body: "*" - additional_bindings { - post: "/v1/{parent=projects/*}/roles" - body: "*" - } - }; - } - - // Updates the definition of a custom [Role][google.iam.admin.v1.Role]. - rpc UpdateRole(UpdateRoleRequest) returns (Role) { - option (google.api.http) = { - patch: "/v1/{name=organizations/*/roles/*}" - body: "role" - additional_bindings { - patch: "/v1/{name=projects/*/roles/*}" - body: "role" - } - }; - } - - // Deletes a custom [Role][google.iam.admin.v1.Role]. - // - // When you delete a custom role, the following changes occur immediately: - // - // * You cannot bind a principal to the custom role in an IAM - // [Policy][google.iam.v1.Policy]. - // * Existing bindings to the custom role are not changed, but they have no - // effect. - // * By default, the response from [ListRoles][google.iam.admin.v1.IAM.ListRoles] does not include the custom - // role. - // - // You have 7 days to undelete the custom role. After 7 days, the following - // changes occur: - // - // * The custom role is permanently deleted and cannot be recovered. - // * If an IAM policy contains a binding to the custom role, the binding is - // permanently removed. - rpc DeleteRole(DeleteRoleRequest) returns (Role) { - option (google.api.http) = { - delete: "/v1/{name=organizations/*/roles/*}" - additional_bindings { - delete: "/v1/{name=projects/*/roles/*}" - } - }; - } - - // Undeletes a custom [Role][google.iam.admin.v1.Role]. - rpc UndeleteRole(UndeleteRoleRequest) returns (Role) { - option (google.api.http) = { - post: "/v1/{name=organizations/*/roles/*}:undelete" - body: "*" - additional_bindings { - post: "/v1/{name=projects/*/roles/*}:undelete" - body: "*" - } - }; - } - - // Lists every permission that you can test on a resource. A permission is - // testable if you can check whether a principal has that permission on the - // resource. - rpc QueryTestablePermissions(QueryTestablePermissionsRequest) returns (QueryTestablePermissionsResponse) { - option (google.api.http) = { - post: "/v1/permissions:queryTestablePermissions" - body: "*" - }; - } - - // Returns a list of services that allow you to opt into audit logs that are - // not generated by default. - // - // To learn more about audit logs, see the [Logging - // documentation](https://cloud.google.com/logging/docs/audit). - rpc QueryAuditableServices(QueryAuditableServicesRequest) returns (QueryAuditableServicesResponse) { - option (google.api.http) = { - post: "/v1/iamPolicies:queryAuditableServices" - body: "*" - }; - } - - // Lints, or validates, an IAM policy. Currently checks the - // [google.iam.v1.Binding.condition][google.iam.v1.Binding.condition] field, which contains a condition - // expression for a role binding. - // - // Successful calls to this method always return an HTTP `200 OK` status code, - // even if the linter detects an issue in the IAM policy. - rpc LintPolicy(LintPolicyRequest) returns (LintPolicyResponse) { - option (google.api.http) = { - post: "/v1/iamPolicies:lintPolicy" - body: "*" - }; - } -} - -// An IAM service account. -// -// A service account is an account for an application or a virtual machine (VM) -// instance, not a person. You can use a service account to call Google APIs. To -// learn more, read the [overview of service -// accounts](https://cloud.google.com/iam/help/service-accounts/overview). -// -// When you create a service account, you specify the project ID that owns the -// service account, as well as a name that must be unique within the project. -// IAM uses these values to create an email address that identifies the service -// account. -message ServiceAccount { - option (google.api.resource) = { - type: "iam.googleapis.com/ServiceAccount" - pattern: "projects/{project}/serviceAccounts/{service_account}" - }; - - // The resource name of the service account. - // - // Use one of the following formats: - // - // * `projects/{PROJECT_ID}/serviceAccounts/{EMAIL_ADDRESS}` - // * `projects/{PROJECT_ID}/serviceAccounts/{UNIQUE_ID}` - // - // As an alternative, you can use the `-` wildcard character instead of the - // project ID: - // - // * `projects/-/serviceAccounts/{EMAIL_ADDRESS}` - // * `projects/-/serviceAccounts/{UNIQUE_ID}` - // - // When possible, avoid using the `-` wildcard character, because it can cause - // response messages to contain misleading error codes. For example, if you - // try to get the service account - // `projects/-/serviceAccounts/fake@example.com`, which does not exist, the - // response contains an HTTP `403 Forbidden` error instead of a `404 Not - // Found` error. - string name = 1; - - // Output only. The ID of the project that owns the service account. - string project_id = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The unique, stable numeric ID for the service account. - // - // Each service account retains its unique ID even if you delete the service - // account. For example, if you delete a service account, then create a new - // service account with the same name, the new service account has a different - // unique ID than the deleted service account. - string unique_id = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. The email address of the service account. - string email = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Optional. A user-specified, human-readable name for the service account. The maximum - // length is 100 UTF-8 bytes. - string display_name = 6 [(google.api.field_behavior) = OPTIONAL]; - - // Deprecated. Do not use. - bytes etag = 7 [deprecated = true]; - - // Optional. A user-specified, human-readable description of the service account. The - // maximum length is 256 UTF-8 bytes. - string description = 8 [(google.api.field_behavior) = OPTIONAL]; - - // Output only. The OAuth 2.0 client ID for the service account. - string oauth2_client_id = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; - - // Output only. Whether the service account is disabled. - bool disabled = 11 [(google.api.field_behavior) = OUTPUT_ONLY]; -} - -// The service account create request. -message CreateServiceAccountRequest { - // Required. The resource name of the project associated with the service - // accounts, such as `projects/my-project-123`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudresourcemanager.googleapis.com/Project" - } - ]; - - // Required. The account id that is used to generate the service account - // email address and a stable unique id. It is unique within a project, - // must be 6-30 characters long, and match the regular expression - // `[a-z]([-a-z0-9]*[a-z0-9])` to comply with RFC1035. - string account_id = 2 [(google.api.field_behavior) = REQUIRED]; - - // The [ServiceAccount][google.iam.admin.v1.ServiceAccount] resource to - // create. Currently, only the following values are user assignable: - // `display_name` and `description`. - ServiceAccount service_account = 3; -} - -// The service account list request. -message ListServiceAccountsRequest { - // Required. The resource name of the project associated with the service - // accounts, such as `projects/my-project-123`. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "cloudresourcemanager.googleapis.com/Project" - } - ]; - - // Optional limit on the number of service accounts to include in the - // response. Further accounts can subsequently be obtained by including the - // [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token] - // in a subsequent request. - // - // The default is 20, and the maximum is 100. - int32 page_size = 2; - - // Optional pagination token returned in an earlier - // [ListServiceAccountsResponse.next_page_token][google.iam.admin.v1.ListServiceAccountsResponse.next_page_token]. - string page_token = 3; -} - -// The service account list response. -message ListServiceAccountsResponse { - // The list of matching service accounts. - repeated ServiceAccount accounts = 1; - - // To retrieve the next page of results, set - // [ListServiceAccountsRequest.page_token][google.iam.admin.v1.ListServiceAccountsRequest.page_token] - // to this value. - string next_page_token = 2; -} - -// The service account get request. -message GetServiceAccountRequest { - // Required. The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/ServiceAccount" - } - ]; -} - -// The service account delete request. -message DeleteServiceAccountRequest { - // Required. The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/ServiceAccount" - } - ]; -} - -// The service account patch request. -// -// You can patch only the `display_name` and `description` fields. You must use -// the `update_mask` field to specify which of these fields you want to patch. -// -// Only the fields specified in the request are guaranteed to be returned in -// the response. Other fields may be empty in the response. -message PatchServiceAccountRequest { - ServiceAccount service_account = 1; - - google.protobuf.FieldMask update_mask = 2; -} - -// The service account undelete request. -message UndeleteServiceAccountRequest { - // The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT_UNIQUE_ID}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. - string name = 1; -} - -message UndeleteServiceAccountResponse { - // Metadata for the restored service account. - ServiceAccount restored_account = 1; -} - -// The service account enable request. -message EnableServiceAccountRequest { - // The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1; -} - -// The service account disable request. -message DisableServiceAccountRequest { - // The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1; -} - -// The service account keys list request. -message ListServiceAccountKeysRequest { - // `KeyType` filters to selectively retrieve certain varieties - // of keys. - enum KeyType { - // Unspecified key type. The presence of this in the - // message will immediately result in an error. - KEY_TYPE_UNSPECIFIED = 0; - - // User-managed keys (managed and rotated by the user). - USER_MANAGED = 1; - - // System-managed keys (managed and rotated by Google). - SYSTEM_MANAGED = 2; - } - - // Required. The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // - // Using `-` as a wildcard for the `PROJECT_ID`, will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/ServiceAccount" - } - ]; - - // Filters the types of keys the user wants to include in the list - // response. Duplicate key types are not allowed. If no key type - // is provided, all keys are returned. - repeated KeyType key_types = 2; -} - -// The service account keys list response. -message ListServiceAccountKeysResponse { - // The public keys for the service account. - repeated ServiceAccountKey keys = 1; -} - -// The service account key get by id request. -message GetServiceAccountKeyRequest { - // Required. The resource name of the service account key in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - // - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/Key" - } - ]; - - // Optional. The output format of the public key. The default is `TYPE_NONE`, which - // means that the public key is not returned. - ServiceAccountPublicKeyType public_key_type = 2 [(google.api.field_behavior) = OPTIONAL]; -} - -// Supported key algorithms. -enum ServiceAccountKeyAlgorithm { - // An unspecified key algorithm. - KEY_ALG_UNSPECIFIED = 0; - - // 1k RSA Key. - KEY_ALG_RSA_1024 = 1; - - // 2k RSA Key. - KEY_ALG_RSA_2048 = 2; -} - -// Supported private key output formats. -enum ServiceAccountPrivateKeyType { - // Unspecified. Equivalent to `TYPE_GOOGLE_CREDENTIALS_FILE`. - TYPE_UNSPECIFIED = 0; - - // PKCS12 format. - // The password for the PKCS12 file is `notasecret`. - // For more information, see https://tools.ietf.org/html/rfc7292. - TYPE_PKCS12_FILE = 1; - - // Google Credentials File format. - TYPE_GOOGLE_CREDENTIALS_FILE = 2; -} - -// Supported public key output formats. -enum ServiceAccountPublicKeyType { - // Do not return the public key. - TYPE_NONE = 0; - - // X509 PEM format. - TYPE_X509_PEM_FILE = 1; - - // Raw public key. - TYPE_RAW_PUBLIC_KEY = 2; -} - -// Service Account Key Origin. -enum ServiceAccountKeyOrigin { - // Unspecified key origin. - ORIGIN_UNSPECIFIED = 0; - - // Key is provided by user. - USER_PROVIDED = 1; - - // Key is provided by Google. - GOOGLE_PROVIDED = 2; -} - -// Represents a service account key. -// -// A service account has two sets of key-pairs: user-managed, and -// system-managed. -// -// User-managed key-pairs can be created and deleted by users. Users are -// responsible for rotating these keys periodically to ensure security of -// their service accounts. Users retain the private key of these key-pairs, -// and Google retains ONLY the public key. -// -// System-managed keys are automatically rotated by Google, and are used for -// signing for a maximum of two weeks. The rotation process is probabilistic, -// and usage of the new key will gradually ramp up and down over the key's -// lifetime. -// -// If you cache the public key set for a service account, we recommend that you -// update the cache every 15 minutes. User-managed keys can be added and removed -// at any time, so it is important to update the cache frequently. For -// Google-managed keys, Google will publish a key at least 6 hours before it is -// first used for signing and will keep publishing it for at least 6 hours after -// it was last used for signing. -// -// Public keys for all service accounts are also published at the OAuth2 -// Service Account API. -message ServiceAccountKey { - option (google.api.resource) = { - type: "iam.googleapis.com/Key" - pattern: "projects/{project}/serviceAccounts/{service_account}/keys/{key}" - }; - - // The resource name of the service account key in the following format - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - string name = 1; - - // The output format for the private key. - // Only provided in `CreateServiceAccountKey` responses, not - // in `GetServiceAccountKey` or `ListServiceAccountKey` responses. - // - // Google never exposes system-managed private keys, and never retains - // user-managed private keys. - ServiceAccountPrivateKeyType private_key_type = 2; - - // Specifies the algorithm (and possibly key size) for the key. - ServiceAccountKeyAlgorithm key_algorithm = 8; - - // The private key data. Only provided in `CreateServiceAccountKey` - // responses. Make sure to keep the private key data secure because it - // allows for the assertion of the service account identity. - // When base64 decoded, the private key data can be used to authenticate with - // Google API client libraries and with - // gcloud - // auth activate-service-account. - bytes private_key_data = 3; - - // The public key data. Only provided in `GetServiceAccountKey` responses. - bytes public_key_data = 7; - - // The key can be used after this timestamp. - google.protobuf.Timestamp valid_after_time = 4; - - // The key can be used before this timestamp. - // For system-managed key pairs, this timestamp is the end time for the - // private key signing operation. The public key could still be used - // for verification for a few hours after this time. - google.protobuf.Timestamp valid_before_time = 5; - - // The key origin. - ServiceAccountKeyOrigin key_origin = 9; - - // The key type. - ListServiceAccountKeysRequest.KeyType key_type = 10; - - // The key status. - bool disabled = 11; -} - -// The service account key create request. -message CreateServiceAccountKeyRequest { - // Required. The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/ServiceAccount" - } - ]; - - // The output format of the private key. The default value is - // `TYPE_GOOGLE_CREDENTIALS_FILE`, which is the Google Credentials File - // format. - ServiceAccountPrivateKeyType private_key_type = 2; - - // Which type of key and algorithm to use for the key. - // The default is currently a 2K RSA key. However this may change in the - // future. - ServiceAccountKeyAlgorithm key_algorithm = 3; -} - -// The service account key upload request. -message UploadServiceAccountKeyRequest { - // The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1; - - // The public key to associate with the service account. Must be an RSA public - // key that is wrapped in an X.509 v3 certificate. Include the first line, - // `-----BEGIN CERTIFICATE-----`, and the last line, - // `-----END CERTIFICATE-----`. - bytes public_key_data = 2; -} - -// The service account key delete request. -message DeleteServiceAccountKeyRequest { - // Required. The resource name of the service account key in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/Key" - } - ]; -} - -// The service account key disable request. -message DisableServiceAccountKeyRequest { - // Required. The resource name of the service account key in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - // - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/Key" - } - ]; -} - -// The service account key enable request. -message EnableServiceAccountKeyRequest { - // Required. The resource name of the service account key in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`. - // - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/Key" - } - ]; -} - -// Deprecated. [Migrate to Service Account Credentials -// API](https://cloud.google.com/iam/help/credentials/migrate-api). -// -// The service account sign blob request. -message SignBlobRequest { - // Required. Deprecated. [Migrate to Service Account Credentials - // API](https://cloud.google.com/iam/help/credentials/migrate-api). - // - // The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/ServiceAccount" - } - ]; - - // Required. Deprecated. [Migrate to Service Account Credentials - // API](https://cloud.google.com/iam/help/credentials/migrate-api). - // - // The bytes to sign. - bytes bytes_to_sign = 2 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; -} - -// Deprecated. [Migrate to Service Account Credentials -// API](https://cloud.google.com/iam/help/credentials/migrate-api). -// -// The service account sign blob response. -message SignBlobResponse { - // Deprecated. [Migrate to Service Account Credentials - // API](https://cloud.google.com/iam/help/credentials/migrate-api). - // - // The id of the key used to sign the blob. - string key_id = 1 [deprecated = true]; - - // Deprecated. [Migrate to Service Account Credentials - // API](https://cloud.google.com/iam/help/credentials/migrate-api). - // - // The signed blob. - bytes signature = 2 [deprecated = true]; -} - -// Deprecated. [Migrate to Service Account Credentials -// API](https://cloud.google.com/iam/help/credentials/migrate-api). -// -// The service account sign JWT request. -message SignJwtRequest { - // Required. Deprecated. [Migrate to Service Account Credentials - // API](https://cloud.google.com/iam/help/credentials/migrate-api). - // - // The resource name of the service account in the following format: - // `projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}`. - // Using `-` as a wildcard for the `PROJECT_ID` will infer the project from - // the account. The `ACCOUNT` value can be the `email` address or the - // `unique_id` of the service account. - string name = 1 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED, - (google.api.resource_reference) = { - type: "iam.googleapis.com/ServiceAccount" - } - ]; - - // Required. Deprecated. [Migrate to Service Account Credentials - // API](https://cloud.google.com/iam/help/credentials/migrate-api). - // - // The JWT payload to sign. Must be a serialized JSON object that contains a - // JWT Claims Set. For example: `{"sub": "user@example.com", "iat": 313435}` - // - // If the JWT Claims Set contains an expiration time (`exp`) claim, it must be - // an integer timestamp that is not in the past and no more than 12 hours in - // the future. - // - // If the JWT Claims Set does not contain an expiration time (`exp`) claim, - // this claim is added automatically, with a timestamp that is 1 hour in the - // future. - string payload = 2 [ - deprecated = true, - (google.api.field_behavior) = REQUIRED - ]; -} - -// Deprecated. [Migrate to Service Account Credentials -// API](https://cloud.google.com/iam/help/credentials/migrate-api). -// -// The service account sign JWT response. -message SignJwtResponse { - // Deprecated. [Migrate to Service Account Credentials - // API](https://cloud.google.com/iam/help/credentials/migrate-api). - // - // The id of the key used to sign the JWT. - string key_id = 1 [deprecated = true]; - - // Deprecated. [Migrate to Service Account Credentials - // API](https://cloud.google.com/iam/help/credentials/migrate-api). - // - // The signed JWT. - string signed_jwt = 2 [deprecated = true]; -} - -// A role in the Identity and Access Management API. -message Role { - // A stage representing a role's lifecycle phase. - enum RoleLaunchStage { - // The user has indicated this role is currently in an Alpha phase. If this - // launch stage is selected, the `stage` field will not be included when - // requesting the definition for a given role. - ALPHA = 0; - - // The user has indicated this role is currently in a Beta phase. - BETA = 1; - - // The user has indicated this role is generally available. - GA = 2; - - // The user has indicated this role is being deprecated. - DEPRECATED = 4; - - // This role is disabled and will not contribute permissions to any - // principals it is granted to in policies. - DISABLED = 5; - - // The user has indicated this role is currently in an EAP phase. - EAP = 6; - } - - // The name of the role. - // - // When Role is used in CreateRole, the role name must not be set. - // - // When Role is used in output and other input such as UpdateRole, the role - // name is the complete path, e.g., roles/logging.viewer for predefined roles - // and organizations/{ORGANIZATION_ID}/roles/logging.viewer for custom roles. - string name = 1; - - // Optional. A human-readable title for the role. Typically this - // is limited to 100 UTF-8 bytes. - string title = 2; - - // Optional. A human-readable description for the role. - string description = 3; - - // The names of the permissions this role grants when bound in an IAM policy. - repeated string included_permissions = 7; - - // The current launch stage of the role. If the `ALPHA` launch stage has been - // selected for a role, the `stage` field will not be included in the - // returned definition for the role. - RoleLaunchStage stage = 8; - - // Used to perform a consistent read-modify-write. - bytes etag = 9; - - // The current deleted state of the role. This field is read only. - // It will be ignored in calls to CreateRole and UpdateRole. - bool deleted = 11; -} - -// The grantable role query request. -message QueryGrantableRolesRequest { - // Required. The full resource name to query from the list of grantable roles. - // - // The name follows the Google Cloud Platform resource format. - // For example, a Cloud Platform project with id `my-project` will be named - // `//cloudresourcemanager.googleapis.com/projects/my-project`. - string full_resource_name = 1 [(google.api.field_behavior) = REQUIRED]; - - RoleView view = 2; - - // Optional limit on the number of roles to include in the response. - // - // The default is 300, and the maximum is 1,000. - int32 page_size = 3; - - // Optional pagination token returned in an earlier - // QueryGrantableRolesResponse. - string page_token = 4; -} - -// The grantable role query response. -message QueryGrantableRolesResponse { - // The list of matching roles. - repeated Role roles = 1; - - // To retrieve the next page of results, set - // `QueryGrantableRolesRequest.page_token` to this value. - string next_page_token = 2; -} - -// A view for Role objects. -enum RoleView { - // Omits the `included_permissions` field. - // This is the default value. - BASIC = 0; - - // Returns all fields. - FULL = 1; -} - -// The request to get all roles defined under a resource. -message ListRolesRequest { - // The `parent` parameter's value depends on the target resource for the - // request, namely - // [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), - // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), - // or - // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). - // Each resource type's `parent` value format is described below: - // - // * [`roles.list()`](https://cloud.google.com/iam/reference/rest/v1/roles/list): An empty string. - // This method doesn't require a resource; it simply returns all - // [predefined - // roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) - // in Cloud IAM. Example request URL: `https://iam.googleapis.com/v1/roles` - // - // * [`projects.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/list): - // `projects/{PROJECT_ID}`. This method lists all project-level - // [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). - // Example request URL: - // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` - // - // * [`organizations.roles.list()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/list): - // `organizations/{ORGANIZATION_ID}`. This method lists all - // organization-level [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). - // Example request URL: - // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` - // - // Note: Wildcard (*) values are invalid; you must specify a complete project - // ID or organization ID. - string parent = 1 [(google.api.resource_reference) = { - type: "*" - }]; - - // Optional limit on the number of roles to include in the response. - // - // The default is 300, and the maximum is 1,000. - int32 page_size = 2; - - // Optional pagination token returned in an earlier ListRolesResponse. - string page_token = 3; - - // Optional view for the returned Role objects. When `FULL` is specified, - // the `includedPermissions` field is returned, which includes a list of all - // permissions in the role. The default value is `BASIC`, which does not - // return the `includedPermissions` field. - RoleView view = 4; - - // Include Roles that have been deleted. - bool show_deleted = 6; -} - -// The response containing the roles defined under a resource. -message ListRolesResponse { - // The Roles defined on this resource. - repeated Role roles = 1; - - // To retrieve the next page of results, set - // `ListRolesRequest.page_token` to this value. - string next_page_token = 2; -} - -// The request to get the definition of an existing role. -message GetRoleRequest { - // The `name` parameter's value depends on the target resource for the - // request, namely - // [`roles`](https://cloud.google.com/iam/reference/rest/v1/roles), - // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles), - // or - // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). - // Each resource type's `name` value format is described below: - // - // * [`roles.get()`](https://cloud.google.com/iam/reference/rest/v1/roles/get): `roles/{ROLE_NAME}`. - // This method returns results from all - // [predefined - // roles](https://cloud.google.com/iam/docs/understanding-roles#predefined_roles) - // in Cloud IAM. Example request URL: - // `https://iam.googleapis.com/v1/roles/{ROLE_NAME}` - // - // * [`projects.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/get): - // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method returns only - // [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that - // have been created at the project level. Example request URL: - // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` - // - // * [`organizations.roles.get()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/get): - // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // returns only [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that - // have been created at the organization level. Example request URL: - // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` - // - // Note: Wildcard (*) values are invalid; you must specify a complete project - // ID or organization ID. - string name = 1 [(google.api.resource_reference) = { - type: "*" - }]; -} - -// The request to create a new role. -message CreateRoleRequest { - // The `parent` parameter's value depends on the target resource for the - // request, namely - // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) - // or - // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). - // Each resource type's `parent` value format is described below: - // - // * [`projects.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/create): - // `projects/{PROJECT_ID}`. This method creates project-level - // [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). - // Example request URL: - // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles` - // - // * [`organizations.roles.create()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/create): - // `organizations/{ORGANIZATION_ID}`. This method creates organization-level - // [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles). - // Example request URL: - // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles` - // - // Note: Wildcard (*) values are invalid; you must specify a complete project - // ID or organization ID. - string parent = 1 [(google.api.resource_reference) = { - type: "*" - }]; - - // The role ID to use for this role. - // - // A role ID may contain alphanumeric characters, underscores (`_`), and - // periods (`.`). It must contain a minimum of 3 characters and a maximum of - // 64 characters. - string role_id = 2; - - // The Role resource to create. - Role role = 3; -} - -// The request to update a role. -message UpdateRoleRequest { - // The `name` parameter's value depends on the target resource for the - // request, namely - // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) - // or - // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). - // Each resource type's `name` value format is described below: - // - // * [`projects.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/patch): - // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method updates only - // [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that - // have been created at the project level. Example request URL: - // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` - // - // * [`organizations.roles.patch()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/patch): - // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // updates only [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that - // have been created at the organization level. Example request URL: - // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` - // - // Note: Wildcard (*) values are invalid; you must specify a complete project - // ID or organization ID. - string name = 1 [(google.api.resource_reference) = { - type: "*" - }]; - - // The updated role. - Role role = 2; - - // A mask describing which fields in the Role have changed. - google.protobuf.FieldMask update_mask = 3; -} - -// The request to delete an existing role. -message DeleteRoleRequest { - // The `name` parameter's value depends on the target resource for the - // request, namely - // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) - // or - // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). - // Each resource type's `name` value format is described below: - // - // * [`projects.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/delete): - // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method deletes only - // [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that - // have been created at the project level. Example request URL: - // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` - // - // * [`organizations.roles.delete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/delete): - // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // deletes only [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that - // have been created at the organization level. Example request URL: - // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` - // - // Note: Wildcard (*) values are invalid; you must specify a complete project - // ID or organization ID. - string name = 1 [(google.api.resource_reference) = { - type: "*" - }]; - - // Used to perform a consistent read-modify-write. - bytes etag = 2; -} - -// The request to undelete an existing role. -message UndeleteRoleRequest { - // The `name` parameter's value depends on the target resource for the - // request, namely - // [`projects`](https://cloud.google.com/iam/reference/rest/v1/projects.roles) - // or - // [`organizations`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles). - // Each resource type's `name` value format is described below: - // - // * [`projects.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/projects.roles/undelete): - // `projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}`. This method undeletes - // only [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that - // have been created at the project level. Example request URL: - // `https://iam.googleapis.com/v1/projects/{PROJECT_ID}/roles/{CUSTOM_ROLE_ID}` - // - // * [`organizations.roles.undelete()`](https://cloud.google.com/iam/reference/rest/v1/organizations.roles/undelete): - // `organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}`. This method - // undeletes only [custom - // roles](https://cloud.google.com/iam/docs/understanding-custom-roles) that - // have been created at the organization level. Example request URL: - // `https://iam.googleapis.com/v1/organizations/{ORGANIZATION_ID}/roles/{CUSTOM_ROLE_ID}` - // - // Note: Wildcard (*) values are invalid; you must specify a complete project - // ID or organization ID. - string name = 1 [(google.api.resource_reference) = { - type: "*" - }]; - - // Used to perform a consistent read-modify-write. - bytes etag = 2; -} - -// A permission which can be included by a role. -message Permission { - // A stage representing a permission's lifecycle phase. - enum PermissionLaunchStage { - // The permission is currently in an alpha phase. - ALPHA = 0; - - // The permission is currently in a beta phase. - BETA = 1; - - // The permission is generally available. - GA = 2; - - // The permission is being deprecated. - DEPRECATED = 3; - } - - // The state of the permission with regards to custom roles. - enum CustomRolesSupportLevel { - // Default state. Permission is fully supported for custom role use. - SUPPORTED = 0; - - // Permission is being tested to check custom role compatibility. - TESTING = 1; - - // Permission is not supported for custom role use. - NOT_SUPPORTED = 2; - } - - // The name of this Permission. - string name = 1; - - // The title of this Permission. - string title = 2; - - // A brief description of what this Permission is used for. - // This permission can ONLY be used in predefined roles. - string description = 3; - - bool only_in_predefined_roles = 4 [deprecated = true]; - - // The current launch stage of the permission. - PermissionLaunchStage stage = 5; - - // The current custom role support level. - CustomRolesSupportLevel custom_roles_support_level = 6; - - // The service API associated with the permission is not enabled. - bool api_disabled = 7; - - // The preferred name for this permission. If present, then this permission is - // an alias of, and equivalent to, the listed primary_permission. - string primary_permission = 8; -} - -// A request to get permissions which can be tested on a resource. -message QueryTestablePermissionsRequest { - // Required. The full resource name to query from the list of testable - // permissions. - // - // The name follows the Google Cloud Platform resource format. - // For example, a Cloud Platform project with id `my-project` will be named - // `//cloudresourcemanager.googleapis.com/projects/my-project`. - string full_resource_name = 1; - - // Optional limit on the number of permissions to include in the response. - // - // The default is 100, and the maximum is 1,000. - int32 page_size = 2; - - // Optional pagination token returned in an earlier - // QueryTestablePermissionsRequest. - string page_token = 3; -} - -// The response containing permissions which can be tested on a resource. -message QueryTestablePermissionsResponse { - // The Permissions testable on the requested resource. - repeated Permission permissions = 1; - - // To retrieve the next page of results, set - // `QueryTestableRolesRequest.page_token` to this value. - string next_page_token = 2; -} - -// A request to get the list of auditable services for a resource. -message QueryAuditableServicesRequest { - // Required. The full resource name to query from the list of auditable - // services. - // - // The name follows the Google Cloud Platform resource format. - // For example, a Cloud Platform project with id `my-project` will be named - // `//cloudresourcemanager.googleapis.com/projects/my-project`. - string full_resource_name = 1; -} - -// A response containing a list of auditable services for a resource. -message QueryAuditableServicesResponse { - // Contains information about an auditable service. - message AuditableService { - // Public name of the service. - // For example, the service name for Cloud IAM is 'iam.googleapis.com'. - string name = 1; - } - - // The auditable services for a resource. - repeated AuditableService services = 1; -} - -// The request to lint a Cloud IAM policy object. -message LintPolicyRequest { - // The full resource name of the policy this lint request is about. - // - // The name follows the Google Cloud Platform (GCP) resource format. - // For example, a GCP project with ID `my-project` will be named - // `//cloudresourcemanager.googleapis.com/projects/my-project`. - // - // The resource name is not used to read the policy instance from the Cloud - // IAM database. The candidate policy for lint has to be provided in the same - // request object. - string full_resource_name = 1; - - // Required. The Cloud IAM object to be linted. - oneof lint_object { - // [google.iam.v1.Binding.condition] [google.iam.v1.Binding.condition] object to be linted. - google.type.Expr condition = 5; - } -} - -// Structured response of a single validation unit. -message LintResult { - // Possible Level values of a validation unit corresponding to its domain - // of discourse. - enum Level { - // Level is unspecified. - LEVEL_UNSPECIFIED = 0; - - // A validation unit which operates on an individual condition within a - // binding. - CONDITION = 3; - } - - // Possible Severity values of an issued result. - enum Severity { - // Severity is unspecified. - SEVERITY_UNSPECIFIED = 0; - - // A validation unit returns an error only for critical issues. If an - // attempt is made to set the problematic policy without rectifying the - // critical issue, it causes the `setPolicy` operation to fail. - ERROR = 1; - - // Any issue which is severe enough but does not cause an error. - // For example, suspicious constructs in the input object will not - // necessarily fail `setPolicy`, but there is a high likelihood that they - // won't behave as expected during policy evaluation in `checkPolicy`. - // This includes the following common scenarios: - // - // - Unsatisfiable condition: Expired timestamp in date/time condition. - // - Ineffective condition: Condition on a pair which is - // granted unconditionally in another binding of the same policy. - WARNING = 2; - - // Reserved for the issues that are not severe as `ERROR`/`WARNING`, but - // need special handling. For instance, messages about skipped validation - // units are issued as `NOTICE`. - NOTICE = 3; - - // Any informative statement which is not severe enough to raise - // `ERROR`/`WARNING`/`NOTICE`, like auto-correction recommendations on the - // input content. Note that current version of the linter does not utilize - // `INFO`. - INFO = 4; - - // Deprecated severity level. - DEPRECATED = 5; - } - - // The validation unit level. - Level level = 1; - - // The validation unit name, for instance - // "lintValidationUnits/ConditionComplexityCheck". - string validation_unit_name = 2; - - // The validation unit severity. - Severity severity = 3; - - // The name of the field for which this lint result is about. - // - // For nested messages `field_name` consists of names of the embedded fields - // separated by period character. The top-level qualifier is the input object - // to lint in the request. For example, the `field_name` value - // `condition.expression` identifies a lint result for the `expression` field - // of the provided condition. - string field_name = 5; - - // 0-based character position of problematic construct within the object - // identified by `field_name`. Currently, this is populated only for condition - // expression. - int32 location_offset = 6; - - // Human readable debug message associated with the issue. - string debug_message = 7; -} - -// The response of a lint operation. An empty response indicates -// the operation was able to fully execute and no lint issue was found. -message LintPolicyResponse { - // List of lint results sorted by `severity` in descending order. - repeated LintResult lint_results = 1; -}